/* =========================================================================
   Capitelia Invest S.A. — feuille de style unique, partagee par toutes les langues.
   Identite visuelle d'origine conservee (navy / or / creme, Cormorant + Jost).

   Regles de maintenance :
   - AUCUN selecteur d'element nu pour la mise en page (pas de `nav {}`, `section {}`,
     `footer {}`) : tout est scope par classe, sinon un futur <nav> heriterait
     de `position: fixed`.
   - AUCUN `!important`. Si une regle ne s'applique pas, corriger la specificite.
   ========================================================================= */

/* ── Jetons ─────────────────────────────────────────────────────────── */
:root {
  --navy: #0d1b2a;
  --navy2: #152336;
  --navy-deep: #080f1a;
  --gold: #b8933a;
  --gold-light: #d4ab5a;
  --cream: #f5f0e8;
  --cream2: #ede7d8;
  --white: #fdfcf9;
  --text: #1a1a2e;
  --text-muted: #5c5c6e;
  --border: rgba(184, 147, 58, 0.25);

  --nav-h: 72px;
  --gutter: 5%;
  --maxw: 1400px;

  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --ring: 2px solid var(--gold-light);
  --ring-offset: 3px;

  /* Le design assume un rendu clair ; les panneaux navy sont un choix, pas un theme.
     Declare pour que les widgets natifs (scrollbars, selects) ne soient pas
     re-colores par le theme systeme. */
  color-scheme: light;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
}

/* Supprime le delai de 300 ms au tap et le halo gris par defaut d'Android,
   remplace par un retour discret dans la teinte de la marque. */
a,
button,
input,
select,
textarea,
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(184, 147, 58, 0.25);
}

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

/* Toute cible d'ancre se degage de la barre fixe.
   Sans ca, `scroll-behavior: smooth` depose le titre SOUS la barre de 72px. */
:target,
[id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* ── Accessibilite transverse ───────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* `position: fixed` et non `absolute` : ancre au viewport, donc visible meme
   quand la page est deja defilee. */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 1000;
  background: var(--gold);
  color: var(--navy);
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: transform 0.18s ease;
}
.skip-link:focus {
  transform: translate(-50%, 0);
}

:focus-visible {
  outline: var(--ring);
  outline-offset: var(--ring-offset);
  border-radius: 2px;
}
/* Sur fond navy, l'anneau or clair reste lisible ; sur fond creme on l'assombrit. */
.hero :focus-visible,
.values :focus-visible,
#contact :focus-visible,
.site-nav :focus-visible,
.mobile-menu :focus-visible,
.site-footer :focus-visible,
.footer-bottom :focus-visible {
  outline-color: var(--gold-light);
}

/* ── En-tete / navigation ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  /* Encoche / Dynamic Island : sans ca la barre passe sous le capteur en paysage. */
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(13, 27, 42, 0.97);
}

.site-nav {
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
}
.site-nav.is-scrolled {
  background: rgba(13, 27, 42, 0.99);
}

.nav-logo {
  background: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
  margin-inline-start: auto;
}
.nav-links a {
  color: rgba(245, 240, 232, 0.85);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s;
  /* cible tactile : 0.78rem de texte seul ferait ~15px de haut */
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.nav-links a:hover {
  color: var(--gold-light);
}

.nav-cta {
  background: transparent;
  border: 1px solid var(--gold);
  padding: 8px 20px;
  transition: background 0.25s, color 0.25s;
}
/* specificite 0,2,0 > .nav-links a (0,1,1) : plus besoin de !important */
.nav-links .nav-cta {
  color: var(--gold);
}
.nav-links .nav-cta:hover {
  background: var(--gold);
  color: var(--navy);
}

.nav-tail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ── Selecteur de langue ────────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
/* Combinateurs enfants OBLIGATOIRES ici.
   Ecrit `.lang-switcher span`, ce selecteur vaut (0,1,1) et bat `.sr-only`
   (0,1,0) : le libelle pour lecteurs d'ecran heritait alors de `width: 100%`
   et provoquait un debordement horizontal de toute la page. */
.lang-switcher > li > a,
.lang-switcher > li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 28px;
  padding: 4px 7px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lang-switcher > li > a {
  color: rgba(245, 240, 232, 0.72);
}
.lang-switcher > li > a:hover {
  color: var(--gold-light);
  border-color: rgba(184, 147, 58, 0.4);
}
.lang-switcher > li > [aria-current="true"] {
  color: var(--navy);
  background: var(--gold);
  font-weight: 500;
  border-color: var(--gold);
}

/* Variante pied de page : liste verticale avec libelles complets */
.lang-switcher--footer {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.lang-switcher--footer > li {
  width: 100%;
}
.lang-switcher--footer > li > a,
.lang-switcher--footer > li > span {
  min-height: 32px;
  justify-content: flex-start;
  text-transform: none;
  letter-spacing: 0.03em;
  font-size: 0.8rem;
  width: 100%;
  padding: 5px 10px;
}
.lang-switcher--footer > li > a {
  color: rgba(245, 240, 232, 0.62);
}

.lang-switcher--mobile {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(184, 147, 58, 0.2);
}
.lang-switcher--mobile > li > a,
.lang-switcher--mobile > li > span {
  min-width: 44px;
  min-height: 40px;
  font-size: 0.8rem;
}

/* ── Hamburger ──────────────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  /* 40x40 : au-dessus du minimum de 24x24, l'original faisait ~32x22 */
  width: 40px;
  height: 40px;
  align-items: center;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.2s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Menu mobile ────────────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  /* Empeche le defilement de « traverser » vers la page derriere le menu. */
  overscroll-behavior: contain;
  padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
  background: rgba(13, 27, 42, 0.99);
  backdrop-filter: blur(12px);
  padding: 1.5rem var(--gutter) 2rem;
  border-bottom: 1px solid var(--border);
  z-index: 99;
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
}
.mobile-menu nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(184, 147, 58, 0.15);
  min-height: 44px;
  display: flex;
  align-items: center;
}
/* Le selecteur de langue pose deja son propre filet : sans ca, deux traits
   se superposent sous le dernier lien. */
.mobile-menu nav a:last-child {
  border-bottom: none;
}
.mobile-menu .lang-switcher > li > a {
  border-bottom: none;
  text-transform: uppercase;
  padding: 4px 7px;
}

/* ── Sections ───────────────────────────────────────────────────────── */
.section {
  padding: 100px var(--gutter);
}
.section.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.section-head-center {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-head-center .section-tag {
  justify-content: center;
}
.section-head-center .section-title,
.section-head-center .section-sub {
  max-width: 720px;
  margin-inline: auto;
}

.section-tag {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #8f7226; /* assombri : l'or d'origine tombait a 2.9:1 sur creme */
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.section-tag::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
}
.values .section-tag,
#contact .section-tag {
  color: var(--gold-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--navy);
  max-width: 640px;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.section-title.light {
  color: var(--cream);
}
.section-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 3.5rem;
  text-wrap: pretty;
}
.section-head-center .section-sub {
  margin-bottom: 0;
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--navy);
  background-image:
    linear-gradient(160deg, rgba(8, 18, 35, 0.78) 0%, rgba(8, 18, 35, 0.58) 45%, rgba(8, 18, 35, 0.76) 100%),
    url("/assets/img/hero-900.19a81b2a.jpg");
  background-position: center 40%;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 48px) var(--gutter) 80px;
  overflow: hidden;
}
@media (min-width: 700px) {
  .hero {
    background-image:
      linear-gradient(160deg, rgba(8, 18, 35, 0.78) 0%, rgba(8, 18, 35, 0.58) 45%, rgba(8, 18, 35, 0.76) 100%),
      url("/assets/img/hero.e04c9b2d.jpg");
  }
}

.hero-bg-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg-lines::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 70%;
  height: 140%;
  background: radial-gradient(ellipse at 60% 40%, rgba(184, 147, 58, 0.06) 0%, transparent 65%);
}
.hero-bg-lines::after {
  content: "";
  position: absolute;
  left: 30%;
  bottom: -10%;
  width: 1px;
  height: 60%;
  background: linear-gradient(to bottom, transparent, rgba(184, 147, 58, 0.3), transparent);
}

.hero-tag {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.hero-tag::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: currentColor;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream);
  max-width: 20ch;
  margin-bottom: 1.8rem;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-sub {
  font-size: 0.98rem;
  color: rgba(245, 240, 232, 0.82);
  max-width: 52ch;
  line-height: 1.8;
  margin-bottom: 3rem;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-stats {
  position: absolute;
  right: var(--gutter);
  bottom: 10%;
  display: flex;
  gap: 3rem;
  list-style: none;
}
.stat {
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--cream);
  line-height: 1;
  /* Chiffres de meme chasse : les trois colonnes s'alignent. */
  font-variant-numeric: tabular-nums;
}
.stat-num span {
  color: var(--gold-light);
}
.stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.72);
  margin-top: 6px;
}

/* ── Boutons ────────────────────────────────────────────────────────── */
.btn-primary,
.btn-outline {
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.btn-outline {
  border: 1px solid rgba(245, 240, 232, 0.5);
  color: var(--cream);
  font-weight: 400;
  transition: border-color 0.25s, color 0.25s;
}
.btn-outline:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}
.btn-inline {
  margin-top: 1.5rem;
}

/* ── A propos ───────────────────────────────────────────────────────── */
#apropos {
  background: var(--cream);
}
.about-text p {
  font-size: 0.94rem;
  line-height: 1.9;
  color: #37374a;
  margin-bottom: 1.2rem;
  max-width: 68ch;
}
.about-text strong {
  color: var(--navy);
  font-weight: 500;
}
.about-callout {
  border-left: 2px solid var(--gold);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  background: rgba(184, 147, 58, 0.07);
}
.about-callout p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 0;
}
.about-card {
  background: var(--navy);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(184, 147, 58, 0.15) 0%, transparent 70%);
}
.about-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}
.about-list {
  list-style: none;
}
.about-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.about-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.about-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.about-item-text h4 {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}
.about-item-text p {
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.68);
  line-height: 1.6;
}

/* ── Services ───────────────────────────────────────────────────────── */
#services {
  background: var(--white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--cream2);
  list-style: none;
}
.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
}
.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.4s ease;
}
.service-card:hover::after,
.service-card:focus-within::after {
  width: 100%;
}
.service-card:hover {
  background: #faf8f4;
}
.service-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(184, 147, 58, 0.22);
  line-height: 1;
  margin-bottom: 1.2rem;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}
.service-card > p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
  flex-grow: 1;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.5rem;
  align-self: flex-start;
  min-height: 32px;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f7226;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.service-link:hover {
  border-bottom-color: currentColor;
}
.service-arrow {
  transition: transform 0.2s;
}
.service-card:hover .service-arrow {
  transform: translateX(4px);
}

/* ── Valeurs ────────────────────────────────────────────────────────── */
.values {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.values::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(184, 147, 58, 0.2), transparent);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  position: relative;
}
.value-item {
  padding: 2.5rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  text-align: center;
  transition: background 0.3s;
}
.value-item:last-child {
  border-right: none;
}
.value-item:hover {
  background: rgba(184, 147, 58, 0.05);
}
.value-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--gold-light);
  letter-spacing: 0.2em;
  margin-bottom: 1.2rem;
}
.value-item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.8rem;
}
.value-item p {
  /* 0.45 d'origine = 4.06:1 sur navy, sous le seuil AA de 4.5:1 */
  font-size: 0.78rem;
  color: rgba(245, 240, 232, 0.68);
  line-height: 1.7;
}

/* ── Equipe ─────────────────────────────────────────────────────────── */
.team {
  background: var(--cream);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem 2rem;
  list-style: none;
}
.team-card {
  text-align: center;
}
.team-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.2rem;
  border: 2px solid var(--border);
  background: var(--navy2);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.team-card .role {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8f7226;
  margin-bottom: 0.8rem;
}
.team-card .bio {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.team-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8f7226;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.team-link:hover {
  border-bottom-color: currentColor;
}

/* ── Engagements ────────────────────────────────────────────────────── */
#engagements {
  background: var(--white);
  align-items: start;
}
.compliance-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.compliance-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem;
  border: 1px solid var(--cream2);
  transition: border-color 0.25s;
}
.compliance-list li:hover {
  border-color: var(--gold);
}
.compliance-list .bullet {
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1.5;
}
.compliance-list h3 {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.compliance-list p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Partenaires ────────────────────────────────────────────────────── */
.partners {
  background: var(--cream);
}
.partners-strip {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 3rem 0 0;
  margin-top: 3rem;
  border-top: 1px solid var(--cream2);
  list-style: none;
}
.partner-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 190px;
  min-height: 92px;
  padding: 1.25rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--cream2);
  text-decoration: none;
  transition: border-color 0.3s, transform 0.3s;
}
.partner-badge:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.partner-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.partner-role {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Contact ────────────────────────────────────────────────────────── */
#contact {
  background: var(--navy);
  align-items: start;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.contact-title em {
  color: var(--gold-light);
  font-style: italic;
}
.contact-intro {
  font-size: 0.92rem;
  color: rgba(245, 240, 232, 0.78);
  line-height: 1.8;
  max-width: 52ch;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
  list-style: none;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-item-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(184, 147, 58, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
  color: var(--gold-light);
  font-style: normal;
}
.contact-item-text p {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.66);
  margin-bottom: 0.3rem;
}
.contact-item-text a,
.contact-item-text span {
  font-size: 0.95rem;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}
.contact-item-text a:hover {
  color: var(--gold-light);
}

/* ── Formulaire ─────────────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* Les champs vivent sur un panneau navy : sans ca, le menu deroulant natif
     du <select>, l'autofill et la scrollbar du textarea s'affichent en clair. */
  color-scheme: dark;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.78);
}
.req {
  color: var(--gold-light);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--cream);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.25s;
  width: 100%;
  min-height: 44px;
  border-radius: 0;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(245, 240, 232, 0.45);
}
.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
  border-color: rgba(255, 255, 255, 0.35);
}
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  border-color: var(--gold-light);
  outline: var(--ring);
  outline-offset: 1px;
}
.form-group input[aria-invalid="true"] {
  border-color: #e58b8b;
}
/* Le menu deroulant natif est peint par l'OS : sans couleurs explicites sur
   les <option>, il sort en clair sur Windows en mode sombre. */
.form-group select option {
  background-color: var(--navy2);
  color: var(--cream);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.captcha-group input {
  max-width: 170px;
}
.captcha-sum {
  color: var(--gold-light);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.05em;
}
.field-error {
  color: #f0a0a0;
  font-size: 0.78rem;
  margin-top: 2px;
}
.field-error[hidden] {
  display: none;
}

/* Le pot de miel doit rester dans le flux pour les bots, invisible pour l'humain */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 15px 40px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
  align-self: flex-start;
  min-height: 48px;
}
.form-submit:hover {
  background: var(--gold-light);
}
.form-submit[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.form-status {
  font-size: 0.88rem;
  line-height: 1.7;
}
.form-status:empty {
  display: none;
}
.form-status a {
  color: var(--gold-light);
}
.form-status.is-success {
  padding: 1rem 1.2rem;
  border-left: 3px solid #6fbf8f;
  background: rgba(111, 191, 143, 0.1);
  color: #cfeedc;
}
.form-status.is-error {
  padding: 1rem 1.2rem;
  border-left: 3px solid #e58b8b;
  background: rgba(229, 139, 139, 0.1);
  color: #f6d9d9;
}

/* ── Pied de page ───────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(184, 147, 58, 0.12);
}
.footer-inner {
  padding: 3rem var(--gutter);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 0.8fr;
  gap: 3rem;
}
.footer-logo {
  display: inline-flex;
  background: #fff;
  padding: 4px 8px;
  border-radius: 3px;
}
.footer-logo img {
  height: 36px;
  width: auto;
  display: block;
}
.footer-brand p {
  font-size: 0.82rem;
  color: rgba(245, 240, 232, 0.62);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 34ch;
}
.footer-col-title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}
/* `> ul` : sinon cette regle capture aussi le <ul> du selecteur de langue. */
.footer-col > ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-col > ul a {
  font-size: 0.82rem;
  color: rgba(245, 240, 232, 0.68);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
}
.footer-col > ul a:hover {
  color: var(--cream);
}

.footer-bottom {
  background: var(--navy-deep);
  padding: 1.2rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-bottom p {
  /* 0.25 d'origine : ~1.9:1, illisible */
  font-size: 0.76rem;
  color: rgba(245, 240, 232, 0.6);
}
.footer-bottom a {
  color: var(--gold-light);
  text-decoration: none;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.footer-bottom a:hover {
  border-bottom-color: currentColor;
}

/* ── Apparition au defilement ───────────────────────────────────────── */
/* L'etat masque n'est applique QUE si JS a pu poser la classe `js` sur <html>.
   Sans ce garde-fou, une erreur JS laissait toute la page a opacity: 0. */
.js .fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .nav-links {
    gap: 1.4rem;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .value-item:nth-child(3) {
    border-right: none;
  }
  .section.split {
    gap: 4rem;
  }
  .hero-stats {
    gap: 2rem;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .site-nav .lang-switcher {
    display: none;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px var(--gutter);
  }
  .section.split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-stats {
    position: static;
    margin-top: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .value-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.09);
  }
  .value-item:nth-child(even) {
    border-right: none;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .about-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 64px var(--gutter);
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .value-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }
  .value-item:last-child {
    border-bottom: none;
  }
  .hero-actions {
    gap: 0.8rem;
  }
  .btn-primary,
  .btn-outline {
    padding: 14px 26px;
  }
  .partner-badge {
    min-width: 100%;
  }
}

/* ── Mouvement reduit ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
  .js .fade-in {
    opacity: 1;
    transform: none;
  }
  .btn-primary:hover,
  .partner-badge:hover {
    transform: none;
  }
}

/* ── Impression ─────────────────────────────────────────────────────── */
@media print {
  .site-header,
  .mobile-menu,
  .skip-link,
  .contact-form,
  .hero-bg-lines {
    display: none;
  }
  .js .fade-in {
    opacity: 1;
    transform: none;
  }
  .hero {
    min-height: auto;
    background: none;
    color: #000;
  }
}
