/* Socle commun : remise à zéro + composants fonctionnels (tiroir, recherche,
   commande, textes légaux, formulaires). Aucune direction artistique ici : tout
   passe par les variables ci-dessous, que chaque boutique redéfinit dans styles.css. */
:root {
  --fond: #ffffff; --fond-2: #f5f5f3; --texte: #1a1a1a; --texte-doux: #666666;
  --accent: #222222; --accent-texte: #ffffff; --bord: #e4e4e0; --rayon: 4px;
  --police-titre: Georgia, serif; --police-texte: system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.sans-defilement { overflow: hidden; }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: var(--police-texte); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--police-titre); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.evitement { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--fond); padding: 10px 14px; }
.evitement:focus { left: 8px; top: 8px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.a-completer { background: #fff3a3; color: #5c4a00; padding: 0 4px; font-style: normal; border-radius: 2px; }
.anim [data-apparait] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.anim [data-apparait].vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; } }

/* Tiroir panier */
.voile { position: fixed; inset: 0; background: rgba(20, 20, 20, .4); opacity: 0; transition: opacity .25s; z-index: 60; }
.voile.ouvert { opacity: 1; }
.tiroir { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--fond); z-index: 70; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .26s ease; }
.tiroir.ouvert { transform: none; }
.tiroir-entete { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--bord); }
.tiroir-entete h2 { margin: 0; font-size: 1.15rem; }
.tiroir-fermer { background: none; border: 0; font-size: 1.8rem; line-height: 1; padding: 4px 8px; }
.tiroir-liste { flex: 1; overflow-y: auto; padding: 8px 20px; }
.tiroir-pied { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--bord); }
.tiroir-ligne { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; margin-bottom: 6px; }
.tiroir-note { font-size: .85rem; color: var(--texte-doux); margin-bottom: 12px; }
.tiroir-commander, .bouton, .achat-bouton, .formulaire button[type="submit"], .formulaire [data-confirmer], [data-payer], .barre-achat button {
  display: block; width: 100%; text-align: center; text-decoration: none; background: var(--accent); color: var(--accent-texte);
  border: 0; border-radius: var(--rayon); padding: 15px 18px; font-weight: 600; min-height: 48px;
}
.bouton { display: inline-block; width: auto; }
.tiroir-voir { display: block; text-align: center; padding: 10px; font-size: .9rem; }
.ligne-panier { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bord); }
.ligne-panier img { width: 72px; height: 96px; object-fit: cover; border-radius: var(--rayon); }
.ligne-corps { flex: 1; min-width: 0; }
.ligne-nom { display: block; text-decoration: none; font-weight: 600; }
.ligne-option { display: block; font-size: .85rem; color: var(--texte-doux); }
.ligne-bas { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.quantite { display: inline-flex; align-items: center; border: 1px solid var(--bord); border-radius: var(--rayon); }
.quantite button { background: none; border: 0; width: 36px; height: 36px; font-size: 1.1rem; }
.quantite span { min-width: 24px; text-align: center; }
.ligne-retirer { background: none; border: 0; padding: 6px 0 0; font-size: .8rem; color: var(--texte-doux); text-decoration: underline; }
.panier-vide { text-align: center; padding: 40px 10px; }
div.page-panier, .ck, .merci { max-width: 1080px; margin: 0 auto; padding: 32px 16px 64px; }
.panier-total { max-width: 420px; margin: 20px 0 0 auto; }
.merci { max-width: 640px; text-align: center; padding-top: 64px; }

/* Barre d'achat collée */
.barre-achat { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--fond); border-top: 1px solid var(--bord); transform: translateY(110%); transition: transform .2s; }
.barre-achat.visible { transform: none; }
.barre-achat-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .85rem; }
.barre-achat-texte span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre-achat button { width: auto; padding: 12px 22px; min-height: 44px; }
@media (max-width: 899px) { .barre-achat { display: flex; } .page-produit { padding-bottom: 84px; } }

/* Bloc d'achat */
.achat-option { border: 0; padding: 0; margin: 0 0 14px; }
.achat-option legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.achat-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.achat-choix input { position: absolute; opacity: 0; width: 0; height: 0; }
.achat-choix span { display: block; min-width: 48px; min-height: 44px; padding: 10px 12px; text-align: center; border: 1px solid var(--bord); border-radius: var(--rayon); cursor: pointer; }
.achat-choix input:checked + span { background: var(--accent); color: var(--accent-texte); border-color: var(--accent); }
.achat-choix input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.achat-erreur { color: #a4262c; font-size: .9rem; margin: 0 0 10px; }
.fiche-infos { margin: 0; }
.fiche-infos > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--bord); }
.fiche-infos dt { color: var(--texte-doux); }
.fiche-infos dd { margin: 0; text-align: right; }
.bloc-conformite { font-size: .85rem; color: var(--texte-doux); }
.bloc-conformite p { margin-bottom: .5em; }
.avertissements { border: 1px solid #c98a00; background: #fff8e6; color: #5a4300; padding: 10px 12px; border-radius: var(--rayon); font-size: .9rem; margin: 12px 0; }
.avertissements p { margin: 0; font-weight: 600; }
.avertissements p + p { margin-top: 6px; }

/* Bas de pied de page */
.pied-legal { font-size: .82rem; }
.pied-legal p { margin: 0 0 8px; }
.grille-vide { padding: 28px 0; }
.logos-paiement { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.logos-paiement svg { width: 42px; height: 26px; }
.lien-retractation { font-weight: 600; text-decoration: underline; }

/* Recherche */
.recherche { position: fixed; inset: 0; z-index: 80; background: var(--fond); padding: 16px; overflow-y: auto; }
.recherche-barre { display: flex; gap: 8px; max-width: 720px; margin: 0 auto 16px; align-items: center; }
.recherche-barre input { flex: 1; min-width: 0; padding: 12px 14px; font-size: 1.05rem; border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--fond); }
.recherche-barre button { background: none; border: 0; font-size: 1.8rem; line-height: 1; padding: 4px 8px; }
.recherche-resultats { max-width: 720px; margin: 0 auto; }
.recherche-resultat { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bord); text-decoration: none; }
.recherche-resultat img { width: 60px; height: 80px; object-fit: cover; border-radius: var(--rayon); }
.recherche-resultat span { flex: 1; min-width: 0; }

/* Textes légaux */
.legal { max-width: 780px; margin: 0 auto; padding: 40px 16px 72px; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4em; }
.legal ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.legal li { margin-bottom: .35em; }
.legal a { text-decoration: underline; }
.legal-intro { font-size: 1.1rem; color: var(--texte-doux); }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--bord); }
.legal .tableau { overflow-x: auto; }
.legal-mise-a-jour { font-size: .85rem; color: var(--texte-doux); margin-top: 2.5em; }
.encadre { border: 1px solid var(--bord); background: var(--fond-2); padding: 16px 18px; border-radius: var(--rayon); margin: 1em 0; font-size: .95rem; }
.faq details { border-bottom: 1px solid var(--bord); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details div { padding-top: 10px; }

/* Formulaires */
.formulaire label, .ck-form label { display: block; margin-bottom: 14px; font-size: .92rem; font-weight: 600; }
.formulaire input:not([type="checkbox"]):not(.piege), .formulaire textarea, .formulaire select,
.ck-form input:not([type="checkbox"]), .ck-form select {
  display: block; width: 100%; margin-top: 6px; padding: 12px; font-weight: 400; font-size: 16px; background: var(--fond); border: 1px solid var(--bord); border-radius: var(--rayon);
}
.bouton-secondaire { width: auto !important; margin-top: 8px; background: none !important; color: var(--texte) !important; border: 1px solid var(--bord) !important; }
.form-message { font-size: .92rem; margin: 10px 0 0; min-height: 1.2em; }
.form-message.ok { color: #1c6b3c; }
.form-message.erreur { color: #a4262c; }
.contact-grille { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .contact-grille { grid-template-columns: 1fr 1.3fr; } }
.newsletter-note { font-size: .78rem; margin: 8px 0 0; color: var(--texte-doux); }

/* Commande */
.ck h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.ck h2 { font-size: 1.1rem; }
.ck-grille { display: grid; gap: 28px; grid-template-columns: 1fr; }
.ck-resume { order: -1; background: var(--fond-2); padding: 16px; border-radius: var(--rayon); align-self: start; }
@media (min-width: 900px) { .ck-grille { grid-template-columns: 1.3fr 1fr; } .ck-resume { order: 0; position: sticky; top: 20px; } }
.ck-form section { margin-bottom: 26px; }
.ck-duo { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.ck-ligne { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.ck-ligne img { width: 56px; height: 74px; object-fit: cover; border-radius: var(--rayon); }
.ck-ligne div { flex: 1; min-width: 0; }
.ck-ligne span, .ck-ligne small { display: block; }
.ck-ligne small { color: var(--texte-doux); }
.ck-totaux { border-top: 1px solid var(--bord); margin-top: 8px; padding-top: 10px; }
.ck-totaux > div { display: flex; justify-content: space-between; padding: 3px 0; }
.ck-total { font-size: 1.15rem; font-weight: 600; margin-top: 6px; }
.ck-securite, .ck-note { font-size: .85rem; color: var(--texte-doux); margin: 10px 0; }
.ck-indisponible { padding: 14px; background: var(--fond-2); border-radius: var(--rayon); }
.ck-form .ck-cgv { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.ck-cgv input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
[data-payer]:disabled { opacity: .72; cursor: not-allowed; }

/* Consentement */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; max-width: 480px; margin: 0 auto; background: var(--fond); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 14px 16px; box-shadow: 0 6px 24px rgba(0, 0, 0, .15); font-size: .9rem; }
.consent p { margin-bottom: 10px; }
.consent div { display: flex; gap: 8px; }
.consent button { flex: 1; padding: 10px; border: 1px solid var(--texte); background: var(--fond); border-radius: var(--rayon); }

@font-face{font-family:"Grandstander";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/grandstander-600.woff2) format("woff2")}
@font-face{font-family:"Grandstander";font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/grandstander-800.woff2) format("woff2")}
@font-face{font-family:"Mulish";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/mulish-400.woff2) format("woff2")}
@font-face{font-family:"Mulish";font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/mulish-700.woff2) format("woff2")}

/* ==========================================================================
   Énigmette. Tout s'emboîte, et il manque toujours une pièce.

   Les blocs ne se posent pas les uns sur les autres : ils se mordent. Chaque
   bloc pousse un tenon dans son voisin (pseudo-éléments masqués), les cartes
   se touchent sans marge, et le fond citron est la table qu'on voit quand une
   pièce manque.
   ========================================================================== */
:root {
  --ivoire: #fffcf4; --pale: #efe9fb; --violet: #5436c8; --citron: #f4d94a; --encre: #1f1a3a;
  --citron-doux: #fbf0b4; --pale-fort: #dfd5f7;
  --fond: var(--ivoire); --fond-2: var(--pale); --texte: var(--encre); --texte-doux: #4e4869;
  --accent: var(--violet); --accent-texte: #ffffff; --bord: #cfc4ef; --rayon: 10px;
  --police-titre: "Grandstander", "Trebuchet MS", sans-serif;
  --police-texte: "Mulish", "Segoe UI", system-ui, sans-serif;

  /* Le tenon, dans ses quatre sens. */
  --t-haut: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 50' preserveAspectRatio='none'%3E%3Cpath d='M0 50C20 50 42.5 50 42.5 37.5 42.5 30 30 25 30 15 30 5 45 0 60 0s30 5 30 15c0 10-12.5 15-12.5 22.5C77.5 50 100 50 120 50z'/%3E%3C/svg%3E");
  --t-bas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 50' preserveAspectRatio='none'%3E%3Cpath transform='matrix(1 0 0 -1 0 50)' d='M0 50C20 50 42.5 50 42.5 37.5 42.5 30 30 25 30 15 30 5 45 0 60 0s30 5 30 15c0 10-12.5 15-12.5 22.5C77.5 50 100 50 120 50z'/%3E%3C/svg%3E");
  --t-droite: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 120' preserveAspectRatio='none'%3E%3Cpath transform='translate(50 0) rotate(90)' d='M0 50C20 50 42.5 50 42.5 37.5 42.5 30 30 25 30 15 30 5 45 0 60 0s30 5 30 15c0 10-12.5 15-12.5 22.5C77.5 50 100 50 120 50z'/%3E%3C/svg%3E");
  --t-gauche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 120' preserveAspectRatio='none'%3E%3Cpath transform='translate(0 120) rotate(-90)' d='M0 50C20 50 42.5 50 42.5 37.5 42.5 30 30 25 30 15 30 5 45 0 60 0s30 5 30 15c0 10-12.5 15-12.5 22.5C77.5 50 100 50 120 50z'/%3E%3C/svg%3E");
  /* La pièce entière, pour les masques. */
  --piece: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M6 10H12C11 7 12.5 4 16 4S21 7 20 10H26V15.5C29 14.5 31 16.5 31 19S29 23.5 26 22.5V28H6V22.5C9 23.5 11 21.5 11 19S9 14.5 6 15.5Z'/%3E%3C/svg%3E");
  /* Le trou : la même pièce, en pointillés. */
  --piece-trou: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='none' stroke='%235436c8' stroke-width='.9' stroke-linecap='round' stroke-dasharray='.1 1.9' d='M6 10H12C11 7 12.5 4 16 4S21 7 20 10H26V15.5C29 14.5 31 16.5 31 19S29 23.5 26 22.5V28H6V22.5C9 23.5 11 21.5 11 19S9 14.5 6 15.5Z'/%3E%3C/svg%3E");
  --pouce: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%235436c8' stroke='%23fffcf4' stroke-width='1.4' d='M6 10H12C11 7 12.5 4 16 4S21 7 20 10H26V15.5C29 14.5 31 16.5 31 19S29 23.5 26 22.5V28H6V22.5C9 23.5 11 21.5 11 19S9 14.5 6 15.5Z'/%3E%3C/svg%3E");
}

body { font-size: 1rem; line-height: 1.55; background: var(--ivoire); }
h1, h2, h3 { font-weight: 800; letter-spacing: -.01em; line-height: 1.08; }
a { text-underline-offset: 3px; text-decoration-thickness: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Un tenon : hérite de la couleur du bloc qui le porte. */
.bloc::before, .tete::after, .legal-entete::after, .regle::before,
.carte::after, .carte::before, .case::after, .q::after, .q::before, .pp::after, .pp::before,
.h::before, .faq details::after, .ck-form section + section::before, .ck-resume::after,
.tiroir::before, .tiroir::after, .menu::after, .barre-achat::before, .enigme-reponse::before, .avertissements::before {
  content: ""; position: absolute; background: inherit; z-index: 2; pointer-events: none;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-position: center; mask-position: center;
}

/* ------------------------------------------------------------------ boutons */
.bouton, .achat-bouton, .tiroir-commander, .formulaire button[type="submit"], .formulaire [data-confirmer], [data-payer], .barre-achat button {
  font-family: var(--police-titre); font-weight: 800; font-size: 1.05rem; letter-spacing: .005em; border-radius: var(--rayon);
  padding: 14px 20px 12px; min-height: 50px; line-height: 1.2; transition: background-color .15s, transform .15s;
}
.bouton:hover, .achat-bouton:hover, .tiroir-commander:hover, .formulaire button[type="submit"]:hover { background: #452bb0; }
.bouton:active, .achat-bouton:active, .tiroir-commander:active { transform: translateY(1px); }
.bouton { position: relative; padding-right: 30px; }
.bouton::after { content: ""; position: absolute; top: 50%; right: -11px; width: 12px; height: 28px; margin-top: -14px; background: inherit; -webkit-mask: var(--t-droite) center/100% 100% no-repeat; mask: var(--t-droite) center/100% 100% no-repeat; }
.bouton-creux { background: transparent; color: var(--accent); border: 2.5px solid var(--accent); cursor: pointer; padding: 11px 20px 9px; }
.bouton-creux:hover { background: var(--accent); color: #fff; }
.bouton-creux::after { display: none; }

/* -------------------------------------------------------------------- entête */
.entete { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 62px; padding: 0 8px 0 12px; background: var(--ivoire); box-shadow: 0 2px 0 var(--citron); }
main { position: relative; }
main::before { content: ""; position: absolute; left: 64px; top: 0; width: 36px; height: 15px; z-index: 3; background: var(--ivoire); -webkit-mask: var(--t-bas) center/100% 100% no-repeat; mask: var(--t-bas) center/100% 100% no-repeat; pointer-events: none; }
.logo { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--encre); min-height: 44px; min-width: 0; }
.logo-piece { width: 40px; height: 40px; fill: var(--violet); flex: none; }
.logo-mot { font-family: var(--police-titre); font-weight: 800; font-size: 1.32rem; letter-spacing: -.02em; line-height: 1; padding-top: 5px; }
.nav { display: none; }
.outils { display: flex; align-items: center; gap: 0; flex: none; }
.outil { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--encre); padding: 0; }
.outil svg { width: 24px; height: 24px; }
.panier-piece { position: relative; width: 52px; height: 52px; margin-left: 2px; background: none; border: 0; padding: 0; color: var(--violet); }
.panier-piece svg { width: 52px; height: 52px; }
.panier-compte { position: absolute; left: 0; right: 0; top: 23px; text-align: center; font-family: var(--police-titre); font-weight: 800; font-size: .98rem; line-height: 1.3; color: #fff; }
.panier-compte[data-n="0"] { color: var(--citron); }

.entete-commander { position: relative; z-index: 2; box-shadow: none; }
.retour-panier { font-weight: 700; color: var(--violet); padding: 12px 8px; }

/* -------------------------------------------------------------------- le menu */
.menu { position: fixed; top: 0; left: 0; bottom: 0; width: min(340px, calc(100% - 30px)); background: var(--ivoire); z-index: 70; transform: translateX(-104%); transition: transform .26s ease; }
.menu.ouvert { transform: none; }
.menu::after { top: 34%; right: -19px; width: 20px; height: 48px; -webkit-mask-image: var(--t-droite); mask-image: var(--t-droite); }
.menu-corps { height: 100%; overflow-y: auto; padding: 8px 0 24px; display: flex; flex-direction: column; }
.menu-haut { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 10px 18px; }
.menu-titre { font-family: var(--police-titre); font-weight: 800; font-size: 1.3rem; }
.menu-fermer { width: 44px; height: 44px; background: none; border: 0; font-size: 2rem; line-height: 1; color: var(--encre); }
.menu-boite { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 16px; text-decoration: none; background: var(--pale); font-family: var(--police-titre); font-weight: 800; font-size: 1.22rem; line-height: 1.1; }
.menu-boite small { font-family: var(--police-texte); font-weight: 700; font-size: .85rem; color: var(--texte-doux); flex: none; }
.menu-boite:nth-of-type(even) { background: var(--citron-doux); }
.menu-boite::after { content: ""; position: absolute; left: 22%; bottom: -13px; width: 36px; height: 14px; background: inherit; z-index: 2; -webkit-mask: var(--t-bas) center/100% 100% no-repeat; mask: var(--t-bas) center/100% 100% no-repeat; }
.menu-boite:nth-of-type(even)::after { left: 60%; }
.menu-tout { background: var(--citron); }
.menu-suite { padding: 26px 18px 0; }
.menu-suite a { display: block; padding: 11px 0; font-weight: 700; text-decoration: none; }

/* ----------------------------------------------------------- le premier écran */
.hero { position: relative; background: var(--citron); }
.hero-grille { position: relative; aspect-ratio: 390 / 568; max-width: 1440px; margin: 0 auto; overflow: hidden; }
.dp { position: absolute; left: var(--x); top: var(--y); width: var(--l); height: var(--h); -webkit-clip-path: var(--c); clip-path: var(--c); display: block; background: var(--pale); }
.dp img { width: 100%; height: 100%; object-fit: cover; }
a.dp { transition: filter .15s; }
a.dp:hover { filter: saturate(1.15) brightness(1.04); }
a.dp:focus-visible { outline: none; filter: brightness(.82); }
.coutures { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.coutures path { fill: none; vector-effect: non-scaling-stroke; }
.coutures .c-piece { stroke: var(--citron); stroke-width: 3; }
.coutures .c-trou { stroke: var(--violet); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: .5 7; }
.coutures-b { display: none; }
.hero .coutures .c-piece { stroke-width: 3.5; }

.dp-0 img { object-position: 50% 50%; }
.dp-1 img { object-position: 50% 52%; }
.trou { position: absolute; left: 0; top: 25%; width: 66.667%; height: 50%; padding: 14px 8px 8px 18px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.trou h1 { font-size: clamp(2.05rem, 10.4vw, 2.75rem); line-height: .98; margin: 0 0 8px; color: var(--encre); }
.trou-texte { font-size: clamp(.92rem, 3.9vw, 1rem); line-height: 1.32; margin: 0 0 12px; font-weight: 700; }
.trou .bouton { padding: 12px 28px 10px 16px; min-height: 46px; font-size: 1rem; }
.trou-promesse { font-size: .84rem; line-height: 1.28; margin: 8px 0 0; font-weight: 700; color: var(--encre); }
.trou-promesse span { display: block; }

/* Les pièces se mettent en place à l'arrivée : 300 ms, chacune d'un côté. */
@keyframes se-poser { from { opacity: 0; transform: translate(var(--dx, 0), var(--dy, -18px)) rotate(var(--r, -5deg)) scale(.96); } }
@keyframes apparaitre { from { opacity: 0; } }
.dp { animation: se-poser .3s cubic-bezier(.2, .8, .3, 1.15) both; }
.dp:nth-of-type(2n) { --dx: 14px; --dy: 16px; --r: 4deg; }
.dp:nth-of-type(3n) { --dx: -16px; --dy: 10px; --r: 6deg; }
.coutures { animation: apparaitre .12s .26s both; }
.anim [data-apparait] { opacity: 0; transform: translateY(20px) rotate(-.6deg); transition: opacity .3s ease, transform .3s cubic-bezier(.2, .8, .3, 1.15); }
.anim [data-apparait].vu { opacity: 1; transform: none; }

/* ------------------------------------------------------------ les blocs du site */
.bloc { position: relative; padding: 54px 16px 56px; }
.bloc::before { left: var(--tx, 18%); top: -29px; width: 72px; height: 30px; -webkit-mask-image: var(--t-haut); mask-image: var(--t-haut); }
.bloc-tete { margin-bottom: 22px; }
.bloc-tete h2 { font-size: clamp(2rem, 9vw, 3.2rem); margin-bottom: 6px; }
.bloc-tete p { margin: 0; font-size: 1.05rem; color: var(--texte-doux); }
.surtitre { font-family: var(--police-titre); font-weight: 800; font-size: 1rem; color: var(--violet); margin-bottom: 8px; }
.compte { font-weight: 700; font-size: .95rem; color: var(--texte-doux); margin: 0; }

/* L'énigme du jour */
.enigme { background: var(--pale); --tx: 62%; padding-top: 58px; }
.enigme-interieur { max-width: 760px; }
.enigme h2 { font-size: clamp(1.45rem, 6vw, 2.2rem); font-weight: 600; line-height: 1.2; margin-bottom: 20px; letter-spacing: 0; }
.enigme-trou { position: absolute; right: 8px; top: 12px; width: 74px; height: 74px; margin: 0; display: grid; place-items: center; padding: 8px 4px 0 0; background: var(--piece-trou) center/contain no-repeat; font-family: var(--police-titre); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--violet); }
.enigme-reponse { position: relative; margin-top: 26px; padding: 18px 16px 8px; background: var(--ivoire); border-radius: var(--rayon); font-size: 1.05rem; }
.enigme-reponse::before { left: 26px; top: -15px; width: 38px; height: 16px; -webkit-mask-image: var(--t-haut); mask-image: var(--t-haut); }

/* Quel niveau ? */
.niveau { background: var(--ivoire); --tx: 20%; }
.echelle { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 -16px 18px; }
.case { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; min-height: 92px; padding: 12px 2px 8px; border: 0; background: var(--pale); color: var(--encre); transition: background-color .15s, color .15s; }
.case:nth-child(even) { background: var(--citron-doux); }
.case::after { right: -10px; top: 26%; width: 11px; height: 26px; -webkit-mask-image: var(--t-droite); mask-image: var(--t-droite); }
.case:nth-child(even)::after { top: 48%; }
.case:last-child::after { display: none; }
.case-n { font-family: var(--police-titre); font-weight: 800; font-size: 1.75rem; line-height: 1; }
.case-nom { font-size: .82rem; font-weight: 700; line-height: 1.12; text-align: center; hyphens: none; }
.case.actif, .case.actif:nth-child(even) { background: var(--violet); color: #fff; z-index: 3; }

/* Les rangées et les grilles : les cartes se touchent et s'emboîtent. */
.rangee { display: flex; margin: 16px -16px 0; padding: 0 0 26px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rangee::-webkit-scrollbar { display: none; }
.rangee .carte { flex: 0 0 min(62%, 250px); scroll-snap-align: start; }
.rangee::after { content: ""; flex: 0 0 150px; align-self: center; height: 120px; background: var(--piece-trou) center/contain no-repeat; }
.rangee .carte:first-child { scroll-margin-left: 0; }
.fleches { display: none; }

.grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 -16px; padding-bottom: 20px; }
.grille::after { content: ""; min-height: 200px; background: var(--piece-trou) center/62% no-repeat; }

.carte { position: relative; background: var(--pale); padding: 12px 12px 16px; display: flex; flex-direction: column; min-width: 0; }
.carte:nth-child(4n+2), .carte:nth-child(4n+3) { background: var(--ivoire); }
.carte:nth-child(7n+4) { background: var(--citron-doux); }
.rangee .carte:nth-child(n) { background: var(--pale); }
.rangee .carte:nth-child(even) { background: var(--citron-doux); }
.niveau .rangee .carte:nth-child(even) { background: var(--citron-doux); }
.combien .rangee .carte:nth-child(odd) { background: var(--ivoire); }
/* tenon latéral */
.carte::after { top: var(--tenon-y, 38%); right: -13px; width: 14px; height: 34px; -webkit-mask-image: var(--t-droite); mask-image: var(--t-droite); }
.carte:nth-child(3n)::after { --tenon-y: 56%; }
.carte:nth-child(3n+1)::after { --tenon-y: 26%; }
/* tenon du bas */
.carte::before { bottom: -13px; left: var(--tenon-x, 34%); width: 34px; height: 14px; -webkit-mask-image: var(--t-bas); mask-image: var(--t-bas); }
.carte:nth-child(3n+2)::before { --tenon-x: 54%; }
.grille .carte:nth-child(even)::after { display: none; }
.rangee .carte::before { display: none; }
.rangee .carte:last-child::after { display: none; }

.carte-lien { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; min-width: 0; }
.carte-photo { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--pale-fort); margin-bottom: 9px; }
.carte-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.carte-lien:hover .carte-photo img { transform: scale(1.04); }
.carte-nom { font-size: 1.04rem; font-weight: 600; line-height: 1.14; margin: 6px 0 8px; letter-spacing: 0; }
.carte-bas { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-top: auto; font-size: .9rem; flex-wrap: wrap; }
.carte-age { color: var(--texte-doux); font-weight: 700; font-size: .85rem; }
.carte-prix { font-weight: 700; font-size: 1rem; white-space: nowrap; }
.carte-ajout { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; padding: 0; background: var(--violet); color: #fff; -webkit-mask: var(--piece) center/100% 100% no-repeat; mask: var(--piece) center/100% 100% no-repeat; font-family: var(--police-titre); font-weight: 800; font-size: 1.3rem; line-height: 1; z-index: 1; }
.carte-ajout span { position: relative; top: 4px; left: 0; }
.carte-ajout:hover { background: #452bb0; }
.carte-ajout:focus-visible { background: var(--encre); outline: none; }

.jauge { display: inline-flex; gap: 2px; }
.jauge svg { width: 20px; height: 20px; }
.jauge .plein { fill: var(--violet); }
.jauge .vide { fill: none; stroke: var(--violet); stroke-width: 2; opacity: .45; }
.jauge-petite svg { width: 15px; height: 15px; }
.jauge-petite { gap: 1px; }

/* Combien de pièces ? */
.combien { background: var(--pale); --tx: 66%; padding-bottom: 44px; }
.curseur { max-width: 620px; --pouce-l: 44px; }
.curseur input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 48px; margin: 0; padding: 0; background: transparent; cursor: pointer; }
.curseur input::-webkit-slider-runnable-track { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--violet) var(--rempli, 0%), var(--pale-fort) var(--rempli, 0%)); }
.curseur input::-moz-range-track { height: 12px; border-radius: 6px; background: var(--pale-fort); }
.curseur input::-moz-range-progress { height: 12px; border-radius: 6px; background: var(--violet); }
.curseur input::-webkit-slider-thumb { -webkit-appearance: none; width: 46px; height: 46px; margin-top: -17px; border: 0; background: var(--pouce) center/100% 100% no-repeat; }
.curseur input::-moz-range-thumb { width: 46px; height: 46px; border: 0; border-radius: 0; background: var(--pouce) center/100% 100% no-repeat; }
.curseur-reperes { display: flex; justify-content: space-between; margin: 0 -4px; }
.curseur-reperes button { min-height: 44px; padding: 8px 4px; background: none; border: 0; font-weight: 700; font-size: .92rem; color: var(--texte-doux); }
.curseur-reperes button.actif { color: var(--violet); font-family: var(--police-titre); font-weight: 800; font-size: 1rem; }

/* La réassurance : quatre pièces qui se tiennent. */
.assurances { background: var(--citron); --tx: 14%; padding: 0; }
.quatre { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.q { position: relative; padding: 24px 16px 26px; display: flex; flex-direction: column; gap: 6px; }
.q strong { font-family: var(--police-titre); font-weight: 800; font-size: 1.16rem; line-height: 1.12; }
.q span { font-size: .92rem; line-height: 1.32; color: var(--texte-doux); }
.q-1 { background: var(--citron); }
.q-1 span { color: var(--encre); }
.q-2 { background: var(--pale); }
.q-3 { background: var(--citron-doux); }
.q-3 span, .q-4 span { color: var(--encre); }
.q-4 { background: var(--pale-fort); }
.q::after { right: -14px; top: 30%; width: 15px; height: 36px; -webkit-mask-image: var(--t-droite); mask-image: var(--t-droite); }
.q::before { bottom: -14px; left: 34%; width: 36px; height: 15px; -webkit-mask-image: var(--t-bas); mask-image: var(--t-bas); }
.q-2::after, .q-4::after { display: none; }
.q-3::after { top: 52%; }
.q-2::before { left: 54%; }
.q-3::before { left: 22%; }
.q-4::before { left: 62%; }

/* --------------------------------------------------------------- le pied de page */
.pied { background: var(--pale); position: relative; padding: 0 0 28px; }
.pied-pieces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pp { position: relative; padding: 26px 14px 26px 16px; min-width: 0; }
.pp h2 { font-size: 1.14rem; margin-bottom: 10px; }
.pp ul { display: block; }
.pp li a { display: flex; align-items: center; min-height: 44px; padding: 4px 0; text-decoration: none; font-size: .95rem; line-height: 1.2; }
.pp li a:hover { color: var(--violet); text-decoration: underline; }
.pp-1 { background: var(--pale-fort); }
.pp-2 { background: var(--ivoire); }
.pp-3 { background: var(--citron-doux); }
.pp-4 { background: var(--pale-fort); }
.pp::after { right: -14px; top: 44%; width: 15px; height: 36px; -webkit-mask-image: var(--t-droite); mask-image: var(--t-droite); }
.pp::before { bottom: -14px; left: 30%; width: 36px; height: 15px; -webkit-mask-image: var(--t-bas); mask-image: var(--t-bas); }
.pp-2::after, .pp-4::after, .pp-3::before, .pp-4::before { display: none; }
.pp-3::after { top: 24%; }
.pp-2::before { left: 58%; }
.lettre input[type="email"] { width: 100%; min-height: 46px; padding: 10px 12px; font-size: 16px; background: var(--ivoire); border: 2px solid var(--violet); border-radius: 8px; }
.lettre button { width: 100%; min-height: 46px; margin-top: 8px; border: 0; border-radius: 8px; background: var(--violet); color: #fff; font-family: var(--police-titre); font-weight: 800; padding: 10px; }
.lettre .newsletter-note, .lettre .form-message { font-size: .8rem; color: var(--encre); }
.lettre .form-message.ok { color: var(--encre); font-weight: 700; }
.pied-bas { padding: 30px 16px 0; position: relative; }
.pied-bas::after { content: ""; position: absolute; right: 12px; top: 18px; width: 76px; height: 76px; background: var(--piece-trou) center/contain no-repeat; }
.pied-legal { font-size: .88rem; }
.pied-legal-coord { padding-right: 84px; line-height: 1.5; }
.pied-legal-coord a { font-weight: 700; }
.pied-legal-coord .a-completer { white-space: nowrap; }
.logos-paiement { margin: 10px 0 12px; }
.pied-legal-liens { font-weight: 700; margin: 0 0 4px; }
.pied-legal-liens a { display: inline-flex; align-items: center; min-height: 44px; }
.pied-legal-coord a[href^="mailto"] { display: inline-block; padding: 12px 0; }
.pied-legal-copy { color: var(--texte-doux); margin: 0; }

.pied-allege { padding: 26px 16px 28px; }
.pied-ligne { display: flex; flex-wrap: wrap; gap: 0 16px; margin-bottom: 14px; }
.pied-ligne a { display: flex; align-items: center; min-height: 44px; font-size: .92rem; }

/* --------------------------------------------------------- têtes de page, filtres */
.tete { position: relative; background: var(--citron); padding: 34px 16px 40px; }
.tete h1 { font-size: clamp(2.5rem, 12vw, 4.6rem); margin-bottom: 8px; line-height: 1; }
.tete p { margin: 0; max-width: 34em; font-size: 1.08rem; font-weight: 700; }
.tete::after { left: 22%; bottom: -29px; width: 72px; height: 30px; -webkit-mask-image: var(--t-bas); mask-image: var(--t-bas); }
.tete-casse-tetes::after { left: 62%; }
.tete-logique::after { left: 42%; }
.tete-tangrams-labyrinthes::after { left: 12%; }
.catalogue { padding: 44px 16px 34px; }
.tete::before { content: ""; position: absolute; right: 6%; top: 50%; width: 150px; height: 150px; margin-top: -75px; background: var(--piece-trou) center/contain no-repeat; display: none; }
.filtres { margin-bottom: 18px; }
.filtre-ligne { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 8px; padding: 2px 16px; scrollbar-width: none; }
.filtre-ligne::-webkit-scrollbar { display: none; }
.puce { flex: none; min-height: 44px; padding: 8px 14px; background: var(--pale); border: 0; border-radius: var(--rayon); font-weight: 700; font-size: .94rem; color: var(--encre); white-space: nowrap; }
.puce-n { font-family: var(--police-titre); font-weight: 800; color: var(--violet); margin-right: 3px; }
.puce.actif { background: var(--violet); color: #fff; }
.puce.actif .puce-n { color: var(--citron); }
.filtre-bas { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.tri { display: flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 700; }
.tri select { min-height: 44px; font-size: 16px; padding: 6px 8px; background: var(--ivoire); border: 2px solid var(--bord); border-radius: 8px; max-width: 170px; }
.grille-vide { text-align: left; padding: 8px 0 24px; }
.grille-vide p { font-family: var(--police-titre); font-weight: 600; font-size: 1.3rem; line-height: 1.2; max-width: 22em; }

/* ------------------------------------------------------------- la fiche produit */
.fiche { padding: 0 0 8px; }
.fiche-puzzle { position: relative; aspect-ratio: 3 / 2; background: var(--citron); overflow: hidden; }
.fiche-puzzle .coutures .c-piece { stroke-width: 3; }
.fiche-trou { position: absolute; right: 0; bottom: 0; width: 25%; height: 33.333%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; color: var(--encre); padding-top: 4px; }
.fiche-trou b { font-family: var(--police-titre); font-weight: 800; font-size: clamp(1.8rem, 9vw, 3.2rem); line-height: .95; }
.fiche-trou small { font-size: .78rem; font-weight: 700; }
.fiche-achat, .fiche-plus { padding: 16px 16px 0; }
.fiche-plus { padding-top: 10px; }
.fil { font-size: .92rem; font-weight: 700; margin: -10px 0 -6px; }
.fil a { display: inline-flex; align-items: center; min-height: 44px; color: var(--violet); }
.fiche h1 { font-size: clamp(1.9rem, 8.4vw, 2.9rem); margin-bottom: 6px; }
.fiche-resume { margin: 0 0 8px; font-size: 1.04rem; color: var(--texte-doux); }
.fiche-ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.fiche-prix { font-family: var(--police-titre); font-weight: 800; font-size: 1.7rem; line-height: 1.1; margin: 0; white-space: nowrap; }
.fiche-prix small { font-family: var(--police-texte); font-size: .84rem; font-weight: 700; color: var(--texte-doux); }
.fiche-niveau { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; font-size: .92rem; line-height: 1.2; }
.fiche-essentiel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; margin: 0 0 12px; background: var(--pale); border-radius: var(--rayon); padding: 4px 14px; }
.fiche-essentiel > div { grid-column: 1 / -1; display: flex; gap: 12px; justify-content: space-between; padding: 7px 0; font-size: .95rem; line-height: 1.3; }
.fiche-essentiel > .demi { grid-column: auto; }
.fiche-essentiel > div + div { border-top: 2px dotted var(--bord); }
.fiche-essentiel > .demi + .demi { border-top: 0; }
.fiche-essentiel dt { font-weight: 700; flex: none; }
.fiche-essentiel dd { margin: 0; text-align: right; }

.avertissements { position: relative; background: var(--citron-doux); border: 0; border-radius: var(--rayon); color: var(--encre); padding: 10px 14px; font-size: .92rem; line-height: 1.32; margin: 10px 0 14px; }
.avertissements::before { display: none; }
.avertissements p { font-weight: 700; }
.achat { margin: 0 0 14px; }
.achat-bouton { position: relative; font-size: 1.12rem; min-height: 56px; }
.achat-erreur { color: #a4262c; }
.fiche-promesses { display: grid; gap: 2px; margin-bottom: 22px; font-size: .94rem; font-weight: 700; }
.fiche-promesses li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.fiche-promesses li::before { content: ""; width: 16px; height: 16px; flex: none; background: var(--violet); -webkit-mask: var(--piece) center/100% 100% no-repeat; mask: var(--piece) center/100% 100% no-repeat; }

.regle { position: relative; background: var(--citron); border-radius: var(--rayon); padding: 18px 16px 10px; margin: 0 0 24px; }
.regle h2 { font-size: 1.28rem; margin-bottom: 8px; }
.regle p { margin-bottom: 6px; font-weight: 700; line-height: 1.32; }
.regle::before { top: -13px; left: 30px; width: 34px; height: 14px; -webkit-mask-image: var(--t-haut); mask-image: var(--t-haut); }
.fiche-description { font-size: 1.04rem; }
.fiche-details { margin-bottom: 18px; }
.fiche-details li { position: relative; padding: 3px 0 3px 22px; font-size: .96rem; }
.fiche-details li::before { content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 14px; background: var(--citron); -webkit-mask: var(--piece) center/100% 100% no-repeat; mask: var(--piece) center/100% 100% no-repeat; }
.depli { border-top: 2px dotted var(--bord); padding: 4px 0; }
.depli:last-of-type { border-bottom: 2px dotted var(--bord); }
.depli summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-family: var(--police-titre); font-weight: 800; font-size: 1.04rem; list-style: none; padding-top: 4px; }
.depli summary::-webkit-details-marker { display: none; }
.depli summary::after { content: "+"; margin-left: auto; color: var(--violet); font-size: 1.4rem; }
.depli[open] summary::after { content: "–"; }
.fiche-infos > div { border-bottom: 2px dotted var(--bord); font-size: .95rem; }
.fiche-infos > div:last-child { border-bottom: 0; }
.fiche-infos dt { color: var(--texte-doux); flex: none; }
.bloc-conformite { color: var(--texte); padding-bottom: 4px; font-size: .9rem; }
.depli-lien { font-size: .92rem; font-weight: 700; }
.depli-lien a { color: var(--violet); }

.meme-boite { background: var(--pale); margin-top: 44px; --tx: 16%; padding-bottom: 34px; }
.grille-voisins::after { display: none; }
.meme-boite .carte:nth-child(n) { background: var(--ivoire); }
.meme-boite .carte:nth-child(4n+2), .meme-boite .carte:nth-child(4n+3) { background: var(--citron-doux); }

.barre-achat { border-top: 0; background: var(--citron); }
.barre-achat:not(.visible) { transform: translateY(140%); }
.barre-achat::before { top: -13px; left: 24%; width: 36px; height: 14px; -webkit-mask-image: var(--t-haut); mask-image: var(--t-haut); }
.barre-achat-texte { font-weight: 700; }
.barre-achat-texte strong { font-family: var(--police-titre); font-weight: 800; font-size: 1.05rem; }

/* ------------------------------------------------------------- le tiroir, le panier */
.voile { background: rgba(31, 26, 58, .46); }
.tiroir { width: min(420px, calc(100% - 22px)); background: var(--ivoire); }
.tiroir::before { left: -17px; top: 21%; width: 18px; height: 44px; -webkit-mask-image: var(--t-gauche); mask-image: var(--t-gauche); }
.tiroir::after { left: -17px; top: 58%; width: 18px; height: 44px; -webkit-mask-image: var(--t-gauche); mask-image: var(--t-gauche); }
.tiroir-entete { background: var(--citron); border: 0; padding: 12px 8px 12px 18px; }
.tiroir-entete h2 { font-size: 1.4rem; margin: 4px 0 0; }
.tiroir-fermer { min-width: 44px; min-height: 44px; color: var(--encre); }
.tiroir-liste { padding: 0; }
.tiroir-liste::after { content: ""; display: block; height: 118px; margin: 26px 0 10px; background: var(--piece-trou) center/contain no-repeat; }
.tiroir-liste:has(.panier-vide)::after { display: none; }
.tiroir-pied { position: relative; border: 0; background: var(--pale); }
.tiroir-ligne { font-weight: 700; }
.tiroir-ligne strong { font-family: var(--police-titre); font-weight: 800; font-size: 1.32rem; }
.tiroir-note { color: var(--encre); }
.tiroir-voir { font-weight: 700; color: var(--violet); min-height: 44px; }
.ligne-panier { position: relative; padding: 14px 16px; border: 0; background: var(--ivoire); gap: 14px; }
.ligne-panier:nth-child(even) { background: var(--pale); }
.ligne-panier::after { content: ""; position: absolute; left: 56px; bottom: -11px; width: 30px; height: 12px; background: inherit; z-index: 2; -webkit-mask: var(--t-bas) center/100% 100% no-repeat; mask: var(--t-bas) center/100% 100% no-repeat; }
.ligne-panier img { width: 76px; height: 76px; border-radius: 8px; }
.ligne-nom { font-family: var(--police-titre); font-weight: 600; font-size: 1.04rem; line-height: 1.15; }
.ligne-bas strong { font-weight: 700; }
.quantite { border: 2px solid var(--bord); background: var(--ivoire); border-radius: 8px; }
.quantite button { width: 44px; height: 44px; color: var(--violet); font-weight: 700; font-size: 1.2rem; }
.quantite span { font-weight: 700; }
.ligne-retirer { min-height: 44px; padding: 0 12px 0 0; color: var(--texte-doux); font-size: .84rem; }
.panier-vide { padding: 34px 20px 40px; text-align: center; }
.panier-vide::before { content: ""; display: block; width: 104px; height: 104px; margin: 0 auto 8px; background: var(--piece-trou) center/contain no-repeat; }
.panier-vide p { font-family: var(--police-titre); font-weight: 800; font-size: 1.32rem; line-height: 1.15; margin-bottom: 12px; }
.panier-vide a { color: var(--violet); font-weight: 700; display: inline-block; padding: 10px; }

div.page-panier { padding: 0 0 56px; max-width: none; }
.page-panier h1 { position: relative; background: var(--citron); padding: 34px 16px 34px; margin: 0; font-size: clamp(2.3rem, 11vw, 4rem); line-height: 1; }
.page-panier h1::after { content: ""; position: absolute; left: 22%; bottom: -13px; width: 36px; height: 14px; background: inherit; z-index: 2; -webkit-mask: var(--t-bas) center/100% 100% no-repeat; mask: var(--t-bas) center/100% 100% no-repeat; }
[data-panier-page] { max-width: 760px; margin: 0 auto; padding: 0 0 8px; }
.panier-lignes { border-bottom: 2px dotted var(--bord); }
.panier-total { max-width: none; margin: 18px 0 0; padding: 0 16px; }
.panier-total .tiroir-ligne strong { font-size: 1.5rem; }

/* ------------------------------------------------------------------ la commande */
.page-commander { background: var(--ivoire); }
.ck { max-width: 1080px; padding: 8px 0 40px; }
.ck h1 { position: relative; background: var(--citron); margin: 0; padding: 22px 16px 24px; font-size: clamp(1.9rem, 8.6vw, 3rem); line-height: 1.04; }
.ck-grille { gap: 0; }
.ck-resume { position: relative; background: var(--pale); border-radius: 0; padding: 18px 16px 22px; }
.ck-resume h2, .ck-form h2 { font-size: 1.32rem; margin-bottom: 12px; }
.ck-resume::after { left: 26%; bottom: -13px; width: 36px; height: 14px; -webkit-mask-image: var(--t-bas); mask-image: var(--t-bas); }
.ck-ligne img { width: 58px; height: 58px; border-radius: 8px; }
.ck-ligne span { font-weight: 700; line-height: 1.2; }
.ck-totaux { border-top: 2px dotted var(--bord); }
.ck-total { font-family: var(--police-titre); font-weight: 800; font-size: 1.3rem; }
.ck-form section { position: relative; margin: 0; padding: 26px 16px 24px; background: var(--ivoire); }
.ck-form section:nth-child(even) { background: var(--citron-doux); }
.ck-form section + section::before { top: -13px; left: var(--tx, 60%); width: 36px; height: 14px; -webkit-mask-image: var(--t-haut); mask-image: var(--t-haut); }
.ck-form section:nth-child(3) { --tx: 24%; }
.ck-form section:nth-child(4) { --tx: 46%; }
.ck-form label { font-weight: 700; }
.formulaire input:not([type="checkbox"]):not(.piege), .formulaire textarea, .formulaire select, .ck-form input:not([type="checkbox"]), .ck-form select {
  border: 2px solid var(--bord); border-radius: 8px; background: #fff; min-height: 48px;
}
.formulaire input:focus, .formulaire textarea:focus, .ck-form input:focus, .ck-form select:focus { border-color: var(--violet); outline: 2px solid var(--violet); outline-offset: 0; }
.ck-indisponible { background: var(--pale); border-radius: var(--rayon); font-weight: 700; }
.ck-securite, .ck-note { color: var(--encre); }
.ck-valider { display: block; }
.ck-form .ck-cgv { font-weight: 400; }
.ck-cgv input { accent-color: var(--violet); width: 22px; height: 22px; }
[data-payer] { background: var(--violet); }
[data-payer]:disabled { opacity: .78; }

.merci { padding: 56px 16px 72px; text-align: left; max-width: 760px; position: relative; }
.merci h1 { font-size: clamp(2.3rem, 11vw, 4rem); line-height: 1; margin-bottom: 14px; }
.merci p { font-size: 1.06rem; }
.merci-note { color: var(--texte-doux); }
.merci::before { content: ""; display: block; width: 120px; height: 120px; margin: 0 0 8px -14px; background: var(--piece-trou) center/contain no-repeat; }

/* ----------------------------------------------------- pages de texte et légales */
.legal { max-width: none; padding: 0 0 64px; }
.legal-entete { position: relative; background: var(--citron); padding: 30px 16px 54px; }
.legal-entete::before { content: ""; position: absolute; right: 6px; bottom: 2px; width: 56px; height: 56px; background: var(--piece-trou) center/contain no-repeat; }
.legal-entete::after { left: 18%; bottom: -29px; width: 72px; height: 30px; -webkit-mask-image: var(--t-bas); mask-image: var(--t-bas); }
.legal h1 { font-size: clamp(1.9rem, 8.6vw, 3.8rem); line-height: 1.02; margin: 0; max-width: 18em; }
.legal-entete .legal-intro { color: var(--encre); font-weight: 700; margin: 12px 0 0; max-width: 36em; padding-right: 40px; }
.legal-corps { max-width: 760px; margin: 0 auto; padding: 44px 16px 0; }
.legal-corps > .legal-intro { font-size: 1.1rem; color: var(--texte); font-weight: 700; }
.legal h2 { position: relative; font-size: 1.44rem; line-height: 1.14; margin-top: 2em; padding-left: 32px; }
.legal h2::before { content: ""; position: absolute; left: 0; top: .02em; width: 25px; height: 25px; background: var(--violet); -webkit-mask: var(--piece) center/100% 100% no-repeat; mask: var(--piece) center/100% 100% no-repeat; }
.legal h2:nth-of-type(3n+2)::before { background: var(--citron); }
.legal h2:nth-of-type(3n)::before { background: none; -webkit-mask: none; mask: none; background: var(--piece-trou) center/contain no-repeat; }
.legal h3 { font-size: 1.14rem; font-weight: 600; }
.legal ul { list-style: none; padding-left: 0; }
.legal li { position: relative; padding-left: 20px; }
.legal li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--violet); border-radius: 2px; transform: rotate(45deg); }
.legal a { color: var(--violet); font-weight: 700; }
.legal th { font-family: var(--police-titre); font-weight: 800; background: var(--pale); }
.legal th, .legal td { border-bottom: 2px dotted var(--bord); }
.legal-mise-a-jour { color: var(--texte-doux); }
.encadre { position: relative; background: var(--pale); border: 0; border-radius: var(--rayon); padding: 16px 16px; font-size: 1rem; }
.legal .formulaire button, .legal .contact-grille button { font-family: var(--police-titre); }

.faq { margin-top: 4px; }
.faq details { position: relative; border: 0; padding: 0; background: var(--pale); }
.faq details:nth-child(even) { background: var(--citron-doux); }
.faq details::after { bottom: -13px; left: 26%; width: 36px; height: 14px; -webkit-mask-image: var(--t-bas); mask-image: var(--t-bas); }
.faq details:nth-child(even)::after { left: 62%; }
.faq details:last-child::after { display: none; }
.faq summary { font-family: var(--police-titre); font-weight: 600; font-size: 1.14rem; line-height: 1.2; list-style: none; padding: 17px 44px 14px 16px; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 12px; font-weight: 800; font-size: 1.5rem; color: var(--violet); }
.faq details[open] summary::after { content: "–"; }
.faq details div { padding: 0 16px 16px; }
.faq details div p { margin-bottom: 0; }
.faq details a { color: var(--violet); }

.contact-infos { background: var(--pale); border-radius: var(--rayon); padding: 18px 16px 8px; }
.contact-infos h2 { padding-left: 0; margin-top: 0; }
.contact-infos h2::before { display: none; }
.formulaire h2 { margin-top: 0; padding-left: 0; }
.formulaire h2::before { display: none; }
.formulaire .bouton-secondaire { color: var(--encre) !important; border: 2px solid var(--bord) !important; font-family: var(--police-titre); font-weight: 800; }
.form-message.erreur { color: #a4262c; }

/* ----------------------------------------------------------------- notre histoire */
.histoire { display: grid; grid-template-columns: 1fr; padding-top: 0; }
.h { position: relative; padding: 42px 16px 40px; }
.h::before { left: var(--tx, 20%); top: -13px; width: 40px; height: 14px; -webkit-mask-image: var(--t-haut); mask-image: var(--t-haut); }
.h h2 { font-size: clamp(1.8rem, 8vw, 2.7rem); margin-bottom: 10px; }
.h p { font-size: 1.08rem; max-width: 34em; }
.h-1 { background: var(--ivoire); }
.h-1::before { display: none; }
.h-2 { background: var(--pale); --tx: 58%; }
.h-3 { background: var(--citron-doux); --tx: 30%; }
.h-4 { background: var(--ivoire); --tx: 66%; }
.h-photo { padding: 0; background: var(--ivoire); }
.h-photo::before { display: none; }
.h-photo img { width: 100%; }

/* ------------------------------------------------------------------- la recherche */
.recherche { background: var(--ivoire); padding: 14px 16px; }
.recherche-barre input { border: 2.5px solid var(--violet); border-radius: var(--rayon); font-size: 16px; min-height: 50px; background: #fff; }
.recherche-barre button { min-width: 44px; min-height: 44px; color: var(--encre); }
.recherche-resultat { border-bottom: 2px dotted var(--bord); min-height: 64px; }
.recherche-resultat img { width: 60px; height: 60px; border-radius: 8px; }
.recherche-resultat span { font-family: var(--police-titre); font-weight: 600; line-height: 1.15; }
.recherche-vide { font-family: var(--police-titre); font-weight: 600; font-size: 1.15rem; }

/* ------------------------------------------------------------------- à partir de 600 */
@media (min-width: 600px) {
  .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grille .carte:nth-child(even)::after { display: block; }
  .grille .carte:nth-child(3n)::after { display: none; }
  .carte:nth-child(n) { background: var(--pale); }
  .carte:nth-child(even) { background: var(--ivoire); }
  .carte:nth-child(7n+4) { background: var(--citron-doux); }
  .tete::before { display: block; }
  .quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .q-2::after, .q-3::after { display: block; }
  .q-4::after, .q::before { display: none; }
  .q-2::after { top: 52%; } .q-3::after { top: 26%; }
  .q-1::before, .q-3::before { display: block; }
  .q-1::before { left: 58%; } .q-3::before { left: 26%; }
  .q-3 { background: var(--pale-fort); } .q-4 { background: var(--citron-doux); }
  .pied-pieces { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pp-2::after { display: block; }
  .pp-4::after, .pp::before { display: none; }
  .pp-2::after { top: 24%; } .pp-3::after { top: 60%; }
}

/* Dès 700 px, le puzzle du premier écran passe à sa grille large. */
@media (min-width: 700px) {
  .hero-grille { aspect-ratio: 1280 / 760; }
  .coutures-m { display: none; }
  .coutures-b { display: block; }
  .dp { left: var(--X); top: var(--Y); width: var(--L); height: var(--H); -webkit-clip-path: var(--C); clip-path: var(--C); }
  .fiche-puzzle .dp { left: var(--x); top: var(--y); width: var(--l); height: var(--h); -webkit-clip-path: var(--c); clip-path: var(--c); }
  .trou { left: 25%; top: 33.333%; width: 50%; height: 66.667%; padding: 14px 20px 10px 32px; }
  .trou h1 { font-size: clamp(2.3rem, 5.6vw, 3.2rem); margin-bottom: 8px; }
  .trou-texte { font-size: .98rem; }
}

/* ------------------------------------------------------------------- le bureau */
@media (min-width: 900px) {
  .entete { height: 74px; padding: 0 28px; gap: 22px; }
  main::before { left: 92px; width: 48px; height: 19px; }
  .logo-piece { width: 50px; height: 50px; }
  .logo-mot { font-size: 1.7rem; }
  .nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
  .nav a { position: relative; display: flex; align-items: center; min-height: 48px; padding: 6px 15px 2px; font-family: var(--police-titre); font-weight: 800; font-size: 1.12rem; text-decoration: none; border-radius: var(--rayon); transition: background-color .15s; }
  .nav a:hover { background: var(--pale); }
  .nav .nav-discret { font-family: var(--police-texte); font-weight: 700; font-size: .96rem; color: var(--texte-doux); padding-top: 2px; }
  .outils { gap: 2px; }

  .hero-grille { aspect-ratio: 1280 / 642; }
  .trou { padding: 22px 40px 14px 44px; }
  .trou h1 { font-size: clamp(3.2rem, 5.4vw, 5rem); margin-bottom: 14px; }
  .trou-texte { font-size: 1.14rem; max-width: 26em; margin-bottom: 18px; }
  .trou .bouton { padding: 15px 34px 13px 22px; font-size: 1.14rem; }
  .trou-promesse { font-size: .94rem; margin-top: 14px; }

  .bloc { padding: 76px 48px 78px; }
  .bloc::before { width: 108px; height: 44px; top: -43px; }
  .bloc-tete { margin-bottom: 28px; }
  .enigme { padding-top: 80px; }
  .niveau, .combien { padding-right: 0; display: grid; grid-template-columns: 410px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 44px; align-items: start; }
  .niveau .bloc-tete, .combien .bloc-tete { grid-column: 1; grid-row: 1; }
  .echelle, .curseur { grid-column: 1; grid-row: 2; }
  .niveau .compte { grid-column: 1; grid-row: 3; }
  .niveau .rangee, .combien .rangee { grid-column: 2; grid-row: 1 / span 3; }
  .niveau .grille-vide { grid-column: 2; }
  .echelle { margin: 0 0 16px; }
  .case { min-height: 104px; padding-top: 14px; }
  .case-n { font-size: 2.1rem; }
  .case-nom { font-size: .86rem; }
  .case::after { right: -11px; width: 12px; height: 30px; }
  .rangee { margin: 0; padding: 0 48px 18px 0; scroll-padding-left: 0; scrollbar-width: thin; scrollbar-color: var(--violet) transparent; }
  .rangee::-webkit-scrollbar { display: block; height: 8px; }
  .rangee::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 4px; }
  .rangee .carte { flex: 0 0 256px; }
  .fleches { display: flex; gap: 6px; grid-column: 1; grid-row: 3; justify-self: end; align-self: start; margin-top: 2px; }
  .combien .fleches { justify-self: start; margin-top: 18px; }
  .fleche { width: 48px; height: 48px; display: grid; place-items: center; padding: 0 0 4px; border: 0; border-radius: var(--rayon); background: var(--violet); color: #fff; font-family: var(--police-titre); font-weight: 800; font-size: 1.8rem; line-height: 1; cursor: pointer; transition: background-color .15s; }
  .fleche:hover { background: #452bb0; }
  .fleche:disabled { background: var(--pale-fort); color: var(--texte-doux); cursor: default; }
  .curseur-reperes button { font-size: .96rem; }
  .enigme { display: grid; grid-template-columns: minmax(0, 1fr) 280px; column-gap: 40px; align-items: center; padding-left: 8%; padding-right: 8%; }
  .enigme-interieur { margin: 0; grid-column: 1; grid-row: 1; }
  .enigme-trou { position: static; grid-column: 2; grid-row: 1; width: 280px; height: 280px; font-size: 5.6rem; padding: 34px 14px 0 0; }

  .assurances { padding: 0; }
  .q { padding: 32px 30px 34px; }
  .q strong { font-size: 1.36rem; }
  .q span { font-size: 1rem; }

  .pp { padding: 38px 30px 40px 34px; }
  .pp h2 { font-size: 1.34rem; }
  .pied-bas { padding: 34px 34px 0; display: flex; }
  .pied-bas::after { right: 34px; top: 22px; width: 96px; height: 96px; }
  .pied-legal { width: 100%; }

  .tete { padding: 52px 48px 58px; }
  .tete::after { width: 108px; height: 44px; bottom: -43px; }
  .catalogue { padding: 62px 48px 48px; max-width: 1360px; margin: 0 auto; }
  .filtres { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: center; }
  .filtre-ligne { margin: 0; padding: 0; overflow: visible; flex-wrap: wrap; grid-column: 1; }
  .filtre-bas { grid-column: 2; grid-row: 1 / span 2; margin: 0; flex-direction: column; align-items: flex-end; gap: 4px; }
  .grille { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
  .grille .carte:nth-child(n)::after { display: block; }
  .grille .carte:nth-child(4n)::after { display: none; }
  .carte:nth-child(n) { background: var(--pale); }
  .carte:nth-child(8n+2), .carte:nth-child(8n+4), .carte:nth-child(8n+5), .carte:nth-child(8n+7) { background: var(--ivoire); }
  .carte:nth-child(7n+4) { background: var(--citron-doux); }
  .grille .carte { padding: 16px 16px 20px; }
  .rangee .carte:nth-child(n) { background: var(--ivoire); }
  .niveau .rangee .carte:nth-child(odd) { background: var(--pale); }
  .niveau .rangee .carte:nth-child(even) { background: var(--citron-doux); }
  .combien .rangee .carte:nth-child(odd) { background: var(--ivoire); }
  .combien .rangee .carte:nth-child(even) { background: var(--citron-doux); }
  .carte-nom { font-size: 1.16rem; }
  .carte-ajout { top: 20px; right: 20px; }

  .fiche { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 52px; max-width: 1360px; margin: 0 auto; padding: 0 48px 0 0; align-items: start; }
  .fiche-puzzle { grid-column: 1; grid-row: 1; aspect-ratio: 4 / 3; }
  .fiche-trou small { font-size: .92rem; }
  .fiche-achat { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 74px; padding: 26px 0 0; }
  .fiche-plus { grid-column: 1; grid-row: 2; padding: 34px 0 0 48px; }
  .meme-boite { padding-left: 48px; padding-right: 48px; }
  .meme-boite .grille { max-width: 1264px; margin: 0 auto; }
  .meme-boite .bloc-tete { max-width: 1264px; margin: 0 auto 28px; }
  .meme-boite .carte:nth-child(n) { background: var(--ivoire); }
  .meme-boite .carte:nth-child(even) { background: var(--citron-doux); }

  .page-panier h1 { padding: 52px 48px 54px; }
  [data-panier-page] { padding-top: 12px; }
  .panier-total { padding: 0 16px; }
  .ck { padding: 0 0 56px; max-width: none; }
  .ck h1 { padding: 34px 48px 36px max(48px, calc((100vw - 1084px) / 2 + 38px)); }
  .ck-form section:nth-child(odd) .ck-indisponible { background: var(--ivoire); }
  .ck-grille { max-width: 1180px; margin: 0 auto; padding: 0 48px; gap: 0; }
  .ck-form section { padding: 34px 38px 32px; }
  .ck-form section:nth-child(odd) { background: var(--pale); }
  .ck-form section + section::before { width: 46px; height: 18px; top: -17px; }
  .ck-resume { position: sticky; top: 24px; background: var(--citron-doux); padding: 26px 28px 28px; }
  .ck-resume::after { left: -17px; bottom: auto; top: 54px; width: 18px; height: 46px; -webkit-mask-image: var(--t-gauche); mask-image: var(--t-gauche); }
  .ck-grille { align-items: start; }
  .pied-allege { padding: 26px 48px 30px; }

  .legal-entete { padding: 52px 48px 58px max(48px, calc((100% - 760px) / 2 + 16px)); }
  .legal-entete::before { right: 8%; top: 50%; bottom: auto; margin-top: -65px; width: 130px; height: 130px; }
  .legal-entete::after { left: 14%; width: 108px; height: 44px; bottom: -43px; }
  .legal-corps { padding-top: 66px; }
  .legal-entete h1, .legal-entete .legal-intro { max-width: 760px; }
  .merci { margin: 0 auto; padding-top: 72px; }

  .histoire { grid-template-columns: repeat(12, minmax(0, 1fr)); max-width: 1360px; margin: 0 auto; }
  .h { padding: 60px 48px; }
  .h::before { display: none; }
  .h-1 { grid-column: 1 / span 6; display: flex; flex-direction: column; justify-content: center; }
  .h-photo { grid-column: 7 / span 6; }
  .h-photo img { height: 100%; object-fit: cover; }
  .h-2 { grid-column: 1 / span 4; }
  .h-3 { grid-column: 5 / span 4; }
  .h-4 { grid-column: 9 / span 4; }
  .h-1::before, .h-2::before, .h-3::before { display: block; left: auto; right: -13px; top: 40%; width: 14px; height: 36px; -webkit-mask-image: var(--t-droite); mask-image: var(--t-droite); }
  .h-3::before { top: 58%; }
}
@media (min-width: 1500px) {
  .niveau .rangee, .combien .rangee { justify-content: flex-start; }
}

@media (max-width: 349px) {
  .trou-promesse { display: none; }
  .trou { padding: 10px 6px 4px 14px; }
  .trou-texte { margin-bottom: 8px; }
}
