/* 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:"Lora";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/lora-400.woff2) format("woff2")}
@font-face{font-family:"Lora";font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/lora-400i.woff2) format("woff2")}
@font-face{font-family:"Quicksand";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/quicksand-400.woff2) format("woff2")}
@font-face{font-family:"Quicksand";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/quicksand-600.woff2) format("woff2")}

/* ==========================================================================
   Siestine. Une seule idée : le lit, couche par couche, sur une page qui descend
   du crépuscule à l'aube. Le fond est un dégradé clair (lavande, aurore, jour).
   Tout ce qui s'y pose est un drap : bord ondulé, léger recouvrement, 600 ms.
   ========================================================================== */
:root {
  --lavande: #eef0f7; --aurore: #f7e4da; --jour: #fdf7e7; --blanc: #ffffff; --nuit: #31406a;
  --rose: #fbeee8; --brume: #e2e6f2; --or: #f6dca4;
  --fond: #ffffff; --fond-2: #eef0f7; --texte: #31406a; --texte-doux: #55618a;
  --accent: #31406a; --accent-texte: #ffffff; --bord: #d7dbe9; --rayon: 14px;
  --police-titre: "Lora", Georgia, "Times New Roman", serif;
  --police-texte: "Quicksand", "Trebuchet MS", system-ui, sans-serif;
  --pose: cubic-bezier(.3, .7, .25, 1);
  --h-entete: 56px;
  --ombre-drap: 0 -5px 12px rgba(49, 64, 106, .07);

  /* Les bords de tissu : un même geste, trois plis différents. */
  --pli-1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V24C120 8 230 4 360 14s210 22 340 16 230-24 340-20 110 10 160 14v16Z'/%3E%3C/svg%3E");
  --pli-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V12c90 10 200 24 330 20s220-26 350-24 230 26 330 24 140-14 190-20v28Z'/%3E%3C/svg%3E");
  --pli-3: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V30c140-22 250-26 380-14s200 20 330 8 240-20 330-12 110 12 160 8v20Z'/%3E%3C/svg%3E");
  --pli-bas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 16' preserveAspectRatio='none'%3E%3Cpath d='M0 0V9c50 6 100 7 170 3s130-8 230 1V0Z'/%3E%3C/svg%3E");
  --pli-droit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 1000' preserveAspectRatio='none'%3E%3Cpath d='M0 0H26c10 120 14 230 4 360s-20 210-14 340 22 230 18 300H0Z'/%3E%3C/svg%3E");
  --pli-gauche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 1000' preserveAspectRatio='none'%3E%3Cpath d='M40 0H14C4 120 0 230 10 360s20 210 14 340-22 230-18 300h34Z'/%3E%3C/svg%3E");
  --trait: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 8'%3E%3Cpath d='M1 5c10-4 18-4 28-1s20 4 40-1' fill='none' stroke='%2331406a' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
  --lune: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E");
}

html { background: var(--jour); scroll-padding-top: 70px; }
body {
  background: linear-gradient(180deg, #e8ebf6 0, var(--lavande) 10%, #f3e9ea 42%, var(--aurore) 62%, #fbeee0 80%, var(--jour) 94%);
  font-size: 1rem; font-weight: 400; color: var(--texte);
  font-synthesis: none;
}
h1, h2, h3, h4 { font-weight: 400; letter-spacing: -.005em; }
strong, b { font-weight: 600; }
a { text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Se poser : le tissu arrive d'un peu plus haut et s'allonge sur place. */
.anim [data-apparait] { opacity: 0; transform: translateY(-12px) scaleY(1.025); transform-origin: 50% 0; transition: opacity .6s var(--pose), transform .6s var(--pose); }
.anim [data-apparait].vu { opacity: 1; transform: none; }

.heure { font-family: var(--police-titre); font-style: italic; color: var(--texte-doux); margin: 0 0 .35em; font-size: 1rem; }

/* ---------------------------------------------------------------- boutons */
.bouton, .achat-bouton, .tiroir-commander, .formulaire button[type="submit"], .formulaire [data-confirmer], [data-payer], .barre-achat button {
  border-radius: 999px; font-weight: 600; letter-spacing: .01em; transition: background-color .6s var(--pose), color .6s var(--pose), border-color .6s var(--pose);
}
.bouton { text-align: center; padding: 14px 26px; }
.bouton:hover, .achat-bouton:hover, .tiroir-commander:hover, .formulaire button[type="submit"]:hover, [data-payer]:hover:not(:disabled), .barre-achat button:hover { background: #24304f; }
.bouton-doux { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.bouton-doux:hover { background: var(--accent); color: var(--accent-texte); }

/* ---------------------------------------------------------------- l'entête */
.entete {
  position: sticky; top: 0; z-index: 30; height: var(--h-entete); padding: 0 6px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: rgba(255, 255, 255, .58); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.entete-droite { display: flex; justify-content: flex-end; }
.entete-icone { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; padding: 0; color: var(--nuit); position: relative; }
.logo { display: block; padding: 5px 0; color: var(--nuit); text-decoration: none; }
.logo-dessin { width: 124px; height: auto; display: block; overflow: visible; }
.logo-mot { font-family: var(--police-titre); font-style: italic; font-size: 31px; fill: currentColor; }
.logo-lune { fill: currentColor; }
.logo-ligne { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.pastille { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--nuit); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.entete-retour { display: inline-block; padding: 12px 6px; font-size: .84rem; font-weight: 600; text-decoration: underline; white-space: nowrap; }

/* -------------------------------------------- le menu : le lit vu en coupe */
.menu {
  position: fixed; inset: 0 0 auto 0; max-height: 100dvh; overflow-y: auto; z-index: 70; color: var(--nuit);
  background: var(--jour);
  transform: translateY(-104%); transition: transform .26s ease; padding-bottom: 26px;
}
.menu.ouvert { transform: none; transition: transform .6s var(--pose); }
.menu-tete { display: flex; justify-content: flex-end; padding: 6px 6px 16px; background: var(--lavande); }
.menu-fermer { width: 44px; height: 44px; background: none; border: 0; font-size: 1.9rem; line-height: 1; color: var(--nuit); }
.menu-couches { list-style: none; margin: 0; padding: 0; }
.menu-couches li { position: relative; margin-top: -4px; background: var(--strate); }
.menu-couches li:nth-child(1) { --strate: #e6e9f5; } .menu-couches li:nth-child(2) { --strate: #efe9f0; } .menu-couches li:nth-child(3) { --strate: #f6e5e2; } .menu-couches li:nth-child(4) { --strate: #f9e9da; } .menu-couches li:nth-child(5) { --strate: #fcf2df; }
.menu-couches li::before { content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px; background: inherit; -webkit-mask: var(--pli-1) center / 100% 100% no-repeat; mask: var(--pli-1) center / 100% 100% no-repeat; }
.menu-couches li:nth-child(even)::before { -webkit-mask-image: var(--pli-2); mask-image: var(--pli-2); }
.menu-couches a { display: block; padding: 13px 20px 15px; text-decoration: none; }
.menu-couches span { display: block; font-family: var(--police-titre); font-size: 1.6rem; line-height: 1.2; }
.menu-couches small { display: block; font-size: .9rem; color: var(--texte-doux); margin-top: 2px; }
.menu-liens { padding: 18px 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.menu-liens a { display: block; padding: 11px 0; font-weight: 600; text-decoration: none; }

.voile { background: rgba(49, 64, 106, .3); }

/* ---------------------------------------------------- le premier écran */
/* Le drap garde sa hauteur, la photo prend ce qui reste de l'écran : le bouton reste
   visible dans les navigateurs de TikTok et d'Instagram, plus bas qu'un Safari plein écran. */
.ouverture { position: relative; display: flex; flex-direction: column; min-height: calc(100svh - var(--h-entete)); }
.ouverture-photo { position: relative; flex: 1 1 0; min-height: 170px; overflow: hidden; }
.ouverture-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%; }
.ouverture-drap { flex: none; position: relative; margin-top: -8px; padding: 6px 20px 24px; background: var(--lavande); animation: se-poser .6s var(--pose) both; }
.ouverture-drap::before { content: ""; position: absolute; left: 0; right: 0; top: -25px; height: 26px; background: inherit; -webkit-mask: var(--pli-1) center / 100% 100% no-repeat; mask: var(--pli-1) center / 100% 100% no-repeat; }
@keyframes se-poser { from { transform: translateY(16px); } }
.ouverture h1 { font-size: clamp(2.9rem, 13.6vw, 5.8rem); line-height: 1; margin: 0 0 .22em; letter-spacing: -.015em; }
.ouverture h1 em { font-style: italic; }
.ouverture-texte { margin: 0 0 14px; font-size: 1.04rem; line-height: 1.4; max-width: 30em; }
.ouverture-bouton { display: block; width: 100%; }
/* Téléphones courts : le bouton reste dans le premier écran. */
@media (max-width: 899px) and (max-height: 720px) {
  .ouverture-drap .heure { display: none; }
  .ouverture h1 { font-size: 2.5rem; margin-bottom: .18em; }
  .ouverture-texte { font-size: .98rem; margin-bottom: 10px; }
  .lits { margin-bottom: 10px; }
  .lits legend { margin-bottom: 4px; }
  .lits label span { padding: 6px 2px; gap: 4px; }
  .ouverture-promesse { margin-top: 8px; }
}
.ouverture-promesse { margin: 12px 0 0; font-size: .86rem; color: var(--texte-doux); font-weight: 600; }

/* Le sélecteur : chaque taille dessine un petit lit à sa proportion. */
.lits { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.lits legend { padding: 0; margin-bottom: 7px; font-weight: 600; font-size: .92rem; }
.lits-choix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lits input { position: absolute; opacity: 0; width: 0; height: 0; }
.lits label { display: block; height: 100%; }
.lits label span { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; padding: 9px 2px 8px; border-radius: 12px; background: var(--blanc); font-weight: 600; font-size: .9rem; white-space: nowrap; cursor: pointer; box-shadow: inset 0 0 0 1px var(--bord); transition: background-color .6s var(--pose), color .6s var(--pose); }
.lits input:checked + span { background: var(--nuit); color: #fff; box-shadow: none; }
.lits input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.mini-lit { display: block; position: relative; width: calc(var(--l) * .17px); height: calc(var(--h) * .15px); border: 1.4px solid currentColor; border-radius: 3px; }
.mini-lit::before { content: ""; position: absolute; left: 12%; right: 12%; top: 3px; height: 6px; border-radius: 2px; background: repeating-linear-gradient(90deg, currentColor 0 44%, transparent 44% 56%, currentColor 56% 100%); opacity: .55; }

/* ---------------------------------------------- faire le lit, en cinq couches */
.faire { padding-top: 46px; }
.faire-tete { padding: 0 20px 18px; max-width: 640px; }
.faire-tete h2, .nuits-tete h2, .matin-tete h2 { font-size: clamp(2.3rem, 10vw, 4rem); line-height: 1.05; margin: 0 0 .25em; }
.faire-tete p:last-child { margin: 0; font-size: 1.04rem; }

.couches { list-style: none; margin: 0; padding: 0; --onglet: 44px; }
.couche {
  position: sticky; top: calc(var(--h-entete) + var(--i) * var(--onglet));
  height: min(520px, calc(100svh - var(--h-entete) - 4 * var(--onglet) - 10px));
  display: flex; flex-direction: column; background: var(--c);
  filter: drop-shadow(var(--ombre-drap));
}
.couche::before { content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px; background: inherit; -webkit-mask: var(--pli-2) center / 100% 100% no-repeat; mask: var(--pli-2) center / 100% 100% no-repeat; }
.couche:nth-child(odd)::before { -webkit-mask-image: var(--pli-3); mask-image: var(--pli-3); }
.couche-1 { --c: var(--blanc); } .couche-2 { --c: #fbe6d8; } .couche-3 { --c: var(--brume); } .couche-4 { --c: #fdf0ee; } .couche-5 { --c: #f6f6e6; }
.couche-onglet { flex: none; height: var(--onglet); display: flex; align-items: center; gap: 10px; padding: 0 20px; }
.couche-onglet h3 { flex: 1; min-width: 0; margin: 0; font-size: 1.22rem; line-height: 1; white-space: nowrap; }
.couche-num { font-family: var(--police-titre); font-style: italic; color: var(--texte-doux); }
.couche-prix { font-weight: 600; font-size: .9rem; white-space: nowrap; }
.couche-corps { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.couche-photo { flex: 1; min-height: 0; overflow: hidden; }
.couche-photo img { width: 100%; height: 100%; object-fit: cover; }
.couche-texte { flex: none; padding: 14px 20px 18px; }
.couche-phrase { font-family: var(--police-titre); font-size: 1.16rem; line-height: 1.32; margin: 0 0 8px; }
.couche-article { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; margin: 0 0 12px; font-size: .92rem; }
.couche-article a { display: inline-block; margin: -10px 0; padding: 10px 0; font-weight: 600; }
.couche-article span { color: var(--texte-doux); }
.couche-bouton { display: block; width: 100%; padding: 13px 18px; }
@media (max-height: 620px) { .couche { position: relative; top: auto; height: auto; } .couche-photo { height: 200px; flex: none; } }

/* -------------------------------------------- nuit chaude, nuit fraîche */
.nuits { padding: 64px 0 40px; position: relative; }
.nuits-tete { padding: 0 20px 18px; }
.nuit { display: block; position: relative; text-decoration: none; width: 88%; }
.nuit-fraiche { margin: -22px 0 0 auto; z-index: 1; }
.nuit-photo { display: block; overflow: hidden; }
.nuit-photo img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; transition: transform .6s var(--pose); }
.nuit:hover .nuit-photo img { transform: scale(1.02); }
.nuit-chaude .nuit-photo { border-radius: 0 18px 0 0; }
.nuit-fraiche .nuit-photo { border-radius: 18px 0 0 0; }
.nuit-drap { position: relative; display: block; padding: 8px 20px 34px; background: var(--c); --c: var(--blanc); }
.nuit-fraiche .nuit-drap { --c: var(--rose); padding-bottom: 20px; }
.nuit-drap::before { content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px; background: inherit; -webkit-mask: var(--pli-1) center / 100% 100% no-repeat; mask: var(--pli-1) center / 100% 100% no-repeat; }
.nuit-drap strong { display: block; font-family: var(--police-titre); font-weight: 400; font-size: 1.7rem; line-height: 1.15; margin-bottom: 4px; }
.nuit-drap > span { display: block; line-height: 1.4; }
.nuit-drap em { display: inline-block; font-style: normal; font-weight: 600; margin-top: 8px; padding: 4px 0; text-decoration: underline; }

/* ------------------------------------------------------------- le matin */
.matin { position: relative; background: var(--jour); margin-top: 34px; padding: 26px 0 44px; }
.matin::before { content: ""; position: absolute; left: 0; right: 0; top: -25px; height: 26px; background: inherit; -webkit-mask: var(--pli-3) center / 100% 100% no-repeat; mask: var(--pli-3) center / 100% 100% no-repeat; }
.matin-tete { padding: 0 20px 22px; }
.matin-tete .bouton { width: 100%; }
.matin-photo { overflow: hidden; }
.matin-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.matin-rang, .finir-rang { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 22px 20px 12px; scrollbar-width: none; }
.matin-rang::-webkit-scrollbar, .finir-rang::-webkit-scrollbar { display: none; }
.matin-rang .carte, .finir-rang .carte { scroll-snap-align: center; }

.page-accueil .pied { background: var(--jour); }
.douceur { margin: 0; padding: 34px 20px 58px; background: var(--jour); font-family: var(--police-titre); font-style: italic; font-size: 1.28rem; line-height: 1.4; }

/* ---------------------------------------- cartes : le linge plié en pile */
.carte { min-width: 0; }
.carte-lien { display: block; text-decoration: none; position: relative; }
.carte-visuel { display: block; position: relative; padding-bottom: 13px; }
.carte-visuel::before, .carte-visuel::after {
  content: ""; position: absolute; left: 0; right: 0; top: 40%; bottom: 0;
  -webkit-mask: var(--pli-bas) bottom / 100% 14px no-repeat, linear-gradient(#000, #000) top / 100% calc(100% - 13px) no-repeat;
  mask: var(--pli-bas) bottom / 100% 14px no-repeat, linear-gradient(#000, #000) top / 100% calc(100% - 13px) no-repeat;
  transition: transform .6s var(--pose);
}
.carte-visuel::before { background: var(--plie-2, var(--brume)); }
.carte-visuel::after { bottom: 6px; background: var(--plie-1, var(--blanc)); }
.carte:nth-child(3n+2) { --plie-2: var(--aurore); }
.carte:nth-child(3n) { --plie-2: #f4e7c4; }
.carte-visuel img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px 14px 0 0;
  -webkit-mask: var(--pli-bas) bottom / 100% 14px no-repeat, linear-gradient(#000, #000) top / 100% calc(100% - 13px) no-repeat;
  mask: var(--pli-bas) bottom / 100% 14px no-repeat, linear-gradient(#000, #000) top / 100% calc(100% - 13px) no-repeat;
}
/* les plis doux, sur le bord droit de la carte */
.carte-pli {
  position: absolute; z-index: 2; top: 0; right: 0; bottom: 12px; width: 16px; border-radius: 0 14px 0 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, .1) 45%, rgba(49, 64, 106, .07) 100%);
  -webkit-mask: linear-gradient(180deg, #000 60%, transparent); mask: linear-gradient(180deg, #000 60%, transparent);
}
.carte-lien:hover .carte-visuel::before { transform: translateY(4px); }
.carte-lien:hover .carte-visuel::after { transform: translateY(2px); }
.carte h3 { font-size: 1.1rem; line-height: 1.22; margin: 10px 0 2px; }
.carte-taille { margin: 0; font-size: .84rem; color: var(--texte-doux); }
.carte-prix { margin: 2px 0 0; font-weight: 600; }

/* ------------------------------------------------------------- les rayons */
.rayon { padding-bottom: 56px; }
.rayon-tete { padding: 28px 20px 8px; }
.rayon-tete h1 { font-size: clamp(2.5rem, 11vw, 4.2rem); line-height: 1.05; margin: 0 0 .15em; }
.rayon-tete p:last-child { margin: 0; font-size: 1.05rem; }
.rayon-tete.rayon-tete-photo { padding: 0; }
.rayon-photo { height: 200px; overflow: hidden; }
.rayon-photo img { width: 100%; height: 100%; object-fit: cover; }
.rayon-drap { position: relative; margin-top: -6px; padding: 8px 20px 12px; background: var(--lavande); }
.rayon-drap::before { content: ""; position: absolute; left: 0; right: 0; top: -19px; height: 20px; background: inherit; -webkit-mask: var(--pli-2) center / 100% 100% no-repeat; mask: var(--pli-2) center / 100% 100% no-repeat; }
.rayon-outils { padding: 8px 0 4px; }
.filtres { display: flex; gap: 8px; overflow-x: auto; padding: 6px 20px 10px; scrollbar-width: none; }
.filtres::-webkit-scrollbar { display: none; }
.filtre { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--bord); font-weight: 600; font-size: .92rem; color: var(--nuit); transition: background-color .6s var(--pose), color .6s var(--pose); }
.filtre-saison { font-family: var(--police-titre); font-style: italic; font-weight: 400; font-size: 1rem; }
.filtre.actif { background: var(--nuit); color: #fff; box-shadow: none; }
.rayon-tri { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px 12px; }
.rayon-compte { margin: 0; color: var(--texte-doux); font-size: .92rem; }
.tri select { appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 30px 0 14px; border: 0; border-radius: 999px; font-size: 16px; font-weight: 600; color: var(--nuit); box-shadow: inset 0 0 0 1px var(--bord);
  background: rgba(255, 255, 255, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2331406a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center / 11px no-repeat; }
.grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; padding: 0 16px; }
.grille-rayon { grid-auto-flow: dense; }
@media (max-width: 759px) {
  .large-m { grid-column: span 2; }
  .large-m .carte-visuel img { aspect-ratio: 5 / 4; }
  .large-m h3 { font-size: 1.35rem; }
}
.grille-vide { padding: 28px 20px; }
.grille-vide p { font-family: var(--police-titre); font-size: 1.2rem; line-height: 1.35; }
.autres { margin: 44px 20px 0; }
.autres h2 { font-size: 1.5rem; }
.autres ul { display: flex; flex-wrap: wrap; gap: 8px; }
.autres a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--bord); text-decoration: none; font-weight: 600; font-size: .92rem; }

/* ---------------------------------------------------------- la fiche */
.fiche-images { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 6px; scrollbar-width: none; }
.fiche-images::-webkit-scrollbar { display: none; }
.fiche-image { flex: 0 0 86%; scroll-snap-align: start; }
.fiche-image img { width: 100%; aspect-ratio: 1 / .98; object-fit: cover; }
.fiche-corps { position: relative; margin-top: -6px; padding: 6px 20px 30px; background: var(--blanc); }
.fiche-corps::before { content: ""; position: absolute; left: 0; right: 0; top: -21px; height: 22px; background: inherit; -webkit-mask: var(--pli-3) center / 100% 100% no-repeat; mask: var(--pli-3) center / 100% 100% no-repeat; }
.ariane { display: none; gap: 8px; font-size: .88rem; margin-bottom: 4px; }
.ariane a { padding: 6px 0; color: var(--texte-doux); text-decoration: none; }
.ariane span { padding: 6px 0; color: var(--texte-doux); }
.fiche h1 { font-size: clamp(1.9rem, 8vw, 2.9rem); line-height: 1.1; margin: 0 0 .2em; }
.fiche-resume { font-family: var(--police-titre); font-style: italic; font-size: 1.1rem; line-height: 1.35; margin: 0 0 10px; }
.fiche-prix { font-size: 1.35rem; font-weight: 600; margin: 0 0 16px; }
.fiche-prix small { font-size: .84rem; font-weight: 400; color: var(--texte-doux); margin-left: 4px; }

.achat-option legend { font-weight: 600; font-size: .95rem; }
.achat-choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.achat-choix label { cursor: pointer; min-width: 0; display: block; height: 100%; }
.achat-choix span { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-height: 48px; padding: 9px 4px; border: 0; border-radius: 12px; background: var(--lavande); font-weight: 600; font-size: .92rem; white-space: nowrap; transition: background-color .6s var(--pose), color .6s var(--pose); }
.achat-choix input:checked + span { background: var(--nuit); color: #fff; }
/* les mêmes petits lits que sur l'accueil */
.achat-lit .achat-choix span::before { content: ""; display: block; width: calc(var(--l) * .17px); height: calc(var(--h) * .15px); border: 1.4px solid currentColor; border-radius: 3px; background: linear-gradient(90deg, currentColor 0 44%, transparent 44% 56%, currentColor 56% 100%) 50% 3px / 76% 6px no-repeat; }
.achat-lit .achat-choix label:nth-child(1) span { --l: 140; --h: 190; }
.achat-lit .achat-choix label:nth-child(2) span { --l: 160; --h: 200; }
.achat-lit .achat-choix label:nth-child(3) span { --l: 180; --h: 200; }
.achat-note { margin: -6px 0 10px; font-size: .86rem; color: var(--texte-doux); }
.achat-erreur { color: #9c2b34; font-weight: 600; }
.achat { position: relative; }
.conseil[open] { margin: 0 0 14px; }
.conseil summary { position: absolute; top: -13px; right: 0; cursor: pointer; min-height: 44px; padding: 11px 0; font-weight: 600; font-size: .86rem; text-decoration: underline; list-style: none; white-space: nowrap; }
.conseil summary::-webkit-details-marker { display: none; }
@media (max-width: 359px) { .conseil summary { position: static; padding: 0; min-height: 0; height: 44px; line-height: 44px; } }
.conseil div { padding: 12px 14px; border-radius: 12px; background: var(--jour); font-size: .95rem; }
.conseil div p:last-child { margin: 0; }
.fiche-promesses { margin: 14px 0 18px; font-size: .92rem; font-weight: 600; }
.fiche-promesses li { position: relative; padding: 3px 0 3px 24px; }
.fiche-promesses li::before { content: ""; position: absolute; left: 0; top: .5em; width: 15px; height: 15px; background: var(--nuit); -webkit-mask: var(--lune) center / contain no-repeat; mask: var(--lune) center / contain no-repeat; }
.fiche-texte p { font-size: 1.03rem; }
.fiche-details { margin-bottom: 8px; }
.fiche-details li { padding: 7px 0; border-bottom: 1px solid var(--bord); font-size: .95rem; }
.fiche-pli { border-bottom: 1px solid var(--bord); }
.fiche-pli summary { cursor: pointer; min-height: 48px; padding: 13px 0; font-family: var(--police-titre); font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fiche-pli summary::-webkit-details-marker { display: none; }
.fiche-pli summary::after, .faq summary::after { content: ""; flex: none; width: 17px; height: 17px; background: currentColor; -webkit-mask: var(--lune) center / contain no-repeat; mask: var(--lune) center / contain no-repeat; transition: transform .6s var(--pose); }
.fiche-pli[open] summary::after, .faq details[open] summary::after { -webkit-mask: none; mask: none; background: var(--or); border-radius: 50%; box-shadow: 0 0 0 1px rgba(49, 64, 106, .25); }
.fiche-infos > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; border-color: var(--bord); font-size: .94rem; }
.fiche-infos dd { text-align: left; }
.fiche-a-confirmer { margin: 10px 0 14px; font-size: .84rem; }
.bloc-conformite { padding-bottom: 12px; }

.finir { padding: 36px 0 34px; }
.finir h2 { font-size: clamp(1.9rem, 8vw, 2.9rem); margin: 0; padding: 0 20px; }
.finir-rang { padding-top: 16px; }

.barre-achat { background: var(--blanc); border: 0; box-shadow: 0 -4px 14px rgba(49, 64, 106, .1); transition: transform .6s var(--pose); }
.barre-achat.visible-bouton { transform: none; }
.barre-achat-texte span { font-family: var(--police-titre); font-size: .95rem; }
.barre-achat button { background: var(--accent); }
@media (max-width: 899px) { .page-produit { padding-bottom: 76px; } }

/* --------------------------------------- le tiroir : un drap tiré sur le côté */
.tiroir {
  width: min(430px, calc(100% - 20px));
  background: linear-gradient(180deg, var(--lavande), var(--rose) 62%, var(--jour));
}
.tiroir.ouvert { transition: transform .6s var(--pose); }
.tiroir::before { content: ""; position: absolute; top: 0; bottom: 0; left: -15px; width: 16px; background: inherit; -webkit-mask: var(--pli-gauche) center / 100% 100% no-repeat; mask: var(--pli-gauche) center / 100% 100% no-repeat; }
.tiroir-entete { border: 0; padding: 10px 8px 6px 18px; }
.tiroir-entete h2 { font-size: 1.55rem; }
.tiroir-fermer { width: 44px; height: 44px; padding: 0; color: var(--nuit); }
.tiroir-liste { padding: 8px 14px 14px; }
.ligne-panier { position: relative; background: var(--blanc); border: 0; padding: 12px 12px 20px; border-radius: 16px 16px 0 0; box-shadow: var(--ombre-drap); }
.ligne-panier + .ligne-panier { margin-top: -8px; }
.ligne-panier:last-child { border-radius: 16px; padding-bottom: 12px; }
.ligne-panier:nth-child(even) { background: #fff9f4; }
.ligne-panier img { width: 76px; height: 95px; border-radius: 10px; }
.ligne-nom { font-family: var(--police-titre); font-weight: 400; font-size: 1.04rem; line-height: 1.25; }
.ligne-option { margin-top: 2px; }
.quantite { border: 0; border-radius: 999px; background: var(--lavande); }
.quantite button { width: 44px; height: 44px; color: var(--nuit); }
.ligne-retirer { padding: 12px 12px 8px 0; min-height: 44px; color: var(--texte-doux); }
.tiroir-pied { border: 0; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); }
.tiroir-ligne { font-size: 1.1rem; }
.tiroir-ligne strong { font-family: var(--police-texte); }
.tiroir-note { color: var(--texte-doux); }
.tiroir-voir { min-height: 44px; padding: 12px; font-weight: 600; }
.panier-vide { font-family: var(--police-titre); font-size: 1.2rem; padding: 48px 10px; }
.panier-vide a { display: inline-block; margin-top: 8px; padding: 10px 0; font-family: var(--police-texte); font-size: 1rem; font-weight: 600; }

div.page-panier { max-width: 860px; padding: 28px 16px 64px; }
.page-panier h1 { font-size: clamp(2.3rem, 10vw, 3.4rem); }
.panier-total { max-width: none; margin-top: 18px; padding: 16px; border-radius: 16px; background: var(--blanc); }

/* ------------------------------------------------------- la recherche */
.recherche { background: linear-gradient(180deg, var(--lavande), var(--aurore)); padding: 12px 16px; }
.recherche-barre input { min-height: 50px; border: 0; border-radius: 999px; padding: 0 20px; font-size: 16px; box-shadow: inset 0 0 0 1px var(--bord); background: var(--blanc); }
.recherche-barre input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.recherche-barre button { width: 44px; height: 44px; padding: 0; color: var(--nuit); }
.recherche-resultat { padding: 10px; margin-bottom: 8px; border: 0; border-radius: 14px; background: var(--blanc); }
.recherche-resultat img { width: 56px; height: 70px; border-radius: 10px; }
.recherche-resultat span { font-family: var(--police-titre); line-height: 1.25; }
.recherche-vide { font-family: var(--police-titre); font-size: 1.15rem; }

/* ---------------------------- pages de texte : un grand drap posé sur le dégradé */
.legal { position: relative; max-width: 800px; margin: 44px auto 56px; padding: 18px 20px 40px; background: var(--blanc); box-shadow: 0 7px 0 -3px var(--aurore), 0 13px 0 -6px var(--brume); border-radius: 0 0 14px 14px; }
.legal::before { content: ""; position: absolute; left: 0; right: 0; top: -21px; height: 22px; background: inherit; -webkit-mask: var(--pli-2) center / 100% 100% no-repeat; mask: var(--pli-2) center / 100% 100% no-repeat; }
.legal h1 { font-size: clamp(2.05rem, 8.6vw, 3.1rem); line-height: 1.1; margin-bottom: .3em; }
.legal-entete { margin-bottom: 8px; }
.legal h2 { font-size: 1.42rem; margin-top: 2em; padding-bottom: 12px; background: var(--trait) left bottom / 70px 8px no-repeat; }
.legal h3 { font-size: 1.14rem; }
.legal .form-message { font-family: var(--police-texte); }
.legal table { font-size: .94rem; }
.legal th { font-weight: 600; }
.legal th, .legal td { border-color: var(--bord); vertical-align: top; }
.encadre { border: 0; background: var(--jour); border-radius: 14px; }
.legal-intro { color: var(--texte-doux); }
.a-completer { border-radius: 4px; }
.page-contact .legal { max-width: 1020px; }
.page-contact .contact-grille { margin-top: 12px; }
.contact-infos h2, .formulaire h2 { margin-top: .4em; }
.faq details { border-color: var(--bord); padding: 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 52px; padding: 13px 0; font-family: var(--police-titre); font-weight: 400; font-size: 1.14rem; line-height: 1.3; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details div { padding: 0 0 8px; }

/* ------------------------------------------------------- les formulaires */
.formulaire label, .ck-form label { font-weight: 600; }
.formulaire input:not([type="checkbox"]):not(.piege), .formulaire textarea, .formulaire select,
.ck-form input:not([type="checkbox"]), .ck-form select { border-radius: 12px; border-color: var(--bord); background: #fff; min-height: 48px; transition: border-color .6s var(--pose); }
.formulaire input:focus, .formulaire textarea:focus, .ck-form input:focus, .ck-form select:focus { border-color: var(--nuit); outline: 1px solid var(--nuit); outline-offset: 0; }
.bouton-secondaire { min-height: 44px; padding: 0 22px; border-radius: 999px !important; font-weight: 600; }

/* ------------------------------ la commande : trois draps l'un sur l'autre */
.ck { padding: 20px 16px 48px; counter-reset: couche; }
.ck h1 { font-size: clamp(2.1rem, 9vw, 3rem); margin-bottom: .55em; }
.ck-form section { position: relative; margin: 0; padding: 12px 18px 26px; background: var(--c, var(--blanc)); counter-increment: couche; }
.ck-form section::before { content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 16px; background: inherit; -webkit-mask: var(--pli-1) center / 100% 100% no-repeat; mask: var(--pli-1) center / 100% 100% no-repeat; }
.ck-form section:nth-of-type(2) { --c: var(--rose); }
.ck-form section:nth-of-type(2)::before { -webkit-mask-image: var(--pli-2); mask-image: var(--pli-2); }
.ck-form section:nth-of-type(3) { --c: var(--jour); }
.ck-form section:nth-of-type(3)::before { -webkit-mask-image: var(--pli-3); mask-image: var(--pli-3); }
.ck-form section.ck-valider { --c: var(--blanc); border-radius: 0 0 16px 16px; }
.ck-form section.ck-valider { counter-increment: none; }
.ck h2 { font-size: 1.35rem; }
.ck-form section h2::before { content: counter(couche); font-family: var(--police-titre); font-style: italic; color: var(--texte-doux); margin-right: 10px; }
.ck-resume { padding: 16px 18px; background: var(--lavande); border-radius: 16px; box-shadow: 0 6px 0 -3px var(--aurore), 0 11px 0 -6px var(--brume); margin-bottom: 26px; }
.ck-ligne img { width: 56px; height: 70px; border-radius: 10px; }
.ck-ligne span { font-family: var(--police-titre); line-height: 1.25; }
.ck-totaux { border-color: var(--bord); }
.ck-indisponible { background: rgba(255, 255, 255, .8); border-radius: 12px; }
.ck-cgv input { accent-color: var(--nuit); }
.ck-form .ck-cgv { font-size: .95rem; }
.ck-form .logos-paiement { margin-top: 10px; }
[data-payer]:disabled { opacity: 1; background: #646e8e; }

.merci { padding: 64px 20px 72px; }
.merci h1 { font-size: clamp(2.3rem, 10vw, 3.6rem); line-height: 1.1; }
.perdu { text-align: left; max-width: 760px; }
.perdu .heure { margin-bottom: .2em; }

/* -------------------------------------------------------- notre histoire */
.histoire { padding-bottom: 60px; }
.histoire-tete { padding: 28px 20px 16px; }
.histoire-tete h1 { font-size: clamp(2.7rem, 12vw, 5rem); line-height: 1.03; margin: 0; }
.histoire-photo img { width: 100%; aspect-ratio: 5 / 4.6; object-fit: cover; }
.histoire-texte { position: relative; background: var(--blanc); padding: 8px 20px 26px; margin-top: -6px; }
.histoire-texte::before { content: ""; position: absolute; left: 0; right: 0; top: -19px; height: 20px; background: inherit; -webkit-mask: var(--pli-1) center / 100% 100% no-repeat; mask: var(--pli-1) center / 100% 100% no-repeat; }
.histoire-chapeau { font-family: var(--police-titre); font-size: 1.32rem; line-height: 1.36; }
.histoire-texte h2 { font-size: 1.6rem; margin-top: 1.3em; padding-bottom: 12px; background: var(--trait) left bottom / 70px 8px no-repeat; }
.histoire-promesses { margin: 0 0 20px; font-weight: 600; }
.histoire-promesses li { position: relative; padding: 4px 0 4px 24px; }
.histoire-promesses li::before { content: ""; position: absolute; left: 0; top: .6em; width: 15px; height: 15px; background: var(--nuit); -webkit-mask: var(--lune) center / contain no-repeat; mask: var(--lune) center / contain no-repeat; }
.histoire-rang-2 .histoire-texte { background: var(--jour); margin-top: 0; }
.histoire-rang-2 .histoire-texte::before { -webkit-mask-image: var(--pli-3); mask-image: var(--pli-3); }

/* ---------------------------------------- le pied : le soleil se lève derrière la couverture */
.pied { position: relative; margin-top: 0; }
.aube { position: relative; height: 150px; }
.aube-soleil { position: absolute; left: 50%; bottom: 8px; width: 300px; height: auto; transform: translateX(-50%); overflow: hidden; }
.aube-couverture { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 44px; }
.soleil-disque { fill: var(--or); }
.soleil-halo-1 { fill: #fae9c4; }
.soleil-halo-2 { fill: #fbf0d6; }
.soleil-trait { fill: none; stroke: var(--nuit); stroke-width: 1; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .5; }
.soleil-couverture { fill: var(--jour); }
.soleil-ligne { fill: none; stroke: var(--nuit); stroke-width: 1.2px; }
.pied-fond { background: var(--jour); padding: 6px 20px calc(30px + env(safe-area-inset-bottom)); }
.pied-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; }
.pied-marque { grid-column: 1 / -1; }
.pied-phrase { font-family: var(--police-titre); font-style: italic; font-size: 1.2rem; margin-bottom: 10px; }
.pied h2 { font-family: var(--police-titre); font-size: 1.14rem; margin: 0 0 4px; }
.pied-colonnes > div:last-child { grid-column: 1 / -1; }
.pied ul a { display: inline-block; padding: 12px 0; text-decoration: none; font-size: .95rem; line-height: 1.3; }
.pied ul a:hover { text-decoration: underline; }
.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; max-width: 460px; }
.newsletter input[type="email"] { min-width: 0; min-height: 48px; padding: 0 18px; border: 0; border-radius: 999px; font-size: 16px; background: var(--blanc); box-shadow: inset 0 0 0 1px var(--bord); }
.newsletter button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--nuit); color: #fff; font-weight: 600; }
.newsletter .form-message, .newsletter .newsletter-note { grid-column: 1 / -1; margin: 0; }
.newsletter-note { color: var(--texte-doux); }
.pied-legal { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(49, 64, 106, .18); color: var(--texte); }
.pied-legal-coord { line-height: 1.6; }
.pied-legal a { display: inline-block; padding: 12px 0; line-height: 1.3; }
.pied-legal-coord { margin-bottom: 0; }
.logos-paiement { padding: 0; }
.pied-leger .aube { height: 96px; }
.pied-leger .aube-soleil { width: 170px; }
.pied-mini { display: flex; flex-wrap: wrap; gap: 0 16px; }

.consent { border-radius: 16px; border: 0; box-shadow: 0 6px 24px rgba(49, 64, 106, .18); }
.consent button { border-radius: 999px; border-color: var(--nuit); min-height: 44px; }

/* ========================================================== à partir de 760 px */
@media (min-width: 760px) {
  .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 18px; padding: 0 32px; }
  .large-b { grid-column: span 2; }
  .large-b .carte-visuel img { aspect-ratio: 1.655; }
  .large-b h3 { font-size: 1.5rem; }
  .rayon-tete, .histoire-tete { padding-left: 32px; padding-right: 32px; }
  .filtres { padding-left: 32px; padding-right: 32px; flex-wrap: wrap; overflow: visible; }
  .rayon-tri { padding-left: 32px; padding-right: 32px; }
  .rayon-drap { padding-left: 32px; padding-right: 32px; }
  .rayon-photo { height: 300px; }
  .matin-rang, .finir-rang { grid-auto-flow: row; grid-auto-columns: initial; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; overflow: visible; padding-left: 32px; padding-right: 32px; }
  .finir h2 { padding: 0 32px; }
  .pied-fond { padding-left: 32px; padding-right: 32px; }
  .pied-colonnes { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 26px; }
  .pied-marque, .pied-colonnes > div:last-child { grid-column: auto; }
  .aube { height: 216px; }
  .aube-soleil { width: 430px; bottom: 14px; }
  .aube-couverture { height: 62px; }
  .pied-leger .aube { height: 120px; }
  .pied-leger .aube-soleil { width: 210px; }
  .legal { padding: 22px 48px 48px; }
}

/* ========================================================== à partir de 900 px */
@media (min-width: 900px) {
  :root { --h-entete: 66px; }
  html { scroll-padding-top: 80px; }
  .entete { padding: 0 18px; }
  .logo-dessin { width: 148px; }

  .menu { inset: 0 auto 0 0; width: 480px; max-height: none; transform: translateX(-104%); }
  .menu.ouvert { transform: none; }

  .ouverture { display: grid; grid-template-columns: max(43%, calc((100% - 1320px) / 2 + 580px)) minmax(0, 1fr); min-height: min(calc(100svh - var(--h-entete)), 760px); }
  .ouverture-photo { order: 2; min-height: 0; }
  .ouverture-photo img { object-position: 50% 30%; }
  .ouverture-drap { order: 1; z-index: 2; margin: 0; padding: 30px 26px 30px max(36px, calc((100vw - 1320px) / 2 + 36px)); display: flex; flex-direction: column; justify-content: center; }
  .ouverture-drap::before { left: auto; right: -35px; top: 0; bottom: 0; width: 36px; height: auto; -webkit-mask: var(--pli-droit) center / 100% 100% no-repeat; mask: var(--pli-droit) center / 100% 100% no-repeat; }
  .ouverture h1 { font-size: clamp(4.4rem, 7.2vw, 6.4rem); }
  .ouverture-texte { font-size: 1.14rem; margin-bottom: 22px; }
  .ouverture-bouton { align-self: flex-start; width: auto; min-width: 260px; }
  .lits { max-width: 420px; margin-bottom: 20px; }

  .faire { padding-top: 76px; }
  .faire-tete { padding: 0 max(36px, calc((100vw - 1320px) / 2 + 36px)) 28px; max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; align-items: end; }
  .faire-tete .heure { grid-column: 1 / -1; }
  .faire-tete p:last-child { padding-bottom: 12px; font-size: 1.1rem; max-width: 30em; }
  .couches { --onglet: 50px; }
  .couche { height: min(500px, calc(100svh - var(--h-entete) - 4 * var(--onglet) - 12px)); }
  .couche-onglet { padding: 0 max(36px, calc((100vw - 1320px) / 2 + 36px)); gap: 14px; }
  .couche-onglet h3 { font-size: 1.4rem; }
  .couche-prix { font-size: 1rem; }
  .couche-corps { flex-direction: row; }
  .couche:nth-child(even) .couche-corps { flex-direction: row-reverse; }
  .couche-photo { flex: 0 0 56%; }
  .couche-texte { flex: 1; align-self: center; padding: 20px max(36px, calc((100vw - 1320px) / 2 + 36px)) 20px 52px; }
  .couche:nth-child(even) .couche-texte { padding: 20px 52px 20px max(36px, calc((100vw - 1320px) / 2 + 36px)); }
  .couche-phrase { font-size: clamp(1.5rem, 2.3vw, 1.95rem); line-height: 1.26; margin-bottom: 16px; }
  .couche-article { font-size: 1rem; margin-bottom: 18px; }
  .couche-bouton { display: inline-block; width: auto; min-width: 250px; padding: 14px 26px; }

  .nuits { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); padding: 96px max(36px, calc((100vw - 1320px) / 2 + 36px)) 66px; gap: 0 44px; }
  .nuits-tete { grid-column: 2; grid-row: 1; padding: 0 0 26px; align-self: end; }
  .nuit { width: auto; }
  .nuit-chaude { grid-column: 1; grid-row: 1 / span 2; }
  .nuit-fraiche { grid-column: 2; grid-row: 2; margin: 0; width: 82%; justify-self: end; }
  .nuit-photo { border-radius: 18px 18px 0 0 !important; }
  .nuit-chaude .nuit-photo img { aspect-ratio: 4 / 4.6; }
  .nuit-fraiche .nuit-photo img { aspect-ratio: 5 / 3.2; }
  .nuit-drap { padding: 12px 26px 26px; border-radius: 0 0 18px 18px; }
  .nuit-fraiche .nuit-drap { padding-bottom: 26px; }
  .nuit-drap strong { font-size: 2rem; }

  .matin { padding: 64px 0 56px; margin-top: 30px; }
  .matin::before { top: -35px; height: 36px; }
  .matin-entree { display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); align-items: center; }
  .matin-tete { padding: 0 44px 0 max(36px, calc((100vw - 1320px) / 2 + 36px)); }
  .matin-tete .bouton { width: auto; min-width: 200px; }
  .matin-photo { border-radius: 18px 0 0 18px; }
  .matin-rang { padding: 34px max(36px, calc((100vw - 1320px) / 2 + 36px)) 8px; }
  .douceur { padding: 36px max(36px, calc((100vw - 1320px) / 2 + 36px)) 60px; font-size: 1.7rem; }
  .douceur { padding-right: max(120px, calc((100vw - 1100px) / 2)); }

  .rayon-tete.rayon-tete-photo { display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); min-height: 340px; }
  .rayon-photo { order: 2; height: auto; position: relative; }
  .rayon-photo img { position: absolute; inset: 0; }
  .rayon-drap { order: 1; z-index: 1; margin: 0; padding: 30px 26px 30px 36px; display: flex; flex-direction: column; justify-content: center; }
  .rayon-drap::before { left: auto; right: -27px; top: 0; bottom: 0; width: 28px; height: auto; -webkit-mask: var(--pli-droit) center / 100% 100% no-repeat; mask: var(--pli-droit) center / 100% 100% no-repeat; }
  .rayon-tete h1 { font-size: clamp(3rem, 5vw, 4.4rem); }

  .ariane { display: flex; }
  .fiche { display: grid; grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); max-width: 1320px; margin: 0 auto; padding: 22px 36px 0; align-items: start; gap: 44px; }
  .fiche-images { display: block; overflow: visible; position: sticky; top: calc(var(--h-entete) + 14px); }
  .fiche-image:first-child img { aspect-ratio: 4 / 4.6; border-radius: 18px; }
  .fiche-image + .fiche-image { position: absolute; right: -14px; bottom: -14px; width: 37%; box-shadow: 0 0 0 6px var(--lavande); border-radius: 14px; }
  .fiche-image + .fiche-image img { aspect-ratio: 4 / 5; border-radius: 14px; }
  .fiche-corps { margin: 0; padding: 26px 30px 26px; border-radius: 18px; box-shadow: 0 7px 0 -3px var(--aurore), 0 13px 0 -6px var(--brume); }
  .fiche-corps::before { display: none; }
  .finir { max-width: 1320px; margin: 0 auto; padding: 56px 4px 46px; }

  .tiroir::before { left: -19px; width: 20px; }

  div.page-panier { padding-top: 40px; }
  .ck { padding-top: 32px; }
  .ck-grille { gap: 42px; }
  .ck-resume { margin: 0; top: calc(var(--h-entete) + 14px); }

  .histoire { max-width: 1320px; margin: 0 auto; }
  .histoire-tete { padding: 44px 36px 22px; }
  .histoire-rang { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); align-items: start; padding: 0 36px; }
  .histoire-rang-2 { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); margin-top: 34px; }
  .histoire-photo img { aspect-ratio: 4 / 4.8; border-radius: 18px 0 0 18px; }
  .histoire-rang-2 .histoire-photo img { border-radius: 0 18px 18px 0; }
  .histoire-texte { margin: 44px 0 0 -30px; padding: 30px 44px 34px; border-radius: 18px; }
  .histoire-texte::before { display: none; }
  .histoire-rang-2 .histoire-texte { margin: 44px -30px 0 0; z-index: 1; }

  .pied-fond { padding-left: max(36px, calc((100vw - 1320px) / 2 + 36px)); padding-right: max(36px, calc((100vw - 1320px) / 2 + 36px)); }
  .pied-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
  .pied-legal p { margin: 0; }
  .pied-legal-coord { flex: 1 1 100%; }
  .logos-paiement { margin: 0; }
}

@media (min-width: 1100px) {
  .grille { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; padding: 0 36px; }
  .filtres, .rayon-tri, .rayon-tete:not(.rayon-tete-photo), .finir h2 { padding-left: 36px; padding-right: 36px; }
  .matin-rang, .finir-rang { padding-left: 36px; padding-right: 36px; }
  .autres { margin: 52px 36px 0; }
}
