/*
Theme Name: Hello Dupond
Theme URI: https://dupond.altoradigital.com/
Description: Thème enfant de Hello Elementor pour Dupond Chocolate Coffee — charte VIM Dupond, mise en page de la maquette Altora, carte, points de vente, commandes et événements gérés dans le back-office.
Author: Altora Digital
Template: hello-elementor
Version: 1.7.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: hello-dupond
*/
/* =========================================================
   Dupond Chocolate Coffee — mise en page de la maquette Altora,
   couleurs / typographie / logo de la charte VIM Dupond.
   ========================================================= */
:root {
  --brun: #673918;      /* PMS 1545 C */
  --caramel: #96460A;   /* PMS 1535 C */
  --cacao: #A36D49;     /* PMS 4261 C (décoratif) */
  --creme: #FFF5DB;     /* PMS 9064 U */
  --noir: #260101;      /* PMS Black 4 C */
  --blanc: #FFFFFF;

  --fond: var(--creme);
  --fond-alt: #F6E6C3;  /* teinte de la crème pour les sections alternées */
  --encre: var(--noir);
  --doux: #5A3A26;      /* texte secondaire, 8:1 sur crème */
  --trait: #E5CFA8;
  --bord: #C9A77F;
  --sur-sombre: #EAD9BC;

  --font: "Comfortaa", "Trebuchet MS", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--encre); background: var(--fond); font-size: 16px; line-height: 1.7; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--encre); text-underline-offset: 6px; }
a:hover { color: var(--caramel); }
:focus-visible { outline: 3px solid var(--caramel); outline-offset: 3px; }
.sombre :focus-visible { outline-color: var(--creme); }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--brun); color: var(--blanc); padding: 10px 16px; z-index: 100; }
.skip:focus { top: 12px; }
.ph { background: #FBE3B4; color: var(--noir); padding: 0 4px; }
.sombre .ph { background: #4A1E10; color: var(--creme); }

/* ---------- Gabarits ---------- */
.in { max-width: 1200px; margin: 0 auto; }
.in-760 { max-width: 760px; margin: 0 auto; }
.sec { padding: 112px 24px; }
.sec--alt { background: var(--fond-alt); }
.sec--sombre { background: var(--brun); color: var(--creme); }
.col { display: flex; flex-direction: column; }
.g8 { gap: 8px; } .g12 { gap: 12px; } .g16 { gap: 16px; } .g20 { gap: 20px; } .g24 { gap: 24px; } .g32 { gap: 32px; } .g40 { gap: 40px; } .g56 { gap: 56px; }
.centre { text-align: center; align-items: center; }
.rangee { display: flex; flex-wrap: wrap; gap: 16px; }
.centre .rangee, .rangee.centre { justify-content: center; }
.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.grille { display: grid; gap: 32px; }
.g-300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g-240 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.g-320 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 64px; }
.g-260 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }

/* ---------- Typographie ---------- */
.sur { font-size: 12px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--caramel); }
.sombre .sur { color: var(--sur-sombre); }
.h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.08; }
.h1-xl { font-size: clamp(44px, 7vw, 72px); line-height: 1.05; }
.h2-48 { font-size: clamp(30px, 4vw, 44px); }
.h2-40 { font-size: clamp(28px, 3.6vw, 38px); }
.h2-36 { font-size: clamp(26px, 3.2vw, 34px); }
.intro { font-size: 18px; line-height: 1.7; color: var(--doux); }
.texte { font-size: 16px; line-height: 1.8; color: var(--doux); }
.petit { font-size: 14px; color: var(--doux); }
.sombre .intro, .sombre .texte, .sombre .petit { color: var(--sur-sombre); }
.lien { font-size: 14px; font-weight: 700; letter-spacing: .5px; text-decoration: underline; text-decoration-thickness: 1px; min-height: 44px; display: inline-flex; align-items: center; }
.sombre .lien { color: var(--creme); }

/* ---------- Boutons (carrés, comme la maquette) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 28px; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .5px; text-decoration: none; cursor: pointer; border: 1px solid var(--brun); background: var(--brun); color: var(--blanc); border-radius: 0; }
.btn:hover { background: var(--noir); border-color: var(--noir); color: var(--blanc); }
.btn--ligne { background: transparent; color: var(--brun); border-color: var(--brun); }
.btn--ligne:hover { background: var(--brun); color: var(--blanc); }
.btn--clair { background: var(--creme); border-color: var(--creme); color: var(--noir); }
.btn--clair:hover { background: var(--blanc); border-color: var(--blanc); color: var(--noir); }
.btn--ligne-clair { background: transparent; border-color: var(--creme); color: var(--creme); }
.btn--ligne-clair:hover { background: var(--creme); color: var(--noir); }
.btn--grand { padding: 16px 32px; }
.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* ---------- En-tête ---------- */
.header { background: var(--fond); border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 50; }
.header__in { max-width: 1320px; margin: 0 auto; padding: 14px 32px; min-height: 96px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.header__logo img { width: 128px; height: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.nav a { text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--encre); padding: 12px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--caramel); }
.nav a[aria-current="page"] { color: var(--caramel); font-weight: 700; border-bottom-color: var(--caramel); }
.nav .nav__mobile { display: none; }
.burger { display: none; width: 48px; height: 48px; border: 1px solid var(--brun); background: transparent; color: var(--brun); cursor: pointer; align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; }
@media (max-width: 1023px) {
  .header__in { flex-wrap: nowrap; min-height: 80px; padding: 12px 20px; }
  .header__logo img { width: 112px; }
  .burger { display: inline-flex; }
  .header__cta { display: none; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--fond); border-bottom: 1px solid var(--trait); padding: 8px 20px 24px; max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--trait); }
  .nav a[aria-current="page"] { border-bottom-color: var(--trait); }
  .nav .nav__mobile { display: inline-flex; margin-top: 20px; color: var(--blanc); border-bottom: 1px solid var(--brun); }
}

/* ---------- Hero vidéo ---------- */
.hero { position: relative; background: var(--noir); color: var(--creme); min-height: 720px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 96px 24px; overflow: hidden; }
.hero__media, .hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__voile { position: absolute; inset: 0; background: rgba(38, 1, 1, .6); }
.hero__in { position: relative; max-width: 820px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero__lieux { font-size: 12px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--sur-sombre); }
.hero__logo { width: min(460px, 80vw); height: auto; }
.hero__accroche { font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; color: var(--creme); }
.hero .rangee { justify-content: center; margin-top: 16px; }
.hero__pause { position: absolute; right: 32px; bottom: 32px; width: 56px; height: 56px; border: 1px solid var(--sur-sombre); border-radius: 50%; background: transparent; color: var(--creme); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.hero__pause[hidden] { display: none; }
@media (max-width: 767px) { .hero { min-height: 640px; } }

/* En-tête de page centré */
.tete { padding: 112px 24px 64px; text-align: center; }
.tete--filet { padding-bottom: 80px; border-bottom: 1px solid var(--trait); }
@media (max-width: 767px) { .sec { padding: 80px 20px; } .tete { padding: 72px 20px 48px; } }

/* ---------- Composants ---------- */
.photo { width: 100%; object-fit: cover; background: var(--trait); }
.r-4-5 { aspect-ratio: 4 / 5; } .r-1 { aspect-ratio: 1; } .r-5-4 { aspect-ratio: 5 / 4; } .r-4-3 { aspect-ratio: 4 / 3; } .r-3-2 { aspect-ratio: 3 / 2; } .r-21-9 { aspect-ratio: 21 / 9; }
.split > img, .pdv-art > img { width: auto; min-width: 0; }
.split > *, .pdv-art > * { min-width: 0; }
.flex-420 { flex: 1 1 420px; } .flex-380 { flex: 1 1 380px; } .flex-480 { flex: 1 1 480px; } .flex-440 { flex: 1 1 440px; } .flex-360 { flex: 1 1 360px; } .flex-520 { flex: 1 1 520px; } .flex-560 { flex: 1 1 560px; } .flex-340 { flex: 1 1 340px; }
.entete-sec { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.entete-sec--filet { border-bottom: 1px solid var(--trait); padding-bottom: 20px; }
.filet-haut { border-top: 1px solid var(--encre); padding-top: 28px; }
.filet-haut-doux { border-top: 1px solid var(--trait); padding-top: 20px; }

.pdv-carte h3 { font-size: 26px; }
.produit { background: var(--fond); display: flex; flex-direction: column; }
.produit__bas { padding: 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.produit__nom { font-size: 18px; font-weight: 700; }
.produit__prix { font-size: 14px; color: var(--doux); white-space: nowrap; font-weight: 700; }

/* Points de vente */
.pdv-art { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--trait); }
.pdv-art h2 { font-size: clamp(34px, 4.4vw, 48px); line-height: 1.05; }
.dl { margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: 12px 16px; font-size: 15px; }
.dl dt { color: var(--doux); } .dl dd { margin: 0; }
.carte-map { width: 100%; aspect-ratio: 21 / 8; min-height: 320px; border: 1px solid var(--trait); background: var(--trait); display: block; }
.carte-map--7 { aspect-ratio: 21 / 7; }
.onglets { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }

/* Frise */
.frise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; }
.frise li { display: flex; flex-direction: column; gap: 16px; }
.frise__ligne { display: flex; align-items: center; gap: 16px; }
.frise__ligne::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--caramel); flex: none; }
.frise__ligne::after { content: ""; flex: 1; height: 1px; background: var(--bord); }
.frise__annee { font-size: 36px; font-weight: 700; color: var(--caramel); }
.frise h3 { font-size: 24px; }

/* Commande */
.etape { display: flex; flex-direction: column; gap: 16px; border-bottom: 1px solid var(--trait); padding-bottom: 32px; }
.etape h2 { font-size: clamp(26px, 3vw, 34px); }
.bascule { display: flex; flex-wrap: wrap; gap: 12px; border: 0; padding: 0; margin: 0; }
.bascule label { cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 52px; padding: 16px 28px; border: 1px solid var(--bord); background: transparent; font-size: 15px; font-weight: 700; }
.bascule label small { font-size: 13px; font-weight: 400; color: var(--doux); }
.bascule--petit label { padding: 12px 22px; min-height: 44px; font-size: 14px; }
.bascule input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bascule label:has(input:checked) { background: var(--brun); border-color: var(--brun); color: var(--blanc); }
.bascule label:has(input:checked) small { color: var(--sur-sombre); }
.bascule label:has(input:focus-visible) { outline: 3px solid var(--caramel); outline-offset: 3px; }
.magasins { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.magasins label { position: relative; cursor: pointer; text-align: left; background: var(--fond); border: 1px solid var(--bord); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.magasins input { position: absolute; opacity: 0; }
.magasins .tag { font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--doux); }
.magasins .nom { font-size: 28px; font-weight: 700; line-height: 1.15; }
.magasins .info { font-size: 14px; color: var(--doux); }
.magasins label:has(input:checked) { background: var(--brun); border-color: var(--brun); color: var(--blanc); }
.magasins label:has(input:checked) .tag, .magasins label:has(input:checked) .info { color: var(--sur-sombre); }
.magasins label:has(input:focus-visible) { outline: 3px solid var(--caramel); outline-offset: 3px; }
.etape3 { background: var(--fond-alt); padding: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.etape3__resume { font-size: 26px; font-weight: 700; }
.statut { font-size: 14px; color: var(--doux); }
.statut:empty { display: none; }

/* Événements */
.conditions { background: var(--fond); border: 1px solid var(--bord); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.conditions__ligne { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; border-bottom: 1px solid var(--trait); padding-bottom: 12px; }
.process { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.process li { display: flex; gap: 16px; align-items: flex-start; font-size: 15px; line-height: 1.6; }
.process li span:first-child { flex: none; width: 32px; height: 32px; border: 1px solid var(--encre); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.process li span:last-child { padding-top: 4px; }

/* Formulaires */
.form-carte { background: var(--fond); padding: 40px; display: flex; flex-direction: column; gap: 22px; }
.form-carte--blanc { background: var(--blanc); border: 1px solid var(--trait); gap: 20px; }
.form-carte h3 { font-size: 30px; }
.champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.champ { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 700; }
.champ .aide { font-weight: 400; font-size: 13px; color: var(--doux); }
.champ legend { font-size: 13px; font-weight: 700; margin-bottom: 8px; padding: 0; }
fieldset.champ { border: 0; padding: 0; margin: 0; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], select, textarea { font: inherit; font-size: 15px; font-weight: 400; color: var(--encre); padding: 12px; min-height: 48px; width: 100%; border: 1px solid var(--bord); background: var(--blanc); border-radius: 0; }
textarea { resize: vertical; min-height: 120px; }
input[type=file] { font: inherit; font-size: 14px; font-weight: 400; padding: 12px; border: 1px dashed var(--bord); background: var(--blanc); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--brun); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; font-weight: 400; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brun); flex: none; }
.finalite { font-size: 13px; color: var(--doux); }
.erreur { color: #A1140C; font-size: 13px; font-weight: 700; margin: 0; }
.is-invalid input, .is-invalid select, .is-invalid textarea { border-color: #A1140C; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Carte (menu) */
.cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); padding: 20px 0; }
.cats button { font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; background: transparent; color: var(--encre); border: 1px solid var(--bord); padding: 10px 22px; min-height: 44px; }
.cats button[aria-pressed="true"] { background: var(--brun); border-color: var(--brun); color: var(--blanc); }
.items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 8px 64px; }
.item { display: flex; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--trait); }
.item__img { flex: none; width: 88px; height: 88px; object-fit: cover; background: var(--fond-alt); }
.item__img--icone { object-fit: contain; padding: 14px; }
.item__corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.item__ligne { display: flex; align-items: baseline; gap: 12px; }
.item__ligne h3 { font-size: 19px; }
.item__points { flex: 1; border-bottom: 1px dotted var(--cacao); transform: translateY(-5px); min-width: 16px; }
.item__prix { font-size: 15px; font-weight: 700; white-space: nowrap; }
.item__desc { font-size: 14px; line-height: 1.6; color: var(--doux); }
.item.is-indispo h3, .item.is-indispo .item__prix { text-decoration: line-through; color: #7d6a5e; }
.indispo { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #A1140C; }

/* Laboratoires */
.hero-labo { position: relative; background: var(--noir); color: var(--creme); min-height: 560px; display: flex; align-items: flex-end; padding: 80px 24px; overflow: hidden; }
.hero-labo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-labo::after { content: ""; position: absolute; inset: 0; background: rgba(38, 1, 1, .6); }
.hero-labo .in { position: relative; z-index: 1; width: 100%; }
.hero-labo h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1.02; max-width: 820px; color: var(--blanc); }
.parcours { margin: 0; padding: 0; list-style: none; }
.parcours li { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--trait); font-size: 15px; }
.parcours li span:first-child { color: var(--caramel); font-weight: 700; width: 24px; }
.galerie button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.galerie img { aspect-ratio: 1; object-fit: cover; width: 100%; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(38, 1, 1, .92); }
dialog.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; }
dialog.lightbox p { color: var(--creme); text-align: center; margin-top: 12px; }
dialog.lightbox .fermer { position: fixed; top: 16px; right: 16px; }

/* Réclamations */
.avis { background: var(--blanc); border: 1px solid var(--trait); padding: 36px 32px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.avis h2 { font-size: 32px; }
.qr { width: 148px; height: 148px; border: 1px solid var(--trait); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--doux); text-align: center; padding: 8px; }
.qr img { width: 56px; height: auto; }

/* ---------- Pied de page ---------- */
.footer { background: var(--noir); color: var(--sur-sombre); }
.footer a { color: var(--sur-sombre); text-decoration: none; }
.footer a:hover { color: var(--blanc); }
.footer__in { max-width: 1200px; margin: 0 auto; padding: 72px 24px 32px; display: flex; flex-direction: column; gap: 56px; }
.footer__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer__logo { width: 150px; height: auto; }
.footer__titre { font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #C9B08E; }
.footer__grille span, .footer__grille p { font-size: 14px; line-height: 1.7; }
.reseaux { display: flex; gap: 12px; }
.reseaux a { width: 44px; height: 44px; border: 1px solid #6B3A2A; display: inline-flex; align-items: center; justify-content: center; }
.reseaux svg { width: 18px; height: 18px; }
.footer__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid #4A1E10; padding-top: 24px; font-size: 13px; color: #C9B08E; }
.footer__bas nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media print { .header, .footer, .hero__pause { display: none; } }

/* =========================================================
   Intégration Elementor + animations
   ========================================================= */
body.elementor-page, body { background: var(--fond); }
.elementor-widget-heading .elementor-heading-title { font-family: var(--font); color: var(--encre); font-weight: 700; line-height: 1.15; }
.sombre .elementor-widget-heading .elementor-heading-title { color: var(--blanc); }
.elementor-widget-text-editor { font-family: var(--font); color: var(--doux); }
.sombre .elementor-widget-text-editor { color: var(--sur-sombre); }
.elementor-widget-text-editor p { margin: 0; }
.e-con { --widgets-spacing: 0px; }
.e-con > .elementor-widget, .e-con-inner > .elementor-widget { margin-bottom: 0; }

/* Sur-titres, titres, textes */
.w-sur .elementor-heading-title { font-size: 12px !important; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--caramel) !important; line-height: 1.4; }
.sombre .w-sur .elementor-heading-title, .w-sur--clair .elementor-heading-title { color: var(--sur-sombre) !important; }
.w-h1 .elementor-heading-title { font-size: clamp(44px, 7vw, 72px); line-height: 1.05; }
.w-h1-xxl .elementor-heading-title { font-size: clamp(44px, 7vw, 76px); line-height: 1.02; color: var(--blanc); }
.w-h2-48 .elementor-heading-title { font-size: clamp(30px, 4vw, 44px); }
.w-h2-40 .elementor-heading-title { font-size: clamp(28px, 3.6vw, 38px); }
.w-h2-36 .elementor-heading-title { font-size: clamp(26px, 3.2vw, 34px); }
.w-h3 .elementor-heading-title { font-size: 24px; }
.w-intro, .w-intro p { font-size: 18px; line-height: 1.7; color: var(--doux); }
.w-texte, .w-texte p { font-size: 16px; line-height: 1.8; color: var(--doux); }
.sombre .w-intro, .sombre .w-intro p, .sombre .w-texte, .sombre .w-texte p { color: var(--sur-sombre); }
.w-petit, .w-petit p { font-size: 14px; color: var(--doux); }
.w-accroche .elementor-heading-title { font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; color: var(--creme) !important; }
.w-logo-hero .elementor-heading-title img { width: min(460px, 80vw); height: auto; margin: 0 auto; }
.w-numero .elementor-heading-title { font-size: 20px; color: var(--caramel); }

/* Boutons Elementor au style de la maquette (carrés) */
.elementor-widget-button .elementor-button { font-family: var(--font); font-size: 14px; font-weight: 700; letter-spacing: .5px; border-radius: 0; padding: 16px 32px; min-height: 48px; display: inline-flex; align-items: center; background: var(--brun); color: var(--blanc); border: 1px solid var(--brun); fill: currentColor; transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
.elementor-widget-button .elementor-button:hover, .elementor-widget-button .elementor-button:focus-visible { background: var(--noir); border-color: var(--noir); color: var(--blanc); transform: translateY(-2px); }
.w-btn--ligne .elementor-button { background: transparent; color: var(--brun); }
.w-btn--ligne .elementor-button:hover { background: var(--brun); color: var(--blanc); border-color: var(--brun); }
.w-btn--clair .elementor-button { background: var(--creme); border-color: var(--creme); color: var(--noir); }
.w-btn--clair .elementor-button:hover { background: var(--blanc); border-color: var(--blanc); color: var(--noir); }
.w-btn--ligne-clair .elementor-button { background: transparent; border-color: var(--creme); color: var(--creme); }
.w-btn--ligne-clair .elementor-button:hover { background: var(--creme); color: var(--noir); border-color: var(--creme); }
.w-lien .elementor-button { background: none !important; border: 0 !important; padding: 0 !important; color: var(--encre) !important; text-decoration: underline; text-underline-offset: 6px; min-height: 44px; transform: none !important; }
.w-lien .elementor-button:hover { color: var(--caramel) !important; }
.sombre .w-lien .elementor-button { color: var(--creme) !important; }

/* Images Elementor : proportions de la maquette */
.w-photo img, .w-photo .elementor-widget-container { width: 100%; }
.w-photo img { object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.w-photo .elementor-widget-container { overflow: hidden; }
.w-photo:hover img { transform: scale(1.04); }
.w-r-21-9 img { aspect-ratio: 21 / 9; }
.w-r-5-4 img { aspect-ratio: 5 / 4; }
.w-r-4-5 img { aspect-ratio: 4 / 5; }
.w-r-1 img { aspect-ratio: 1; }

/* Produits « incontournables » */
.w-produit { background: var(--fond); transition: transform .4s ease; }
.w-produit:hover { transform: translateY(-4px); }
.w-produit .w-photo img { aspect-ratio: 1; }
.w-filet-haut { border-top: 1px solid var(--encre) !important; padding-top: 28px !important; }
.w-filet-bas { border-bottom: 1px solid var(--trait) !important; padding-bottom: 20px !important; }

/* Photos des blocs fonctionnels */
.cadre-photo { overflow: hidden; }
.cadre-photo img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.cadre-photo:hover img, .pdv-carte:hover .cadre-photo img { transform: scale(1.04); }
.item__img { transition: transform .5s ease; }
.item:hover .item__img { transform: scale(1.06); }
.alerte { background: #FBE3B4; border-left: 3px solid #A1140C; padding: 12px 16px; font-size: 14px; color: var(--noir); }
.texte-page { padding: 0 24px 112px; }
.texte-page .entry-content { max-width: 760px; margin: 0 auto; color: var(--doux); line-height: 1.8; }
.texte-page h2 { font-size: 22px; color: var(--encre); margin: 32px 0 12px; }

/* En-tête : se resserre au défilement */
.header { transition: min-height .3s ease, background-color .3s ease, border-color .3s ease; }
.header__in { transition: min-height .3s ease, padding .3s ease; }
.header.is-scrolled .header__in { min-height: 72px; padding-top: 8px; padding-bottom: 8px; }
.header__logo img { transition: width .3s ease; }
.header.is-scrolled .header__logo img { width: 104px; }
.nav a { position: relative; }

/* Apparition au défilement des blocs générés (fiches, cartes, frise, produits) */
.js-anim .anim, .js-anim .anim-groupe > * { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js-anim .anim.est-visible, .js-anim .anim-groupe > .est-visible { opacity: 1; transform: none; }

/* Fond Ken Burns du hero : plus lent et plus doux */
.elementor-background-slideshow__slide__image { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .elementor-invisible { visibility: visible !important; }
  .elementor-ken-burns { transform: none !important; }
  .js-anim .anim, .js-anim .anim-groupe > * { opacity: 1; transform: none; }
}
.produit__nom .elementor-heading-title { font-size: 18px; }
.produit__prix .elementor-heading-title { font-size: 14px; color: var(--doux); white-space: nowrap; }
.max-640 { max-width: 640px; }
.galerie-elementor .gallery-item img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.galerie-elementor .gallery-item { overflow: hidden; margin: 0 !important; }
.galerie-elementor .gallery-item:hover img { transform: scale(1.05); }
.galerie-elementor .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 767px) { .galerie-elementor .gallery { grid-template-columns: 1fr; } }
.elementor-widget-shortcode .elementor-shortcode { width: 100%; }
/* Bandeau cookies (CookieAdmin) : ne dépasse pas l'écran sur mobile */
.cookieadmin_law_container { max-width: calc(100vw - 32px) !important; box-sizing: border-box; }
.cookieadmin_consent_inside { max-width: 100% !important; }

/* =========================================================
   Animations « éditoriales » (inspiration luckyfolks.fr), charte Dupond
   ========================================================= */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Barre de progression */
.progression { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--caramel); transform-origin: 0 50%; transform: scaleX(0); z-index: 100000; pointer-events: none; }
.admin-bar .progression { top: 32px; }

/* Textes latéraux fixes */
.cote { position: fixed; top: 50%; z-index: 40; font-size: 11px; font-weight: 700; letter-spacing: 6px; text-transform: uppercase; color: var(--caramel); pointer-events: none; opacity: .8; }
.cote--g { left: 14px; transform: translateY(-50%) rotate(-90deg); transform-origin: left center; margin-left: 6px; }
.cote--d { right: 14px; transform: translateY(-50%) rotate(90deg); transform-origin: right center; margin-right: 6px; }
@media (max-width: 1279px) { .cote { display: none; } }

/* Grain */
.grain { position: fixed; inset: -50%; z-index: 99999; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .15 0 0 0 0 .05 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,1%); } }

/* Titres mot à mot */
.anim-on .titre-mots .mot { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.anim-on .titre-mots .mot__in { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; transition: transform 1s cubic-bezier(.19,1,.22,1); }
.anim-on .titre-mots.vu .mot__in { transform: none; }

/* Photos dévoilées de bas en haut */
/* Le cadre reste visible (pour l'observateur de défilement) ; seule l'image est découpée. */
.revele { overflow: hidden; }
.anim-on .revele img { clip-path: inset(100% 0 0 0); scale: 1.25; transition: clip-path 1.3s cubic-bezier(.77,0,.18,1), scale 1.8s cubic-bezier(.19,1,.22,1), transform 1.2s cubic-bezier(.2,.7,.2,1); }
.anim-on .revele.vu img { clip-path: inset(0 0 0 0); scale: 1; }

/* Boutons : lettres qui roulent */
.roule { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.25; }
.roule__l { display: inline-block; position: relative; transition: transform .5s cubic-bezier(.65,0,.25,1); transition-delay: calc(var(--i) * 16ms); }
.roule__l::after { content: attr(data-l); position: absolute; left: 0; top: 100%; }
a:hover .roule__l, button:hover .roule__l, .elementor-button:hover .roule__l, a:focus-visible .roule__l { transform: translateY(-100%); }
.w-lien .elementor-button, .lien { text-decoration: none !important; border-bottom: 1px solid currentColor !important; border-radius: 0; padding-bottom: 2px !important; min-height: 0 !important; }
.lien::after { content: none; }

/* Badge rond tournant (hero) */
.w-badge { position: absolute !important; right: clamp(20px, 4vw, 56px); bottom: clamp(20px, 4vw, 56px); width: clamp(110px, 12vw, 160px) !important; z-index: 3; }
.hero-ken { position: relative; overflow: hidden; }
.badge-rond { position: relative; width: 100%; aspect-ratio: 1; }
.badge-rond__texte { width: 100%; height: 100%; display: block; will-change: transform; }
.badge-rond__texte text { font-family: var(--font); font-size: 15.5px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; fill: var(--creme); }
.badge-rond__centre { position: absolute; left: 50%; top: 50%; width: 42%; transform: translate(-50%, -46%); }
@media (max-width: 767px) { .w-badge { display: none; } }

/* Bandeau qui défile */
.bandeau { background: var(--brun); color: var(--creme); overflow: hidden; padding: clamp(48px, 8vw, 110px) 0; }
.bandeau__rot { transform: rotate(-4deg); margin: 0 -10vw; }
.bandeau__ligne { white-space: nowrap; font-weight: 700; text-transform: uppercase; font-size: clamp(44px, 8.5vw, 128px); line-height: 1.05; letter-spacing: -.01em; will-change: transform; }
.bandeau__ligne--contour { color: transparent; -webkit-text-stroke: 1.5px var(--creme); }
.bandeau__ligne span { color: var(--caramel); -webkit-text-stroke: 0; margin: 0 .25em; }
.anim-off .bandeau__ligne { transform: translateX(-10%); }

/* Photo découpée en forme de tampon Dupond, mot géant derrière */
.tampon-photo { position: relative; overflow: hidden; display: grid; place-items: center; padding: clamp(64px, 10vw, 140px) 20px; background: var(--fond-alt); }
.tampon-photo__mot { position: absolute; top: 50%; left: 50%; white-space: nowrap; font-weight: 700; text-transform: uppercase; font-size: clamp(90px, 20vw, 300px); line-height: 1; color: var(--brun); opacity: .95; transform: translate3d(-50%, -50%, 0); will-change: transform; z-index: 0; }
.tampon-photo__img { position: relative; z-index: 1; width: min(460px, 78vw); aspect-ratio: 718 / 890; background-size: cover; background-position: center; -webkit-mask: var(--masque) center / contain no-repeat; mask: var(--masque) center / contain no-repeat; will-change: transform; }
.tampon-photo__legende { position: relative; z-index: 2; margin-top: 28px; font-size: 12px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--caramel); }

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .titre-mots .mot__in, .revele, .revele img { transform: none !important; clip-path: none !important; scale: 1 !important; }
}

/* Corrections mobiles (test téléphone) */
.roule { white-space: nowrap; }
@media (max-width: 767px) {
  .cats { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 14px 4px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scroll-snap-type: x proximity; }
  .cats::-webkit-scrollbar { display: none; }
  .cats button { flex: 0 0 auto; scroll-snap-align: start; }
  .animated-slow { animation-duration: .9s !important; }
  .hero-ken .elementor-widget-button .elementor-button { min-width: 240px; justify-content: center; }
}

/* Sur tout ce qui est cliquable, le pointeur devient une spirale Dupond (motif de la charte) */
a[href], button:not(:disabled), [role="button"], summary, label[for], .choix label, .bascule label, .magasins label,
select, input[type="submit"], input[type="button"], input[type="checkbox"], input[type="radio"], input[type="file"],
.elementor-button, .galerie button, .cats button, .onglets button, .burger, .header__logo,
.elementor-widget-image a, .gallery-item a, .reseaux a, .hero__pause {
  cursor: url("assets/brand/curseur-spirale.svg") 16 16, url("assets/brand/curseur-spirale.png") 16 16, pointer !important;
}
a[aria-disabled="true"], .btn[aria-disabled="true"] { cursor: not-allowed !important; }
