/* ============================================================
   SOGAVI – style.css
   Dark / Light mode · FR / EN / AR · Chatbot · Animations
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand palette */
  --clr-primary:       #1B3A8F;   /* Forest green – avicole */
  --clr-primary-dark:  #102570;
  --clr-primary-light: #2D6BE4;
  --clr-accent:        #F5C518;   /* Warm gold – grain/chick */
  --clr-accent-dark:   #D4A500;
  --clr-accent-light:  #FFD84A;

  /* Neutral scale (light mode defaults) */
  --clr-bg:            #F4F7FD;
  --clr-bg-alt:        #E8EEF9;
  --clr-surface:       #FFFFFF;
  --clr-surface-2:     #DDE6F5;
  --clr-border:        #C2CFEA;
  --clr-text:          #111827;
  --clr-text-muted:    #4B5A7A;
  --clr-text-inverse:  #FFFFFF;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.14);
  --shadow-xl:   0 24px 64px rgba(0,0,0,.18);

  /* Typography */
  --ff-display:  'Playfair Display', Georgia, serif;
  --ff-body:     'DM Sans', system-ui, sans-serif;
  --ff-arabic:   'Amiri', 'Scheherazade New', serif;

  /* Spacing / sizing */
  --header-h:    72px;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-pill: 999px;

  /* Transitions */
  --transition-fast:   .15s ease;
  --transition-mid:    .30s ease;
  --transition-slow:   .60s cubic-bezier(.25,.8,.25,1);
}

/* ── Dark mode ── */
[data-theme="dark"] {
  --clr-bg:          #0A0F1E;
  --clr-bg-alt:      #0D1428;
  --clr-surface:     #111D35;
  --clr-surface-2:   #192540;
  --clr-border:      #1E2F5A;
  --clr-text:        #E6EAF4;
  --clr-text-muted:  #6A82B8;
  --clr-text-inverse:#0A0F1E;
  --shadow-sm:       0 1px 3px rgba(0,0,0,.30);
  --shadow-md:       0 4px 16px rgba(0,0,0,.40);
  --shadow-lg:       0 12px 40px rgba(0,0,0,.50);
  --shadow-xl:       0 24px 64px rgba(0,0,0,.60);
}

/* ── Arabic / RTL font ── */
[lang="ar"] {
  font-family: var(--ff-arabic);
  direction: rtl;
}
[lang="ar"] .hero__title,
[lang="ar"] .section__title,
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 {
  font-family: var(--ff-arabic);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--clr-text);
  background: var(--clr-bg);
  transition: background var(--transition-mid), color var(--transition-mid);
  overflow-x: hidden;
}

/* Light mode: subtle color atmosphere */
:root:not([data-theme="dark"]) body {
  background:
    radial-gradient(900px 480px at 10% -10%, rgba(45,107,228,.12), transparent 60%),
    radial-gradient(680px 360px at 96% 2%, rgba(245,197,24,.14), transparent 58%),
    var(--clr-bg);
}

:root:not([data-theme="dark"]) .service-card,
:root:not([data-theme="dark"]) .apropos__value-item,
:root:not([data-theme="dark"]) .stat-item,
:root:not([data-theme="dark"]) .faq__item,
:root:not([data-theme="dark"]) .contact__detail-item,
:root:not([data-theme="dark"]) .contact__form-wrapper {
  background: linear-gradient(165deg, #ffffff 0%, #f0f4fd 100%);
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
address { font-style: normal; }

/* Shared inline SVG icon system */
.sog-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

.section {
  padding-block: 6rem;
}

/* ── Section header ── */
.section__label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-primary-light);
  margin-bottom: .6rem;
}
.section__title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--clr-text);
}
.section__divider {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  border-radius: var(--radius-pill);
  margin-top: 1rem;
  margin-bottom: 2.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-primary));
  color: #fff;
  box-shadow: 0 4px 14px rgba(27,58,143,.35);
}
.btn--primary:hover { box-shadow: 0 8px 24px rgba(27,58,143,.45); }

.btn--outline {
  border: 2px solid var(--clr-primary-light);
  color: var(--clr-primary-light);
}
.btn--outline:hover {
  background: var(--clr-primary-light);
  color: #fff;
}

.btn--accent {
  background: linear-gradient(135deg, var(--clr-accent-light), var(--clr-accent));
  color: var(--clr-text-inverse);
  box-shadow: 0 4px 14px rgba(245,197,24,.35);
}

.btn--nav {
  padding: .5rem 1.25rem;
  font-size: .85rem;
}

.btn--full { width: 100%; justify-content: center; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  background: transparent;
  transition: background var(--transition-mid), box-shadow var(--transition-mid);
}
.header.scrolled {
  background: var(--clr-surface);
  box-shadow: var(--shadow-md);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ── Logo ── */
.header__logo {
  flex-shrink: 0;
  margin-inline-end: auto;
}
.header__logo-img {
  height: 56px;
  max-width: min(44vw, 320px);
  width: auto;
  border-radius: 0;
  object-fit: contain;
  transition: opacity var(--transition-fast);
}

/* ── Nav ── */
.nav__list {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav__link {
  padding: .45rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  color: var(--clr-text);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav__link:hover,
.nav__link.active {
  color: var(--clr-primary-light);
  background: rgba(27,58,143,.08);
}

/* ── Navbar control buttons ── */
.nav__controls {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

/* Dark / Light toggle */
.btn-theme {
  width: 44px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--clr-surface-2);
  border: 2px solid var(--clr-border);
  position: relative;
  transition: background var(--transition-mid);
  flex-shrink: 0;
}
.btn-theme::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--clr-accent);
  transition: transform var(--transition-mid), background var(--transition-mid);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .btn-theme { background: var(--clr-primary); border-color: var(--clr-primary-light); }
[data-theme="dark"] .btn-theme::after { transform: translateX(18px); background: #fff; }

.btn-theme__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 4px;
  font-size: 10px;
  pointer-events: none;
  user-select: none;
}

/* Language switcher */
.btn-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: .3rem .7rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--clr-border);
  background: var(--clr-surface);
  font-size: .78rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  transition: all var(--transition-fast);
}
.btn-lang:hover {
  border-color: var(--clr-primary-light);
  color: var(--clr-primary-light);
}
.btn-lang__caption {
  opacity: .72;
  font-weight: 600;
  letter-spacing: .02em;
}
.btn-lang__current,
.btn-lang__next {
  font-weight: 700;
  min-width: 1.5rem;
  text-align: center;
}
.btn-lang__sep {
  opacity: .55;
  font-weight: 700;
}

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: var(--radius-sm);
}
.nav__burger-line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--transition-mid), opacity var(--transition-fast);
}
.nav__burger.open .nav__burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open .nav__burger-line:nth-child(2) { opacity: 0; }
.nav__burger.open .nav__burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: 5rem;
  /* Fond de base : garantit une couleur uniforme sur toute la largeur */
  background: var(--clr-bg);
}

/* Dark mode : fond dégradé uniforme gauche→droite pour effacer la couture */
[data-theme="dark"] .hero {
  background:
    linear-gradient(105deg,
      #0D1428 0%,
      #0A0F1E 38%,
      #0A0F1E 62%,
      #0D1428 100%
    );
}

/* Section-level hero background (uses hero.jpg) */
.hero::before {
  /* pseudo-element intentionally left empty to preserve stacking/context */
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  filter: none;
  transform: none;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* ── Background decorations ── */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.hero__bg-shape--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--clr-primary-light), transparent 70%);
  top: -200px;
  right: -100px;
}
.hero__bg-shape--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--clr-accent), transparent 70%);
  bottom: -150px;
  left: -150px;
}

/* Light-mode: enhance hero colors and add warm glow near CTAs */
:root:not([data-theme="dark"]) .hero__bg-shape--1 {
  background: radial-gradient(circle, rgba(45,107,228,0.42), rgba(100,160,240,0.24) 38%, transparent 68%);
  filter: blur(94px);
  opacity: 1;
}
:root:not([data-theme="dark"]) .hero__bg-shape--2 {
  background: radial-gradient(circle, rgba(245,197,24,0.34), rgba(255,216,74,0.16) 38%, transparent 66%);
  filter: blur(84px);
  opacity: .95;
}

:root:not([data-theme="dark"]) .hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 420px at 88% 16%, rgba(100,160,240,1) 0%, rgba(100,160,240,0.36) 30%, transparent 72%),
    radial-gradient(560px 320px at 18% 16%, rgba(45,107,228,0.18), transparent 74%),
    radial-gradient(520px 300px at 78% 22%, rgba(245,197,24,0.14), transparent 72%),
    linear-gradient(180deg, rgba(100,160,240,0.08), rgba(255,216,74,0.04) 34%, transparent 58%);
  pointer-events: none;
}

:root:not([data-theme="dark"]) .hero::after {
  content: '';
  position: absolute;
  left: 6%;
  bottom: 6%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle at 20% 80%, rgba(245,197,24,0.24), rgba(45,107,228,0) 60%);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: soft-light;
}

:root:not([data-theme="dark"]) .hero__content::before {
  content: '';
  position: absolute;
  left: -3%;
  top: -8%;
  width: clamp(220px, 28vw, 420px);
  height: clamp(220px, 28vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100,160,240,0.16), rgba(100,160,240,0.04) 45%, transparent 72%);
  z-index: -1;
  pointer-events: none;
}

:root:not([data-theme="dark"]) .hero__actions .btn--primary {
  background: linear-gradient(90deg, var(--clr-primary-light), var(--clr-primary));
  box-shadow: 0 8px 28px rgba(45,107,228,.12);
}
.hero__bg-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
}

/* ── Hero inner ── */
.hero__inner {
  position: relative;
  z-index: 2;
  /* Le texte occupe la moitié gauche ; l'image est en absolute hors du container */
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  /* Le container laisse un padding, mais la colonne visuelle le dépassera */
}

.hero__eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--clr-text);
  margin-bottom: 1.25rem;
}

.hero__description {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 46ch;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ── Hero visual – chick image ── */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__visual-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
  background: var(--clr-surface-2);
}
.hero__visual-frame::before {
  /* keep the pseudo-element for subtle overlay only; section-level image now provides background */
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  filter: none;
  transform: none;
  opacity: 0;
  z-index: 0;
}
.hero__visual-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.10));
  z-index: 1;
  pointer-events: none;
}
.hero__visual-frame img {
  position: relative;
  z-index: 3;
  width: 115%;
  height: 115%;
  margin: auto;
  object-fit: cover;
  transition: transform .6s ease, filter .4s ease, opacity .4s ease;
  opacity: .8;
  filter: contrast(.96) saturate(.92) blur(.6px);
}
.hero__visual-frame:hover img { transform: scale(1.04); }

/* Badge overlay */
.hero__visual-badge {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: .6rem 1rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--clr-primary);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.hero__visual-badge .sog-icon {
  width: 1rem;
  height: 1rem;
  color: var(--clr-accent-dark);
  flex-shrink: 0;
}
[data-theme="dark"] .hero__visual-badge {
  background: rgba(27,35,24,.92);
  color: var(--clr-accent);
}

/* ── Colonne visuelle droite – déborde jusqu'au bord de .hero ── */
.hero__visual-col {
  /* On sort du flux du container en utilisant un margin négatif
     qui compense exactement le padding du container (1.5rem de chaque côté)
     et on étend vers la droite jusqu'au bord de la fenêtre */
  position: relative;
  /* Tire la colonne vers la droite pour annuler le padding du container */
  margin-right: calc(-1 * ((100vw - min(1200px, 100% + 3rem)) / 2) - 1.5rem);
  /* Tire vers le haut et le bas pour couvrir le padding-block du hero */
  margin-top: calc(-5rem);
  margin-bottom: calc(-5rem);
  /* S'assure que ça remplit bien la hauteur */
  align-self: stretch;
  min-height: 100%;
  z-index: 1;
  overflow: hidden;
}

/* ── Hero corner image – remplit toute la colonne visuelle, bords à vif ── */
.hero__corner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* Aucun border-radius : l'image touche les bords haut, droite, bas sans espace */
  border-radius: 0;
  background: transparent;
}
/* Dégradé coloré bleu→jaune qui s'atténue vers la gauche */
.hero__corner-img::before {
  content: '';
  display: none;
}
.hero__corner-img::after {
  content: '';
  display: none;
}
.hero__corner-img-el {
  width: 90%;
  height: 90%;
  object-fit: cover;
  object-position: center;
  opacity: .88;
  display: block;
  transition: opacity .4s ease;
  position: relative;
  z-index: 0;
  /* Masque: complètement invisible à gauche, entièrement visible à droite */
  -webkit-mask-image: linear-gradient(90deg,
    rgba(0,0,0,0)    0%,
    rgba(0,0,0,0.05) 12%,
    rgba(0,0,0,0.28) 28%,
    rgba(0,0,0,0.70) 48%,
    rgba(0,0,0,0.94) 68%,
    rgba(0,0,0,1)    100%
  );
  mask-image: linear-gradient(90deg,
    rgba(0,0,0,0)    0%,
    rgba(0,0,0,0.05) 12%,
    rgba(0,0,0,0.28) 28%,
    rgba(0,0,0,0.70) 48%,
    rgba(0,0,0,0.94) 68%,
    rgba(0,0,0,1)    100%
  );
  filter: contrast(1.04) saturate(1.08);
}

/* ── Logo décoratif – centré dans la colonne visuelle ── */
.hero__corner-logo {
  position: absolute;
  /* Décalé davantage vers la gauche pour mieux coller à la composition du hero */
  left: 15.4%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(168px, 22vw, 300px);
  aspect-ratio: 1 / 1.18;
  z-index: 4;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: .3rem;
}
.hero__corner-logo-el {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  opacity: .52;
  display: block;
  filter: drop-shadow(0 14px 30px rgba(27,58,143,.2));
  border-radius: 50%;
  border: 4px solid rgba(45, 107, 228, .9);
  background: #fff;
  box-sizing: border-box;
  -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 52%, rgba(0,0,0,.45) 80%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 52%, rgba(0,0,0,.45) 80%, rgba(0,0,0,0) 100%);
}
.hero__corner-logo-label {
  display: inline-block;
  margin-top: .3rem;
  padding: .45rem .35rem;
  font-size: 1.04rem;
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
  color: #1B3A8F;
  background: #EBF0FC;
  border-radius: 6px;
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,.7),
    0 3px 10px rgba(27,58,143,.15);
  transition: all .3s ease;
}
.hero__corner-logo-label::before {
  content: '—';
  color: #D4A500;
  margin-right: 0;
}
.hero__corner-logo-label::after {
  content: '—';
  color: #D4A500;
  margin-left: 0;
}

[data-theme="dark"] .hero__corner-img::before {
  display: none;
}
[data-theme="dark"] .hero__corner-img::after {
  display: none;
}
[data-theme="dark"] .hero__corner-logo-el {
  opacity: .45;
}
[data-theme="dark"] .hero__corner-logo-label {
  color: #aac4ff;
  background: #1A2540;
  border-color: #5A7AC0;
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,.4),
    0 3px 10px rgba(0,0,0,.3);
}

/* ── Scroll cue ── */
.hero__scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  color: var(--clr-text-muted);
  font-size: .75rem;
  letter-spacing: .08em;
  animation: scrollBounce 1.8s ease-in-out infinite;
}
.hero__scroll-icon {
  display: block;
  width: 22px;
  height: 36px;
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-pill);
  position: relative;
}
.hero__scroll-icon::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--clr-accent);
  border-radius: var(--radius-pill);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}
@keyframes scrollDot {
  0%,100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50%      { opacity: .3; transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   À PROPOS
   ============================================================ */
.apropos {
  background: var(--clr-bg-alt);
}
.apropos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.apropos__paragraph {
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}
.apropos__values-title {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--clr-text);
}
.apropos__values-list { display: flex; flex-direction: column; gap: .7rem; }
.apropos__value-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem 1rem;
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--clr-primary-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.apropos__value-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.apropos__value-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-accent));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
}
.apropos__value-icon .sog-icon {
  width: 18px;
  height: 18px;
  color: #fff;
}
.apropos__value-text { font-weight: 500; font-size: .9rem; }

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--clr-bg);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.service-card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-mid), box-shadow var(--transition-mid), border-color var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary-light), var(--clr-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-mid);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--clr-primary-light); }
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(27,58,143,.12), rgba(245,197,24,.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.service-card__icon .sog-icon {
  width: 24px;
  height: 24px;
  color: var(--clr-primary);
}
.service-card__title {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .6rem;
  color: var(--clr-text);
}
.service-card__desc { font-size: .88rem; color: var(--clr-text-muted); line-height: 1.7; }

/* ============================================================
   POURQUOI CHOISIR (Why section)
   ============================================================ */
.why {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.why::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.why .section__label { color: var(--clr-accent-light); }
.why .section__title { color: #fff; }
.why .section__divider { background: linear-gradient(90deg, var(--clr-accent), rgba(255,255,255,.4)); }

.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.why-card {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background var(--transition-mid), transform var(--transition-mid);
}
.why-card:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-4px);
}
.why-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.why-card__icon .sog-icon {
  width: 34px;
  height: 34px;
  color: var(--clr-accent-light);
}
.why-card__title {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .5rem;
}
.why-card__desc { font-size: .85rem; color: rgba(255,255,255,.75); line-height: 1.65; }

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background: var(--clr-bg-alt);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-item {
  padding: 2rem 1rem;
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
}
.stat-item__number {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--clr-primary-light);
  line-height: 1;
  margin-bottom: .4rem;
}
.stat-item__label {
  font-size: .85rem;
  color: var(--clr-text-muted);
  font-weight: 500;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq__list { display: flex; flex-direction: column; gap: .75rem; max-width: 780px; margin-inline: auto; }
.faq__item {
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast);
}
.faq__item:has(.faq__question[aria-expanded="true"]) { box-shadow: var(--shadow-md); }

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  text-align: left;
  font-weight: 600;
  font-size: .95rem;
  color: var(--clr-text);
  transition: color var(--transition-fast);
}
.faq__question:hover { color: var(--clr-primary-light); }
.faq__question[aria-expanded="true"] { color: var(--clr-primary-light); }
.faq__icon {
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--transition-mid);
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.faq__icon::before { width: 10px; height: 2px; }
.faq__icon::after  { height: 10px; width: 2px; transition: transform var(--transition-mid); }
.faq__question[aria-expanded="true"] .faq__icon { transform: rotate(180deg); }
.faq__question[aria-expanded="true"] .faq__icon::after { transform: scaleY(0); }

.faq__panel {
  padding: 0 1.4rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
}
.faq__panel:not([hidden]) {
  max-height: 400px;
  padding-bottom: 1.2rem;
}
.faq__answer { font-size: .9rem; color: var(--clr-text-muted); line-height: 1.75; }

/* ── Section FAQ ── */
.faq {
  background: var(--clr-bg);
}

/* ── Section Contact ── */
.contact {
  background: var(--clr-bg-alt);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact__intro { color: var(--clr-text-muted); margin-bottom: 2rem; }
.contact__details { display: flex; flex-direction: column; gap: 1rem; }
.contact__info { display: flex; flex-direction: column; }
.contact__detail-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: .9rem 1rem;
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
}
.contact__detail-icon { font-size: 1.2rem; flex-shrink: 0; }
.contact__detail-label { display: block; font-size: .78rem; font-weight: 600; color: var(--clr-text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .2rem; }
.contact__detail-value { font-size: .9rem; color: var(--clr-text); }
.contact__link { color: var(--clr-primary-light); transition: color var(--transition-fast); }
.contact__link:hover { color: var(--clr-accent); }

/* ── Form ── */
.contact__form-wrapper {
  background: var(--clr-surface);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-lg);
}
.form__row--half { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.form__group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .8rem; }
.form__label { font-size: .82rem; font-weight: 600; color: var(--clr-text-muted); }
.form__required { color: var(--clr-accent); }

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: inherit;
  font-size: .9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--clr-primary-light);
  box-shadow: 0 0 0 3px rgba(27,58,143,.15);
}
.form__textarea { resize: vertical; min-height: 96px; }
.form__error { font-size: .78rem; color: #e03e3e; min-height: 1rem; }
.form__feedback { margin-top: 1rem; font-size: .88rem; padding: .7rem 1rem; border-radius: var(--radius-md); }
.form__feedback.success { background: rgba(27,58,143,.12); color: var(--clr-primary-light); }
.form__feedback.error   { background: rgba(224,62,62,.1);  color: #e03e3e; }

.btn__loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn--loading .btn__loader { display: block; }
.btn--loading .btn__text   { opacity: .7; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   FOOTER  – redesign vert → doré
   ============================================================ */
.footer {
  background: linear-gradient(160deg,
    #081232 0%,
    #1A2A6C 30%,
    #1B3A8F 60%,
    #1E3D7A 82%,
    #2A4EA0 100%
  );
  border-top: none;
  position: relative;
  overflow: hidden;
  color: #e6eaf4;
}

/* Bande décorative top – dégradé vert→doré */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--clr-primary-light) 0%,
    #5090E0 20%,
    var(--clr-accent) 45%,
    #F4C842 65%,
    var(--clr-accent-light) 80%,
    var(--clr-primary-light) 100%
  );
}

/* Motif de grain subtil en arrière-plan */
.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 8% 110%,  rgba(45,107,228,.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 92% -10%, rgba(245,197,24,.18) 0%, transparent 58%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(80,130,220,.12) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-block: 4rem 3rem;
  position: relative;
  z-index: 1;
}

/* ── Brand column ── */
.footer__brand {
  position: relative;
}
.footer__brand::after { display: none; } /* supprimer l'ancien cercle */

.footer__logo-img {
  height: 160px;
  width: auto;
  border-radius: 50%;
  border: 3px solid rgba(244, 168, 29, 0.6);
  object-fit: contain;
  animation: logoOscillate 6s ease-in-out infinite;
  transition: animation-duration .4s;
  filter:
    drop-shadow(0 6px 18px rgba(0,0,0,.35))
    drop-shadow(0 0 12px rgba(245,197,24,.25));
  background: rgba(255,255,255,.06);
}
.footer__logo-link:hover .footer__logo-img {
  animation-duration: 2.2s;
  border-color: rgba(245,197,24,.95);
  filter:
    drop-shadow(0 8px 22px rgba(0,0,0,.40))
    drop-shadow(0 0 20px rgba(245,197,24,.50));
}

@keyframes logoOscillate {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(10deg); }
  50%  { transform: rotate(-20deg); }
  75%  { transform: rotate(20deg); }
  100% { transform: rotate(0deg); }
}

.footer__tagline {
  margin-top: 1rem;
  font-size: .875rem;
  color: rgba(210,225,250,.7);
  max-width: 30ch;
  line-height: 1.65;
}

/* Petite barre décorative sous le tagline */
.footer__brand-bar {
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--clr-primary-light), var(--clr-accent));
  margin-top: .9rem;
  opacity: .7;
}

/* ── Titres colonnes nav/contact ── */
.footer__nav-title {
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--clr-accent-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.footer__nav-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(245,197,24,.35), transparent);
}

/* ── Liens nav ── */
.footer__nav-list { display: flex; flex-direction: column; gap: .35rem; }
.footer__nav-link {
  font-size: .875rem;
  color: rgba(180,205,240,.75);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .22rem 0;
}
.footer__nav-link::before {
  content: '›';
  color: var(--clr-accent);
  font-size: 1rem;
  line-height: 1;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.footer__nav-link:hover {
  color: #fff;
  padding-left: 6px;
}
.footer__nav-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}
[dir="rtl"] .footer__nav-link:hover { padding-left: 0; padding-right: 6px; }

/* ── Contacts ── */
.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  font-size: .875rem;
  color: rgba(180,205,240,.75);
}
.footer__contact-list p {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  line-height: 1.5;
}
.footer__contact-link {
  color: var(--clr-accent-light);
  transition: color var(--transition-fast);
  text-decoration: underline;
  text-decoration-color: rgba(245,197,24,.3);
  text-underline-offset: 3px;
}
.footer__contact-link:hover { color: #fff; text-decoration-color: rgba(245,197,24,.8); }

/* ── Barre de copyright ── */
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  padding-block: 1.25rem;
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,.18);
}
.footer__bottom-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.footer__copy {
  font-size: .8rem;
  color: rgba(160,185,230,.6);
  letter-spacing: .03em;
}
.footer__copy strong { color: var(--clr-accent-light); font-weight: 600; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: calc(2rem + 56px + .75rem);
  right: 2rem;
  z-index: 800;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity var(--transition-mid), transform var(--transition-mid);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--clr-primary-light); }

/* ============================================================
   CHATBOT
   ============================================================ */
/* Floating trigger */
.chatbot-trigger {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-primary));
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  border: none;
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
  animation: chatPulse 2.5s ease-in-out infinite;
}
.chatbot-trigger:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 28px rgba(27,58,143,.45);
  animation: none;
}
.chatbot-trigger.open { animation: none; transform: none; }
.chatbot-trigger .sog-icon {
  width: 24px;
  height: 24px;
  color: #fff;
}

@keyframes chatPulse {
  0%,100% { box-shadow: var(--shadow-lg), 0 0 0 0 rgba(27,58,143,.4); }
  50%      { box-shadow: var(--shadow-lg), 0 0 0 10px rgba(27,58,143,0); }
}

/* Chat window */
.chatbot-window {
  position: fixed;
  bottom: calc(2rem + 68px);
  right: 2rem;
  z-index: 1000;
  width: 360px;
  max-height: 520px;
  background: var(--clr-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(.85) translateY(24px);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .25s ease;
}
.chatbot-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Header */
.chatbot-header {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
  color: #fff;
  flex-shrink: 0;
}
.chatbot-header__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.chatbot-header__avatar .sog-icon {
  width: 18px;
  height: 18px;
  color: #fff;
}
.chatbot-header__info { flex: 1; min-width: 0; }
.chatbot-header__name { font-weight: 700; font-size: .9rem; }
.chatbot-header__status { font-size: .72rem; opacity: .8; display: flex; align-items: center; gap: .3rem; }
.chatbot-header__status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ad4ff;
  flex-shrink: 0;
}
.chatbot-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background var(--transition-fast);
}
.chatbot-close:hover { background: rgba(255,255,255,.3); }
.chatbot-close .sog-icon {
  width: 14px;
  height: 14px;
  color: #fff;
}

/* Messages */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  scroll-behavior: smooth;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--clr-border); border-radius: 4px; }

.chat-msg {
  max-width: 82%;
  padding: .65rem .9rem;
  border-radius: var(--radius-md);
  font-size: .85rem;
  line-height: 1.55;
  animation: msgPop .2s ease-out;
}
@keyframes msgPop {
  from { transform: scale(.9) translateY(4px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.chat-msg--bot {
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg--user {
  background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-primary));
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Quick reply chips */
.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-self: flex-start;
  margin-top: .2rem;
}
.chat-chip {
  padding: .3rem .75rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--clr-primary-light);
  background: transparent;
  color: var(--clr-primary-light);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.chat-chip:hover { background: var(--clr-primary-light); color: #fff; }

/* Typing indicator */
.chat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: .65rem .9rem;
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  width: fit-content;
}
.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-text-muted);
  animation: typingDot .8s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .30s; }
@keyframes typingDot {
  0%,80%,100% { transform: scale(1); opacity: .4; }
  40%          { transform: scale(1.4); opacity: 1; }
}

/* Input bar */
.chatbot-input {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1rem;
  border-top: 1px solid var(--clr-border);
  flex-shrink: 0;
}
.chatbot-input__field {
  flex: 1;
  padding: .55rem .85rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-pill);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: inherit;
  font-size: .85rem;
  transition: border-color var(--transition-fast);
}
.chatbot-input__field:focus { outline: none; border-color: var(--clr-primary-light); }
.chatbot-input__send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.chatbot-input__send:hover { background: var(--clr-primary-light); transform: scale(1.1); }
.chatbot-input__send .sog-icon {
  width: 15px;
  height: 15px;
  color: #fff;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-animate="fade-right"] { transform: translateX(-32px); }
[data-animate="fade-left"]  { transform: translateX(32px); }

[data-animate].in-view {
  opacity: 1;
  transform: translate(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  /* Mobile : empile texte puis image pleine largeur */
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 0; }
  .hero__description { max-width: 100%; }
  .hero__actions { justify-content: center; }
  /* La colonne visuelle prend toute la largeur, margin reset */
  .hero__visual-col {
    margin-right: 0;
    margin-top: 0;
    margin-bottom: -5rem; /* compense seulement le bas */
    min-height: 300px;
    width: 100%;
  }
  .hero__corner-logo { width: clamp(120px, 30vw, 200px); }
  .hero__corner-logo-label { font-size: .88rem; }
  .apropos__grid { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .section { padding-block: 4rem; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--clr-surface);
    padding: 1.5rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--transition-mid);
    z-index: 850;
  }
  [dir="rtl"] .nav { transform: translateX(100%); }
  .nav.open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: .25rem; }
  .nav__link { padding: .85rem 1rem; display: block; font-size: .95rem; }

  .nav__burger { display: flex; }

  .form__row--half { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }

  .chatbot-window { width: calc(100vw - 2rem); left: 1rem; right: 1rem; }
  .chatbot-trigger { bottom: 1.25rem; right: 1.25rem; }
  .back-to-top { bottom: calc(1.25rem + 56px + .6rem); right: 1.25rem; }

  .hero__corner-logo { display: none; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .nav__controls { gap: .35rem; }
  .btn-lang__caption,
  .btn-lang__sep,
  .btn-lang__next { display: none; }
}

/* ============================================================
   RTL ADJUSTMENTS
   ============================================================ */
[dir="rtl"] .hero__inner { direction: ltr; }
[dir="rtl"] .hero__content,
[dir="rtl"] .hero__actions { direction: rtl; }
[dir="rtl"] .section__divider { margin-right: 0; }
[dir="rtl"] .apropos__value-item { border-left: none; border-right: 3px solid var(--clr-primary-light); }
[dir="rtl"] .service-card::before { transform-origin: right; }
[dir="rtl"] .chatbot-trigger { right: auto; left: 2rem; }
[dir="rtl"] .chatbot-window { right: auto; left: 2rem; transform-origin: bottom left; }
[dir="rtl"] .back-to-top { right: auto; left: 2rem; }
[dir="rtl"] .chat-msg--user { align-self: flex-start; border-bottom-right-radius: var(--radius-md); border-bottom-left-radius: 4px; }
[dir="rtl"] .chat-msg--bot  { align-self: flex-end; border-bottom-left-radius: var(--radius-md); border-bottom-right-radius: 4px; }

/* ============================================================
   HERO IMAGE FALLBACK (SVG placeholder for chicks)
   ============================================================ */
.hero__chick-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EFF4FD, #D8E8FF);
  gap: 1rem;
}
.hero__chick-placeholder img {
  width: 115%;
  height: 115%;
  max-width: none;
  object-fit: cover;
  opacity: .8;
}
.hero__chick-placeholder .sog-icon {
  width: 5rem;
  height: 5rem;
  color: #1B3A8F;
  animation: chickBob 1.5s ease-in-out infinite;
}
@keyframes chickBob {
  0%,100% { transform: translateY(0) rotate(-5deg); }
  50%      { transform: translateY(-8px) rotate(5deg); }
}
.hero__chick-placeholder p { font-size: .85rem; color: #1B3A8F; font-weight: 600; }