/* ============================================================
   SGA Services — feuille de style
   Charte 2026 : bleu pétrole #1D4356 / #1E5067 · sable #DDBF9B ·
   pêche #EEB88A · Gotham Bold (≈ Montserrat) + Poppins
   ============================================================ */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-latin-300-normal.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  /* Palette charte SGA 2026 (les noms historiques sont conservés :
     --orange = pêche #EEB88A, --jaune = sable #DDBF9B) */
  --bleu: #1e5067;
  --bleu-fonce: #1d4356;
  --bleu-nuit: #152f3c;
  --orange: #eeb88a;
  --orange-fonce: #e3a06a;
  --jaune: #ddbf9b;
  --noir: #141414;
  --gris: #55595e;
  --creme: #f7f1e8;
  --blanc: #ffffff;
  --serif: "Montserrat", "Segoe UI", Arial, sans-serif;
  --sans: "Poppins", "Segoe UI", Arial, sans-serif;
  --maxw: 1180px;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(29, 67, 86, 0.12);
  --transition: 0.3s cubic-bezier(0.25, 0.6, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Tailles de texte harmonisées : 1rem pour tous les blocs de contenu,
   1.15rem pour les chapôs (.lead, .hero__sub, .page-hero__intro). */
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--noir);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; font-family: var(--sans); font-weight: 600; }

p { margin: 0 0 1.1em; }
a { color: var(--bleu-fonce); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--noir); color: #fff; padding: 0.7rem 1.2rem;
}
.skip-link:focus { left: 0; }

/* ---------- Kicker (surtitre) ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--bleu-fonce); margin: 0 0 1rem;
}
.kicker::before {
  content: ""; width: 2.4rem; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--jaune));
}
.kicker--light { color: #fff; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600;
  font-size: 1rem; letter-spacing: 0.02em; text-decoration: none;
  border-radius: 999px; padding: 0.9rem 2.1rem; border: 2px solid transparent;
  cursor: pointer; transition: transform var(--transition), background var(--transition),
    color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.btn--primary { background: var(--orange); color: var(--noir); }
.btn--primary:hover { background: var(--jaune); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(238, 184, 138, 0.45); }
.btn--dark { background: var(--noir); color: #fff; }
.btn--dark:hover { background: var(--bleu-fonce); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.75); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--noir); }
.btn--small { padding: 0.55rem clamp(1rem, 1.2vw, 1.4rem); font-size: clamp(0.84rem, 0.4vw + 0.64rem, 0.92rem); white-space: nowrap; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(20, 20, 20, 0.07);
  transition: background var(--transition), box-shadow var(--transition);
}
/* Pleine largeur : la marque se cale à gauche, le menu à droite —
   l'écart entre le titre et le menu grandit avec l'écran. */
.site-header__inner {
  padding: 0.65rem clamp(1.4rem, 3vw, 3.2rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(2rem, 4vw, 5rem);
}
.site-header__brand {
  display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--noir);
}
.site-header__brand img { width: 54px; height: auto; }
.site-header__brand .brand-light { display: none; }
.site-header__brandtext {
  font-weight: 600; font-size: clamp(1.05rem, 0.9vw + 0.7rem, 1.25rem);
  letter-spacing: 0.04em; white-space: nowrap;
}
.site-header__brandtext em { font-style: normal; font-weight: 300; color: var(--bleu-fonce); }

/* Le menu reste sur UNE ligne : libellés insécables, tailles et espacements
   fluides qui se resserrent avec l'écran (clamp), burger en dessous de 960px. */
.site-nav ul {
  display: flex; align-items: center; flex-wrap: nowrap;
  gap: clamp(0.7rem, 1.4vw, 1.6rem);
  list-style: none; margin: 0; padding: 0;
}
.site-nav a:not(.btn) {
  text-decoration: none; color: var(--noir); font-weight: 400;
  font-size: clamp(0.82rem, 0.4vw + 0.62rem, 0.98rem);
  white-space: nowrap;
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
.site-nav a:not(.btn):hover,
.site-nav a:not(.btn)[aria-current="page"] { border-bottom-color: var(--orange); }

/* header transparent au-dessus du hero (accueil) */
.site-header--overlay:not(.is-scrolled):not(.is-open) {
  background: transparent; box-shadow: none; backdrop-filter: none;
}
.site-header--overlay:not(.is-scrolled):not(.is-open) .site-header__brand,
.site-header--overlay:not(.is-scrolled):not(.is-open) .site-nav a:not(.btn) { color: #fff; }
.site-header--overlay:not(.is-scrolled):not(.is-open) .site-header__brandtext em { color: var(--jaune); }
.site-header--overlay:not(.is-scrolled):not(.is-open) .burger span { background: #fff; }
.site-header--overlay:not(.is-scrolled):not(.is-open) .brand-dark,
.site-header.is-open .brand-dark { display: none; }
.site-header--overlay:not(.is-scrolled):not(.is-open) .brand-light,
.site-header.is-open .brand-light { display: block; }

.burger { display: none; background: none; border: 0; padding: 0.6rem; cursor: pointer; }
.burger span {
  display: block; width: 26px; height: 2px; margin: 6px 0;
  background: var(--noir); transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Hero accueil ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background: var(--bleu-nuit);
}
.hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: 65% 20%;
  filter: saturate(0.95);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(19, 42, 54, 0.62), rgba(19, 42, 54, 0) 30%),
    linear-gradient(100deg, rgba(19, 42, 54, 0.9) 15%, rgba(19, 42, 54, 0.58) 55%, rgba(19, 42, 54, 0.18));
}
.hero__inner {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: 9rem 1.4rem 6rem; width: 100%;
}
.hero h1 { max-width: 15em; margin-bottom: 0.5em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero__sub { max-width: 34em; font-size: 1.15rem; font-weight: 300; margin-bottom: 2.2rem; color: rgba(255, 255, 255, 0.92); }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Hero pages internes ---------- */
.page-hero {
  position: relative; min-height: 48vh; display: flex; align-items: flex-end;
  color: #fff; background: var(--bleu-nuit);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--hero-img); background-size: cover; background-position: center 30%;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(10deg, rgba(19, 42, 54, 0.82) 12%, rgba(19, 42, 54, 0.28) 60%, rgba(19, 42, 54, 0.1));
}
.page-hero__inner {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto;
  width: 100%; padding: 9rem 1.4rem 3.2rem;
}
.page-hero__intro { max-width: 38em; font-size: 1.15rem; color: rgba(255, 255, 255, 0.92); }
.map { width: 100%; height: auto; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 1.4rem; }
.section--creme { background: var(--creme); }
.section--nuit { background: var(--bleu-nuit); color: #fff; }
.section--nuit .kicker { color: var(--jaune); }
.section__inner { max-width: var(--maxw); margin: 0 auto; }
.section__head { max-width: 44em; margin-bottom: 3rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .kicker { justify-content: center; }
.lead { font-size: 1.15rem; color: var(--gris); }
.section--nuit .lead { color: rgba(255, 255, 255, 0.85); }

/* ---------- Bandeau valeurs : les 5 marqueurs de SGA, mis en avant ---------- */
.values { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 3rem; }
.values li {
  list-style: none; font-family: var(--serif); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--bleu-fonce);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem); display: flex; align-items: center; gap: 0.7rem;
}
.values li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.values li:nth-child(3n + 1)::before { background: var(--bleu); }
.values li:nth-child(3n + 2)::before { background: var(--orange); }
.values li:nth-child(3n)::before { background: var(--jaune); }
ul.values { margin: 0; padding: 0; }

/* ---------- Cartes métiers ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 460px; display: flex; align-items: flex-end;
  text-decoration: none; color: #fff; box-shadow: var(--shadow);
  isolation: isolate;
}
.card__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.25, 1); z-index: -2;
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(5deg, rgba(19, 42, 54, 0.9) 5%, rgba(19, 42, 54, 0.4) 45%, rgba(19, 42, 54, 0.06));
  transition: background var(--transition);
}
.card:hover .card__bg, .card:focus-visible .card__bg { transform: scale(1.05); }
.card__body { padding: 1.8rem 1.8rem 1.6rem; display: flex; flex-direction: column; width: 100%; }
/* Zone de texte à hauteur fixe : les titres et les « Découvrir »
   restent alignés horizontalement d'une carte à l'autre. */
.card__body p { min-height: 5.2em; }
/* Hauteur de 2 lignes réservée : les titres des cartes démarrent à la même
   hauteur, qu'ils tiennent sur une ou deux lignes. */
.card__body h3 { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; min-height: 2.45em; margin-bottom: 0.35rem; }
.card__body p { color: rgba(255, 255, 255, 0.88); font-size: 1rem; margin-bottom: 0.9rem; }
.card__more {
  font-weight: 600; font-size: 0.92rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--jaune);
}
.card__more::after { content: "→"; display: inline-block; margin-left: 0.35em; transition: transform var(--transition); }
.card:hover .card__more::after { transform: translateX(0.3em); }

/* ---------- Chiffres clés ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; text-align: center; }
.stats div { padding: 1rem; }
.stats strong {
  display: block; font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--bleu);
}
.section--nuit .stats strong { color: var(--jaune); }
.stats span { font-size: 1rem; letter-spacing: 0.04em; }

/* ---------- Médaillons engagements ---------- */
.pills { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.8rem; }
.pill {
  background: #fff; border-radius: var(--radius); padding: 2rem 1.9rem 2.2rem;
  box-shadow: var(--shadow);
}
/* Barre d'accent intérieure (un border-top jurerait avec les angles arrondis) */
.pill::before {
  content: ""; display: block; width: 2.6rem; height: 4px; border-radius: 2px;
  background: var(--bleu); margin-bottom: 1.1rem;
}
.pill:nth-child(2)::before { background: var(--orange); }
.pill:nth-child(3)::before { background: var(--jaune); }
.pill h3 { margin-bottom: 0.5rem; }
.pill p { color: var(--gris); font-size: 1rem; margin: 0; }
.section--nuit .pill { background: rgba(255, 255, 255, 0.06); }
.section--nuit .pill p { color: rgba(255, 255, 255, 0.82); }

/* ---------- Split (texte + image) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }
.split--reverse { grid-template-columns: 0.95fr 1.05fr; }
.split--reverse .split__media { order: -1; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split__media::before {
  content: ""; position: absolute; inset: auto -1.2rem -1.2rem auto; width: 45%; height: 55%;
  border-radius: var(--radius); background: linear-gradient(135deg, var(--jaune), var(--orange));
  z-index: -1; opacity: 0.85;
}
.split__media--bleu::before { background: linear-gradient(135deg, var(--bleu), var(--bleu-fonce)); }

.checklist { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.checklist li { padding-left: 2rem; position: relative; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0.05em;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--bleu); color: #fff; font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Logos clients : bandeau déroulant (en couleur) ---------- */
.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 1; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--blanc), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--blanc), transparent); }
.marquee__track {
  display: flex; width: max-content;
  animation: marquee-defile 45s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 3.2rem; padding-right: 3.2rem; }
.marquee__group img { height: 64px; width: auto; max-width: 180px; object-fit: contain; }
@keyframes marquee-defile { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ---------- Logos partenaires / engagements (en couleur) ---------- */
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem 3rem; margin-top: 1.6rem; }
.partners img { height: 96px; width: auto; max-width: 220px; object-fit: contain; }
.partners--small { gap: 1rem 1.4rem; margin-top: 1.8rem; }
.partners--small img { height: 64px; }
.partners--small span { max-width: 26em; color: var(--gris); font-size: 0.95rem; }

/* ---------- Équipe ---------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 2rem; justify-content: center; }
.team article {
  background: #fff; border-radius: var(--radius); padding: 2.4rem 2rem;
  box-shadow: var(--shadow); text-align: center;
}
.team .avatar {
  width: 110px; height: 110px; margin: 0 auto 1.2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--bleu), var(--bleu-fonce));
}
.team article:nth-child(2) .avatar { background: linear-gradient(135deg, var(--orange), var(--jaune)); color: var(--bleu-fonce); }
.team h3 { margin-bottom: 0.15rem; }
.team .role { color: var(--bleu-fonce); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.9rem; }
.team p:last-child { margin: 0; color: var(--gris); font-size: 1rem; }

/* ---------- Charte RSE ---------- */
.charte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin-top: 2.4rem; }
.charte article {
  background: rgba(255, 255, 255, 0.06); border-radius: var(--radius);
  padding: 2rem 1.8rem;
}
.charte .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  font-family: var(--serif); font-weight: 800; font-size: 1.15rem;
  background: linear-gradient(135deg, var(--orange), var(--jaune)); color: var(--bleu-fonce);
  margin-bottom: 1rem;
}
.charte h3 { color: #fff; margin-bottom: 0.8rem; }
.charte ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.charte li {
  padding-left: 1.5rem; position: relative;
  color: rgba(255, 255, 255, 0.85); font-size: 1rem; line-height: 1.6;
}
.charte li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--jaune);
}
.charte__note { margin: 2.2rem auto 0; max-width: 44em; text-align: center; color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }
@media (max-width: 980px) { .charte { grid-template-columns: 1fr; } }

/* ---------- Parcours numéroté (déroulé d'une mission) ----------
   Variante claire de .charte : mêmes pastilles numérotées, mais posée sur fond
   crème ou blanc et sans nombre d'étapes imposé. */
.parcours {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.8rem; margin-top: 2.6rem; counter-reset: etape;
}
.parcours article { position: relative; }
.parcours article::before {
  counter-increment: etape; content: counter(etape);
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  font-family: var(--serif); font-weight: 800; font-size: 1.05rem;
  background: linear-gradient(135deg, var(--orange), var(--jaune));
  color: var(--bleu-fonce); margin-bottom: 1rem;
}
.parcours h3 { margin-bottom: 0.45rem; font-size: 1.12rem; }
.parcours p { color: var(--gris); font-size: 0.98rem; margin: 0; line-height: 1.6; }
.section--nuit .parcours h3 { color: #fff; }
.section--nuit .parcours p { color: rgba(255, 255, 255, 0.82); }

/* ---------- FAQ ----------
   Questions et réponses en clair, jamais repliées : le texte visible est indexé
   et cité plus volontiers par les moteurs et les assistants de recherche. */
/* Plafonné à 2 colonnes sur les écrans courants : au-delà, les questions-réponses
   deviennent trop étroites pour se lire confortablement.
   min(30rem, 100%) évite que le minimum de 480px force un débordement sur les
   téléphones étroits, où la colonne doit pouvoir descendre sous cette valeur. */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(30rem, 100%), 1fr)); gap: 2rem 3.5rem; margin-top: 2.4rem; }
.faq > div { max-width: 40em; }
.faq h3 {
  font-family: var(--sans); font-size: 1.05rem; font-weight: 600;
  color: var(--bleu-fonce); margin-bottom: 0.5rem; padding-left: 1.5rem; position: relative;
}
.faq h3::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--orange);
}
.faq p { color: var(--gris); font-size: 1rem; margin: 0; padding-left: 1.5rem; }
.section--nuit .faq h3 { color: #fff; }
.section--nuit .faq p { color: rgba(255, 255, 255, 0.82); }

/* ---------- Citation ---------- */
.quote {
  max-width: 44em; margin: 0 auto; text-align: center;
  font-family: var(--sans); font-weight: 300; font-size: clamp(1.35rem, 2.5vw, 1.8rem); font-style: italic; line-height: 1.55;
}
.quote footer { font-family: var(--sans); font-style: normal; font-size: 0.95rem; margin-top: 1.2rem; color: var(--gris); }
.section--nuit .quote footer { color: rgba(255, 255, 255, 0.75); }

/* ---------- CTA final ---------- */
.cta {
  position: relative; text-align: center; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, var(--bleu-nuit), var(--bleu-fonce));
}
.cta .petale { position: absolute; border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%; opacity: 0.22; }
.cta .petale--1 { width: 320px; height: 220px; background: var(--jaune); top: -80px; left: -60px; transform: rotate(-15deg); }
.cta .petale--2 { width: 380px; height: 260px; background: var(--orange); bottom: -110px; right: -70px; transform: rotate(20deg); }
.cta__inner { position: relative; max-width: 46em; margin: 0 auto; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.88); margin-bottom: 2rem; }

/* ---------- Agences / contact ---------- */
.agencies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
.agency {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
}
.agency img { height: 210px; object-fit: cover; width: 100%; }
.agency__body { padding: 1.7rem 1.8rem 1.9rem; }
.agency__body h3 { margin-bottom: 0.4rem; }
.agency__body p { margin-bottom: 0.4rem; color: var(--gris); }
.agency__body a { font-weight: 500; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 1.2rem; max-width: 720px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form label { font-weight: 500; font-size: 0.95rem; display: block; margin-bottom: 0.35rem; }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; padding: 0.85rem 1rem; border-radius: 12px;
  border: 1.5px solid #d8dcdf; background: #fff; color: var(--noir);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(72, 168, 200, 0.25);
}
.form textarea { min-height: 160px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form__note { font-size: 0.88rem; color: var(--gris); margin: 0; }
.form .btn { justify-self: start; }
.form-alert {
  border-radius: 12px; padding: 1rem 1.3rem; font-weight: 500;
  background: #e7f6ec; border: 1.5px solid #2d6a4f; color: #1d4e38;
}
.form-alert--error { background: #fdeeee; border-color: #c53030; color: #8c1f1f; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--noir); color: rgba(255, 255, 255, 0.85); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--jaune); }
.site-footer__main {
  max-width: var(--maxw); margin: 0 auto; padding: 2.2rem 1.4rem 1.4rem;
  display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 1.2fr; gap: 1.8rem;
}
.site-footer__logo { display: inline-flex; margin-bottom: 0.6rem; }
.site-footer__logo img { width: 56px; height: auto; }
.site-footer__brand p { font-size: 0.88rem; margin: 0; }
.site-footer__title {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--jaune);
  margin: 0 0 0.6rem;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.9rem; }
.site-footer__agencies li { margin-bottom: 0.6rem; line-height: 1.5; }
.site-footer__agencies strong { color: #fff; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  max-width: var(--maxw); margin: 0 auto; padding: 0.9rem 1.4rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  font-size: 0.85rem;
}
.site-footer__bottom p { margin: 0; }

/* ---------- Apparition au défilement ---------- */
/* L'état masqué ne s'applique que si JavaScript est actif (classe .js sur <html>) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card__bg, .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards, .pills { grid-template-columns: 1fr 1fr; }
  .split, .split--reverse { grid-template-columns: 1fr; gap: 2.2rem; }
  .split--reverse .split__media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-footer__main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  .burger { display: block; }
  /* Pas de backdrop-filter ici : il transformerait l'en-tête en bloc conteneur
     du menu fixed, qui ne couvrirait plus l'écran. */
  .site-header { backdrop-filter: none; }
  .site-header__brand { position: relative; z-index: 1; }
  .site-nav {
    position: fixed; inset: 0; background: var(--bleu-nuit);
    display: flex; align-items: center; justify-content: center;
    overflow-y: auto; padding: 4.5rem 0 2rem;
    opacity: 0; pointer-events: none; transition: opacity var(--transition);
  }
  .site-nav ul { flex-direction: column; gap: 1.6rem; text-align: center; }
  .site-nav a:not(.btn) { color: #fff !important; font-size: 1.3rem; }
  .site-header.is-open .site-nav { opacity: 1; pointer-events: auto; }
  .site-header.is-open .burger span { background: #fff; }
  .site-header.is-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .site-header.is-open .burger span:nth-child(2) { opacity: 0; }
  .site-header.is-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-header.is-open { background: var(--bleu-nuit); }
  .site-header.is-open .site-header__brand { color: #fff; }
  .site-header.is-open .site-header__brandtext em { color: var(--jaune); }
}

@media (max-width: 640px) {
  .cards, .pills, .agencies, .team { grid-template-columns: 1fr; }
  .card { min-height: 380px; }
  .form__row { grid-template-columns: 1fr; }
  .section { padding: 3.8rem 1.2rem; }
  .hero { min-height: 86vh; }
  .site-footer__main { grid-template-columns: 1fr; gap: 2rem; }
}
