/* Socle de la variante C : polices (celles de B), texte, coque, boutons, replis, étiquettes.
   Les noms de classes sont ceux du site de base ; les valeurs viennent des jetons de tokens.css.
   Casse normale partout : aucune capitale forcée, aucun texte espacé. */

/* Latin et latin étendu (noms de villes et de personnes d'Europe centrale) : le navigateur ne charge
   le second fichier que si un caractère de sa plage apparaît. */
@font-face {
  font-family: "Baloo 2 Variable";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/baloo-2-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Baloo 2 Variable";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/baloo-2-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3 Variable";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3 Variable";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3 Variable";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-wght-italic.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3 Variable";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-wght-italic.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--haut-entete) + var(--s-4));
}

body {
  margin: 0;
  background: var(--blanc);
  color: var(--bleu);
  font: 400 var(--t-base) / var(--interligne) var(--font-texte);
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
img, video, svg { max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0 0 var(--s-4);
  font-family: var(--font-titre);
  font-weight: var(--poids-titre);
  line-height: 1.2;
  color: var(--bleu);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.25; }
h4 { font: 700 1rem / 1.4 var(--font-texte); }
p { margin: 0 0 var(--s-4); }
ul, ol, dl { margin: 0; }

a { color: var(--bleu); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--menthe-fonce); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--s-4); top: -4rem; z-index: 30;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--rayon-bouton);
  background: var(--bleu); color: var(--blanc); font-weight: 700;
}
.skip-link:focus { top: var(--s-3); outline-color: var(--blanc); outline-offset: -6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Coque : en-tête blanc à ombre portée, logo à gauche, pilules à droite ---------- */

.container { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--marge); }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--blanc); box-shadow: var(--ombre-entete); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-1) var(--s-5);
  min-height: var(--haut-entete); padding-block: var(--s-1);
}
.logo {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 0.3em;
  min-height: var(--cible);
  font: 700 1.75rem / 1 var(--font-titre);
  color: var(--bleu); text-decoration: none;
}
.logo-tag {
  padding: 0 0.15em;
  background: url("../img/marqueur.svg") 0 70% / 100% 62% no-repeat;
}
.site-nav { display: flex; align-items: center; gap: var(--s-5); }
.nav-links-desktop { display: none; }
.site-nav a { text-decoration: none; }
.nav-links-desktop a, .nav-link {
  display: inline-flex; align-items: center; min-height: var(--cible);
  font-weight: 600; white-space: nowrap;
}
.nav-links-desktop a:hover, .nav-link:hover { text-decoration: underline; text-decoration-color: var(--menthe-fonce); text-decoration-thickness: 3px; text-underline-offset: 0.25em; }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--cible); padding: 0.3rem 1.1rem;
  border-radius: var(--rayon-bouton);
  background: var(--corail-fort); color: var(--blanc);
  font-weight: 700; white-space: nowrap;
  transition: background-color 0.2s;
}
.nav-cta:hover { background: var(--corail-survol); text-decoration: none; }
@media (max-width: 479px) {
  .logo { font-size: 1.5rem; }
  .nav-cta { padding-inline: 0.9rem; font-size: 1rem; }
  .header-inner { column-gap: var(--s-3); }
}
@media (min-width: 768px) {
  .nav-links-desktop { display: flex; align-items: center; gap: var(--s-5); }
}

/* ---------- Boutons : pilule à 40 px, corail plein pour l'appel, contour bleu pour l'autre ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--cible);
  padding: 0.8rem 2rem;
  border: 0; border-radius: var(--rayon-bouton);
  font: 700 1.0625rem / 1.2 var(--font-texte);
  text-align: center; text-decoration: none; cursor: pointer; max-width: 100%;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--corail-fort); color: var(--blanc); }
.btn-primary:hover { background: var(--corail-survol); }
.btn-secondary { background: var(--blanc); color: var(--bleu); box-shadow: inset 0 0 0 1.5px var(--bleu); }
.btn-secondary:hover { background: var(--gris); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
@media (max-width: 767px) { .btn { padding-inline: 1.25rem; } }

.badge {
  display: inline-flex; align-items: center;
  padding: 0 0.8rem; border-radius: var(--rayon-bouton);
  background: var(--menthe); color: var(--bleu);
  font: 700 var(--t-petit) / 1.8 var(--font-texte);
}

.share-button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--cible); min-width: var(--cible);
  padding: 0.4rem 1rem;
  border: 0; border-radius: var(--rayon-bouton);
  background: transparent; color: var(--bleu);
  font: 600 1rem / 1 var(--font-texte);
  cursor: pointer;
  transition: background-color 0.2s;
}
.share-button:hover, .share-button.is-copied { background: var(--gris); }
.share-button[hidden] { display: none; }

/* ---------- Texte courant ---------- */

.eyebrow {
  display: inline-block; margin-bottom: var(--s-2);
  color: var(--menthe-fonce);
  font: 700 var(--t-base) / 1.3 var(--font-texte);
}
.hero-lead { max-width: var(--mesure); color: var(--bleu-doux); font-size: var(--t-confort); line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-6); }
.section-tight { padding-block: var(--s-8); }
.section-intro { max-width: var(--mesure); color: var(--bleu-doux); font-size: var(--t-confort); line-height: 1.45; }
main section[id] { scroll-margin-top: calc(var(--haut-entete) + var(--s-4)); }

/* Une bande grise très claire par-ci par-là : les sections qui la portent sont nommées ici.
   Sur une fiche métier, `bande-grise` est posée par le gabarit, en alternance depuis les offres.
   `--fond` dit aux pastilles cerclées sur quel fond elles se détachent. */
.objections, .before-signing, .faq, .bande-grise { --fond: var(--gris); background: var(--gris); }

/* Le surlignage menthe du site : un mot ou deux dans un titre */
.marqueur {
  padding: 0 0.2em;
  background: url("../img/marqueur.svg") 0 80% / 100% 58% no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Cartes questions-réponses (accueil : peurs ; fiche : avant de signer, intégration) ---------- */

.objections-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); margin-top: var(--s-7); }
@media (min-width: 860px) {
  .objections-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .objections-grid--parole { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Trois cartes : 2 + 1 en tablette, la dernière sur toute la largeur ; 3 colonnes au-delà */
@media (min-width: 640px) and (max-width: 1023px) {
  .objections-grid--trois { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .objections-grid--trois > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) { .objections-grid--trois { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.objection-card { padding: var(--s-6); border-radius: var(--rayon); background: var(--blanc); box-shadow: var(--ombre); }
.objection-card h3 { margin-bottom: var(--s-3); }
.objection-card p { margin: 0; }
.objection-card > p:last-child { color: var(--bleu-doux); }

/* La parole (règle de B) : une bulle blanche pointe à gauche, c'est la personne qui candidate ;
   une bulle menthe pointe à droite, c'est Ouihelp qui répond. Rien d'autre n'a de pointe. */
.objection-card--parole { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); align-content: start; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.objection-card--parole h3, .objection-card--parole p {
  position: relative; margin: 0;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--rayon-bulle);
}
.objection-card--parole h3 { background: var(--blanc); box-shadow: var(--ombre); border-bottom-left-radius: 0; width: fit-content; max-width: 100%; font-size: 1.25rem; }
.objection-card--parole p { max-width: var(--mesure); background: var(--menthe-claire); border-bottom-right-radius: 0; margin-left: var(--s-5); color: var(--bleu); }
.objection-card--parole h3::after, .objection-card--parole p::after {
  content: ""; position: absolute; bottom: 0; width: var(--pointe); height: var(--pointe); background: inherit;
}
.objection-card--parole h3::after { right: 100%; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.objection-card--parole p::after { left: 100%; clip-path: polygon(0 0, 100% 100%, 0 100%); }

/* ---------- Pied : gris très clair ---------- */

.site-footer { margin-top: var(--s-8); padding-block: var(--s-7) var(--s-6); background: var(--gris); box-shadow: 0 -1px 0 var(--trait); }
/* Les trois métiers, en bas de chaque page : d'une fiche à l'autre sans remonter ni repasser par l'accueil */
.footer-metiers { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); padding-bottom: var(--s-6); margin-bottom: var(--s-6); box-shadow: 0 1px 0 var(--trait); }
.footer-metiers h2 { margin: 0; font-size: 1.375rem; }
.footer-metiers ul { display: flex; flex-wrap: wrap; gap: var(--s-3); padding: 0; list-style: none; }
.footer-metiers a {
  display: inline-flex; align-items: center; min-height: var(--cible); padding: 0 var(--s-5);
  border-radius: var(--rayon-bouton); background: var(--blanc); box-shadow: inset 0 0 0 1.5px var(--bleu);
  font-weight: 700; text-decoration: none;
}
.footer-metiers a:hover { background: var(--menthe-claire); }
.footer-metiers a[aria-current="page"] { background: var(--menthe); box-shadow: none; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--s-5) var(--s-6); }
.footer-inner p { margin: 0; color: var(--bleu-doux); font-size: var(--t-petit); max-width: var(--mesure); }
.footer-inner p + p { margin-top: var(--s-2); }
.footer-care a { color: var(--bleu); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.footer-inner nav a { display: inline-flex; align-items: center; min-height: var(--cible); text-decoration: none; font-weight: 600; }
.footer-inner nav a:hover { text-decoration: underline; text-decoration-color: var(--menthe-fonce); text-decoration-thickness: 2px; }
.footer-care a { display: inline-flex; align-items: center; min-height: var(--cible); }

@media print {
  .site-nav, .share-button, .hero-actions { display: none; }
}
