/* Accueil : l'ordre et les espacements du site de base, l'habillage de B.
   Le titre est posé sur le pêle-mêle de photos d'équipe (marine) ; ensuite blanc et gris en
   alternance, et une seule bande chaude en carte arrondie (les trois chiffres). */

/* ---------- Titre ---------- */

/* Les photos sont dans la moitié droite de l'image, le texte dans le marine de gauche. Sous
   1200 px, elles passeraient sous le texte : le titre garde alors le seul dégradé marine de
   l'image, et le navigateur ne la télécharge pas. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: var(--s-6);
  background: linear-gradient(120deg, #0B1629 0%, #102B49 60%, #1B3E64 100%);
  color: var(--blanc);
}
@media (min-width: 1200px) {
  .hero { background: #0B1E35 url("../img/accueil-pele-mele.webp") right center / cover no-repeat; }
}
.hero-inner { position: relative; max-width: var(--largeur); }
.hero .eyebrow {
  margin-bottom: var(--s-2); padding: 0 1rem;
  border-radius: var(--rayon-bouton); background: var(--menthe); color: var(--bleu);
}
/* Les trois métiers, sous l'étiquette : à qui le site parle */
.hero-metiers { margin: 0 0 var(--s-4); color: var(--blanc); font: 600 var(--t-confort) / 1.4 var(--font-texte); }
.hero h1 { max-width: 40rem; }
.hero h1 .bulle-ligne { display: block; }
/* Dès 768 px, une phrase par ligne : le corps suit la largeur du bloc (la phrase la plus longue
   fait environ 18,3 em avec le rembourrage de la bulle), plafonné au corps des titres */
@media (min-width: 768px) {
  .hero-inner { container-type: inline-size; }
  .hero h1 { max-width: none; font-size: min(var(--t-h1), 5.2cqi); }
  .hero h1 .bulle-ligne { white-space: nowrap; }
}
.hero h1 span.bulle {
  display: block; width: fit-content; max-width: 100%;
  padding: 0.3em 0.75em 0.4em;
  border-radius: var(--rayon-bulle); border-bottom-right-radius: 0;
  background: var(--menthe-claire); color: var(--bleu);
  position: relative;
}
.hero h1 span.bulle::after {
  content: ""; position: absolute; bottom: 0; left: 100%;
  width: var(--pointe); height: var(--pointe);
  background: inherit; clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.hero-suite { margin-top: var(--s-5); }
/* 35rem ≈ 70 caractères par ligne dans cette taille de texte. */
.hero .hero-lead { margin: 0; color: var(--blanc); max-width: 35rem; }
.hero :focus-visible { outline-color: var(--blanc); }
.hero .hero-actions { margin-top: var(--s-5); }
@media (min-width: 768px) { .hero { padding-block: var(--s-7) var(--s-6); } }
/* Assez haut pour l'image entière (2560 × 1100) : sinon `cover` coupe les photos du bas. */
@media (min-width: 1200px) {
  .hero { display: grid; align-items: center; min-height: calc(100vw * 1100 / 2560); padding-block: var(--s-7); }
}

/* ---------- Chiffres : une carte chaude, quatre chiffres sans cadre ---------- */

.engagements {
  width: min(100% - 2 * var(--marge), var(--largeur));
  margin: var(--s-6) auto 0;
  padding-block: var(--s-8);
  border-radius: var(--rayon-grand);
  background: var(--bande-chaude);
  box-shadow: var(--ombre-bande);
}
.engagements > .container { padding-inline: clamp(1.25rem, 4vw, 3rem); }
.engagements .eyebrow { color: var(--bleu); }
.engagements h2 { max-width: 40rem; }
.stat-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); margin-top: var(--s-7); }
/* Trois chiffres : une colonne, puis trois côte à côte (deux colonnes laisseraient le dernier seul). */
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); } }
.stat-number {
  margin: 0 0 var(--s-2);
  font: 700 clamp(2.5rem, 1.8rem + 3vw, 3.5rem) / 1 var(--font-titre);
  color: var(--bleu);
}
.stat-label { margin: 0; color: var(--bleu); font-size: var(--t-base); }

/* ---------- Questions ---------- */

.objections h2 { max-width: 44rem; }

/* ---------- Avant de signer : Ouihelp parle, en bulles menthe qui alternent ---------- */

/* Les bulles de #questions vont par paires sur deux colonnes ; ici une seule voix, celle
   d'Ouihelp, sur une colonne, une bulle à gauche, la suivante à droite. */
.avant-bulles { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); max-width: 60rem; margin-top: var(--s-7); }
.avant-bulle {
  position: relative; max-width: 36rem; margin-right: var(--pointe);
  padding: var(--s-5) var(--s-6);
  border-radius: var(--rayon-bulle); border-bottom-right-radius: 0;
  background: var(--menthe-claire); color: var(--bleu);
}
.avant-bulle::after {
  content: ""; position: absolute; bottom: 0; left: 100%;
  width: var(--pointe); height: var(--pointe); background: inherit;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.avant-bulle h3 { margin: 0 0 var(--s-2); font-size: 1.25rem; }
.avant-bulle p { margin: 0; }
@media (min-width: 768px) {
  .avant-bulle:nth-child(even) { justify-self: end; }
}

/* ---------- Intégration : trois étapes numérotées, reliées par le trait à la main ---------- */

.parcours {
  counter-reset: etape; list-style: none;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6);
  margin: var(--s-7) 0 0; padding: 0; max-width: 46rem;
}
.parcours-etape { position: relative; padding-left: calc(3rem + var(--s-5)); counter-increment: etape; }
.parcours-etape::before {
  content: counter(etape); position: absolute; left: 0; top: 0; z-index: 1;
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--menthe); color: var(--bleu); font: 700 1.5rem / 1 var(--font-titre);
}
/* Le lien d'une étape à la suivante : la vague du séparateur, en masque coloré par --menthe-fonce */
.parcours-etape:not(:last-child)::after {
  content: ""; position: absolute;
  left: 0.75rem; top: calc(3rem + var(--s-2)); bottom: calc(var(--s-2) - var(--s-6)); width: 1.5rem;
  background: var(--menthe-fonce);
  -webkit-mask: var(--vague-v) center / 100% 100% no-repeat; mask: var(--vague-v) center / 100% 100% no-repeat;
  --vague-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 200' preserveAspectRatio='none'%3E%3Cpath d='M12 3C4 34 20 62 12 96S5 152 12 197' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
.parcours-etape h3 { margin: 0.6rem 0 var(--s-2); font-size: 1.375rem; }
.parcours-etape p { margin: 0; max-width: var(--mesure); color: var(--bleu-doux); }
@media (min-width: 960px) {
  .parcours { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); max-width: none; }
  .parcours-etape { padding-left: 0; padding-top: calc(3rem + var(--s-4)); }
  .parcours-etape h3 { margin-top: 0; }
  .parcours-etape:not(:last-child)::after {
    left: calc(3rem + var(--s-2)); right: calc(var(--s-2) - var(--s-6)); top: 0.75rem; bottom: auto;
    width: auto; height: 1.5rem;
    -webkit-mask-image: var(--vague-h); mask-image: var(--vague-h);
    --vague-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M3 12C34 4 62 20 96 12S152 5 197 12' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  }
}

/* ---------- Les trois métiers : trois cartes égales, sans ordre ---------- */

/* Sur une colonne, chaque carte garde sa hauteur ; côte à côte, elles s'alignent */
.jobs-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); margin-top: var(--s-7); }
@media (min-width: 860px) { .jobs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; } }
.job-card {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: var(--s-6);
  border-radius: var(--rayon); background: var(--blanc); box-shadow: var(--ombre);
  color: inherit; text-decoration: none;
  transition: box-shadow 0.2s;
}
.job-card:hover { box-shadow: var(--ombre), inset 0 0 0 2px var(--menthe); }
.job-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.job-card h3 { margin-bottom: var(--s-2); }
.job-description { flex-grow: 1; max-width: var(--mesure); color: var(--bleu-doux); }
.job-salary {
  display: inline-flex; align-items: center;
  margin: var(--s-3) 0 var(--s-1); padding: 0 0.9rem;
  border-radius: var(--rayon-bouton); background: var(--menthe-claire);
  font: 700 var(--t-petit) / 1.9 var(--font-texte);
}
.job-card-link { margin-top: var(--s-3); font-weight: 700; text-decoration: underline; text-decoration-color: var(--menthe-fonce); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.job-card:hover .job-card-link { text-decoration-thickness: 3px; }

/* ---------- Recrutement ---------- */

.postuler-cta { margin-top: var(--s-6); }

/* ---------- Manifeste ---------- */

.manifesto { padding-block: var(--s-8); text-align: center; }
.manifesto p {
  max-width: 48rem; margin: 0 auto;
  font: var(--poids-titre) clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem) / 1.3 var(--font-titre);
  color: var(--bleu); text-wrap: balance;
}
