/* OPEPARTNER — landing entreprises.
   Mise en page reprise de la landing « Une heure pour avancer » (landing-1h.css) et de
   la maquette _import/maquette-refonte/index.html.

   Aucun style inline dans index.html : toute règle ajoutée reste dans ce fichier.
   Une seule rupture de mise en page, à 860px (min-width: 860px). Aucune carte n'a de
   bord ni de liseré coloré : elles se détachent par leur fond et une ombre douce. */

/* Le bouton du hero est une ancre vers la section contact, plus bas : sans cela le
   visiteur y serait projeté sans comprendre où il a atterri. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

html, body { margin: 0; padding: 0; background: var(--creme); }
body { font-family: var(--font-sans); color: var(--marine); }
a { color: var(--color-link); }
a:hover { color: var(--color-link-hover); }

/* ============================================================
   Socle commun — repris de la landing « Une heure pour avancer » (landing-1h.css)
   ============================================================ */

/* Le focus doit rester visible : une part des visiteurs arrive au clavier. */
:where(a, button, input, textarea, iframe):focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Sprite SVG de index.html : hors flux, sans taille ni interaction. Surtout pas
   display:none — un <symbol> dans un SVG masqué n'est pas résolu par tous les navigateurs. */
.ope-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

.ope-wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 40px);
  padding-right: clamp(20px, 5vw, 40px);
}

.ope-titre {
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: clamp(27px, 4.2vw, 44px); line-height: 1.12; letter-spacing: -0.015em;
  color: var(--marine); margin: 0; text-wrap: pretty;
}

/* Titre-citation : Spectral italique 600, chargée (voir fonts.css). */
.ope-titre--citation { font-style: italic; }

.ope-section { padding-top: clamp(52px, 8vw, 92px); padding-bottom: clamp(52px, 8vw, 92px); }

/* Apparition des sections au défilement. TOUT l'état de départ est sous .apparait--anime,
   que landing.js pose lui-même sur ce qui est sous la ligne de flottaison : sans script,
   ou si l'utilisateur a demandé moins d'animation, la section reste entière. */
@media (prefers-reduced-motion: no-preference) {
  .apparait--anime { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .apparait--anime.vu { opacity: 1; transform: none; }
}

/* Surtitre commun aux sections. Orange foncé sur fond clair (4,7:1 sur crème), orange
   clair sur marine, marine foncé sur orange : l'orange vif échoue partout à cette taille
   (voir l'entête de colors-1h.css). */
.ope-kicker {
  margin: 0 0 12px;
  font-size: 14px; font-weight: var(--fw-extrabold);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange-texte);
}
.ope-kicker--sur-marine { color: var(--orange-clair); }
.ope-kicker--sur-orange { color: var(--marine-900); }

/* Bouton d'action : aplat orange à texte marine (4,2:1), et non à texte blanc (2,8:1).
   19px gras : le seuil du grand texte. */
.ope-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-sans); font-weight: var(--fw-extrabold);
  font-size: 19px; letter-spacing: 0.01em; line-height: 1.15;
  padding: 17px 34px; border-radius: var(--radius-pill);
  background: var(--orange); border: 1px solid var(--orange); color: var(--marine);
  cursor: pointer; text-decoration: none; text-align: center;
  min-height: 48px; /* cible tactile confortable */
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.ope-cta:hover { background: var(--orange-survol); border-color: var(--orange-survol); color: #FFFFFF; }
.ope-cta[disabled] { opacity: 0.55; cursor: default; }

/* Flèche des boutons : un SVG, le glyphe « → » n'existe pas dans les sous-ensembles latins. */
.fleche { width: 22px; height: 14px; flex: none; }

/* ============================================================
   HERO — marine
   ============================================================
   Reprise de la maquette de refonte : filigrane du symbole à droite, titre dont la
   seconde ligne passe en orange italique, filet orange au-dessus du texte, bouton.
   La vague vers le crème est dans la section, en bas, et non après elle : c'est le
   calque du filigrane qui rogne, pas la section, pour que la vague puisse déborder
   d'un pixel et ne laisser aucun liseré. */

.hero { position: relative; background: var(--marine); color: var(--creme); padding: 40px 0 150px; }

.hero__filigrane { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__filigrane svg {
  position: absolute; right: -180px; bottom: 40px;
  width: 460px; aspect-ratio: 517 / 393;
  color: var(--creme); opacity: 0.07;
}

.hero__contenu { position: relative; z-index: 1; }

.hero__logo { height: 34px; width: auto; display: block; margin-bottom: 44px; }

.hero__grille { display: grid; gap: 32px; }

/* Spectral 600 et non 700 : l'italique 700 n'est pas chargé, le navigateur l'imiterait. */
.hero__titre {
  margin: 0; font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: clamp(36px, 5.4vw, 72px); line-height: 1.05; letter-spacing: -0.01em;
  color: var(--creme);
}
.hero__titre span { display: block; }
/* Orange vif sur marine : 4,2:1, valable pour un grand titre (3:1 requis). */
.hero__titre em { color: var(--orange); }

.hero__trait { display: block; width: 90px; height: 4px; border-radius: 2px; background: var(--orange); margin: 0 0 28px; }

.hero__texte { margin: 0; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; color: var(--brume-claire); text-wrap: pretty; }

.hero__actions { margin: 36px 0 0; }
/* L'ombre détache le bouton du bandeau marine, où l'aplat orange ne se suffit pas. */
.hero__actions .ope-cta { box-shadow: 0 8px 22px rgba(6,32,46,0.28); }

.hero__vague {
  position: absolute; left: 0; right: 0; bottom: -1px;
  display: block; width: 100%; height: 110px;
}

@media (min-width: 860px) {
  .hero { padding-bottom: 190px; }
  .hero__logo { height: 40px; margin-bottom: 72px; }
  .hero__grille { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: end; }
  /* La colonne de gauche ne fait plus qu'un peu plus de la moitié de la page : à 72px,
     « Vous n'embauchez personne. » s'y coupait en trois lignes. L'échelle repart d'un
     cran plus bas, et chaque phrase tient en deux lignes au plus. */
  .hero__titre { font-size: clamp(36px, 4.2vw, 60px); }
  .hero__filigrane svg { right: -160px; top: 40px; bottom: auto; width: 760px; }
}

/* ============================================================
   UNE ÉQUIPE, PAS UN POSTE — crème
   ============================================================
   Texte à gauche, quatre cartes numérotées en 2 × 2 à droite à partir de 860px.
   Les cartes se détachent par leur fond blanc et une ombre douce, sans bordure. */

.equipe { background: var(--creme); }

.equipe__grille { display: grid; gap: 32px; align-items: start; }

.equipe .ope-titre { margin-bottom: 24px; }
.equipe__intro { margin: 0; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; color: var(--ardoise-700); max-width: 46ch; text-wrap: pretty; }

.quatre { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; }
.quatre li {
  background: #FFFFFF; color: var(--marine); border-radius: 16px;
  padding: clamp(24px, 3vw, 30px); box-shadow: 0 10px 30px rgba(30, 58, 82, 0.12);
}
/* Orange vif sur blanc : 2,8:1, admis ici car le chiffre est décoratif (aria-hidden). */
.quatre__num { margin: 0; font-family: var(--font-display); font-size: 52px; line-height: 1; color: var(--orange); }
.quatre h3 { margin: 16px 0 10px; font-family: var(--font-sans); font-size: 22px; font-weight: var(--fw-extrabold); line-height: 1.25; }
.quatre p:last-child { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ardoise-700); }

@media (min-width: 860px) {
  .equipe__grille { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 56px; }
  .quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Soulèvement au survol, à la souris seulement : sur un écran tactile, :hover reste collé. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .quatre li { transition: transform 0.2s ease; }
  .quatre li:hover { transform: translateY(-4px); }
}

/* ============================================================
   SIX DIRECTIONS — le défilement
   ============================================================
   Une seule mise en page, du téléphone à l'écran large : le défilement ne dépend d'aucune
   largeur, donc d'aucune rupture. Il est du CSS pur — landing.js n'y touche pas.

   La piste n'a PAS de gap, et c'est un invariant, pas un oubli : « translateX(-50%) »
   déplace la piste de la moitié de sa largeur, alors que la boucle exige un déplacement
   d'exactement une longueur de rangée. Les deux ne coïncident que si rien ne s'intercale
   entre la rangée et son clone. C'est le padding-right de chaque élément qui fournit
   l'écart, au raccord comme à l'intérieur.

   32s : une direction entre toutes les 5 à 6 secondes sur un écran large. */

.directions { background: var(--marine); color: var(--creme); padding: 72px 0 80px; overflow: hidden; }

.directions__entete { display: flex; align-items: center; gap: 20px; margin-bottom: 40px; }
.directions__symbole { width: 64px; height: 49px; flex: none; color: var(--orange); }
.directions__entete .ope-kicker { margin-bottom: 8px; }
.directions__titre {
  margin: 0; font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: clamp(32px, 3.8vw, 50px); line-height: 1.05; color: var(--creme);
}
@media (min-width: 860px) {
  .directions__entete { gap: 28px; margin-bottom: 48px; }
  .directions__symbole { width: 96px; height: 73px; }
}

.defile {
  border-top: 1px solid var(--filet-marine); border-bottom: 1px solid var(--filet-marine);
  padding: 28px 0;
}
.defile__piste { display: flex; width: max-content; animation: defile 32s linear infinite; }
@keyframes defile { to { transform: translateX(-50%); } }

.defile__rangee { display: flex; list-style: none; margin: 0; padding: 0; }
.defile__rangee li {
  display: flex; align-items: center; gap: 28px; padding-right: 56px;
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: clamp(34px, 4.4vw, 60px); white-space: nowrap;
}
/* Une direction sur deux en italique, d'un cran plus pâle : le rythme évite que six noms
   de même graisse se lisent comme une liste. Spectral 600 italique est chargée. */
.defile__rangee li:nth-child(even) { font-style: italic; color: var(--brume-claire); }
.defile__rangee svg { width: 0.9em; height: 0.7em; flex: none; color: var(--orange); }

/* Pause et survol à la souris seulement : sur un écran tactile, :hover reste collé après
   le doigt et la bande resterait arrêtée. */
@media (hover: hover) {
  .defile:hover .defile__piste { animation-play-state: paused; }
  .defile__rangee li:hover { color: var(--orange); }
}

/* Sans animation : plus de piste ni de clone, les six directions se rangent en grille.
   Une colonne sur téléphone, trois à partir de 860px. */
@media (prefers-reduced-motion: reduce) {
  .defile__piste { animation: none; width: auto; }
  .defile__rangee {
    display: grid; grid-template-columns: 1fr; gap: 20px 0; width: 100%;
    max-width: var(--container-max); margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px); box-sizing: border-box;
  }
  /* Ici « Marketing et communication » est bien plus long que les libellés de la 1h :
     immobile, il doit pouvoir passer à la ligne plutôt que déborder sur sa voisine. */
  .defile__rangee li { padding-right: 0; white-space: normal; font-size: clamp(28px, 3vw, 40px); gap: 20px; }
  /* Après la règle de grille, et non avant : à spécificité égale, son display:grid
     l'emporterait et le clone s'afficherait à côté de la rangée. */
  .defile__rangee--clone { display: none; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 860px) {
  .defile__rangee { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ============================================================
   POURQUOI NOUS — orange
   ============================================================
   Une vague fait la transition depuis le marine des six directions. Sur l'orange, tout
   petit texte est en marine foncé (5,4:1) ; le titre reste marine, 4,2:1, valable pour un
   grand texte. Le texte est posé sur une carte marine, détachée par l'ombre. */

.vague { display: block; width: 100%; height: 110px; }
.vague--vers-orange { background: var(--marine); }

.pourquoi { background: var(--orange); }

.pourquoi__grille { display: grid; gap: 32px; align-items: center; }

.pourquoi__carte {
  background: var(--marine); border-radius: 18px; padding: 32px 24px;
  box-shadow: 0 20px 40px rgba(30, 58, 82, 0.35);
}
.pourquoi__carte p { margin: 0; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.7; color: var(--brume-claire); text-wrap: pretty; }
.pourquoi__carte strong { color: var(--creme); }
/* La chute, en Spectral italique 600 (chargée), orange clair : 7,1:1 sur marine. */
.pourquoi__chute {
  display: block; margin-top: 14px;
  font-family: var(--font-display); font-style: italic; font-weight: var(--fw-semibold);
  font-size: 1.25em; line-height: 1.4; color: var(--orange-clair);
}

@media (min-width: 860px) {
  .pourquoi__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .pourquoi__carte { padding: 40px; }
}

/* ============================================================
   TÉMOIGNAGES — blanc
   ============================================================
   Les cartes de la landing 1h, sans son liseré orange en tête : ici aucune carte n'a de
   bord coloré, elles se détachent par leur fond crème et une ombre douce. Le guillemet
   orange est un grand glyphe décoratif (aria-hidden), pas du texte à lire.

   Filets des signatures alignés d'une carte à l'autre : à partir de 860px, les trois
   cartes partagent les rangées de la grille (subgrid) — guillemet, citation, signature.
   Une signature qui passe sur deux lignes agrandit la rangée des trois cartes, et le
   filet, posé en haut de la rangée, reste à la même hauteur partout. */

.temoins { background: #FFFFFF; }

.temoins__grille { display: grid; gap: 24px; margin-top: 40px; }

.temoin {
  margin: 0; padding: 32px; border-radius: 18px;
  background: var(--creme); display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 10px 30px rgba(30, 58, 82, 0.10);
}
.temoin__guillemet {
  font-family: var(--font-display); font-size: 80px; line-height: 0.6; height: 34px;
  color: var(--orange);
}
.temoin__citation {
  margin: 0; font-family: var(--font-display); font-style: italic;
  font-size: 20px; line-height: 1.5; color: var(--marine);
}
.temoin__citation p { margin: 0; text-wrap: pretty; }

.temoin__auteur { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--gris-bleu-200); }
.temoin__nom { display: block; font-size: 17px; color: var(--marine); }
.temoin__auteur span { display: block; margin-top: 4px; font-size: 14px; color: var(--ardoise-700); }

@media (min-width: 860px) {
  .temoins__grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@supports (grid-template-rows: subgrid) {
  @media (min-width: 860px) {
    .temoins__grille { grid-template-rows: auto 1fr auto; row-gap: 0; }
    .temoin { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 18px; }
    .temoin__auteur { margin-top: 0; }
  }
}

/* ============================================================
   CONTACT — tête marine, calendrier et formulaire sur crème
   ============================================================ */

.contact-tete { background: var(--marine); color: var(--creme); padding: clamp(64px, 9vw, 96px) 0 72px; }
.contact-tete__grille { display: grid; gap: 32px; align-items: center; }
.contact-tete__titre {
  margin: 0; font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: clamp(34px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -0.015em;
  color: var(--creme); text-wrap: pretty;
}
/* Orange clair sur marine : 7,1:1. L'orange vif n'y tient qu'en grand texte. */
.contact-tete__devise {
  margin: 0; font-family: var(--font-display); font-style: italic; font-weight: var(--fw-semibold);
  font-size: clamp(21px, 2vw, 26px); line-height: 1.4; color: var(--orange-clair); text-wrap: pretty;
}
.contact-tete__texte { margin: 18px 0 0; font-size: 18px; line-height: 1.65; color: var(--brume-claire); text-wrap: pretty; }

@media (min-width: 860px) {
  .contact-tete__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
}

.contact-corps { background: var(--creme); padding: 56px 0 clamp(64px, 9vw, 96px); }

/* Calendrier Axonaut. Le widget dessine sa propre carte blanche : rien autour. Les 700px
   sont le minimum du widget ; landing.js suit ensuite la hauteur qu'il annonce, en
   écrivant style.height (CSSOM, que la CSP ne bloque pas). */
.contact__calendrier { display: block; width: 100%; max-width: 980px; height: 700px; margin: 0 auto; border: 0; }

.ecrire { margin-top: 40px; text-align: center; }
.ecrire > p { margin: 0 0 22px; font-size: 17px; line-height: 1.7; color: var(--ardoise-700); text-wrap: pretty; }

.ecrire__bouton {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 26px;
  border-radius: 10px; border: 2px solid var(--marine); background: transparent; color: var(--marine);
  font-family: var(--font-sans); font-weight: var(--fw-extrabold); font-size: 16px; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ecrire__bouton:hover { background: var(--marine); color: var(--creme); }
/* La rotation est posée par landing.js à l'ouverture ; seule la transition est ici. */
.ecrire__chevron { font-size: 18px; line-height: 1; transition: transform 200ms ease; }

/* Replié par défaut. landing.js bascule display entre none et flex. */
.ecrire__form {
  display: none; flex-direction: column; gap: 12px; overflow: hidden;
  max-width: 560px; margin: 28px auto 0; text-align: left;
}
.ecrire__envoyer { align-self: flex-start; margin-top: 4px; }

/* Champs repris de la landing 1h, étendus au textarea. Une seule colonne : la grille à
   620px de la 1h ajouterait une rupture. */
.ope-field { display: flex; flex-direction: column; gap: 6px; }
.ope-field label { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--marine); }
.ope-field input, .ope-field textarea {
  width: 100%; box-sizing: border-box;
  font-family: var(--font-sans); font-size: 16px; /* < 16px : iOS zoome au focus */
  color: var(--marine); background: #FFFFFF;
  border: 1px solid var(--gris-bleu-200); border-radius: var(--radius-md);
  padding: 12px 14px; outline: none; resize: vertical;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ope-field input:focus, .ope-field textarea:focus { border-color: var(--orange); box-shadow: var(--ring-focus); }

/* Piège à robots : hors écran et hors du parcours clavier. Tout envoi dont ce champ
   est rempli est écarté côté n8n. Ne jamais lui ajouter de label ni de placeholder. */
.ope-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Masqué tant que landing.js n'a rien à dire : il pose display et color lui-même. */
.ope-status { display: none; margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--marine); }

/* ============================================================
   PIED — marine foncé
   ============================================================ */

.pied { background: var(--marine-900); color: var(--brume-douce); padding: 48px 0; }
.pied__contenu { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.pied__marque { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.pied__logo { height: 26px; width: auto; display: block; }
.pied__nom { margin: 0; font-size: 14.5px; }
.pied__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.pied__legal a { color: var(--brume-douce); text-decoration: none; }
.pied__legal a:hover { color: var(--orange-clair); text-decoration: underline; text-underline-offset: 3px; }
