/* Le Livret auto de PK : feuille de style unique. Famille « Atelier clair » (livret V4, décision D12).
   Encre noire, papier blanc, un seul orange ; titres Big Shoulders en capitales, texte Work Sans.
   Téléphone d'abord. Aucune ressource extérieure. */

@font-face { font-family: "Big Shoulders"; src: url("../fonts/big-shoulders-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/work-sans.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/work-sans-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }

:root {
  --encre: #1A1A1A;
  --papier: #FFFFFF;
  --orange: #E8590C;        /* grands titres, formes, fonds de bouton (texte noir dessus : 4,9:1) */
  --orange-texte: #B23F06;  /* petit texte orange sur blanc : 5,8:1 */
  --creme: #FDF1E7;
  --filet: #DCD8D3;
  --gris: #5A5550;
  --stylo: #1D3F8F;         /* l'encre bleue du stylo (et des cachets PK UNIVERSE) */
  --titre: "Big Shoulders", "Arial Narrow", "Roboto Condensed", sans-serif;
  --texte: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sign: "Instrument Serif", Georgia, "Times New Roman", serif;
  --marge: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--encre);
  background: var(--papier);
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
p, ul, ol, dl, table, figure { margin: 0 0 1rem; }
strong { font-weight: 700; }

h1, h2, h3 { margin: 0 0 1rem; }
h1, h2 {
  font-family: var(--titre);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(3rem, 13vw, 6rem); line-height: 0.92; }
h2 { font-size: clamp(2.1rem, 8vw, 3.25rem); line-height: 0.98; }
h3 {
  font-family: var(--titre);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 5vw, 1.85rem);
  line-height: 1;
  color: var(--orange);
  margin-top: 2rem;
}

.aller-contenu { position: absolute; left: -999px; top: 0; background: var(--encre); color: var(--papier); padding: .75rem 1rem; z-index: 10; }
.aller-contenu:focus { left: 0; }

.etroit { max-width: 46rem; margin: 0 auto; padding: 0 var(--marge); }
.large { max-width: 74rem; margin: 0 auto; padding: 0 var(--marge); }
.bande { padding: clamp(3rem, 9vw, 6rem) 0; }
.bande + .bande { border-top: 1px solid var(--filet); }
.petit { font-size: .92rem; color: var(--gris); }
.chapeau { font-size: clamp(1.1rem, 3.6vw, 1.3rem); line-height: 1.5; max-width: 38rem; }
.intro { max-width: 40rem; }
.signature { font-family: var(--sign); font-style: italic; font-size: clamp(1.35rem, 4.5vw, 1.75rem); line-height: 1.2; color: var(--orange-texte); }

/* ---- Boutons et liens ---- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .75rem 1.3rem;
  font: 700 1.05rem/1.2 var(--texte);
  text-decoration: none; text-align: center;
  border: 2px solid var(--encre); border-radius: 3px;
  cursor: pointer;
}
.bouton .ico { width: 1.35rem; height: 1.35rem; flex: none; }
.bouton-orange { background: var(--orange); color: var(--encre); }
.bouton-orange:hover { background: var(--encre); color: var(--orange); }
.bouton-noir { background: var(--encre); color: var(--papier); }
.bouton-noir:hover { background: var(--orange); color: var(--encre); }
.bouton-petit { min-height: 2.5rem; padding: .45rem .9rem; font-size: .95rem; }
.lien-fort { font-weight: 700; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }

/* ---- En-tête ---- */
.entete { border-bottom: 3px solid var(--encre); background: var(--papier); }
.entete-int { max-width: 74rem; margin: 0 auto; padding: .7rem var(--marge); display: flex; align-items: center; gap: 1rem; }
.marque { display: flex; align-items: center; gap: .55rem; font-family: var(--titre); font-weight: 700; text-transform: uppercase; font-size: 1.45rem; line-height: .9; text-decoration: none; margin: 0; }
.marque .logo { width: 44px; height: 44px; flex: none; }
.marque-mots span, .marque-claire span { display: block; white-space: nowrap; }
@media (max-width: 400px) { .entete .marque { font-size: 1.2rem; } .marque .logo { width: 38px; height: 38px; } .entete-int { gap: .6rem; } }
.marque-claire { display: inline-block; }
.entete .bouton { margin-left: auto; }
.nav { display: none; }
.nav ul, .menu-mobile ul { list-style: none; margin: 0; padding: 0; }
.menu-mobile { position: relative; }
.menu-mobile summary { list-style: none; cursor: pointer; font-weight: 700; padding: .55rem .2rem; min-height: 2.5rem; display: flex; align-items: center; }
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile summary::after { content: ""; width: .55rem; height: .55rem; margin-left: .45rem; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg) translateY(-2px); }
.menu-mobile[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.menu-mobile nav { position: absolute; right: 0; top: calc(100% + .7rem); background: var(--papier); border: 2px solid var(--encre); min-width: 14rem; z-index: 5; }
.menu-mobile a { display: block; padding: .8rem 1rem; text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--filet); }
.menu-mobile li:last-child a { border-bottom: 0; }
[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 6px; }

@media (min-width: 900px) {
  .nav { display: block; margin-left: auto; }
  .nav ul { display: flex; gap: 1.6rem; }
  .nav a { text-decoration: none; font-weight: 700; }
  .nav a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
  .entete .bouton { margin-left: 1.6rem; }
  .menu-mobile { display: none; }
}

/* ---- Ouverture (accueil) ---- */
.ouverture {
  max-width: 74rem; margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) var(--marge) clamp(3rem, 8vw, 5rem);
  display: grid; gap: 2.5rem; align-items: center;
}
.ouverture h1 { max-width: 11ch; }
.ouverture .signature { margin-top: -.25rem; }
.prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin: 1.5rem 0 0; padding-top: 1rem; border-top: 3px solid var(--encre); max-width: 32rem; }
.prix p { margin: 0; }
.prix-montant { font-family: var(--titre); font-weight: 700; font-size: clamp(2.4rem, 9vw, 3.2rem); line-height: 1; }
.prix-detail { color: var(--gris); }
.ouverture-visuel { display: grid; max-width: 24rem; width: 100%; margin: 0 auto; }
.ouverture-visuel > * { grid-area: 1 / 1; }
.cadran-ouverture { width: 100%; align-self: start; }
.livret-couverture {
  justify-self: center; width: 50%; margin-top: 24%;
  transform: rotate(-4deg);
  border: 1px solid var(--filet);
  box-shadow: 10px 12px 0 -2px var(--encre);
}
.cadran .graduations line { stroke: var(--encre); stroke-width: 3; stroke-linecap: square; }
.cadran .graduations line.long { stroke-width: 6; }
.cadran .aiguille path { fill: var(--orange); }
.cadran .aiguille circle { fill: var(--encre); }
.cadran .aiguille { transform-origin: 200px 210px; transform: rotate(58deg); animation: aiguille 1.6s cubic-bezier(.2, .9, .25, 1.15) .2s both; }
@keyframes aiguille { from { transform: rotate(-112deg); } to { transform: rotate(58deg); } }

@media (min-width: 900px) {
  .ouverture { grid-template-columns: 1.15fr .85fr; gap: 3rem; padding-top: 2.5rem; }
  .ouverture h1 { font-size: clamp(3.5rem, 6.4vw, 5.4rem); max-width: 12ch; }
  .ouverture-visuel { max-width: none; }
}

/* ---- Le miroir ---- */
.miroir { background: var(--encre); color: var(--papier); }
.bande.miroir + .bande { border-top: 0; }
.anaphore { list-style: none; padding: 0; margin: 2rem 0; }
.anaphore li { font-weight: 700; font-size: clamp(1.15rem, 4vw, 1.35rem); padding: .6rem 0 .6rem 1rem; border-left: 4px solid var(--orange); margin-bottom: .75rem; }
.soulagement { font-family: var(--sign); font-style: italic; font-size: clamp(1.7rem, 6vw, 2.4rem); line-height: 1.15; color: var(--orange); margin: 0; }

/* ---- Contenu du livret ---- */
.rubriques { display: grid; gap: 2.5rem; margin-top: 2rem; }
.rubriques dl { margin: 0; }
.rubriques dl > div { display: grid; gap: .3rem; padding: 1rem 0; border-top: 1px solid var(--encre); }
.rubriques dl > div:last-child { border-bottom: 1px solid var(--encre); }
.rubriques dt { font-family: var(--titre); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; line-height: 1; color: var(--orange); }
.rubriques dd { margin: 0; }
.exemple-suivi { margin: 0; align-self: start; }
.exemple-titre { font-family: var(--titre); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; margin-bottom: .5rem; }
.exemple-suivi table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.exemple-suivi th { font-size: .78rem; font-weight: 700; text-align: left; padding: .45rem .4rem; border: 1px solid var(--encre); background: var(--creme); }
.exemple-suivi td { height: 2.6rem; padding: .3rem .4rem; border: 1px solid var(--encre); font-family: var(--sign); font-style: italic; font-size: 1.2rem; color: var(--stylo); white-space: nowrap; }
.exemple-suivi figcaption { font-size: .9rem; color: var(--gris); margin-top: .5rem; }
.pages-livret { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.pages-livret figure { margin: 0; }
.pages-livret img, .apercu img { border: 1px solid var(--filet); box-shadow: 6px 6px 0 -1px var(--creme); }
.pages-livret figcaption, .apercu figcaption { font-size: .9rem; color: var(--gris); margin-top: .5rem; }
@media (min-width: 760px) {
  .rubriques dl > div { grid-template-columns: 13rem 1fr; gap: 1.5rem; align-items: baseline; }
}
@media (min-width: 1000px) {
  .contenu-livret .large { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0 4rem; }
  .contenu-livret h2, .contenu-livret .intro { grid-column: 1 / -1; }
  .rubriques { margin-top: 1rem; }
  .pages-livret { margin-top: 1rem; align-self: start; }
}

/* ---- Cahier de transparence ---- */
.etapes { list-style: none; padding: 0; counter-reset: etape; }
.etapes li { counter-increment: etape; position: relative; padding: .35rem 0 .35rem 3.2rem; margin-bottom: .9rem; min-height: 2.4rem; }
.etapes li::before {
  content: counter(etape);
  position: absolute; left: 0; top: 0;
  width: 2.3rem; height: 2.3rem; display: grid; place-items: center;
  font-family: var(--titre); font-weight: 700; font-size: 1.35rem;
  background: var(--encre); color: var(--papier); border-radius: 50%;
}
.encadre { background: var(--creme); border-left: 6px solid var(--orange); padding: 1rem 1.25rem; font-weight: 700; margin: 1.5rem 0; }
.liste-forte { padding-left: 1.2rem; }
.liste-forte li { margin-bottom: .6rem; }
.liste-forte li::marker { color: var(--orange); }

/* ---- Application ---- */
.application { background: var(--creme); }
.bande.application + .bande { border-top: 0; }
.application-int { display: grid; gap: 1.5rem; align-items: end; }
.mascotte { width: 160px; justify-self: center; }
@media (min-width: 760px) {
  .application-int { grid-template-columns: 1fr 220px; }
  .mascotte { width: 220px; }
}

/* ---- En bref, contact ---- */
.fiche-produit { width: 100%; border-collapse: collapse; }
.fiche-produit th, .fiche-produit td { text-align: left; vertical-align: top; padding: .85rem 0; border-bottom: 1px solid var(--filet); }
.fiche-produit th { font-family: var(--titre); font-weight: 700; text-transform: uppercase; font-size: 1.25rem; width: 8.5rem; padding-right: 1rem; }
.fiche-produit tr:first-child th, .fiche-produit tr:first-child td { border-top: 1px solid var(--encre); }

/* ---- Questions ---- */
.question { border-top: 1px solid var(--filet); }
.question:last-of-type { border-bottom: 1px solid var(--filet); }
.question summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; min-height: 3rem; }
.question summary::-webkit-details-marker { display: none; }
.question summary :is(h2, h3) { font-family: var(--texte); text-transform: none; color: var(--encre); font-size: 1.1rem; line-height: 1.35; margin: 0; }
.question summary::after { content: "+"; font-family: var(--titre); font-size: 2rem; line-height: 1; color: var(--orange-texte); flex: none; }
.question[open] summary::after { content: "−"; }
.question p { padding: 0 0 1rem; margin: 0; max-width: 38rem; }

/* ---- Appel final ---- */
.appel-final { background: var(--encre); color: var(--papier); }
.lien-clair { color: var(--papier); }

/* ---- Pages intérieures ---- */
.page-titre { padding-bottom: clamp(1.5rem, 5vw, 3rem); }
.page-titre + .bande { border-top: 3px solid var(--encre); }
.page-titre h1 { font-size: clamp(2.8rem, 11vw, 4.75rem); }
.deux-voies, .app-grille { display: grid; gap: 2rem; }
@media (min-width: 900px) {
  .deux-voies, .app-grille { max-width: 74rem; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
}
.voie { border: 2px solid var(--encre); padding: 1.4rem; }
.voie h2 { font-size: clamp(1.9rem, 6vw, 2.4rem); }
.voie-principale { background: var(--creme); border-color: var(--orange); }
.apercu { margin: 0; max-width: 18rem; }
.chiffre { border-top: 3px solid var(--encre); padding-top: 1rem; margin: 0 0 3rem; }
.chiffre-valeur { font-family: var(--titre); font-weight: 700; font-size: clamp(3.5rem, 15vw, 6rem); line-height: .9; color: var(--orange); margin: 0 0 .5rem; }
.source { display: inline-block; margin-top: .4rem; font-size: .88rem; color: var(--gris); }
.merci h2 { margin-top: 3rem; }
.texte-legal h2 { font-size: clamp(1.6rem, 6vw, 2rem); margin-top: 2.5rem; }
.texte-legal ul { padding-left: 1.2rem; }

/* ---- Formulaires ---- */
.formulaire { margin: 0; }
.champ { margin-bottom: 1.1rem; }
.champ > label, .champ legend { display: block; font-weight: 700; margin-bottom: .35rem; }
.facultatif { font-weight: 400; color: var(--gris); font-size: .92rem; }
.champ input[type="text"], .champ input[type="tel"], .champ input[type="email"], .champ input[type="number"], .champ input[type="password"], .champ textarea {
  width: 100%; min-height: 3rem; padding: .65rem .8rem;
  font: 1rem/1.4 var(--texte); color: var(--encre); background: var(--papier);
  border: 2px solid var(--encre); border-radius: 2px;
}
.champ input[type="number"] { max-width: 7rem; }
.champ textarea { min-height: 6rem; resize: vertical; }
.champ input:focus, .champ textarea:focus { outline: 3px solid var(--orange); outline-offset: 1px; }
.champ-case { display: flex; gap: .7rem; align-items: flex-start; }
.champ-case input { width: 1.4rem; height: 1.4rem; margin: .15rem 0 0; flex: none; accent-color: var(--encre); }
.champ-case label { font-weight: 400; margin: 0; }
.champ-choix { border: 0; padding: 0; margin: 0 0 1.1rem; }
.champ-choix label { display: inline-flex; align-items: center; gap: .5rem; margin-right: 1.5rem; min-height: 2.75rem; font-weight: 400; }
.champ-choix input { width: 1.3rem; height: 1.3rem; accent-color: var(--encre); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Pied de page ---- */
.pied { background: var(--encre); color: #EDEBE8; padding: 3rem 0 1.5rem; }
.pied a { color: var(--papier); }
.pied-int { max-width: 74rem; margin: 0 auto; padding: 0 var(--marge); display: grid; gap: 2rem; }
.pied h2 { font-size: 1.3rem; color: var(--orange); margin-bottom: .6rem; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: .45rem; }
.marque-claire { color: var(--papier); font-size: 1.9rem; }
.pied-sign { font-family: var(--sign); font-style: italic; font-size: 1.25rem; margin-top: .6rem; }
.pied-pku { max-width: 74rem; margin: 2.5rem auto 0; padding: 1.25rem var(--marge) 0; border-top: 1px solid #3A3A3A; display: flex; align-items: center; gap: .75rem; font-size: .92rem; }
.pied-pku p { margin: 0; }
@media (min-width: 760px) { .pied-int { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---- Barre de commande (téléphone) ---- */
.barre-mobile {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 8;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem var(--marge) calc(.6rem + env(safe-area-inset-bottom));
  background: var(--papier); border-top: 2px solid var(--encre);
}
.barre-mobile p { margin: 0; }
.barre-mobile strong { font-family: var(--titre); font-size: 1.5rem; }
.barre-mobile span { color: var(--gris); font-size: .9rem; }
body.avec-barre { padding-bottom: 4.5rem; }
@media (min-width: 900px) { .barre-mobile { display: none; } body.avec-barre { padding-bottom: 0; } }

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