/*
Theme Name: Webdevo Theme
Description: Thème sur mesure Webdevo pour Caron : landing page de l'album. Cœur commun dans core/ (déployé depuis le socle), personnalisation dans site/ et ici.
Author: Webdevo
Version: 1.2.0
*/

/* ═════════ Couleurs, polices et mesures du site ═════════ */
:root {
  --ink: #111111;
  --ink-2: #1c1c1c;
  --text: #2a2926;
  --muted: #6a675f;
  --paper: #ffffff;
  --bg: #f3f1ec;
  --bg-alt: #eae7e0;
  --line: #111111;
  --line-soft: rgba(17, 17, 17, .14);
  --accent: #111111;
  --accent-dk: #000000;
  --accent-soft: #e6e2da;
  --on-accent: #ffffff;
  --ok: #1f7a3a;
  --f-head: "Archivo", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-body: "Archivo", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --maxw: 1080px;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-1: none;
  --shadow-2: none;
  --header-h: 0px;
  --album-w: min(88vw, 460px);
}

/* Police auto-hébergée (aucun appel à Google Fonts) */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap; src: url("site/fonts/Archivo-normal.woff2") format("woff2"); }

body { font-size: 1rem; line-height: 1.5; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; background: url("site/img/papier.webp") repeat; background-size: 420px; opacity: .5; mix-blend-mode: multiply; pointer-events: none; z-index: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.01em; }
main { position: relative; z-index: 1; }
.wd-kicker { color: var(--muted); font-weight: 700; letter-spacing: .14em; font-size: .72rem; }

/* ═════════ Boutons ═════════ */
.wd-btn { border-radius: var(--radius-sm); font-weight: 700; }
.wd-btn:hover { transform: none; }
.wd-btn--ligne { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.wd-btn--ligne:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.wd-btn--ink:hover { background: #000; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen-reader-text:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; padding: .5rem .8rem; background: var(--ink); color: #fff; }

/* ═════════ Haut de page : le logo, un peu plus large que la ligne dessous, puis l'album seul ═════════ */
.tete-album { padding: 32px 20px 0; text-align: center; }
.tete-album__nom { margin: 0 0 8px; line-height: 0; font-size: clamp(2rem, 8vw, 3rem); }
.tete-album__nom img { width: min(68vw, 340px); height: auto; margin: 0 auto; }
.tete-album__kicker { margin: 0; font-size: clamp(.62rem, 2.9vw, .74rem); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* La scène : l'album reste collé en haut le temps d'un peu plus d'un demi-écran de défilement (padding-bas),
   le temps de faire le tour du boîtier ; la fiche, placée après dans la page, monte sous lui et ne passe jamais dessus. */
.scene { position: relative; z-index: 1; }
.scene::after { content: ""; display: block; height: 34vh; } /* un remplissage en contenu, pas en padding : le collant ne compte que la boîte de contenu */
.scene__stage { position: sticky; top: 0; display: flex; flex-direction: column; align-items: center; padding: clamp(28px, 7vh, 72px) 0 0; } /* marge gardée au-dessus de l'album quand il est collé */
.album { position: relative; width: var(--album-w); aspect-ratio: 1 / 1; flex: none; }
.album__poster { width: 100%; height: auto; display: block; }
.album__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.album.is-pret .album__poster { visibility: hidden; }
.album.is-pret .album__canvas { display: block; }
.scene__hint { margin: 6px 0 0; text-align: center; font-size: .66rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); transition: opacity .2s; }
.scene__hint::after { content: ""; display: block; width: 1px; height: 22px; margin: 8px auto 0; background: var(--ink); animation: scene-goutte 1.8s ease-in-out infinite; }
@keyframes scene-goutte { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ═════════ Fiche produit : classique, pour rassurer ═════════ */
.fiche { position: relative; z-index: 2; margin-top: -34px; padding: 0 0 56px; } /* la fiche vient se caler sous l'album, à la place de l'indication « Faire défiler » qui s'efface */
.fiche__carte { width: min(100% - 24px, 560px); margin-inline: auto; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px 20px 20px; box-shadow: 0 10px 40px rgba(17, 17, 17, .08); }
.fiche__dispo { margin: 0 0 10px; font-size: .76rem; font-weight: 700; color: var(--ok); display: flex; align-items: center; gap: 7px; }
.fiche__dispo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.fiche__titre { margin: 0; font-size: clamp(1.3rem, 5.6vw, 2rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.fiche__sub { margin: 8px 0 0; color: var(--muted); font-size: .92rem; }
.fiche__ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.fiche__prix { margin: 0 0 0 auto; text-align: right; flex: none; }
/* Encart « en plus » : sobre, aux couleurs de la page (papier et encre), avec un reflet qui passe de temps en temps */
.fiche__bonus { position: relative; overflow: hidden; margin: 0; display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 14px; font-size: .76rem; font-weight: 700; line-height: 1.2; color: var(--ink); background: var(--bg); border: 1px solid var(--line-soft); }
.fiche__bonus span { text-wrap: balance; max-width: 14em; } /* le cadre épouse le texte sur deux lignes au lieu de s'étirer */
.fiche__bonus::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .95), transparent); transform: skewX(-20deg); animation: bonus-eclat 4.5s ease-in-out infinite; }
@keyframes bonus-eclat { 0%, 62% { left: -60%; } 88%, 100% { left: 130%; } }
.fiche__prix strong { display: block; font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1; }
.fiche__prix span { display: block; margin-top: 5px; font-size: .78rem; color: var(--muted); }
.fiche__btn { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; padding: 17px 20px; border-radius: var(--radius-sm); background: var(--ink); color: #fff; font-size: 1rem; font-weight: 700; text-decoration: none; }
.fiche__btn:hover { background: #000; }
.fiche__form { margin: 0; }
.fiche__btn { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.fiche__message { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: #fbeaea; color: #8a1f1f; font-size: .85rem; text-align: center; }
.fiche__btn .wd-ico { width: 18px; height: 18px; }
.fiche__zone { margin: 12px 0 0; text-align: center; font-size: .78rem; font-weight: 700; color: var(--ink); text-wrap: balance; }
.fiche__zone .wd-ico { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; margin-right: 5px; }
.fiche__paiement { margin: 6px 0 0; text-align: center; font-size: .78rem; color: var(--muted); }
.fiche__etat { margin: 18px 0 0; padding: 15px; text-align: center; border: 1px dashed var(--line-soft); border-radius: var(--radius-sm); font-weight: 700; color: var(--muted); }
.fiche__garanties { list-style: none; margin: 18px 0 0; padding: 14px; background: var(--bg); border-radius: var(--radius-sm); display: grid; gap: 10px; font-size: .86rem; color: var(--text); }
.fiche__garanties li { display: flex; align-items: flex-start; gap: 10px; }
.fiche__garanties .wd-ico { width: 16px; height: 16px; color: var(--ink); flex: none; box-sizing: content-box; padding: 6px; background: var(--paper); border-radius: 50%; }
.fiche__garanties li { align-items: center; }

/* ═════════ Crédits ═════════ */
.credits { position: relative; z-index: 2; padding: 30px 0 60px; }
.credits__in { display: grid; gap: 30px; align-items: center; }
.credits__marque { width: 56px; height: 56px; border: 1.5px solid var(--ink); display: grid; place-items: center; }
.credits__marque i { width: 30px; height: 30px; border: 1.5px solid var(--ink); border-radius: 50%; }
.credits h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); line-height: 1.1; margin: 18px 0 0; }
.credits__texte { margin: 14px 0 0; max-width: 46ch; color: var(--text); }
.credits__label { margin: 12px 0 0; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ecoute { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.ecoute a { font-size: .82rem; font-weight: 700; border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 14px; text-decoration: none; color: var(--ink); }
.ecoute a:hover { background: var(--ink); color: #fff; }
.credits__liste { margin: 0; }
.credits__liste div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: .95rem; }
.credits__liste div:last-child { border-bottom: 1px solid var(--line-soft); }
.credits__liste dt { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.credits__liste dd { margin: 0; color: var(--ink); }

/* ═════════ Questions (composant du cœur) ═════════ */
#faq.wd-section { padding: 0 0 60px; }
#faq .wd-wrap { width: min(680px, 100% - 2 * var(--pad)); }
#faq h2 { font-size: clamp(1.3rem, 4vw, 1.7rem); }
.wd-faq { gap: 0; }
.wd-faq__item { background: transparent; border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; }
.wd-faq__item:last-child { border-bottom: 1px solid var(--line-soft); }
.wd-faq__q button { padding: 1rem 0; font-weight: 700; }
.wd-faq__a { padding: 0 0 1.1rem; color: var(--text); }
.wd-faq__ico { border-color: var(--ink); }

/* ═════════ Bande photo en bas : appel à l'action ═════════ */
.bande { position: relative; z-index: 2; min-height: 68vh; display: grid; place-items: end start; overflow: hidden; color: #fff; }
.bande > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 35%; }
.bande::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(10, 6, 20, .05), rgba(10, 6, 20, .62)); }
.bande__in { position: relative; z-index: 1; padding: 60px 0 44px; }
.bande h2 { color: #fff; font-size: clamp(1.75rem, 6vw, 2.9rem); line-height: 1.05; max-width: 16ch; margin: 0; }
.bande p { margin: 10px 0 0; max-width: 40ch; color: rgba(255, 255, 255, .85); }
.bande__btn { margin-top: 22px; padding: 14px 22px; background: #fff; color: var(--ink); }
.bande__btn:hover { background: var(--bg); }
.bande .wd-ph { position: absolute; inset: 0; border: 0; border-radius: 0; background: var(--ink); }

/* ═════════ Avis (masqués sans vrai avis, composant du cœur) ═════════ */
.wd-avis__item { border: 1px solid var(--line-soft); box-shadow: none; }

/* ═════════ Pages intérieures ═════════ */
.tete { padding: calc(var(--header-h) + 44px) 0 20px; }
.tete h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); margin: 10px 0 .4em; }
.wd-hero-int { background: transparent; color: var(--text); padding: calc(var(--header-h) + 44px) 0 8px; }
.wd-hero-int h1 { color: var(--ink); font-size: clamp(1.9rem, 6vw, 2.8rem); }
.wd-hero-int .wd-lead { color: var(--muted); }
.wd-hero-int__media { display: none; }
.wd-hero-int--photo .wd-hero-int__in { max-width: 100%; }
.page-merci .wd-section, .page-merci-commande .wd-section, .error404 .wd-section { padding-top: calc(var(--header-h) + 64px); }
.merci { text-align: center; }
.merci__coche { display: inline-grid; place-items: center; width: 56px; height: 56px; border: 1.5px solid var(--ink); border-radius: 50%; margin-bottom: 18px; }
.merci__coche .wd-ico { width: 24px; height: 24px; }
.merci .wd-lead { margin-inline: auto; }
.merci .wd-btn + .wd-btn { margin-left: .6rem; }
.wd-prose h2 { font-size: 1.15rem; margin-top: 2em; }
.wd-carte, .wd-contact__form { border: 1px solid var(--line-soft); box-shadow: none; background: var(--paper); }
.wd-contact .wdf-form { --wdf-accent: var(--ink); --wdf-line: var(--line-soft); }
.wd-contact__infos .wd-ico { color: var(--ink); }

/* ═════════ Pied de page : une seule barre ═════════ */
.wd-pied { position: relative; z-index: 2; background: transparent; color: var(--muted); padding: 26px 0 28px; border-top: 1px solid var(--line-soft); }
.wd-pied__in { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.wd-pied__logo { line-height: 0; }
.wd-pied__logo img { width: 96px; height: auto; }
.wd-pied__reseaux { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: .85rem; font-weight: 700; }
.wd-pied a { color: var(--ink); text-decoration: none; }
.wd-pied a:hover { text-decoration: underline; }
.wd-pied__legal { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: .76rem; }
.wd-pied__legal a, .wd-pied__legal .wd-cc-open { color: var(--muted); }

/* ═════════ Écrans larges ═════════ */
@media (min-width: 860px) {
  :root { --album-w: min(56vh, 600px); }
  .tete-album { padding-top: 48px; }
  .tete-album__nom img { width: 420px; }
  .tete-album__kicker { font-size: .82rem; }
  .fiche__carte { padding: 32px 36px 28px; }
  .fiche__bonus { font-size: .82rem; padding: 10px 16px; }
  .fiche__bonus span { max-width: none; }
  .credits { padding: 60px 0 90px; }
  .credits__in { grid-template-columns: 1.1fr .9fr; gap: 70px; }
  .wd-pied__in { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .scene::after { height: 30px; }
  .scene__stage { position: static; }
  .scene__hint { display: none; }
  .fiche__bonus::after { animation: none; display: none; }
  .album.is-pret .album__poster { visibility: visible; }
  .album.is-pret .album__canvas { display: none; }
}
