/* Landing PATNUC Cyber IT (FR et EN) — complète site.css. */

/* — Héro — */
.hero { background: var(--champ); color: var(--champ-texte); position: relative; overflow: hidden; isolation: isolate; }
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, #9C7A1E, #D3AC4A 45%, #9C7A1E);
}
/* Arcs concentriques : la cible d'une orientation, en géométrie pure. */
.hero .arcs { position: absolute; z-index: -1; right: -12rem; top: -10rem; width: 38rem; height: 38rem; color: #8DB3E2; opacity: 0.13; pointer-events: none; }
.hero .contenu {
  display: grid; gap: 2.5rem; align-items: center;
  padding-top: 2.75rem; padding-bottom: 3.25rem;
}
@media (min-width: 900px) {
  .hero .contenu { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 3.5rem; padding-top: 4.25rem; padding-bottom: 4.75rem; }
}
.hero :focus-visible { outline-color: #D3AC4A; }
.hero .programme {
  color: var(--champ-doux); font-size: 0.95rem; line-height: 1.45; max-width: 52ch;
  padding-left: 0.85rem; border-left: 1px solid rgba(211, 172, 74, 0.7);
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.1rem, 7.4vw, 3.6rem); line-height: 1.06; letter-spacing: -0.02em;
  margin-top: 1.25rem; max-width: 16ch; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: #E5C677; }
.hero .chapeau { margin-top: 1.25rem; max-width: 52ch; font-size: 1.125rem; color: var(--champ-doux); }
.hero .chapeau strong { color: var(--champ-texte); font-weight: 650; }
.hero .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero .reperes {
  margin-top: 1.75rem; list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.hero .reperes li {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.925rem; color: var(--champ-texte);
  padding: 0.35rem 0.75rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08);
}
.hero .reperes svg { color: #D3AC4A; }

/* — Fiche de recommandations (exemple illustratif) — */
.fiche {
  background: #FFFFFF; color: #1F2937; border-radius: 18px; box-shadow: var(--ombre-forte);
  padding: 1.35rem 1.25rem 1.1rem; max-width: 30rem; width: 100%; justify-self: center;
}
@media (min-width: 900px) { .fiche { justify-self: end; padding: 1.6rem 1.6rem 1.25rem; transform: rotate(-0.6deg); } }
.fiche .tete { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; padding-bottom: 0.9rem; border-bottom: 1px solid #E3E8EF; }
.fiche .tete strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: #1B2A4A; line-height: 1.25; }
.fiche .tete span { font-size: 0.78rem; font-weight: 650; color: #5B4510; background: #F6EBCB; padding: 0.15rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.fiche ul { list-style: none; }
.fiche li { padding: 0.95rem 0; border-bottom: 1px solid #EEF1F5; }
.fiche li:last-child { border-bottom: none; }
.fiche .cursus { font-size: 0.875rem; color: #4F5968; line-height: 1.35; }
.fiche .ligne { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 0.3rem; }
.fiche .niveau { font-weight: 650; color: #1B2A4A; font-size: 1.02rem; }
.fiche .note { font-size: 0.8rem; color: #5B6472; padding-top: 0.75rem; border-top: 1px solid #E3E8EF; line-height: 1.45; }

/* Jauge à trois paliers : base, standard, expert. */
.jauge { display: inline-grid; grid-template-columns: repeat(3, 1.6rem); gap: 4px; flex: 0 0 auto; }
.jauge i { height: 8px; border-radius: 4px; background: #E3E8EF; position: relative; overflow: hidden; }
.jauge i.plein::after {
  content: ''; position: absolute; inset: 0; background: #35558A; border-radius: inherit;
  transform-origin: left; animation: remplir 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.jauge i.plein:nth-child(2)::after { animation-delay: 120ms; }
.jauge i.plein:nth-child(3)::after { animation-delay: 240ms; }
.fiche li:nth-child(2) .jauge i.plein::after { animation-delay: 260ms; }
.fiche li:nth-child(3) .jauge i.plein::after { animation-delay: 420ms; }
.fiche li:nth-child(3) .jauge i.plein:nth-child(2)::after { animation-delay: 540ms; }
.fiche li:nth-child(3) .jauge i.plein:nth-child(3)::after { animation-delay: 660ms; }
@keyframes remplir { from { transform: scaleX(0); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .jauge i.plein::after { animation: none; } }

/* — Sections — */
.bloc { padding: 3.5rem 0; }
@media (min-width: 900px) { .bloc { padding: 5rem 0; } }
.bloc + .bloc { border-top: 1px solid var(--filet); }
.bloc.teinte { background: var(--surface); }
h2 {
  font-family: var(--serif); font-weight: 600; color: var(--primaire);
  font-size: clamp(1.7rem, 4.6vw, 2.4rem); line-height: 1.15; letter-spacing: -0.015em;
  text-wrap: balance; max-width: 26ch;
}
.intro { margin-top: 0.9rem; max-width: 62ch; color: var(--texte-doux); font-size: 1.08rem; }
.intro strong { color: var(--texte); font-weight: 650; }

/* — Rassurance : trois engagements en phrase, sans cartes — */
.rassure { background: var(--surface); border-bottom: 1px solid var(--filet); }
.rassure .contenu { padding-top: 2rem; padding-bottom: 2rem; }
.rassure ul { list-style: none; display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .rassure ul { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.rassure li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.85rem; align-items: start; }
.rassure .pastille {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-douce); color: var(--secondaire);
}
.rassure strong { display: block; color: var(--texte); font-weight: 650; line-height: 1.35; }
.rassure p { color: var(--texte-doux); font-size: 0.97rem; margin-top: 0.15rem; }

/* — Carte des 80 questions — */
.carte-test { margin-top: 2.25rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .carte-test { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .carte-test { grid-template-columns: 0.75fr 1fr 1fr 1fr; align-items: start; } }
.section-test {
  background: var(--surface); border: 1px solid var(--filet); border-radius: var(--rayon);
  padding: 1.1rem 1.1rem 1.2rem; color: var(--c);
}
.teinte .section-test { background: var(--fond); }
.section-test.socle { --c: var(--s-socle); }
.section-test.gouv { --c: var(--s-gouv); }
.section-test.app { --c: var(--s-app); }
.section-test.res { --c: var(--s-res); }
.section-test .compte { display: flex; align-items: baseline; gap: 0.4rem; color: var(--texte-doux); font-size: 0.9rem; }
.section-test .compte b { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--texte); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.section-test h3 { font-size: 1.02rem; font-weight: 650; color: var(--texte); line-height: 1.3; margin-top: 0.35rem; }
@media (min-width: 560px) { .section-test h3 { min-height: 2.6em; } }
.section-test .plage { font-size: 0.85rem; color: var(--texte-doux); font-variant-numeric: tabular-nums; }
.cases { margin-top: 0.85rem; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.carte-test .cases { max-width: 17rem; }
@media (min-width: 560px) { .carte-test .cases { max-width: none; } }
.cases i { aspect-ratio: 1; border-radius: 3px; background: currentColor; opacity: 0.88; }
.cases i:nth-child(8n+1) { opacity: 1; }
.legende-test { margin-top: 1.5rem; color: var(--texte-doux); font-size: 0.97rem; max-width: 70ch; }

/* — Parcours — */
.parcours { margin-top: 2.25rem; list-style: none; display: grid; gap: 0; counter-reset: etape; }
@media (min-width: 900px) { .parcours { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.etape { position: relative; padding: 0 0 2rem 3.4rem; counter-increment: etape; }
.etape::before {
  content: counter(etape); position: absolute; left: 0; top: -0.1rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primaire); color: var(--fond); font-weight: 700; font-size: 1rem;
}
.etape:not(:last-child)::after {
  content: ''; position: absolute; left: 1.2rem; top: 2.6rem; bottom: 0.4rem; width: 2px;
  background: var(--filet); border-radius: 1px;
}
.etape.suite::before { content: ''; background: var(--surface-douce); box-shadow: inset 0 0 0 2px var(--accent); }
.etape.suite .drapeau { position: absolute; left: 0.62rem; top: 0.52rem; color: var(--accent-texte); }
@media (min-width: 900px) {
  .etape { padding: 3.4rem 0 0 0; }
  .etape:not(:last-child)::after { left: 2.9rem; right: -1.1rem; top: 1.1rem; bottom: auto; width: auto; height: 2px; }
  .etape.suite .drapeau { top: 0.62rem; }
}
.etape h3 { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; color: var(--texte); line-height: 1.3; }
.etape p { color: var(--texte-doux); font-size: 0.98rem; margin-top: 0.35rem; }
.etape p b { color: var(--texte); font-weight: 650; }

/* — Les trois orientations : registre — */
.niveaux { margin-top: 2.25rem; border: 1px solid var(--filet); border-radius: var(--rayon); overflow: hidden; background: var(--surface); }
.niveau-ligne { display: grid; gap: 0.5rem 1.5rem; padding: 1.25rem 1.25rem; grid-template-columns: 1fr; }
.niveau-ligne + .niveau-ligne { border-top: 1px solid var(--filet); }
@media (min-width: 720px) { .niveau-ligne { grid-template-columns: 21rem 1fr; padding: 1.4rem 1.6rem; align-items: center; } }
.niveau-ligne dt { display: flex; align-items: center; gap: 0.85rem; font-weight: 650; color: var(--texte); font-size: 1.05rem; }
.niveau-ligne dd { color: var(--texte-doux); }
.niveaux .jauge i { background: var(--filet); }
.niveaux .jauge i.plein { background: var(--secondaire); }
.niveaux .jauge i.plein::after { display: none; }
.apres-niveaux { margin-top: 1.5rem; max-width: 68ch; color: var(--texte-doux); }

/* — Questions fréquentes — */
.faq { margin-top: 2rem; display: grid; gap: 0.75rem; max-width: 52rem; }
.faq details { background: var(--surface); border: 1px solid var(--filet); border-radius: 12px; }
.teinte .faq details { background: var(--fond); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.15rem; font-weight: 650; color: var(--texte); line-height: 1.4; border-radius: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--primaire); }
.faq summary svg { flex: 0 0 auto; color: var(--secondaire); transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details > div { padding: 0 1.15rem 1.1rem; color: var(--texte-doux); max-width: 68ch; }
.faq details > div p + p { margin-top: 0.6rem; }
.faq q { quotes: '« ' ' »' '“' '”'; color: var(--texte); font-weight: 600; }
:lang(en) .faq q { quotes: '“' '”'; }

/* — Cadre du programme — */
.cadre { display: grid; gap: 2rem; }
@media (min-width: 900px) { .cadre { grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; align-items: start; } }
.cadre .intro { margin-top: 0.9rem; }
.contrat { margin-top: 1.25rem; font-size: 0.93rem; color: var(--texte-doux); }
.contrat code { display: block; font-family: inherit; font-weight: 600; color: var(--texte); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.partenaires { border-top: 1px solid var(--filet); }
.partenaire { display: grid; grid-template-columns: 1fr; gap: 0.15rem; padding: 1rem 0; border-bottom: 1px solid var(--filet); }
@media (min-width: 560px) { .partenaire { grid-template-columns: 9.5rem 1fr; gap: 1.25rem; } }
.partenaire dt { font-weight: 700; color: var(--primaire); }
.partenaire dd { color: var(--texte); }
.partenaire dd span { display: block; color: var(--texte-doux); font-size: 0.93rem; margin-top: 0.1rem; }

/* — Appel final — */
.final { background: var(--champ); color: var(--champ-texte); position: relative; overflow: hidden; isolation: isolate; }
.final .arcs { position: absolute; z-index: -1; left: -14rem; bottom: -18rem; width: 36rem; height: 36rem; color: #8DB3E2; opacity: 0.1; }
.final .contenu { padding-top: 3.5rem; padding-bottom: 3.75rem; display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .final .contenu { grid-template-columns: 1fr auto; align-items: center; gap: 3rem; padding-top: 4.25rem; padding-bottom: 4.5rem; } }
.final h2 { color: var(--champ-texte); }
.final p { color: var(--champ-doux); margin-top: 0.75rem; max-width: 54ch; }
.final .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.final :focus-visible { outline-color: #D3AC4A; }
