/* Feuille de style COMMUNE aux trois sites. Les couleurs et polices de chaque marque arrivent par les variables
   définies dans <head> (voir construire.py) : on change une marque en touchant son fichier marques/*.json, jamais ici. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font-family: var(--police-texte), system-ui, sans-serif; font-size: 17px; line-height: 1.7; font-weight: 300;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--police-titres), Georgia, serif; font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.conteneur { width: min(1120px, 100% - 32px); margin-inline: auto; }
.lien-evitement { position: absolute; left: -999px; }
.lien-evitement:focus { left: 16px; top: 16px; background: var(--accent); color: var(--accent-texte); padding: 8px 12px; z-index: 50; }

/* En-tête */
.entete { border-bottom: 1px solid var(--ligne); background: var(--fond); position: sticky; top: 0; z-index: 10; }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.logo { font-family: var(--police-titres), Georgia, serif; font-size: 1.55rem; text-decoration: none; letter-spacing: .01em; }
.menu { display: flex; gap: 22px; flex-wrap: wrap; font-size: .95rem; }
.menu a { text-decoration: none; color: var(--doux); padding: 6px 0; border-bottom: 1px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--texte); border-bottom-color: var(--accent); }

/* Bandeau d'accueil */
.bandeau { padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 7vw, 80px); background: var(--fond2); }
.bandeau .surtitre { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--accent); margin-bottom: 18px; }
.bandeau p { max-width: 640px; color: var(--doux); font-size: 1.08rem; }
.bouton { display: inline-block; background: var(--accent); color: var(--accent-texte); text-decoration: none; padding: 13px 26px;
  border-radius: 999px; font-weight: 400; letter-spacing: .02em; margin-top: 10px; border: 0; cursor: pointer; font: inherit; }
.bouton:hover { filter: brightness(1.07); }
.bouton.discret { background: transparent; color: var(--texte); border: 1px solid var(--ligne); }

/* Sections */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section .intro { max-width: 680px; color: var(--doux); }
.filtres { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 32px; }
.filtres button { font: inherit; font-size: .9rem; background: transparent; color: var(--doux); border: 1px solid var(--ligne);
  border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.filtres button[aria-pressed="true"] { background: var(--texte); color: var(--fond); border-color: var(--texte); }

/* Grille de créations */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.carte { display: flex; flex-direction: column; }
.carte-lien { text-decoration: none; display: flex; flex-direction: column; }
.acheter { margin-top: 12px; align-self: flex-start; text-decoration: none; font-size: .9rem; padding: 8px 16px;
  border-radius: 999px; background: var(--accent); color: var(--accent-texte); }
.acheter:hover { filter: brightness(1.07); }
.menu .menu-boutique { color: var(--accent); }
.carte .photo { aspect-ratio: 1 / 1; overflow: hidden; background: var(--fond2); border-radius: 6px; }
.carte img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.carte:hover img { transform: scale(1.04); }
.carte h3 { font-size: 1.2rem; margin: 14px 0 4px; }
.carte .meta { color: var(--doux); font-size: .92rem; display: flex; justify-content: space-between; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .carte img { transition: none; } .carte:hover img { transform: none; } }

/* Fiche création */
.fiche { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.fiche .photo { border-radius: 8px; overflow: hidden; background: var(--fond2); }
.fiche .photo img { display: block; width: 100%; height: auto; }
.fiche .prix { font-family: var(--police-titres), Georgia, serif; font-size: 1.8rem; margin: 6px 0 18px; }
.fiche .rubrique { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; color: var(--accent); }
.fiche .mention { color: var(--doux); font-size: .9rem; margin-top: 18px; }
@media (max-width: 760px) { .fiche { grid-template-columns: 1fr; } }

/* Texte courant (à propos, mentions) */
.texte { max-width: 720px; }
.texte p { color: var(--texte); }

/* Pied de page */
.pied { border-top: 1px solid var(--ligne); padding: 36px 0 48px; color: var(--doux); font-size: .9rem; }
.pied .conteneur { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pied a { color: var(--doux); }

/* Panier commun */
.menu .menu-panier { color: var(--accent); }
.acheter { border: 0; cursor: pointer; font: inherit; font-size: .9rem; }
[data-ajout][aria-disabled="true"] { background: transparent; color: var(--doux); border: 1px solid var(--ligne); cursor: default; filter: none; }
.lignes { list-style: none; padding: 0; margin: 0 0 24px; }
.ligne { display: grid; grid-template-columns: 80px 1fr auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ligne); }
.ligne img { width: 80px; height: 100px; object-fit: cover; border-radius: 4px; }
.ligne small { display: block; color: var(--doux); }
.ligne a { text-decoration: none; }
.sans-photo { width: 80px; height: 100px; border-radius: 4px; background: var(--fond2); color: var(--doux); font-size: .7rem;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px; }
.retirer { font: inherit; font-size: .85rem; background: transparent; color: var(--doux); border: 1px solid var(--ligne); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.total { font-size: 1.15rem; }
.total small { color: var(--doux); font-size: .85rem; }
.formulaire { margin-top: 32px; display: grid; gap: 14px; max-width: 520px; }
.formulaire label { display: grid; gap: 4px; font-size: .95rem; }
.formulaire input, .formulaire textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--ligne); border-radius: 6px; background: var(--fond); color: var(--texte); }
.mention { color: var(--doux); font-size: .9rem; }
.vues { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.vues img, .vues video { width: 100%; border-radius: 6px; aspect-ratio: 1; object-fit: cover; display: block; }
.fiche .description { margin-top: 22px; font-size: 1rem; }
@media (max-width: 560px) { .ligne { grid-template-columns: 64px 1fr; } .ligne img, .ligne .sans-photo { width: 64px; height: 80px; } }

/* Contrôle d'âge (Les Effeuillées) */
.age { position: fixed; inset: 0; background: rgba(10, 8, 9, .96); color: #F3E9DD; display: none; align-items: center;
  justify-content: center; z-index: 100; padding: 16px; }
.age.visible { display: flex; }
.age .boite { max-width: 460px; text-align: center; }
.age h2 { color: #F3E9DD; }
.age .choix { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* logo de marque dans l'en-tête (06/12/2026) */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-image { width: 34px; height: 34px; flex: none; }
