/* 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:"Playfair Display";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/playfair-display-400.woff2) format("woff2")}
@font-face{font-family:"Playfair Display";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/playfair-display-600.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:600;font-display:swap;src:url(/fonts/mulish-600.woff2) format("woff2")}

/* ==========================================================================
   Krevno — direction artistique : le pli de tissu et la planche d'étoffe.
   Fonds ivoire, accent terracotta, filets fins, bords effrangés, fiches d'étoffe.
   ========================================================================== */
:root {
  --fond: #f7f3ec;
  --fond-2: #fffdf8;
  --fond-3: #efe6d6;
  --texte: #2c2824;
  --texte-doux: #6d6257;
  --accent: #a9543c;         /* terracotta profonde — boutons, liens, focus */
  --accent-clair: #c9735a;   /* terracotta douce — décor, franges */
  --accent-texte: #fffdf8;
  --sauge: #9aa784;
  --sauge-fonce: #6f7a54;
  --bord: #e6ddcc;
  --bord-fort: #d7cab2;
  --rayon: 3px;
  --police-titre: "Playfair Display", Georgia, "Times New Roman", serif;
  --police-texte: "Mulish", system-ui, -apple-system, sans-serif;
  --contenu: 1180px;
  --gouttiere: 16px;
  --ombre: 0 14px 34px rgba(62, 44, 30, .10);
}

body { background: var(--fond); color: var(--texte); font-size: 16px; letter-spacing: .005em; }
h1, h2, h3, h4 { font-family: var(--police-titre); font-weight: 600; letter-spacing: -.01em; }
h1 { font-weight: 600; }
::selection { background: var(--accent-clair); color: var(--accent-texte); }
a { text-decoration: none; }

/* --------------------------------------------------------- utilitaires */
.band-ivoire { background: var(--fond-2); }
.section { max-width: var(--contenu); margin: 0 auto; padding: clamp(40px, 7vw, 76px) var(--gouttiere); }
.section.band-ivoire { max-width: none; }
.section.band-ivoire > * { max-width: var(--contenu); margin-inline: auto; }
.page { max-width: var(--contenu); margin: 0 auto; padding: 24px var(--gouttiere) 72px; }
.page-large { max-width: 1240px; }

.section-tete { max-width: 640px; margin-bottom: clamp(24px, 4vw, 40px); }
.section-tete h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 0 .35em; }
.section-tete p { color: var(--texte-doux); margin: 0; font-size: 1.05rem; }
.section-tete-rang { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; max-width: none; }

.lien-fleche { display: inline-flex; align-items: center; gap: .5em; color: var(--accent); font-weight: 600; white-space: nowrap; }
.lien-fleche::after { content: "→"; transition: transform .2s ease; }
.lien-fleche:hover::after { transform: translateX(4px); }

.bouton { background: var(--accent); color: var(--accent-texte); border-radius: var(--rayon); padding: 14px 26px; font-weight: 600; letter-spacing: .02em; transition: background .2s ease; }
.bouton:hover { background: #8f4531; }

/* ------------------------------------------------- filets et franges */
.filet-logo { height: 1px; width: min(260px, 60%); margin: 12px auto 0; position: relative; background: linear-gradient(90deg, transparent, var(--bord-fort) 20%, var(--bord-fort) 80%, transparent); }
.filet-logo::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; background: var(--accent-clair); transform: translate(-50%, -50%) rotate(45deg); }
.filet-court { height: 1px; width: 72px; margin: 18px 0 0; background: var(--accent-clair); }

.separateur { display: flex; justify-content: center; padding: 10px var(--gouttiere); }
.frange { display: block; width: 190px; height: 20px; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='22'%3E%3Cg stroke='%23c9735a' stroke-width='1' stroke-linecap='round' fill='none'%3E%3Cpath d='M0 1.5H48'/%3E%3Cpath d='M3 1.5v13M9 1.5v17M15 1.5v10M22 1.5v15M29 1.5v12M36 1.5v18M43 1.5v11'/%3E%3C/g%3E%3C/svg%3E") repeat-x top left; }

/* ---------------------------------------------------------- logo */
.logo { display: inline-flex; align-items: center; gap: .5em; color: var(--texte); }
.logo .k-mark { width: 1.15em; height: 1.3em; color: var(--accent); flex: none; }
.logo-mot { font-family: var(--police-titre); font-weight: 600; font-size: 1.35rem; letter-spacing: .02em; }
.logo-grand .logo-mot { font-size: clamp(1.55rem, 4.4vw, 2rem); }
.logo-grand .k-mark { width: 1.05em; height: 1.2em; }

/* ---------------------------------------------------------- entête */
.entete { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--fond) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--bord); padding: 10px var(--gouttiere) 12px; }
@supports not (backdrop-filter: blur(1px)) { .entete { background: var(--fond); } }
.entete-rang { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; max-width: var(--contenu); margin: 0 auto; }
.entete-cote { display: flex; align-items: center; gap: 4px; }
.entete-cote-droite { justify-content: flex-end; }
.entete .logo { justify-self: center; }
.icone { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; border-radius: 50%; color: var(--texte); }
.icone svg { width: 22px; height: 22px; }
.icone:hover { background: var(--fond-3); }
.pastille { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-texte); font-family: var(--police-texte); font-size: .68rem; font-weight: 700; border-radius: 10px; }
.nav-collections { display: flex; justify-content: center; flex-wrap: wrap; gap: 26px; margin-top: 12px; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.nav-collections a { color: var(--texte-doux); position: relative; padding-bottom: 3px; }
.nav-collections a:hover { color: var(--accent); }
.nav-collections a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .2s ease; }
.nav-collections a:hover::after { transform: scaleX(1); }
.nav-collections a[aria-current="page"] { color: var(--accent); }
.nav-collections a[aria-current="page"]::after { transform: scaleX(1); }
.menu-lien[aria-current="page"] span { color: var(--accent); }
.entete { transition: box-shadow .2s ease; }
.entete-defile { box-shadow: 0 6px 18px rgba(62, 44, 30, .07); }
.entete-mini { position: static; }
.entete-mini .entete-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: var(--contenu); margin: 0 auto; }
.retour-panier { color: var(--texte-doux); font-size: .92rem; }
.retour-panier:hover { color: var(--accent); }
@media (max-width: 899px) { .nav-collections { display: none; } }

/* menu tiroir */
.menu { position: fixed; top: 0; left: 0; bottom: 0; width: min(380px, 88%); background: var(--fond-2); z-index: 70; transform: translateX(-100%); transition: transform .26s ease; display: flex; flex-direction: column; padding: 18px 22px calc(22px + env(safe-area-inset-bottom)); overflow-y: auto; }
.menu.ouvert { transform: none; }
.menu-tete { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--bord); margin-bottom: 8px; }
.menu-lien { display: block; padding: 15px 2px; border-bottom: 1px solid var(--bord); }
.menu-lien span { font-family: var(--police-titre); font-size: 1.3rem; }
.menu-lien em { display: block; font-style: normal; font-size: .86rem; color: var(--texte-doux); margin-top: 2px; }
.menu-lien-fort { font-family: var(--police-titre); font-size: 1.1rem; color: var(--accent); }
.menu-pied { margin-top: auto; padding-top: 18px; display: flex; gap: 20px; }
.menu-pied a { color: var(--texte-doux); text-decoration: underline; text-underline-offset: 3px; font-size: .92rem; }

/* ---------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 1320px; margin: 0 auto; }
.hero-image { position: relative; }
.hero-image img { width: 100%; height: min(64vh, 560px); object-fit: cover; }
.hero-texte { padding: clamp(26px, 6vw, 60px) var(--gouttiere) clamp(14px, 3vw, 20px); max-width: 640px; }
.hero-sur { text-transform: uppercase; letter-spacing: .24em; font-size: .72rem; color: var(--sauge-fonce); margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 4.1rem); line-height: 1.04; margin: 0 0 .4em; }
.hero-sous { font-size: 1.12rem; color: var(--texte-doux); max-width: 44ch; margin: 0 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-bottom: 26px; }
.hero-promesses { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .86rem; color: var(--texte-doux); }
.hero-promesses li { position: relative; padding-left: 16px; }
.hero-promesses li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: var(--accent-clair); transform: rotate(45deg); }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.08fr 1fr; align-items: center; gap: clamp(24px, 4vw, 56px); padding-right: var(--gouttiere); }
  .hero-image img { height: min(78vh, 680px); }
  .hero-texte { padding-block: 0; }
}

/* ---------------------------------------------------- familles */
.familles-grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.famille-carte { display: flex; flex-direction: column; background: var(--fond-2); border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; }
.famille-carte:hover { box-shadow: var(--ombre); transform: translateY(-2px); }
.famille-image { aspect-ratio: 4 / 3; overflow: hidden; }
.famille-image img { width: 100%; height: 100%; object-fit: cover; }
.famille-corps { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.famille-nom { font-family: var(--police-titre); font-size: 1.35rem; }
.famille-accroche { color: var(--texte-doux); font-size: .92rem; flex: 1; }
.famille-corps .lien-fleche { margin-top: 10px; font-size: .9rem; }
@media (min-width: 760px) { .familles-grille { grid-template-columns: repeat(4, 1fr); } }

/* ---------------------------------------------------- à nouer (au trait) */
.nouer-liste { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; padding: 0; }
.nouer-pas { position: relative; background: var(--fond); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 24px 22px 22px; }
.band-ivoire .nouer-pas { background: var(--fond); }
.nouer-dessin { display: block; width: 72px; height: 72px; color: var(--accent); }
.nouer-dessin svg { width: 100%; height: 100%; }
.nouer-rang { position: absolute; top: 18px; right: 20px; font-family: var(--police-titre); font-size: 1.5rem; color: var(--bord-fort); }
.nouer-pas h3 { font-size: 1.2rem; margin: 14px 0 .3em; }
.nouer-pas p { color: var(--texte-doux); margin: 0; font-size: .95rem; }
@media (min-width: 720px) { .nouer-liste { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* ---------------------------------------------------- fiche d'étoffe (carte) */
.grille-produits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
@media (min-width: 620px) { .grille-produits { grid-template-columns: repeat(3, 1fr); gap: 32px 18px; } }
@media (min-width: 980px) { .grille-produits { grid-template-columns: repeat(4, 1fr); gap: 40px 22px; } }

.fiche-etoffe { position: relative; display: flex; flex-direction: column; gap: 12px; }
.fiche-etoffe-image { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--fond-2); }
.fiche-etoffe-visuel { position: absolute; inset: 0; display: block; }
.fiche-etoffe-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fiche-etoffe-image .etoffe-s { opacity: 0; transition: opacity .5s ease; }
.fiche-etoffe-tag { position: absolute; left: 9px; top: 9px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 64px); background: color-mix(in srgb, var(--fond-2) 90%, transparent); backdrop-filter: blur(2px); color: var(--texte); font-size: .7rem; letter-spacing: .01em; line-height: 1.3; padding: 4px 9px 4px 8px; border-radius: 20px; border: 1px solid var(--bord); }
.fiche-etoffe-tag::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; border: 1px solid var(--accent-clair); }
.fiche-etoffe-ajout { position: absolute; right: 9px; bottom: 9px; z-index: 3; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--fond-2) 92%, transparent); color: var(--accent); border: 1px solid var(--bord-fort); border-radius: 50%; font-size: 1.5rem; line-height: 1; padding: 0 0 2px; box-shadow: 0 4px 12px rgba(62, 44, 30, .14); transition: background .18s ease, color .18s ease, transform .18s ease; }
.fiche-etoffe-ajout:hover { background: var(--accent); color: var(--accent-texte); border-color: var(--accent); }
.fiche-etoffe-corps { display: flex; flex-direction: column; gap: 3px; padding: 0 2px; color: var(--texte); }
.fiche-etoffe-famille { text-transform: uppercase; letter-spacing: .14em; font-size: .64rem; color: var(--sauge-fonce); }
.fiche-etoffe-nom { font-family: var(--police-titre); font-size: 1.12rem; line-height: 1.2; }
.fiche-etoffe-prix { color: var(--accent); font-weight: 600; font-size: .98rem; }
@media (hover: hover) {
  .fiche-etoffe-ajout { opacity: 0; transform: translateY(6px); }
  .fiche-etoffe-image:hover .etoffe-s { opacity: 1; }
  .fiche-etoffe:hover .fiche-etoffe-ajout, .fiche-etoffe-ajout:focus-visible { opacity: 1; transform: none; }
}

/* ---------------------------------------------------- bande « pli » */
.pli-band { display: grid; grid-template-columns: 1fr; gap: clamp(20px, 4vw, 40px); align-items: center; }
.pli-image img { width: 100%; border-radius: var(--rayon); }
.pli-texte h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 .4em; }
.pli-texte p { color: var(--texte-doux); font-size: 1.05rem; margin: 0 0 18px; }
@media (min-width: 820px) { .pli-band { grid-template-columns: 46% 1fr; } }

/* ---------------------------------------------------- pages boutique / collection */
.page-tete { max-width: 680px; margin: 10px 0 clamp(22px, 4vw, 36px); }
.fil-sur { text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; color: var(--sauge-fonce); margin: 0 0 10px; }
.page-tete h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); margin: 0 0 .25em; }
.page-chapo { color: var(--texte-doux); font-size: 1.08rem; margin: 0; }
.fil { font-size: .86rem; color: var(--texte-doux); margin: 0 0 12px; }
.fil a { color: var(--texte-doux); text-decoration: underline; text-underline-offset: 3px; }
.fil a:hover { color: var(--accent); }
.fil span { margin: 0 6px; color: var(--bord-fort); }

.barre-outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--bord); border-bottom: 1px solid var(--bord); margin-bottom: clamp(24px, 4vw, 36px); }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; }
.filtre { background: none; border: 1px solid var(--bord-fort); color: var(--texte-doux); border-radius: 22px; padding: 8px 15px; font-size: .86rem; min-height: 40px; transition: all .18s ease; }
.filtre:hover { color: var(--texte); border-color: var(--texte-doux); }
.filtre.actif { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); }
.tri-zone { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.compte { font-size: .86rem; color: var(--texte-doux); white-space: nowrap; }
.tri-label { font-size: .86rem; color: var(--texte-doux); display: inline-flex; align-items: center; gap: 8px; }
.tri-label select { padding: 9px 30px 9px 12px; border: 1px solid var(--bord-fort); border-radius: var(--rayon); background: var(--fond-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236d6257' stroke-width='1.5'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") no-repeat right 11px center; appearance: none; font-size: .9rem; color: var(--texte); min-height: 40px; }
.grille-vide { text-align: center; padding: 48px 10px; color: var(--texte-doux); }
.grille-vide p { margin-bottom: 10px; }

/* ---------------------------------------------------- fiche produit */
.fiche-produit { max-width: 1240px; margin: 0 auto; padding: 18px var(--gouttiere) 0; display: grid; grid-template-columns: 1fr; gap: clamp(22px, 4vw, 44px); }
.fiche-media { display: grid; grid-template-columns: 1fr; gap: 10px; }
.fiche-vue { margin: 0; border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; background: var(--fond-2); }
.fiche-vue img { width: 100%; display: block; }
.fiche-col { align-self: start; }
.fiche-col h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); margin: 0 0 .2em; }
.fiche-prix { font-size: 1.4rem; color: var(--accent); font-weight: 600; margin: 0 0 18px; }
.fiche-prix span { font-size: .78rem; color: var(--texte-doux); font-weight: 400; letter-spacing: .04em; margin-left: 4px; }
.fiche-resume { font-size: 1.12rem; font-family: var(--police-titre); font-style: italic; color: var(--texte); margin: 0 0 14px; }
.fiche-desc { color: var(--texte-doux); margin: 0 0 20px; }
.fiche-promesses { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0 6px; font-size: .86rem; color: var(--texte-doux); }
.fiche-promesses li { position: relative; padding-left: 16px; }
.fiche-promesses li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; background: var(--sauge); transform: rotate(45deg); }
.fiche-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.fiche-points li { background: var(--fond-2); border: 1px solid var(--bord); border-radius: 20px; padding: 5px 13px; font-size: .82rem; color: var(--texte-doux); }
.achat-dim { font-size: .88rem; color: var(--texte-doux); margin: 2px 0 12px; }
.achat-dim .achat-guide { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.bloc-detail { border-top: 1px solid var(--bord); padding: 4px 0; }
.bloc-detail:last-of-type { border-bottom: 1px solid var(--bord); }
.bloc-detail summary { cursor: pointer; font-weight: 600; padding: 14px 2px; list-style: none; position: relative; }
.bloc-detail summary::-webkit-details-marker { display: none; }
.bloc-detail summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.3rem; color: var(--accent); font-weight: 400; }
.bloc-detail[open] summary::after { content: "–"; }
.bloc-detail-corps { padding: 0 2px 14px; color: var(--texte-doux); font-size: .92rem; }
.bloc-detail-corps p { margin: 0 0 .6em; }
@media (min-width: 900px) {
  .fiche-produit { grid-template-columns: 1fr 1fr; align-items: start; }
  .fiche-media { grid-template-columns: 1fr 1fr; }
  .fiche-col { position: sticky; top: 92px; padding-left: clamp(8px, 2vw, 28px); }
}

.complice { border-top: 1px solid var(--bord); }

/* ---------------------------------------------------- à propos */
.apropos { max-width: 820px; margin: 0 auto; padding: 28px var(--gouttiere) 72px; }
.apropos-tete { max-width: 640px; }
.apropos-tete h1 { font-size: clamp(2rem, 5.4vw, 3rem); margin: 0 0 .3em; }
.apropos-chapo { font-size: 1.18rem; color: var(--texte-doux); }
.apropos-image { margin: clamp(22px, 4vw, 38px) 0; }
.apropos-image img { width: 100%; border-radius: var(--rayon); }
.apropos-texte h2 { font-size: 1.5rem; margin: 1.6em 0 .4em; }
.apropos-texte p { color: var(--texte-doux); font-size: 1.06rem; margin: 0 0 1em; }
.apropos-texte a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------- 404 */
.merci-404 .k-grande { color: var(--accent); width: 54px; margin: 0 auto 18px; }
.merci-404 .k-grande svg { width: 100%; height: auto; }

/* ============================ habillage des composants du socle ============== */
.tiroir { background: var(--fond-2); }
.tiroir-entete { border-color: var(--bord); }
.tiroir-entete h2 { font-family: var(--police-titre); }
.tiroir-commander { letter-spacing: .02em; }
.tiroir-voir { color: var(--texte-doux); text-decoration: underline; text-underline-offset: 3px; }
.ligne-nom { font-family: var(--police-titre); font-weight: 500; }
.panier-vide a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.bouton:hover, .tiroir-commander:hover, .achat-bouton:hover, [data-payer]:hover:not(:disabled) { background: #8f4531; }
.achat-bouton { letter-spacing: .02em; }
.achat-choix input:checked + span { background: var(--accent); border-color: var(--accent); }

.barre-achat { background: var(--fond-2); border-color: var(--bord); }
.barre-achat-texte strong { color: var(--accent); }
.barre-achat button { background: var(--accent); color: var(--accent-texte); border-radius: var(--rayon); }

.pied { background: var(--fond-3); margin-top: clamp(40px, 7vw, 80px); padding: 10px var(--gouttiere) calc(28px + env(safe-area-inset-bottom)); }
.pied .separateur { padding-top: 0; }
.pied-haut { max-width: var(--contenu); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 32px; padding: 20px 0 30px; }
.pied-marque .logo { margin-bottom: 12px; }
.pied-slogan { color: var(--texte-doux); max-width: 34ch; font-size: .96rem; }
.pied-liens { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pied-col h3 { font-family: var(--police-titre); font-size: 1.02rem; margin: 0 0 12px; }
.pied-col ul { display: flex; flex-direction: column; gap: 9px; }
.pied-col a { color: var(--texte-doux); font-size: .92rem; }
.pied-col a:hover { color: var(--accent); }
.pied-legal { max-width: var(--contenu); margin: 0 auto; border-top: 1px solid var(--bord); padding-top: 20px; color: var(--texte-doux); }
.pied-legal a { color: var(--texte-doux); }
.pied-legal a:hover { color: var(--accent); }
.pied-legal-coord { font-size: .86rem; }
.lien-retractation { color: var(--accent) !important; }
.logos-paiement svg { width: 40px; height: 25px; }
@media (min-width: 760px) {
  .pied-haut { grid-template-columns: 1.3fr 2fr; gap: 48px; }
  .pied-liens { grid-template-columns: repeat(3, 1fr); }
}

/* newsletter */
.newsletter { position: relative; max-width: 420px; }
.pied-news { margin-top: 16px; }
.newsletter { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.newsletter label.visuellement-cache { grid-column: 1 / -1; }
.newsletter input[type="email"] { width: 100%; padding: 12px 14px; font-size: 16px; border: 1px solid var(--bord-fort); border-radius: var(--rayon); background: var(--fond-2); }
.newsletter button { background: var(--accent); color: var(--accent-texte); border: 0; border-radius: var(--rayon); padding: 12px 18px; font-weight: 600; min-height: 46px; white-space: nowrap; }
.newsletter button:hover { background: #8f4531; }
.newsletter .form-message, .newsletter-note { grid-column: 1 / -1; margin: 2px 0 0; }
.newsletter-note { color: var(--texte-doux); }
.newsletter-note a { color: var(--accent); text-decoration: underline; }

/* legal / faq / formulaires / recherche / commander : accents de marque */
.legal h1, .ck h1, .merci h1 { font-family: var(--police-titre); }
.legal-entete .filet-court { margin-top: 16px; }
.encadre { background: var(--fond-2); }
.faq summary { font-family: var(--police-texte); }
.faq summary:hover { color: var(--accent); }
.recherche { background: color-mix(in srgb, var(--fond) 97%, transparent); backdrop-filter: blur(6px); }
.recherche-barre input { background: var(--fond-2); border-color: var(--bord-fort); }
.recherche-resultat strong { color: var(--accent); }
.recherche-resultat span { font-family: var(--police-titre); }
.formulaire input:not([type="checkbox"]):not(.piege), .formulaire textarea, .formulaire select,
.ck-form input:not([type="checkbox"]), .ck-form select { background: var(--fond-2); border-color: var(--bord-fort); }
.ck-resume { background: var(--fond-2); border: 1px solid var(--bord); }
.ck-resume h2 { font-family: var(--police-titre); }
.consent { background: var(--fond-2); }
.consent button { border-color: var(--bord-fort); }
.consent button:last-child { background: var(--accent); color: var(--accent-texte); border-color: var(--accent); }

/* animations d'apparition (le socle ajoute .anim) */
.anim [data-apparait] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.anim [data-apparait].vu { opacity: 1; transform: none; }

@media (max-width: 420px) {
  .section-tete-rang { flex-direction: row; align-items: baseline; }
  .barre-outils { gap: 10px; }
  .tri-zone { width: 100%; justify-content: space-between; margin-left: 0; }
}
