/* ==========================================================================
   OPEN GESTU — open-gestu.css
   Feuille de style de la page société (index.html).
   Univers sombre / ocre, distinct de l'univers Validèl (assets/css/main.css).
   ========================================================================== */

/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
  --ebene: #1A1816;
  --surface: #242019;
  --surface-2: #2C2620;
  --laterite: #D95D39;
  --or: #F4B061;
  --acajou: #5E3F2B;
  --acajou-clair: #8C6246;
  --sable: #EDE3D5;
  --sable-doux: #B7AA99;
  --trait: rgba(244, 176, 97, 0.14);
  --r: 20px;
}

/* ── Reset & base ───────────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--ebene);
  color: var(--sable);
  font-family: 'Inter', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Plus Jakarta Sans', sans-serif; line-height: 1.15; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--laterite); color: var(--ebene); }

.conteneur { width: min(1120px, 92%); margin: 0 auto; }
.etiquette {
  display: inline-block; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--laterite); margin-bottom: 14px;
}

/* Lien d'évitement (accessibilité clavier) */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--laterite); color: var(--ebene);
  padding: 10px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 8px; }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .35s, box-shadow .35s, padding .35s;
  padding: 18px 0;
}
.nav.reduit {
  background: rgba(26, 24, 22, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--trait);
  padding: 10px 0;
}
.nav-int { display: flex; align-items: center; justify-content: space-between; }

.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marque .embleme-mini {
  height: 44px; width: auto;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.marque:hover .embleme-mini { transform: rotate(-12deg) scale(1.06); }
.marque-nom { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 21px; letter-spacing: 1px; }
.marque-nom b {
  font-weight: 800;
  background: linear-gradient(90deg, #F4B061, #DDA15E);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.marque-nom span { font-weight: 300; color: #EFD198; }

.nav-liens { display: flex; gap: 30px; }
.nav-liens a {
  text-decoration: none; font-size: 15px; font-weight: 500;
  color: var(--sable-doux); transition: color .25s;
}
.nav-liens a:hover { color: var(--or); }
.nav-liens .lien-produit { color: var(--or); font-weight: 700; }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span {
  display: block; width: 24px; height: 2px; background: var(--sable);
  margin: 5px 0; border-radius: 2px; transition: .3s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Héros ──────────────────────────────────────────────────────────────── */
.heros {
  min-height: 100svh; display: flex; align-items: center;
  position: relative; padding: 130px 0 80px;
  background:
    radial-gradient(ellipse 900px 600px at 70% 20%, rgba(217, 93, 57, 0.07), transparent 60%),
    radial-gradient(ellipse 700px 500px at 20% 85%, rgba(94, 63, 43, 0.18), transparent 65%),
    var(--ebene);
}
.heros-int {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px; align-items: center;
}
.heros-int > * { min-width: 0; }
.heros h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; margin: 0 0 22px; }
.heros h1 em { font-style: normal; color: var(--or); }

/* Verbe alterné « Vendre » / « Acheter ».
   Les deux mots occupent la même cellule de grille. Leur largeur reste celle
   de leur propre texte (`width: max-content`) : open-gestu.js peut ainsi les
   mesurer et animer la largeur du conteneur, pour que « en ligne » suive le
   mot au lieu de rester calé sur le plus long.
   Sans JavaScript, le premier mot porte déjà `.actif` dans le HTML : le titre
   s'affiche normalement, simplement figé sur « Vendre ». */
/* Pas de `transition` sur `width` ici : combinée à la largeur posée en ligne
   par le script, elle empêchait la nouvelle valeur de prendre effet (la
   largeur restait figée sur le premier mot et le second débordait sur
   « en ligne »). La largeur est donc appliquée d'un coup, au moment où les
   deux mots sont à mi-fondu — le saut passe inaperçu. */
.verbe {
  display: inline-grid;
  vertical-align: top;
}
.verbe-mot {
  grid-area: 1 / 1;
  justify-self: start;
  width: max-content;
  opacity: 0;
  transform: translateY(0.42em);
  /* .24s : valeur reprise par la constante FONDU dans open-gestu.js, qui
     enchaîne disparition → changement de largeur → apparition. */
  transition: opacity .24s ease, transform .34s cubic-bezier(.22, 1, .36, 1);
}
.verbe-mot.actif { opacity: 1; transform: none; }
.verbe-mot.sortant { opacity: 0; transform: translateY(-0.42em); }
.heros .sous { font-size: 18px; color: var(--sable-doux); max-width: 480px; margin-bottom: 34px; }

.cta-groupe { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 16px;
  padding: 15px 28px; border-radius: 999px; text-decoration: none;
  transition: transform .25s, box-shadow .25s, background .25s, border-color .25s, color .25s;
}
.btn-plein { background: var(--laterite); color: var(--ebene); }
.btn-plein:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(217, 93, 57, 0.35); }
.btn-ligne { border: 1.5px solid var(--trait); color: var(--sable); }
.btn-ligne:hover { border-color: var(--or); color: var(--or); }

/* Emblème du héros : entrée animée + halo pulsant + anneau rotatif */
.logo-scene { position: relative; display: flex; justify-content: center; }
.halo {
  position: absolute; inset: 0; margin: auto;
  width: 72%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 176, 97, 0.16) 0%, rgba(217, 93, 57, 0.07) 45%, transparent 70%);
  animation: pulsation 5s ease-in-out infinite;
}
.anneau {
  position: absolute; inset: 0; margin: auto;
  width: 88%; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(244, 176, 97, 0.22);
  animation: rotation 60s linear infinite;
}
/* Second anneau, plus large et contrarotatif : donne de la profondeur
   sans attirer l'œil — il tourne 1,5× plus lentement, en sens inverse. */
.anneau-lent {
  width: 104%;
  border-style: dotted;
  border-color: rgba(217, 93, 57, 0.16);
  animation-duration: 90s;
  animation-direction: reverse;
}

.embleme-heros {
  width: min(400px, 78%); height: auto; position: relative;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.45));
  /* Entrée, puis flottement continu qui prend le relais à la fin de l'entrée.
     La seconde animation est déclarée après : c'est elle qui pilote
     `transform` une fois son délai écoulé. */
  animation:
    entree-embleme 1.4s cubic-bezier(.22, 1, .36, 1) both,
    flottement 9s ease-in-out 1.4s infinite;
}
@keyframes entree-embleme {
  from { opacity: 0; transform: scale(0.82) rotate(-10deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes flottement {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(1.5deg); }
}
@keyframes pulsation { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes rotation { to { transform: rotate(360deg); } }

.heros-texte > * { animation: montee .9s cubic-bezier(.22, 1, .36, 1) both; }
.heros-texte > *:nth-child(2) { animation-delay: .12s; }
.heros-texte > *:nth-child(3) { animation-delay: .24s; }
.heros-texte > *:nth-child(4) { animation-delay: .36s; }
@keyframes montee { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ── Sections ───────────────────────────────────────────────────────────── */
section { padding: 78px 0; }
.titre-section { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; margin-bottom: 18px; }
.intro-section { color: var(--sable-doux); max-width: 640px; font-size: 17px; }

.apparition { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.apparition.visible { opacity: 1; transform: none; }

/* ── Le problème ────────────────────────────────────────────────────────── */
.probleme {
  background: linear-gradient(160deg, #2A211D, var(--ebene));
  border-block: 1px solid var(--trait);
}
.duo-probleme { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 34px; }
.cas {
  background: var(--surface); border: 1px solid var(--trait);
  border-left: 3px solid var(--laterite);
  border-radius: var(--r); padding: 24px;
}
.cas h3 { font-size: 17px; color: var(--or); margin-bottom: 8px; }
.cas p { color: var(--sable-doux); font-size: 16px; }

/* ── Services ───────────────────────────────────────────────────────────── */
.grille-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 50px; }
.carte {
  position: relative; background: var(--surface); border: 1px solid var(--trait);
  border-radius: var(--r); padding: 34px 30px; overflow: hidden;
  transition: transform .35s, border-color .35s;
}
.carte::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background:
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(140, 98, 70, 0.07) 22px 24px),
    repeating-linear-gradient(-45deg, transparent 0 22px, rgba(217, 93, 57, 0.05) 22px 24px);
  pointer-events: none;
}
.carte:hover { transform: translateY(-5px); border-color: rgba(244, 176, 97, 0.4); }
.carte:hover::after { opacity: 1; }
.carte .num {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 15px;
  color: var(--laterite); letter-spacing: 2px;
}
.carte h3 { font-size: 21px; margin: 12px 0 10px; }
.carte p { color: var(--sable-doux); font-size: 15.5px; }
.carte .tag {
  display: inline-block; margin-top: 16px; font-size: 12.5px; font-weight: 600;
  color: var(--or); border: 1px solid var(--trait); padding: 5px 12px; border-radius: 999px;
}

/* ── Validèl ────────────────────────────────────────────────────────────── */
.validel { background: var(--surface); border-block: 1px solid var(--trait); }
.validel-int {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px; align-items: center;
}
.validel-int > * { min-width: 0; }

.parcours { counter-reset: pas; margin: 30px 0 24px; }
.parcours li { position: relative; padding: 0 0 20px 50px; color: var(--sable-doux); font-size: 16px; }
.parcours li b { color: var(--sable); font-weight: 600; }
.parcours li::before {
  counter-increment: pas; content: counter(pas);
  position: absolute; left: 0; top: -3px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--laterite); color: var(--ebene);
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 14px;
}
.parcours li::after {
  content: ""; position: absolute; left: 15px; top: 36px; bottom: 2px; width: 2px;
  background: rgba(244, 176, 97, 0.18);
}
.parcours li:last-child { padding-bottom: 0; }
.parcours li:last-child::after { display: none; }

.cle {
  background: var(--surface-2); border: 1px solid rgba(244, 176, 97, 0.3); border-radius: 14px;
  padding: 16px 20px; margin-bottom: 26px; color: var(--sable); font-size: 16px;
}
.cle b { color: var(--or); }

/* Bandeau marque Validèl */
.marque-validel { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.marque-validel img { width: 54px; height: 54px; border-radius: 14px; filter: invert(1); mix-blend-mode: screen; }
.marque-validel span {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: var(--laterite);
}

/* Captures d'écran réelles
   `minmax(0, 1fr)` et non `1fr` : un élément de grille a `min-width: auto`,
   la colonne refuserait donc de descendre sous la largeur intrinsèque des
   captures (460 px) et ferait déborder toute la section. */
/* Pas de largeur maximale ici : la paire occupe toute sa colonne, ce qui
   équilibre sa hauteur avec celle du texte en vis-à-vis. Le plafond n'est
   remis qu'en dessous de 900 px, quand la grille passe sur une colonne. */
.captures {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px; align-items: stretch;
  margin: 0 auto;
}
/* Les deux captures n'ont pas exactement le même rapport (4 px d'écart en
   hauteur) : on colle les légendes en bas pour qu'elles restent alignées. */
.capture {
  text-align: center; min-width: 0;
  display: flex; flex-direction: column;
}
/* Coque de téléphone. Le corps est graphite et non blanc : les captures
   sont majoritairement claires, un cadre blanc se confondrait avec l'écran.
   Le graphite tranche aussi bien avec le blanc de WhatsApp qu'avec
   l'en-tête noir de l'espace vendeur. */
.capture-cadre {
  position: relative;
  background: linear-gradient(155deg, #55505a 0%, #322e34 45%, #1c1a1e 100%);
  border-radius: 30px;
  padding: 20px 9px 13px;
  box-shadow:
    0 28px 55px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
/* Haut-parleur */
.capture-cadre::before {
  content: '';
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 4px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
}
/* Ratio naturel, aucun recadrage : les deux captures ont un rapport
   quasi identique (0,4946 et 0,4996), elles s'alignent donc d'elles-mêmes
   en hauteur. Forcer un `aspect-ratio` avec `object-fit: cover` amputait
   15 % de la largeur et coupait les boutons sur les bords. */
.capture-cadre img {
  width: 100%; height: auto; display: block;
  border-radius: 20px;
  /* Filet clair à la jonction écran / coque : sépare l'écran du cadre
     quelle que soit la couleur dominante de la capture. */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.capture figcaption {
  margin-top: auto; padding-top: 12px;
  font-size: 13px; color: var(--sable-doux);
}

/* ── Partenaires ────────────────────────────────────────────────────────── */
.partners {
  background: linear-gradient(160deg, #221C18, var(--ebene));
  border-block: 1px solid var(--trait);
}
.partners-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 34px; }
.partner-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--trait);
  border-radius: var(--r); padding: 26px;
  transition: transform .35s, border-color .35s;
}
.partner-card:hover { transform: translateY(-4px); border-color: rgba(244, 176, 97, 0.4); }

/* Entrée échelonnée, déclenchée par le `.visible` posé sur la section.
   `backwards` et non `both` : une fois l'animation terminée l'élément
   retrouve son style normal, donc le survol reste libre de piloter
   `transform`. Avec `both`, le hover serait bloqué. */
.partners.visible .partner-card {
  animation: carte-partenaire .8s cubic-bezier(.22, 1, .36, 1) backwards;
}
.partners.visible .partner-card:nth-child(1) { animation-delay: .12s; }
.partners.visible .partner-card:nth-child(2) { animation-delay: .28s; }

@keyframes carte-partenaire {
  from { opacity: 0; transform: translateY(28px) scale(.97); }
}

/* Pastille blanche : les logos partenaires sont dessinés pour fond clair.
   On les aligne par la HAUTEUR, pas par la largeur — c'est ce qui donne une
   ligne visuellement régulière malgré des proportions différentes. */
.partner-logo {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 176px;                 /* pastilles de largeur égale */
  background: #fff; border-radius: 14px;
  padding: 14px 18px; margin-bottom: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: transform .35s, box-shadow .35s;
}
.partner-logo img { height: 46px; width: auto; display: block; }

/* Reflet doré qui balaie la pastille au survol. Un reflet blanc serait
   invisible sur fond blanc : on utilise l'or de la marque. */
.partner-logo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg,
    transparent 38%, rgba(244, 176, 97, 0.45) 50%, transparent 62%);
  transform: translateX(-130%);
  transition: transform .8s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}
.partner-card:hover .partner-logo {
  transform: scale(1.04);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}
.partner-card:hover .partner-logo::after { transform: translateX(130%); }

.partner-tag {
  display: inline-block; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--laterite); margin-bottom: 10px;
}
.partner-name {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 700;
  color: var(--sable); margin-bottom: 10px;
}
.partner-desc { color: var(--sable-doux); font-size: 15px; line-height: 1.65; margin-bottom: 16px; }
.partner-link {
  margin-top: auto;                 /* colle le lien en bas, cartes alignées */
  color: var(--or); text-decoration: none; font-weight: 600;
}
.partner-link:hover { color: #FFD39A; }

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact { text-align: center; }
.contact .btn { margin-top: 30px; }
.coordonnees {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  margin-top: 40px; color: var(--sable-doux); font-size: 15px;
}
.coordonnees b { color: var(--sable); font-weight: 600; }

/* ── Pied de page ───────────────────────────────────────────────────────── */
.pied { border-top: 1px solid var(--trait); padding: 40px 0; }
.pied-int { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pied-int img { height: 34px; width: auto; opacity: .9; }
.pied-int p { color: var(--sable-doux); font-size: 14px; }
.pied-int a { color: var(--or); text-decoration: none; }
.pied-int a:hover { text-decoration: underline; }

/* ── Adaptatif ──────────────────────────────────────────────────────────── */
@media (min-width: 901px) {
  .grille-services { grid-template-columns: repeat(3, 1fr); }  /* 3 cartes sur une ligne */
}

@media (max-width: 900px) {
  .heros-int, .validel-int { grid-template-columns: 1fr; }
  .logo-scene { order: -1; }
  .embleme-heros { width: min(280px, 62%); }
  .duo-probleme, .grille-services, .partners-grid { grid-template-columns: 1fr; }
  section { padding: 58px 0; }
  /* Grille sur une colonne : sans plafond, les téléphones deviendraient
     démesurés sur toute la largeur du conteneur. */
  .captures { gap: 12px; max-width: 420px; }
  .capture figcaption { font-size: 12px; }

  .nav-liens {
    position: fixed; inset: 0 0 auto 0; top: 64px; flex-direction: column; gap: 0;
    background: rgba(26, 24, 22, 0.97);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    padding: 10px 6%; transform: translateY(-130%); transition: transform .35s;
  }
  .nav-liens.ouvert { transform: none; }
  .nav-liens a { display: block; padding: 15px 0; font-size: 17px; border-bottom: 1px solid var(--trait); }
  .burger { display: block; }
}

@media (max-width: 600px) {
  .heros { padding: 110px 0 60px; }
  .parcours li { padding-left: 44px; font-size: 15.5px; }
  .parcours li::before { width: 28px; height: 28px; font-size: 13px; }
  .parcours li::after { left: 13px; top: 32px; }
  .marque-validel img { width: 46px; height: 46px; }
  .cle { font-size: 15px; padding: 14px 16px; }
  .coordonnees { gap: 22px; }
  .cta-groupe .btn { flex: 1 1 100%; justify-content: center; }
}

/* ── Accessibilité : mouvement réduit ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .apparition { opacity: 1; transform: none; }

  /* Le verbe alterné se fige sur le mot actif — open-gestu.js n'enclenche
     pas la bascule dans ce mode. */
  .verbe-mot { transition: none; }
  .verbe-mot:not(.actif) { display: none; }
}
