/*
 Theme Name:   Ladoums - GeneratePress Child
 Theme URI:    https://ladoums.com
 Description:  Theme enfant GeneratePress pour Ladoums.com — La reference mondiale du mouton Ladoum. Design moderne rouge, noir & blanc.
 Author:       SAS Les Services Francais
 Author URI:   https://ladoums.com
 Template:     generatepress
 Version:      1.1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  ladoums
 Domain Path:  /languages
*/

/* ============================================================
   LADOUMS.COM — DESIGN SYSTEM v3
   Palette: Rouge vif + Noir profond + Blanc pur
   Typographie: Space Grotesk (display) + Plus Jakarta Sans (body)
   ============================================================ */

:root {
  /* Rouge */
  --ldm-red: #DC2626;
  --ldm-red-deep: #991B1B;
  --ldm-red-light: #EF4444;
  --ldm-red-pale: #FEE2E2;
  --ldm-red-glow: rgba(220,38,38,0.25);

  /* Noir */
  --ldm-black: #0A0A0A;
  --ldm-black-light: #1A1A1A;
  --ldm-black-soft: #2D2D2D;
  --ldm-black-muted: #404040;

  /* Blanc & Gris */
  --ldm-white: #FFFFFF;
  --ldm-gray-50: #FAFAFA;
  --ldm-gray-100: #F5F5F5;
  --ldm-gray-200: #E5E5E5;
  --ldm-gray-300: #D4D4D4;

  /* Textes */
  --ldm-text-dark: #0A0A0A;
  --ldm-text-body: #404040;
  --ldm-text-muted: #737373;

  /* Ombres */
  --ldm-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --ldm-shadow-md: 0 8px 30px rgba(0,0,0,0.10);
  --ldm-shadow-lg: 0 20px 50px rgba(0,0,0,0.15);
  --ldm-shadow-red: 0 8px 30px rgba(220,38,38,0.2);

  /* Rayons */
  --ldm-radius-sm: 8px;
  --ldm-radius-md: 12px;
  --ldm-radius-lg: 16px;
  --ldm-radius-xl: 24px;

  /* Transitions */
  --ldm-transition: all 0.3s ease;
  --ldm-transition-slow: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Typo sizes */
  --ldm-text-xs: 13px;
  --ldm-text-sm: 15px;
  --ldm-text-base: 17px;
  --ldm-text-lg: 19px;
  --ldm-text-xl: 22px;
  --ldm-text-2xl: 28px;
  --ldm-text-3xl: 36px;
  --ldm-text-4xl: 48px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ldm-text-body);
  background-color: var(--ldm-white);
  font-size: var(--ldm-text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  color: var(--ldm-black);
  line-height: 1.15;
  font-weight: 700;
}

a {
  color: var(--ldm-red);
  text-decoration: none;
  transition: var(--ldm-transition);
}
a:hover { color: var(--ldm-red-deep); }

::selection {
  background: var(--ldm-red);
  color: var(--ldm-white);
}

/* ============================================================
   GENERATEPRESS OVERRIDES
   ============================================================ */

/* Header — clean white avec ombre subtile */
.site-header {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ldm-gray-200);
  transition: var(--ldm-transition);
}
.site-header.scrolled {
  box-shadow: var(--ldm-shadow-md);
  border-bottom-color: transparent;
}

/* Logo — Navbar */
.site-logo img,
.ldm-logo-navbar {
  height: 50px;
  width: auto;
  object-fit: contain;
}
.ldm-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.site-header.scrolled .site-logo img,
.site-header.scrolled .ldm-logo-navbar {
  height: 42px;
  transition: height 0.3s ease;
}

/* Logo — Footer */
.ldm-logo-footer {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity 0.3s;
}
.ldm-logo-link:hover .ldm-logo-footer {
  opacity: 1;
}

/* Navigation */
.main-navigation .main-nav ul li a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--ldm-text-body);
  padding: 10px 18px;
  transition: var(--ldm-transition);
  position: relative;
}
.main-navigation .main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--ldm-red);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.main-navigation .main-nav ul li a:hover::after,
.main-navigation .main-nav ul li.current-menu-item a::after {
  transform: scaleX(1);
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item a {
  color: var(--ldm-black);
}

/* Menu CTA button */
.main-navigation .main-nav ul li.ldm-cta-menu a {
  background: var(--ldm-red);
  color: var(--ldm-white) !important;
  border-radius: 6px;
  padding: 10px 24px;
  letter-spacing: 1px;
}
.main-navigation .main-nav ul li.ldm-cta-menu a::after { display: none; }
.main-navigation .main-nav ul li.ldm-cta-menu a:hover {
  background: var(--ldm-black);
  color: var(--ldm-white) !important;
}

/* Breadcrumbs */
.breadcrumb-wrapper {
  background: var(--ldm-gray-100);
  padding: 12px 0;
  font-size: 14px;
}
.breadcrumb-wrapper a { color: var(--ldm-red); }
.breadcrumb-wrapper a:hover { color: var(--ldm-red-deep); }

/* Sidebar */
.widget-area .widget {
  background: var(--ldm-white);
  border-radius: var(--ldm-radius-lg);
  padding: 28px;
  border: 1px solid var(--ldm-gray-200);
  margin-bottom: 24px;
}
.widget-area .widget-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ldm-black);
  border-bottom: 2px solid var(--ldm-red);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

/* Footer — noir profond */
.site-footer {
  background: var(--ldm-black) !important;
  color: rgba(255,255,255,0.5);
}
.site-footer a {
  color: rgba(255,255,255,0.5);
}
.site-footer a:hover {
  color: var(--ldm-red-light);
}

/* Google review bar */
.ldm-google-bar {
  background: var(--ldm-gray-100); padding: 18px 40px;
  text-align: center; border-top: 1px solid var(--ldm-gray-200);
  font-size: 15px;
}
.ldm-google-bar > span { color: var(--ldm-text-muted); }
.ldm-google-bar a {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 12px; font-weight: 600; color: var(--ldm-red);
}
.ldm-google-bar a:hover { color: var(--ldm-red-deep); }

/* Footer main — 4 colonnes */
.ldm-footer-main {
  background: var(--ldm-black-light); color: rgba(255,255,255,0.6);
  padding: 64px 0 48px;
}
.ldm-footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
.ldm-footer-about .ldm-footer-desc {
  margin-top: 20px; font-size: 15px; line-height: 1.7;
  color: rgba(255,255,255,0.5);
}
.ldm-footer-trust {
  margin-top: 16px; display: flex; align-items: center; gap: 10px; font-size: 14px;
}
.ldm-footer-trust span { color: #F59E0B; letter-spacing: 2px; }
.ldm-footer-trust a { color: rgba(255,255,255,0.7); font-weight: 500; }
.ldm-footer-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: #FFF; margin-bottom: 20px;
}
.ldm-footer-nav { display: flex; flex-direction: column; gap: 12px; }
.ldm-footer-nav a {
  color: rgba(255,255,255,0.5); font-size: 15px;
  transition: all 0.2s; text-decoration: none;
  display: flex; align-items: center; gap: 6px;
}
.ldm-footer-nav a:hover { color: #FFF; transform: translateX(4px); }
.ldm-footer-nav a::before {
  content: ''; width: 5px; height: 5px;
  border-radius: 50%; background: var(--ldm-red);
  opacity: 0; transition: opacity 0.2s; flex-shrink: 0;
}
.ldm-footer-nav a:hover::before { opacity: 1; }
.ldm-footer-lang-current {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 8px;
  background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.7); font-size: 14px;
}

/* Legal bar */
.ldm-footer-legal {
  background: var(--ldm-black); border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0;
}
.ldm-footer-legal .ldm-footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: rgba(255,255,255,0.35);
}
.ldm-footer-legal-links { display: flex; gap: 24px; }
.ldm-footer-legal-links a { color: rgba(255,255,255,0.35); font-size: 14px; }
.ldm-footer-legal-links a:hover { color: rgba(255,255,255,0.7); }

/* Hide GP default footer widgets/info */
.site-footer .footer-widgets-container,
.site-footer .site-info { display: none; }

/* Footer responsive */
@media (max-width: 768px) {
  .ldm-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ldm-footer-about { grid-column: 1 / -1; }
  .ldm-footer-legal .ldm-footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .ldm-google-bar { padding: 16px 20px; font-size: 14px; }
  .ldm-google-bar a { display: flex; margin-left: 0; margin-top: 8px; justify-content: center; }
}
@media (max-width: 480px) {
  .ldm-footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .ldm-footer-main { padding: 40px 0 32px; }
}

/* ============================================================
   BOUTONS GLOBAUX
   ============================================================ */
.ldm-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ldm-red);
  color: var(--ldm-white);
  padding: 16px 36px;
  border-radius: var(--ldm-radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: var(--ldm-transition);
  text-decoration: none;
}
.ldm-btn-primary:hover {
  background: var(--ldm-red-deep);
  color: var(--ldm-white);
  transform: translateY(-2px);
  box-shadow: var(--ldm-shadow-red);
}

.ldm-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--ldm-white);
  padding: 16px 36px;
  border-radius: var(--ldm-radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--ldm-transition);
  text-decoration: none;
}
.ldm-btn-secondary:hover {
  border-color: var(--ldm-white);
  background: rgba(255,255,255,0.1);
  color: var(--ldm-white);
}

.ldm-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--ldm-red);
  padding: 14px 28px;
  border-radius: var(--ldm-radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid var(--ldm-red);
  cursor: pointer;
  transition: var(--ldm-transition);
  text-decoration: none;
}
.ldm-btn-outline:hover {
  background: var(--ldm-red);
  color: var(--ldm-white);
}

/* ============================================================
   SECTION TAG (accent rouge avec trait)
   ============================================================ */
.ldm-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ldm-red);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.ldm-section-tag::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--ldm-red);
}

/* ============================================================
   CARDS SYSTEM
   ============================================================ */
.ldm-card {
  background: var(--ldm-white);
  border-radius: var(--ldm-radius-lg);
  padding: 32px;
  border: 1px solid var(--ldm-gray-200);
  transition: var(--ldm-transition);
}
.ldm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ldm-shadow-md);
}
.ldm-card-dark {
  background: var(--ldm-black-light);
  color: rgba(255,255,255,0.7);
  border-color: transparent;
}
.ldm-card-dark h3,
.ldm-card-dark h4 { color: var(--ldm-white); }

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.ldm-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--ldm-transition-slow);
}
.ldm-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SVG ICON SYSTEM
   ============================================================ */
.ldm-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  color: currentColor;
}
.ldm-icon-red { color: var(--ldm-red); }
.ldm-icon-white { color: rgba(255,255,255,0.7); }
.ldm-icon-dark { color: var(--ldm-black); }

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.ldm-lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
}
.ldm-lang-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ldm-text-muted);
  background: var(--ldm-gray-100);
  transition: var(--ldm-transition);
  text-decoration: none;
  overflow: hidden;
}
.ldm-lang-btn:hover,
.ldm-lang-btn.active {
  background: var(--ldm-red);
  color: var(--ldm-white);
}
/* Flag underlines */
.ldm-lang-btn[hreflang="fr"]::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 6px;
  right: 6px;
  height: 2px;
  background: linear-gradient(90deg, #002654 33%, #FFF 33%, #FFF 66%, #ED2939 66%);
  border-radius: 1px;
  opacity: 0.5;
}
.ldm-lang-btn[hreflang="wo"]::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 6px;
  right: 6px;
  height: 2px;
  background: linear-gradient(90deg, #009639 33%, #FDEF42 33%, #FDEF42 66%, #ED1C24 66%);
  border-radius: 1px;
  opacity: 0.5;
}
.ldm-lang-btn[hreflang="en"]::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 6px;
  right: 6px;
  height: 2px;
  background: linear-gradient(90deg, #012169 33%, #FFF 33%, #FFF 66%, #C8102E 66%);
  border-radius: 1px;
  opacity: 0.5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .ldm-btn-primary,
  .ldm-btn-secondary {
    padding: 14px 24px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }
}
