/* APERÇU de la refonte de l'accueil (/apercu-accueil, 23.10) — à fusionner dans
   site.css seulement après validation de Florian. Tout est sous .v2 pour ne rien
   changer aux autres pages. */
.v2 { --carte: var(--papier); }
.v2 section { padding: 88px 0; }
.v2 section.sans-haut { padding-top: 0; }
.v2 section.v2-trait { border-top: 1px solid var(--trait); }
.v2 h1, .v2 h2, .v2 h3 { line-height: 1.08; margin: 0; }
.v2 .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.v2 .bouton { padding: 15px 26px; font-size: 1.05rem; }
.v2-surtitre { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--bois); font-weight: 500; margin: 0 0 14px; }
.v2-sous { color: var(--encre-2); margin: 10px 0 0; max-width: 560px; }

/* 1. Hero */
.v2 .v2-hero { position: relative; display: grid; grid-template-columns: 1fr; padding: 0; overflow: visible; }   /* visible : liste « Votre course » */
.v2-hero > img { position: absolute; top: 0; bottom: 0; right: 0; width: 62%; height: 100%; object-fit: cover; object-position: 38% 50%; }
/* Avant / après : aperçu 3D à gauche du curseur, vraie pièce à droite (24.10) */
.v2-avap { position: absolute; top: 0; bottom: 0; right: 0; width: 62%; overflow: hidden; background: linear-gradient(90deg, #ECE8DD, #F2EFE8); }   /* même fond que les images */
.v2-avap img { position: absolute; inset: 3% 2%; width: 96%; height: 94%; object-fit: contain; object-position: 50% 50%; }   /* pièce entière, jamais coupée (Florian, 24.10) */
.v2-avap-avant { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.v2-avap-poignee { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.25); pointer-events: none; z-index: 3; }
.v2-avap-poignee::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--encre); display: grid; place-items: center; font-size: 18px; letter-spacing: 2px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.v2-avap input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; }
.v2-avap-etiq { position: absolute; top: 28px; z-index: 3; background: rgba(38,43,38,.78); color: #fff; font-size: 13px; padding: 5px 11px; border-radius: 999px; pointer-events: none; }
.v2-avap-g { left: 28%; }
.v2-avap-d { right: 18px; }
.v2-hero::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 62%; pointer-events: none;
  background: linear-gradient(90deg, var(--fond) 0%, rgba(242, 239, 232, 0) 22%), linear-gradient(180deg, var(--fond) 0%, rgba(242, 239, 232, 0) 14%); }
/* contenu dans le flux : le bandeau de garanties vient dessous, jamais par-dessus */
.v2-contenu { position: relative; z-index: 4; padding: 110px 0 48px; min-height: 560px; }
.v2-contenu > .enveloppe > * { max-width: 520px; }
/* écrans moyens : le texte s'arrête avant l'image (62 % à droite, fondu sur 22 %) */
@media (min-width: 901px) { .v2-contenu > .enveloppe > *, .v2-hero h1 { max-width: min(520px, 46vw); } }
.v2-hero h1 { font-size: 64px; max-width: 520px; }
.v2-hero h1 em { color: var(--bois); }
.v2-accroche { font-size: 19px; max-width: 470px; margin: 18px 0 28px; color: var(--encre); }
.v2-garanties { position: relative; z-index: 3; color: #EFE9DD; background: var(--encre); padding: 20px 0; }
.v2-garanties ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 34px; flex-wrap: wrap; justify-content: space-between; font-size: 15px; font-weight: 500; }
.v2-garanties li::before { content: "✓"; margin-right: 8px; color: #F1D3A4; }

/* 2. Ce que vous recevez */
.v2-recevez { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.v2-recevez figure { margin: 0; position: relative; background: #EBE7DC; border-radius: 14px; overflow: hidden; }
.v2-recevez figure img { width: 100%; height: auto; display: block; }
.v2-pastille { position: absolute; background: var(--carte); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; box-shadow: 0 4px 14px rgba(40, 30, 20, .12); white-space: nowrap; }
.v2-pastille::before { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--bois); box-shadow: 0 0 0 4px rgba(156, 122, 80, .25); top: 12px; left: -18px; }
.v2-pastille.p1 { left: 66%; top: 16%; }      /* calées sur la photo 04 (24.10) */
.v2-pastille.p2 { left: 6%; top: 47%; }
.v2-pastille.p2::before { left: auto; right: -18px; }
.v2-pastille.p3 { left: 56%; top: 46%; }
.v2-pastille.p4 { left: 16.5%; top: 77%; }   /* sur la bande de bois visible à gauche */
.v2-recevez h2 { font-size: 46px; margin-bottom: 18px; }
.v2-points { list-style: none; padding: 0; margin: 0 0 30px; }
.v2-points li { padding: 14px 0; border-bottom: 1px solid var(--trait); }
.v2-points b { display: block; font-weight: 500; }
.v2-points span { color: var(--encre-2); font-size: 15.5px; }
.v2 figure.v2-socle { margin: 0; background: #EBE7DC; border-radius: 12px; overflow: hidden; max-width: 230px; }
.v2-socle img { width: 100%; height: auto; display: block; }
.v2-socle figcaption { font-size: 13px; color: var(--encre-2); padding: 8px 12px; }

/* 3. Comment ça marche */
.v2-etapes-titre { text-align: center; margin-bottom: 46px; }
.v2-etapes-titre h2 { font-size: 44px; }
.v2-etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: e; }
.v2-etape { background: var(--carte); border-radius: 14px; padding: 18px 18px 28px; display: flex; flex-direction: column; }   /* image en haut, numéro et texte dessous (24.10) */
.v2-etape::before { counter-increment: e; content: counter(e); font-family: var(--titre); font-size: 48px; color: var(--bois); line-height: 1; padding: 0 10px; }
.v2-etape h3 { font-size: 26px; margin: 6px 10px 8px; }
.v2-etape p { margin: 0 10px; color: var(--encre-2); }
.v2-etape-img { order: -1; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin: 0 0 16px; display: block; }
.v2-etape-socle { object-fit: contain; background: #EBE7DC; }   /* gravure entière, pas recadrée */
.v2-etapes-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* 4 et 6. Grilles */
.v2-entete { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.v2-entete h2 { font-size: 44px; }
.v2-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.v2-carte { position: relative; background: var(--carte); border-radius: 12px; overflow: hidden; text-decoration: none; display: block; transition: transform .2s; }
.v2-carte:hover { transform: translateY(-3px); }
.v2-carte img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #EBE7DC; }
.v2-carte div { padding: 14px 16px 16px; }
.v2-carte b { font-family: var(--titre); font-weight: 500; font-size: 21px; display: block; }
.v2-carte span { font-size: 14px; color: var(--encre-2); }
.v2-carte div > span { display: block; }
.v2 .v2-prix { color: var(--bois); font-weight: 500; }
.v2-photo::after { content: attr(data-badge); position: absolute; top: 10px; left: 10px; background: var(--encre); color: #fff; font-size: 12px; padding: 4px 9px; border-radius: 999px; }
.v2-recherche { margin-top: 30px; max-width: 640px; }
.v2-deux-choix { background: var(--papier); border: 1px solid var(--trait); border-radius: 12px; padding: 16px 18px; margin: 0 0 12px; box-shadow: var(--ombre); }
.v2-hero .choix-course { margin: 0; max-width: none; }
.v2-ou { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: var(--encre-2); font-size: .85rem; }
.v2-ou::before, .v2-ou::after { content: ""; flex: 1; border-top: 1px solid var(--trait); }
.v2-ma-trace label { display: block; margin-bottom: 6px; color: var(--encre); }
.v2-gpx-texte { flex: 1 1 220px; min-width: 0; display: flex; align-items: center; padding: 0 14px; min-height: 46px; border: 1px dashed var(--encre-2); border-radius: 6px; color: var(--encre-2); background: var(--fond); }
.v2-gpx-bouton { width: 100%; text-align: center; }
.v2-autre { margin: 0; color: var(--encre-2); }

/* 5. Bande photo */
.v2 section.v2-bande { position: relative; padding: 0; height: 440px; overflow: hidden; }
/* Photo recadrée par le haut (26.10 : bas du tracé coupé), sans citation */
.v2-bande img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; display: block; }
.v2-bande blockquote { position: absolute; right: 6%; bottom: 12%; margin: 0; max-width: 440px; background: rgba(251, 249, 244, .93); padding: 26px 30px; border-radius: 12px; font-family: var(--titre); font-size: 27px; line-height: 1.2; }
.v2-bande blockquote small { display: block; font-family: var(--texte); font-size: 14px; color: var(--encre-2); margin-top: 10px; }

/* 7. Pour qui */
.v2-cadeau { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.v2-cadeau article { background: var(--carte); border-radius: 14px; padding: 30px; }
.v2-cadeau h3 { font-size: 28px; margin-bottom: 8px; }
.v2-cadeau p { margin: 0 0 4px; color: var(--encre-2); }
.v2 .v2-exemple { margin-top: 14px; font-family: var(--titre); font-size: 19px; color: var(--encre); }

/* 8. Prix */
.v2-prix-bloc { display: grid; grid-template-columns: repeat(2, 1fr) 1.2fr; gap: 18px; align-items: stretch; }
.v2-taille { background: var(--carte); border-radius: 14px; padding: 30px; text-align: center; border: 2px solid transparent; }
.v2-taille.vedette { border-color: var(--bois); }
.v2-taille .t { font-size: 15px; color: var(--encre-2); }
.v2-taille .p { font-family: var(--titre); font-size: 54px; margin: 6px 0; }
.v2-taille ul { list-style: none; padding: 0; margin: 12px 0 0; font-size: 15px; color: var(--encre-2); }
.v2-rassure { background: var(--encre); color: #EFE9DD; border-radius: 14px; padding: 30px; display: flex; align-items: center; }
.v2-rassure h3 { font-size: 26px; margin-bottom: 14px; color: #fff; }
.v2-rassure ul { margin: 0; padding: 0; list-style: none; font-size: 1.05rem; }
.v2-rassure li { margin: 10px 0; }
.v2-rassure li::before { content: "✓"; margin-right: 10px; color: #F1D3A4; }

/* 9. Sur mesure */
.v2-sur-mesure { background: var(--carte); border-radius: 14px; padding: 34px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.v2-sur-mesure h3 { font-size: 30px; }

/* 10. FAQ */
.v2-faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 50px; }
.v2-faq h2 { font-size: 44px; }
.v2-faq details { border-bottom: 1px solid var(--trait); padding: 16px 0; }
.v2-faq summary { cursor: pointer; font-weight: 500; font-size: 18px; }
.v2-faq details p { color: var(--encre-2); margin: 10px 0 0; }

/* 11. Appel */
.v2 section.v2-appel { text-align: center; background: #E9E3D6; }
.v2-appel h2 { font-size: 52px; margin-bottom: 14px; }
.v2-appel p { color: var(--encre-2); margin: 0 0 26px; }
.v2-appel .actions { justify-content: center; }

@media (max-width: 1100px) {
  .v2-garanties ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
}
@media (max-width: 900px) {
  .v2 .v2-hero { display: flex; flex-direction: column; }
  .v2-hero > img { position: relative; width: 100%; height: 340px; display: block; order: 2; }
  .v2-avap { position: relative; width: 100%; height: 340px; order: 2; }
  .v2-avap-etiq { top: 14px; }
  .v2-avap-g { left: 14px; }
  .v2-hero::after { display: none; }
  .v2-contenu { padding: 40px 0 26px; min-height: 0; order: 1; }
  .v2-garanties { padding: 14px 0; order: 3; }
  .v2-garanties ul { gap: 8px 16px; font-size: 13.5px; }
  .v2 section { padding: 60px 0; }
  .v2 section.v2-hero { padding: 0; }
  .v2-hero h1 { font-size: 44px; }
  .v2-accroche { font-size: 17px; }
  .v2-recevez, .v2-cadeau, .v2-faq, .v2-prix-bloc, .v2-etapes { grid-template-columns: 1fr; }
  .v2-grille { grid-template-columns: repeat(2, 1fr); }
  .v2 section.v2-bande { height: 380px; }
  .v2-bande blockquote { left: 16px; right: 16px; font-size: 22px; }
  .v2-recevez h2, .v2-etapes-titre h2, .v2-entete h2, .v2-faq h2 { font-size: 34px; }
  .v2-pastille { font-size: 11px; padding: 4px 8px; }
  .v2-pastille::before { top: 7px; }
  .v2-pastille.p1 { left: 60%; }
}
@media (max-width: 520px) {
  .v2 .bouton { width: 100%; text-align: center; }
  .v2-grille { gap: 12px; }
  .v2-carte b { font-size: 18px; }
}

/* Retours du test navigateur (24.10) */
.v2-contenu, .v2-contenu > .enveloppe { pointer-events: none; }   /* le curseur avant/après reste saisissable */
.v2-contenu > .enveloppe > * { pointer-events: auto; }
.v2-avap input { touch-action: pan-y; }                            /* le doigt fait encore défiler la page */
@media (min-width: 901px) and (max-width: 1100px) { .v2-contenu > .enveloppe > *, .v2-hero h1 { max-width: min(520px, 44vw); } }
.v2 section.v2-bande { background: #1E1C19; }                       /* sombre pendant le chargement de l'image */
@media (max-width: 600px) {
  .v2 section.v2-bande { height: auto; }
  .v2-bande img { height: 300px; }
  .v2-bande blockquote { position: static; max-width: none; border-radius: 0; background: #262B26; color: #F2EFE8; font-size: 20px; padding: 20px 16px; }
  .v2-bande blockquote small { color: #CFC8BA; }
}

/* Page « Ma trace » (24.10, audit marketing) */
.page-trace .trace-tete { padding: 48px 0 40px; }
.page-trace .trace-points li::before { background: var(--encre); }          /* trace noire, comme la pièce */
.page-trace .depot-icone { color: var(--encre); }
.page-trace .depot-trace .message { position: static; margin: 12px 0 0; }
.depot-prix { margin: 14px 0 4px; font-weight: 500; color: var(--encre); }
.page-trace .depot-vide p.petit { margin: 6px 0 0; }
.v2-avap.v2-avap-bloc { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; top: auto; bottom: auto; right: auto; }
.v2-avap-bloc .v2-avap-g { left: 18px; }
.trace-legende { margin-top: 12px; color: var(--encre-2); }
.v2 figure.v2-socle-grand { margin: 0; background: #EBE7DC; border-radius: 14px; overflow: hidden; max-width: 460px; }
.v2-socle-grand img { width: 100%; height: auto; display: block; }
.v2-socle-grand figcaption { font-size: 13px; color: var(--encre-2); padding: 8px 12px; }
.trace-sans-fichier { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-top: 22px; max-width: 760px; padding: 16px 20px; border: 1px solid var(--trait); border-radius: 10px; }
.trace-sans-fichier p { margin: 0; flex: 1 1 320px; color: var(--encre-2); }
.trace-cadeau { margin-top: 22px; }
.page-trace .v2-garanties { position: relative; }
@media (max-width: 820px) {
  .page-trace .depot-trace { order: -1; }   /* le dépôt d'abord sur mobile */
  .v2-avap.v2-avap-bloc { aspect-ratio: 4 / 3; }
}
.page-trace h1 { margin-bottom: 18px; }
.page-trace #exporter h2, .page-trace .v2-faq h2 { margin-bottom: 12px; }
.page-trace #zone, .page-trace #exporter { scroll-margin-top: 24px; }
