/*
Theme Name: Adhésif personnalisé
Description: Thème sur mesure d adhesif-personnalise.fr, design du dossier de lancement.
Version: 2.0.2
Text Domain: adhesif
*/
/* adhesif-personnalise.fr : previsualisation. Systeme de design en variables CSS. */
:root {
  --encre: #2b211a;
  --texte: #4a3d33;
  --doux: #7b6a5c;
  --brun: #5b3d27;
  --brun-fonce: #3a2619;
  --kraft: #c39a6b;
  --kraft-clair: #ead9c2;
  --fond: #faf6f0;
  --papier: #ffffff;
  --sable: #f2e9dc;
  --ligne: #e2d5c3;
  --accent: #a8501f;
  --accent-fonce: #873d14;
  --ok: #3d6b4a;
  --rayon: 10px;
  --ombre: 0 8px 24px rgba(58, 38, 25, .08);
  --police: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --titre: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--police); color: var(--texte); background: var(--fond); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-fonce); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--titre); color: var(--encre); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
figure { margin: 0; }
.largeur { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.largeur.etroit { max-width: 800px; }
.todo { background: #fff3c4; border: 1px dashed #c9a227; color: #6b5200; border-radius: 4px; padding: 0 6px; font-size: .88em; font-family: var(--police); font-weight: 600; white-space: normal; }
.petit { font-size: .88rem; color: var(--doux); }
.rubrique { text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 .7em; }
.chapo { font-size: 1.13rem; color: var(--texte); }

/* ------------------------------------------------------------ en-tete */
.bandeau { background: var(--brun-fonce); color: var(--kraft-clair); font-size: .82rem; }
.bandeau .largeur { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; padding-top: 7px; padding-bottom: 7px; }
.bandeau span::before { content: "✓ "; color: var(--kraft); }
.entete { background: var(--papier); border-bottom: 1px solid var(--ligne); position: sticky; top: 0; z-index: 20; }
.entete .largeur { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); }
.logo-image { height: 46px; width: auto; }
.logo-plaque { display: inline-block; background: #fff; border-radius: 10px; padding: 10px 14px; }
.logo-plaque .logo-image { height: 44px; }
nav { margin-left: auto; }
.menu { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > span, .menu .lien-simple { display: block; padding: 22px 12px; font-size: .95rem; font-weight: 600; color: var(--encre); cursor: pointer; text-decoration: none; }
.menu > li.groupe > span::after { content: " ▾"; color: var(--kraft); font-size: .8em; }
.menu .groupe ul { display: none; position: absolute; top: 100%; left: 0; min-width: 270px; background: var(--papier); border: 1px solid var(--ligne); border-top: 3px solid var(--kraft); border-radius: 0 0 var(--rayon) var(--rayon); box-shadow: var(--ombre); list-style: none; margin: 0; padding: 8px; }
.menu .groupe:hover ul, .menu .groupe:focus-within ul { display: block; }
.menu .groupe ul a { display: block; padding: 9px 12px; border-radius: 6px; text-decoration: none; color: var(--texte); font-size: .94rem; }
.menu .groupe ul a:hover, .menu .groupe ul a[aria-current] { background: var(--sable); color: var(--encre); }
.lien-panier { display: inline-block; margin-left: 8px; padding: 9px 16px; border-radius: 999px; background: var(--brun); color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; }
.lien-panier:hover { background: var(--brun-fonce); color: #fff; }
.ouvre-menu, .burger { display: none; }

/* ------------------------------------------------------------ boutons */
.bouton { display: inline-block; background: var(--accent); color: #fff; border: 2px solid var(--accent); border-radius: 8px; padding: 12px 22px; font: 700 1rem var(--police); text-decoration: none; cursor: pointer; text-align: center; }
.bouton:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); color: #fff; }
.bouton.contour { background: transparent; color: var(--accent-fonce); }
.bouton.contour:hover { background: var(--accent); color: #fff; }
.bouton.plein { display: block; width: 100%; }
.bouton[disabled] { opacity: .55; cursor: not-allowed; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 1.4em 0 1em; }
.actions.droite { justify-content: flex-end; }
.rassure { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; margin: 1em 0 0; font-size: .9rem; color: var(--doux); }
.rassure li::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* ------------------------------------------------------------ sections */
.section { padding: 64px 0; }
.section.alt { background: var(--sable); }
.sous-titre { color: var(--doux); margin-top: -.4em; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.deux.haut { align-items: start; }
.deux figure img, .illu img { border-radius: var(--rayon); box-shadow: var(--ombre); }
.deux figure { margin: 1.2em 0; }
.liste-coche { list-style: none; padding: 0; margin: 1em 0; }
.liste-coche li { padding: 7px 0 7px 30px; position: relative; border-bottom: 1px solid var(--ligne); }
.liste-coche li:last-child { border-bottom: 0; }
.liste-coche li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }

/* ---------------------------------------------------------------- hero */
/* version d'origine : texte a gauche, photo a droite, sur fond sable */
.hero { background: var(--sable); }
.hero .largeur { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 52px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero-photo img { width: 100%; border-radius: var(--rayon); box-shadow: var(--ombre); }
.hero .chapo { font-size: 1.13rem; }
.hero-actions { margin: 1.4em 0 1.1em; }
.hero-devis { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 1.3em; font-weight: 600; color: var(--encre); }
.hero-devis .bouton { padding: 8px 18px; font-size: .95rem; }
.hero .rassure { margin-bottom: 0; }
/* le bouton qui doit attirer l'oeil : halo qui bat, reflet qui passe */
.bouton.phare { position: relative; overflow: hidden; font-size: 1.16rem; padding: 17px 34px; border-radius: 10px; background: #cf6321; border-color: #cf6321; box-shadow: 0 10px 26px rgba(207, 99, 33, .45); animation: halo 2.2s ease-out infinite; }
.bouton.phare:hover { background: #e0722c; border-color: #e0722c; }
.bouton.phare::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); transform: skewX(-18deg); animation: reflet 3.2s ease-in-out infinite; }
@keyframes halo { 0% { box-shadow: 0 10px 26px rgba(207, 99, 33, .45), 0 0 0 0 rgba(255, 170, 100, .75); } 70%, 100% { box-shadow: 0 10px 26px rgba(207, 99, 33, .45), 0 0 0 18px rgba(255, 170, 100, 0); } }
@keyframes reflet { 0%, 55% { left: -60%; } 100% { left: 130%; } }
/* petit rouleau de ruban, vu de cote : signe visuel du site */
.rouleau { display: block; width: var(--t, 46px); height: var(--t, 46px); border-radius: 50%; border: calc(var(--t, 46px) * .28) solid var(--kraft); background: var(--papier); box-shadow: inset 0 0 0 2px var(--brun), 0 0 0 2px var(--brun), 0 8px 18px rgba(0, 0, 0, .35); }
/* sous chaque titre de section : un bout de ruban qui sort de son rouleau */
.section h2::after { content: ""; display: block; width: 78px; height: 18px; margin-top: 12px; background: radial-gradient(circle at 9px 9px, var(--papier) 0 3px, var(--brun) 3px 4.5px, var(--kraft) 4.5px 8px, var(--brun) 8px 9px, transparent 9.5px) no-repeat, linear-gradient(var(--kraft), var(--kraft)) 9px 11px / 69px 7px no-repeat; }
.section h2.centre::after { margin-left: auto; margin-right: auto; }
.formulaire h2::after, .recap h2::after { display: none; }
.apres-parcours { max-width: 940px; margin: 52px auto 0; }
.apres-parcours img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--rayon); box-shadow: var(--ombre); }
@media (max-width: 1020px) {
  .hero .largeur { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 32px; padding-bottom: 40px; }
}
@media (max-width: 760px) {
  .bouton.phare { display: block; padding: 16px 18px; }
  .hero-devis .bouton { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .bouton.phare, .bouton.phare::after { animation: none; } }
/* accueil : fond brun, photo bord a bord, essai du nom sur un ruban */
.hero-brun { background: var(--brun-fonce); }
.hero-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 620px; }
.hero-brun .hero-texte { align-self: center; padding: 60px 64px 60px max(22px, calc((100vw - 1180px) / 2 + 22px)); }
.hero-brun .rubrique { color: var(--kraft); }
.hero-brun h1 { color: #fff; font-size: clamp(2rem, 3.1vw, 2.9rem); }
.hero-brun h1 span { display: block; font-size: .74em; color: var(--kraft); margin-top: .18em; }
.hero-brun .chapo { color: #efe4d4; }
.hero-brun .hero-devis { color: #fff; }
.hero-brun .bouton.contour { color: #fff; border-color: var(--kraft); }
.hero-brun .bouton.contour:hover { background: var(--kraft); border-color: var(--kraft); color: var(--brun-fonce); }
.hero-brun .rassure { color: var(--kraft-clair); }
.hero-brun .rassure li::before { color: var(--kraft); }
.hero-visuel { position: relative; min-height: 360px; }
.hero-brun .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.essai { position: absolute; left: 40px; right: 40px; bottom: 34px; background: var(--papier); border-radius: 14px; box-shadow: 0 16px 36px rgba(0, 0, 0, .38); padding: 18px 22px 14px; overflow: hidden; }
.essai label { display: block; font-weight: 700; color: var(--encre); margin: 0 0 8px; }
.essai-saisie { display: flex; align-items: center; gap: 14px; }
.essai-saisie input { flex: 1 1 auto; min-width: 0; width: auto; font: 600 1rem var(--police); color: var(--encre); padding: 11px 14px; border: 2px solid var(--ligne); border-radius: 8px; background: var(--fond); }
.essai-saisie input:focus { outline: none; border-color: var(--accent); background: #fff; }
.essai-fonds { display: flex; gap: 8px; flex: none; }
.essai-fonds button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ligne); cursor: pointer; padding: 0; }
.essai-fonds button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--papier), 0 0 0 5px var(--accent); }
.essai-ruban { --fond: #ffffff; --encre: #3a2619; display: flex; align-items: center; gap: 44px; height: 58px; margin: 18px -40px 12px; padding: 0 30px; background: var(--fond); color: var(--encre); border-top: 1px solid rgba(58, 38, 25, .22); border-bottom: 1px solid rgba(58, 38, 25, .22); box-shadow: 0 6px 14px rgba(58, 38, 25, .2); transform: rotate(-1.2deg); overflow: hidden; white-space: nowrap; font: 800 1.25rem var(--police); letter-spacing: .08em; }
.essai-ruban span { flex: none; }
.essai .petit { margin: 0; color: var(--texte); font-weight: 600; }
@media (max-width: 1020px) {
  .hero-grille { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-brun .hero-texte { padding: 32px 22px 36px; }
  .hero-visuel { min-height: 0; padding-bottom: 28px; }
  .hero-brun .hero-photo img { position: static; height: auto; aspect-ratio: 16 / 10; }
  .essai { position: relative; left: auto; right: auto; bottom: auto; margin: -44px 14px 0; padding: 16px 16px 12px; }
  .essai-ruban { font-size: 1.05rem; height: 50px; gap: 30px; }
}

/* ------------------------------------------------------- cartes produit */
.produits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.produit { background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 0 22px 22px; overflow: hidden; display: flex; flex-direction: column; }
.produit.vedette { border: 2px solid var(--accent); box-shadow: var(--ombre); }
.produit h3 { font-size: 1.5rem; margin-bottom: .1em; }
.produit .matiere { color: var(--doux); font-size: .92rem; margin-bottom: .8em; }
.produit .prix { margin-top: auto; padding-top: 10px; }
.prix small { display: block; color: var(--doux); font-size: .82rem; margin-top: 3px; }
.etiquette { align-self: flex-start; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-radius: 999px; padding: 3px 12px; margin: 0 0 12px; }
.etiquette.neutre { background: var(--kraft-clair); color: var(--brun); }
.produit-photo { position: relative; margin: 0 -22px 20px; }
.produit-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sable); border-bottom: 3px solid var(--kraft); }
/* le type de ruban, colle sur la photo comme un morceau de scotch */
.scotch-type { position: absolute; top: 18px; left: -10px; padding: 7px 22px 7px 26px; font: 800 .8rem var(--police); letter-spacing: .14em; text-transform: uppercase; transform: rotate(-3deg); box-shadow: 0 3px 8px rgba(58, 38, 25, .3); border-right: 2px dotted rgba(58, 38, 25, .45); }
.scotch-type.blanc { background: rgba(253, 253, 251, .96); color: #1c1c1c; }
.scotch-type.havane { background: linear-gradient(180deg, #c9995a, #b98443); color: #2b1a0c; }
.scotch-type.kraft { background: #c7a57c; color: #2b1a0c; }
.apres-produits { margin-top: 26px; text-align: center; }

/* --------------------------------------------------------------- etapes */
.etapes { list-style: none; counter-reset: e; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 0; margin: 24px 0 0; }
.etapes.vertical { grid-template-columns: 1fr; gap: 10px; }
.etapes li { counter-increment: e; background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 18px 18px 18px 62px; position: relative; }
.etapes li::before { content: counter(e); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--brun); color: #fff; font-weight: 700; display: grid; place-items: center; }
.etapes b { display: block; color: var(--encre); }
.etapes span { font-size: .93rem; }

/* ------------------------------------------------------------------ faq */
.faq details { background: var(--papier); border: 1px solid var(--ligne); border-radius: 8px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 600; color: var(--encre); list-style-position: inside; }
.faq details[open] summary { border-bottom: 1px solid var(--ligne); }
.faq details > div { padding: 14px 18px 2px; }
.faq h2 { margin-top: 1.6em; }
.section.faq h2 { margin-top: 0; }

/* ---------------------------------------------------------------- fiche */
.fiche { padding: 40px 0 56px; }
.fiche .largeur { display: grid; grid-template-columns: 1.08fr 1fr; gap: 44px; align-items: start; }
.galerie { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; position: sticky; top: 90px; }
.galerie figure { overflow: hidden; border-radius: 8px; background: var(--sable); aspect-ratio: 1; }
.galerie img { width: 100%; height: 100%; object-fit: cover; }
.galerie .g0 { grid-column: 1 / -1; aspect-ratio: 4 / 3.4; }
.galerie.n1 .g0, .galerie.n2 .g0 { aspect-ratio: 4 / 3; }
.galerie.n2 .g1, .galerie.n3 .g1, .galerie.n3 .g2 { grid-column: span 2; aspect-ratio: 4 / 3; }
.achat h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.surnom { display: inline-block; background: var(--kraft-clair); color: var(--brun); border-radius: 999px; padding: 3px 14px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px; }
.points { padding-left: 20px; margin: 0 0 22px; }
.points li { margin-bottom: 4px; }
.config { background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 22px; box-shadow: var(--ombre); }
.config .prix { font-size: 1.3rem; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--ligne); }
.config .champs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.config .plein { grid-column: 1 / -1; }
.note-config { margin: 10px 0 14px; }
[hidden] { display: none !important; }
.config .bouton + .bouton { margin-top: 10px; }
.marquage { border: 1px solid var(--ligne); border-radius: 8px; padding: 12px 14px 14px; margin: 0; min-width: 0; }
.marquage legend { font-size: .86rem; font-weight: 700; color: var(--encre); padding: 0 6px; }
.marquage .choix { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 6px; cursor: pointer; }
.marquage .choix input { accent-color: var(--accent); margin: 0; }
.marquage .champ-logo, .marquage .champ-texte { margin-top: 10px; }
/* galerie : chaque photo s'ouvre en grand */
.galerie figure { cursor: zoom-in; transition: box-shadow .2s; }
.galerie figure:hover, .galerie figure:focus-visible { box-shadow: 0 0 0 3px var(--kraft); outline: none; }
dialog { border: 0; padding: 0; color: var(--texte); }
dialog::backdrop { background: rgba(34, 20, 11, .82); }
.v-ferme { position: absolute; top: 10px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--encre); font: 400 1.7rem/1 var(--police); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.visionneuse { background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.visionneuse[open] { display: flex; align-items: center; gap: 10px; }
.visionneuse figure { margin: 0; }
.visionneuse img { max-width: min(1100px, 80vw); max-height: 84vh; width: auto; border-radius: var(--rayon); background: var(--sable); }
.visionneuse figcaption { text-align: center; color: #fff; font-size: .9rem; margin-top: 8px; }
.v-nav { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--encre); font: 400 2rem/1 var(--police); cursor: pointer; }
.visionneuse .v-ferme { top: -14px; right: 44px; }
/* apercu du ruban */
.apercu { width: min(820px, 94vw); border-radius: 14px; padding: 28px 30px 22px; background: var(--papier); box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.apercu h2 { margin: 0 44px .3em 0; }
.apercu-style { color: var(--doux); margin-bottom: 1.2em; }
.apercu-cadre { display: grid; grid-template-columns: 54px 1fr; gap: 6px 8px; }
.cote { display: flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 700; color: var(--brun); white-space: nowrap; }
.cote-l { border-bottom: 2px solid var(--brun); border-left: 2px solid var(--brun); border-right: 2px solid var(--brun); height: 26px; align-items: flex-start; line-height: 1; }
.cote-l span { background: var(--papier); padding: 0 8px; transform: translateY(-2px); }
.cote-h { border-right: 2px solid var(--brun); border-top: 2px solid var(--brun); border-bottom: 2px solid var(--brun); margin: 18px 0; padding-right: 6px; }
.apercu-support { background: linear-gradient(180deg, #c9a474, #bf9763); padding: 18px 0; border-radius: 6px; overflow: hidden; }
.apercu-bande { display: flex; width: 100%; aspect-ratio: 300 / 48; box-shadow: 0 3px 10px rgba(58, 38, 25, .35); overflow: hidden; }
.motif { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; }
.motif img { max-height: 70%; max-width: 84%; width: auto; object-fit: contain; }
.motif b { font-family: var(--police); font-weight: 800; letter-spacing: .04em; white-space: nowrap; line-height: 1; }
.apercu-reglages { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin: 16px 0 0; }
.apercu-reglages label, .apercu-reglages p { display: flex; align-items: center; gap: 10px; margin: 0; }
.apercu-reglages select { width: auto; margin: 0; }
.apercu-sans-couleur { color: var(--doux); font-size: .92rem; }
.marquage .champ-texte + .choix { margin-top: 14px; }
.apercu-couleur { display: flex; align-items: center; gap: 10px; margin: 0; }
.apercu-couleur input { width: 46px; height: 32px; padding: 2px; border: 1px solid #cdbda8; border-radius: 6px; background: #fff; cursor: pointer; }
.apercu-info { margin: 14px 0 0; font-weight: 600; color: var(--accent-fonce); }
.apercu-info:empty { display: none; }
.apercu .petit { margin: 14px 0 0; }
@media (max-width: 560px) {
  .apercu { padding: 22px 16px 16px; }
  .apercu-cadre { grid-template-columns: 40px 1fr; }
  .cote { font-size: .7rem; }
  .cote-h { margin: 10px 0; }
  .apercu-support { padding: 10px 0; }
  .visionneuse img { max-width: 92vw; }
  .v-nav { position: absolute; bottom: -4px; }
  .v-prec { left: 12px; } .v-suiv { right: 12px; }
  .visionneuse .v-ferme { right: 4px; }
}
.config.sans-panier .bouton { margin-top: 10px; }
label { display: block; font-size: .86rem; font-weight: 600; color: var(--encre); }
select, input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=file], textarea { display: block; width: 100%; margin-top: 5px; padding: 10px 11px; border: 1px solid #cdbda8; border-radius: 7px; background: #fff; font: 400 .97rem var(--police); color: var(--encre); }
select:focus, input:focus, textarea:focus { outline: 2px solid var(--kraft); outline-offset: 1px; }
.specs { width: 100%; border-collapse: collapse; background: var(--papier); border: 1px solid var(--ligne); border-radius: 8px; overflow: hidden; margin: 1em 0; font-size: .96rem; }
.specs th, .specs td { text-align: left; padding: 11px 15px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 36%; color: var(--encre); background: #fbf7f1; font-weight: 600; }
.specs.compare th { width: auto; }
.specs.compare tr:first-child th { background: var(--brun); color: #fff; }
.cartes-liens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.carte-lien { display: block; background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; text-decoration: none; color: var(--texte); transition: box-shadow .2s, transform .2s; }
.carte-lien:hover { box-shadow: var(--ombre); transform: translateY(-2px); color: var(--texte); }
.carte-lien img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sable); border-bottom: 3px solid var(--kraft); }
.carte-texte { display: block; padding: 16px 18px 18px; }
.carte-lien b { display: block; color: var(--accent-fonce); font-family: var(--titre); font-size: 1.08rem; margin-bottom: 4px; text-decoration: underline; text-underline-offset: 3px; }
.carte-texte span { font-size: .93rem; }

/* ------------------------------------- parcours : le ruban relie les etapes */
.centre { text-align: center; }
.parcours { list-style: none; position: relative; max-width: 940px; margin: 40px auto 0; padding: 0; display: grid; gap: 38px; }
.etape { display: grid; grid-template-columns: 1fr 190px 1fr; align-items: center; }
.pastille { grid-column: 2; grid-row: 1; justify-self: end; position: relative; z-index: 2; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--brun); color: #fff; border: 2px solid var(--brun); font: 700 1.15rem var(--police); transition: background .35s, color .35s, transform .35s; }
.carte-etape { grid-column: 1; grid-row: 1; position: relative; z-index: 1; background: var(--papier); border: 1px solid var(--ligne); border-radius: 14px; padding: 22px 26px; box-shadow: var(--ombre); transition: opacity .45s, transform .45s; }
.etape:nth-child(even) .pastille { justify-self: start; }
.etape:nth-child(even) .carte-etape { grid-column: 3; }
.carte-etape b { display: block; font-family: var(--titre); font-size: 1.18rem; color: var(--encre); margin-bottom: 4px; }
.carte-etape > span { font-size: .96rem; }
/* le petit morceau de ruban qui tient la carte */
.carte-etape::before { content: ""; position: absolute; top: -11px; right: 34px; width: 76px; height: 22px; background: rgba(195, 154, 107, .92); border-left: 2px dotted rgba(91, 61, 39, .45); border-right: 2px dotted rgba(91, 61, 39, .45); box-shadow: 0 2px 4px rgba(58, 38, 25, .18); transform: rotate(4deg); transition: transform .4s cubic-bezier(.3, 1.5, .5, 1), opacity .3s; }
.etape:nth-child(even) .carte-etape::before { right: auto; left: 34px; transform: rotate(-4deg); }
.parcours-ruban { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.ruban-fond { stroke: var(--kraft); stroke-width: 30; }
.ruban-bord { stroke: rgba(58, 38, 25, .22); stroke-width: 32; stroke-dasharray: 0; mix-blend-mode: multiply; fill: none; display: none; }
.ruban-texte { font: 800 10px var(--police); letter-spacing: .14em; fill: var(--brun-fonce); }
.parcours-rouleau { position: absolute; left: -23px; top: -23px; z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 13px solid var(--kraft); background: var(--papier); box-shadow: inset 0 0 0 2px var(--brun), 0 0 0 2px var(--brun), 0 6px 14px rgba(58, 38, 25, .3); opacity: 0; transition: opacity .25s; will-change: transform; pointer-events: none; }
/* etat d'attente, pose seulement quand le script tourne */
.parcours.anime .etape:not(.colle) .pastille { background: var(--sable); color: var(--brun); }
.parcours.anime .etape:not(.colle) .carte-etape { opacity: .42; transform: translateY(10px); }
.parcours.anime .etape:not(.colle) .carte-etape::before { opacity: 0; transform: rotate(0) scaleX(.2); }
.parcours.anime .etape.colle .pastille { transform: scale(1.08); }
@media (max-width: 760px) {
  .parcours { gap: 22px; }
  .etape { grid-template-columns: 54px 1fr; column-gap: 16px; }
  .pastille, .etape:nth-child(even) .pastille { grid-column: 1; justify-self: center; width: 44px; height: 44px; font-size: 1rem; }
  .carte-etape, .etape:nth-child(even) .carte-etape { grid-column: 2; padding: 16px 18px; }
  .ruban-fond { stroke-width: 22; }
  .ruban-texte { font-size: 8px; }
  .parcours-rouleau { width: 38px; height: 38px; left: -19px; top: -19px; border-width: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .pastille, .carte-etape, .carte-etape::before { transition: none; }
}

/* -------------------------------------------------------------- article */
.article { padding: 48px 0 72px; background: var(--papier); }
.article h2 { margin-top: 1.8em; }
.article h3 { margin-top: 1.4em; }
.article li { margin-bottom: .45em; }
.illu { margin: 1.8em 0; }
.illu figcaption { font-size: .86rem; color: var(--doux); margin-top: 8px; text-align: center; }

/* ---------------------------------------------------------- formulaires */
.formulaire { background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 26px; box-shadow: var(--ombre); display: grid; gap: 14px; }
.formulaire h1 { font-size: 1.8rem; margin: 0; }
.formulaire h2 { font-size: 1.2rem; margin: .4em 0 0; }
.formulaire .ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.formulaire p { margin: 0; }
.recap { background: var(--sable); border-radius: var(--rayon); padding: 24px; }
.panier { width: 100%; border-collapse: collapse; background: var(--papier); border: 1px solid var(--ligne); margin: 1.4em 0; }
.panier th, .panier td { padding: 13px 15px; border-bottom: 1px solid var(--ligne); text-align: left; vertical-align: top; }
.panier th { background: var(--brun); color: #fff; font-size: .88rem; }
.panier .total td { text-align: right; }
.panier .fort td { font-weight: 700; color: var(--encre); background: var(--sable); }
.legal h2 { margin-top: 1.6em; font-size: 1.25rem; }

/* ----------------------------------------------------------------- pied */
.pied { background: var(--brun-fonce); color: #d9c8b4; padding: 52px 0 28px; font-size: .93rem; }
.pied .largeur { display: grid; grid-template-columns: 1fr 2.6fr; gap: 44px; }
.pied-marque p { margin-top: 12px; }
.pied-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.pied h2 { font: 700 .78rem var(--police); text-transform: uppercase; letter-spacing: .08em; color: var(--kraft); margin-bottom: 12px; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 7px; }
.pied a { color: #efe3d3; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; margin: 0; font-size: .82rem; color: #b9a690; }

/* ----------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .burger { display: block; margin-left: auto; padding: 9px 16px; border: 1px solid var(--ligne); border-radius: 8px; font-weight: 600; cursor: pointer; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--papier); border-bottom: 1px solid var(--ligne); box-shadow: var(--ombre); max-height: 80vh; overflow: auto; margin: 0; }
  .ouvre-menu:checked ~ nav { display: block; }
  .menu { flex-direction: column; align-items: stretch; padding: 10px 22px 20px; }
  .menu > li > span, .menu .lien-simple { padding: 12px 0 4px; }
  .menu .groupe ul { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 6px; min-width: 0; }
  .lien-panier { margin: 12px 0 0; text-align: center; }
  .deux, .fiche .largeur, .pied .largeur { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .deux.inverse figure { order: 2; }
  .galerie { position: static; }
  .produits, .cartes-liens { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: 1fr 1fr; }
  .pied-cols { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 44px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .logo-image { height: 38px; }
  .etapes, .config .champs, .formulaire .ligne { grid-template-columns: 1fr; }
  .bandeau .largeur { gap: 4px 16px; }
  .specs th { width: 42%; }
  .panier th:nth-child(3), .panier td:nth-child(3) { display: none; }
  .panier { font-size: .9rem; }
  .panier th, .panier td { padding: 10px 8px; overflow-wrap: anywhere; }
  .specs.compare { table-layout: fixed; font-size: .8rem; }
  .specs.compare th, .specs.compare td { padding: 9px 6px; overflow-wrap: anywhere; hyphens: auto; }
}

/* un bouton dont la page n est pas encore publiée : affiché, sans lien */
.bouton.sans-lien, .bouton.sans-lien:hover { cursor: default; }

/* une photo qui ne charge pas ne déforme plus la mise en page */
.deux > *, .hero-grille > * { min-width: 0; }
