/* Ethan Gallery - identité conservée : blanc + rouge, navigation centrée, cartes rouges */
:root {
    --rouge: #e00000;
    --rouge-fonce: #b80000;
    --carte: #c91010;
    --encre: #1a1a1a;
    --gris: #5c5c5c;
    --fond-doux: #f7f4f4;
    --whatsapp: #1fa855;
    --rayon: 18px;
    --police: "Bricolage Grotesque", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; padding-top: 72px; font-family: var(--police); color: var(--encre); background: #fff; line-height: 1.6; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; }

.section { max-width: 1100px; margin: 0 auto; padding: 70px 20px; text-align: center; }
.section > p { max-width: 70ch; margin-inline: auto; color: var(--gris); font-size: 1.1rem; }
.petit-titre { font-weight: 700; letter-spacing: .08em; color: var(--rouge); margin: 0 0 .6em; }
.fond-doux { background: var(--fond-doux); max-width: none; }
.fond-doux > * { max-width: 1100px; margin-inline: auto; }

/* ----- Navigation ----- */
nav { position: fixed; inset: 0 0 auto 0; z-index: 1000; display: flex; align-items: center; min-height: 72px; padding: 0 28px; background: #fff; border-bottom: 3px solid var(--rouge); box-shadow: 0 2px 15px rgba(0,0,0,.12); }
.logo { font-size: 1.5rem; font-weight: 800; text-decoration: none; }
.liens { display: flex; align-items: center; gap: 32px; margin: 0 auto; }
.liens a { position: relative; text-decoration: none; font-size: 1.05rem; color: #1f2937; }
.liens a:not(.bouton-nav-commander)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--rouge); transition: width .25s; }
.liens a:hover::after, .liens a[aria-current="page"]::after { width: 100%; }
.liens a[aria-current="page"] { color: var(--rouge); }
.bouton-nav-commander { background: var(--rouge); color: #fff !important; padding: 9px 20px; border-radius: 10px; font-weight: 700; }
.bouton-nav-commander:hover { background: var(--rouge-fonce); }
.menu-mobile { display: none; margin-left: auto; font-size: 1.7rem; background: none; border: 0; cursor: pointer; padding: 6px 10px; }

/* ----- Boutons ----- */
.bouton, .bouton-galerie { display: inline-block; border: 0; cursor: pointer; background: var(--rouge); color: #fff; font: 700 1.1rem var(--police); text-decoration: none; padding: 15px 32px; border-radius: 12px; transition: background .2s, transform .2s; }
.bouton:hover, .bouton-galerie:hover { background: var(--rouge-fonce); transform: translateY(-2px); }
.bouton.whatsapp { background: var(--whatsapp); }
.bouton[disabled] { background: #999; cursor: not-allowed; transform: none; }
.bouton.contour { background: #fff; color: var(--rouge); box-shadow: inset 0 0 0 2px var(--rouge); }

/* ----- Accueil ----- */
.accueil { max-width: 1100px; margin: 0 auto; padding: 60px 20px 40px; display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.texte { text-align: left; max-width: 520px; }
.description { font-size: 1.25rem; color: var(--gris); margin: 0 0 28px; }
.photo { width: min(400px, 100%); aspect-ratio: 1; object-fit: cover; border-radius: 28px; box-shadow: 16px 16px 0 var(--rouge); }
.accueil .texte { animation: apparition .8s ease both; }
.accueil .photo { animation: apparition .8s ease .2s both; }
@keyframes apparition { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* ----- Carrousel d'accueil (même taille et même place que l'ancienne photo) ----- */
.carrousel { position: relative; width: min(400px, 100%); aspect-ratio: 1; flex-shrink: 0; border-radius: 28px; box-shadow: 16px 16px 0 var(--rouge); animation: apparition .8s ease .2s both; }
.carrousel-piste { position: absolute; inset: 0; overflow: hidden; border-radius: 28px; background: #111; }
.diapo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .9s ease, transform 5s ease; }
.diapo.actif { opacity: 1; transform: scale(1); }
.carrousel-fleche { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--encre); font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; transition: background .2s; }
.carrousel-fleche:hover { background: #fff; color: var(--rouge); }
.precedent { left: 10px; }
.suivant { right: 10px; }
.carrousel-points { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.carrousel-points button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.6); cursor: pointer; transition: width .3s, background .3s; }
.carrousel-points button[aria-current="true"] { width: 26px; border-radius: 99px; background: #fff; }

.garanties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.garanties div { background: #fff; border-radius: var(--rayon); padding: 22px; box-shadow: 0 4px 18px rgba(0,0,0,.07); }
.garanties strong { display: block; font-size: 1.15rem; color: var(--rouge); }

.grille-dessins { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 30px 0; }
.grille-dessins button { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 14px; overflow: hidden; }
.grille-dessins img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .3s; }
.grille-dessins button:hover img { transform: scale(1.05); }

#apropos p, #contact p { margin-inline: auto; }
.reseaux { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 24px; }

/* ----- Créations ----- */
.filtre { display: inline-flex; align-items: center; gap: 10px; margin: 20px 0 10px; cursor: pointer; font-weight: 600; }
.filtre input { width: 20px; height: 20px; accent-color: var(--rouge); }
.cartes-projets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; margin-top: 24px; }
.projet { position: relative; padding: 12px 12px 16px; background: var(--carte); color: #fff; border: 0; border-radius: var(--rayon); font: inherit; text-align: center; cursor: pointer; transition: transform .25s, box-shadow .25s; }
.projet:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0,0,0,.3); }
.projet img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 12px; }
.projet h3 { margin: 12px 0 2px; font-size: 1.15rem; }
.projet .prix { font-weight: 700; }
.projet.rupture img { filter: grayscale(.8) brightness(.8); }
.badge-rupture { position: absolute; top: 22px; left: 22px; background: #fff; color: var(--rouge); font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 99px; }
.creation-commande { margin: 0 auto 70px; max-width: 900px; padding: 50px 24px; background: var(--rouge); color: #fff; border-radius: 28px; text-align: center; }
.creation-commande .petit-titre, .creation-commande p { color: #fff; }
.creation-commande .bouton { background: #fff; color: var(--rouge); margin-top: 14px; }

/* ----- Fenêtre produit ----- */
dialog { padding: 0; border: 0; border-radius: 24px; width: 900px; max-width: 94vw; max-height: 88vh; overflow: hidden; }
dialog::backdrop { background: rgba(0,0,0,.75); }
dialog[open] { display: flex; }
dialog img { width: 50%; object-fit: cover; }
.produit-infos { width: 50%; padding: 44px 36px; overflow-y: auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; }
.produit-stock { font-weight: 700; margin: 0 0 12px; }
.produit-stock.ok { color: var(--whatsapp); }
.produit-stock.rupture { color: var(--rouge); }
.produit-infos p { color: var(--gris); }
#produit-prix { font-size: 1.6rem; font-weight: 800; color: var(--encre); margin: 8px 0 20px; }
.popup-fermer { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--rouge); color: #fff; font-size: 1.7rem; cursor: pointer; }

/* ----- Comment ça marche ----- */
.etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 40px 0; text-align: left; }
.etape { background: #fff; border-radius: var(--rayon); padding: 26px 22px; box-shadow: 0 4px 18px rgba(0,0,0,.08); border-top: 5px solid var(--rouge); }
.etape .num { font-size: 2.2rem; font-weight: 800; color: var(--rouge); }
.etape h3 { font-size: 1.2rem; }
.etape p { margin: 0; color: var(--gris); }
table.tarifs { margin: 30px auto 10px; border-collapse: collapse; width: min(560px, 100%); }
.tarifs th, .tarifs td { padding: 14px 18px; border-bottom: 1px solid #ddd; text-align: left; }
.tarifs td:last-child { text-align: right; font-weight: 800; color: var(--rouge); }
.note { font-size: .95rem !important; }
.faq { max-width: 760px; margin: 30px auto 0; text-align: left; }
.faq details { border-bottom: 1px solid #ddd; padding: 16px 4px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; }
.faq p { margin: 10px 0 0; color: var(--gris); }

/* ----- Formulaires ----- */
.formulaire { max-width: 560px; margin: 30px auto 0; text-align: left; display: flex; flex-direction: column; gap: 18px; }
.champ label, .etape-commande h3 { display: block; font-weight: 700; margin-bottom: 6px; }
input[type="text"], input[type="email"], select, textarea { width: 100%; padding: 14px; font: 1rem var(--police); border: 2px solid #ddd; border-radius: 10px; background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--rouge); outline: none; }
textarea { min-height: 130px; resize: vertical; }
.etape-commande { display: flex; gap: 16px; background: var(--fond-doux); padding: 20px; border-radius: var(--rayon); }
.etape-commande > span { font-size: 1.8rem; font-weight: 800; color: var(--rouge); }
.etape-commande > div { flex: 1; min-width: 0; }
.etape-commande p { margin: 0 0 10px; color: var(--gris); }
#apercu-photo { display: none; max-width: 220px; margin-top: 12px; border-radius: 14px; }
#prix-estime { margin-top: 10px; font-weight: 800; color: var(--black); }
.message-etat { display: none; padding: 14px 18px; border-radius: 10px; font-weight: 600; }
.message-etat.visible { display: block; }
.message-etat.erreur { background: #fde8e8; color: #9b0000; }
.message-etat.ok { background: #e6f6ec; color: #136c33; }
.info-whatsapp { border-left: 4px solid var(--whatsapp); background: var(--fond-doux); }
.cache { position: absolute; left: -9999px; }

/* ----- Pied de page ----- */
footer { background: #1a1a1a; color: #ddd; padding: 36px 20px; text-align: center; border-top: 4px solid var(--rouge); }
footer a { margin: 0 12px; }
footer p { margin: 8px 0 0; font-size: .9rem; color: #aaa; }

/* ----- Téléphone ----- */
@media (max-width: 800px) {
    nav { padding: 0 16px; }
    .menu-mobile { display: block; }
    .liens { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 18px; padding: 24px 0; background: #fff; border-bottom: 3px solid var(--rouge); margin: 0; }
    .liens.ouvert { display: flex; }
    .accueil { flex-direction: column-reverse; gap: 40px; padding-top: 36px; text-align: center; }
    .texte { text-align: center; }
    .actions { justify-content: center; }
    .actions .bouton { width: 100%; max-width: 320px; text-align: center; }
    .photo, .carrousel { box-shadow: 10px 10px 0 var(--rouge); width: 82%; }
    .carrousel-fleche { width: 36px; height: 36px; font-size: 1.4rem; }
    .garanties, .etapes { grid-template-columns: 1fr; }
    .cartes-projets { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .projet h3 { font-size: 1rem; }
    .section { padding: 50px 16px; }
    dialog[open] { flex-direction: column; overflow-y: auto; }
    dialog img, .produit-infos { width: 100%; }
    dialog img { height: 320px; object-fit: contain; background: #111; flex-shrink: 0; }
    .produit-infos { padding: 24px 20px 28px; overflow: visible; }
    .produit-infos .bouton { width: 100%; text-align: center; }
    .etape-commande { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ----- Boutique : panier, compte, paramètres ----- */
.icone-nav { font-size: 1.35rem !important; }
.badge-panier { position: absolute; top: -9px; right: -13px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--rouge); color: #fff; font: 700 .75rem/20px var(--police); text-align: center; }
.badge-panier[hidden] { display: none; }
input[type="tel"], input[type="password"], input[type="number"] { width: 100%; padding: 14px; font: 1rem var(--police); border: 2px solid #ddd; border-radius: 10px; background: #fff; }
input[type="tel"]:focus, input[type="password"]:focus { border-color: var(--rouge); outline: none; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); z-index: 2000; background: var(--encre); color: #fff; padding: 12px 22px; border-radius: 99px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
#toast.visible { opacity: 1; transform: translate(-50%, 0); }
.lignes-panier { list-style: none; margin: 30px auto 0; padding: 0; max-width: 760px; text-align: left; }
.lignes-panier li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #ddd; }
.lignes-panier img, .pastille { width: 72px; height: 90px; flex-shrink: 0; object-fit: cover; border-radius: 10px; background: var(--fond-doux); display: grid; place-items: center; font-size: 1.6rem; }
.lignes-panier div { flex: 1; min-width: 0; }
.lignes-panier small { display: block; color: var(--gris); overflow-wrap: anywhere; }
.ligne-prix { font-weight: 800; color: var(--rouge); white-space: nowrap; }
.retirer { border: 0; background: none; font-size: 1.3rem; cursor: pointer; padding: 8px; }
.total-panier { font-size: 1.4rem; max-width: 760px; margin: 18px auto 0 !important; text-align: right; color: var(--encre) !important; }
.onglets { display: inline-flex; gap: 6px; margin-top: 24px; padding: 5px; background: var(--fond-doux); border-radius: 12px; }
.onglets button { border: 0; background: none; padding: 10px 20px; font: 700 1rem var(--police); border-radius: 9px; cursor: pointer; color: var(--gris); }
.onglets button.actif { background: var(--rouge); color: #fff; }
.bonjour { font-size: 1.3rem; font-weight: 700; color: var(--encre) !important; }
.bonjour small { font-weight: 400; color: var(--gris); }
.formulaire h2 { margin: 10px 0 0; }
.titre-historique { margin-top: 50px; }
.lien-danger { border: 0; background: none; color: var(--rouge); text-decoration: underline; cursor: pointer; font: inherit; }
.formulaire .bouton.contour { text-align: center; }

/* ----- Mode sombre (réglage du compte) ----- */
body.sombre { --encre: #f2f2f2; --gris: #b8b8b8; --fond-doux: #1e1e1e; background: #121212; }
body.sombre nav, body.sombre .liens { background: #161616; }
body.sombre .liens a { color: #eee; }
body.sombre .bouton-nav-commander { color: #fff; }
body.sombre .garanties div, body.sombre .etape, body.sombre dialog { background: #1e1e1e; color: var(--encre); }
body.sombre input, body.sombre select, body.sombre textarea { background: #222; color: #eee; border-color: #444; }
body.sombre .bouton.contour { background: transparent; }
body.sombre .lignes-panier li, body.sombre .tarifs th, body.sombre .tarifs td, body.sombre .faq details { border-color: #333; }
body.sombre #toast { background: #fff; color: #111; }
body.sombre .message-etat.ok { background: #12351f; color: #8fe0ae; }
body.sombre .message-etat.erreur { background: #3a1414; color: #ff9d9d; }
body.sombre #produit-prix, body.sombre #prix-estime { color: var(--encre); }

/* ===== Espacement des boutons ===== */
.produit-infos { gap: 10px; }
.produit-infos .bouton, .bouton-favori { width: 100%; text-align: center; margin: 0; }
.produit-infos #produit-commander { margin-top: 6px; }
.formulaire .bouton { width: 100%; text-align: center; }
.bouton-favori { border: 2px solid #ddd; background: transparent; color: var(--gris); font: 700 1rem var(--police); padding: 12px 20px; border-radius: 12px; cursor: pointer; transition: color .2s, border-color .2s; }
.bouton-favori:hover, .bouton-favori[aria-pressed="true"] { color: var(--rouge); border-color: var(--rouge); }
.bouton[disabled] { box-shadow: none; }

/* ===== Compte : sections ===== */
.profil-tete { display: flex; align-items: center; gap: 16px; max-width: 1000px; margin: 30px auto 24px; text-align: left; }
.profil-tete div { flex: 1; } .profil-tete strong { display: block; font-size: 1.3rem; } .profil-tete small { color: var(--gris); }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--rouge); color: #fff; display: grid; place-items: center; font-size: 1.7rem; font-weight: 800; flex-shrink: 0; }
.grille-compte { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 1000px; margin: 0 auto; text-align: left; align-items: start; }
.carte-compte { background: #fff; border-radius: var(--rayon); padding: 26px 24px; box-shadow: 0 4px 18px rgba(0,0,0,.08); border-top: 5px solid var(--rouge); }
.carte-compte h2 { font-size: 1.3rem; }
.carte-compte .champ { margin-bottom: 14px; }
.carte-compte .bouton { margin-top: 6px; width: 100%; text-align: center; }
.carte-compte .lien-danger { display: block; margin-top: 14px; }
.carte-compte .message-etat { margin: 6px 0 10px; }
.lignes-panier.compact { margin: 0; }
.lignes-panier.compact img { width: 52px; height: 64px; }
.mini { border: 0; background: var(--fond-doux); border-radius: 10px; padding: 8px 10px; cursor: pointer; font-size: 1.1rem; }
body.sombre .carte-compte { background: #1e1e1e; }

/* ===== Esthétique ===== */
::selection { background: var(--rouge); color: #fff; }
html { scrollbar-color: var(--rouge) transparent; }
body { overflow-x: clip; }
nav { background: rgba(255,255,255,.88); backdrop-filter: blur(10px); }
body.sombre nav { background: rgba(22,22,22,.88); }
.accueil { position: relative; }
.accueil::before { content: ""; position: absolute; inset: -30px -8%; z-index: -1; pointer-events: none; background: radial-gradient(circle at 12% 25%, rgba(224,0,0,.10), transparent 42%), radial-gradient(circle at 90% 85%, rgba(224,0,0,.09), transparent 40%); }
.section > h2::after { content: ""; display: block; width: 56px; height: 4px; margin: 12px auto 0; border-radius: 4px; background: var(--rouge); }
.bouton, .bouton-galerie { box-shadow: 0 8px 18px rgba(224,0,0,.25); }
.bouton.whatsapp { box-shadow: 0 8px 18px rgba(31,168,85,.3); }
.bouton.contour { box-shadow: inset 0 0 0 2px var(--rouge); }
.bouton:active, .bouton-galerie:active { transform: scale(.98); }
.projet .prix { display: inline-block; background: rgba(255,255,255,.18); padding: 2px 14px; border-radius: 99px; }
.projet:hover { box-shadow: 0 16px 34px rgba(201,16,16,.4); }
.grille-dessins button { transition: transform .3s, box-shadow .3s; }
.grille-dessins button:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(0,0,0,.22); }
.garanties div { border-left: 4px solid var(--rouge); text-align: left; }
dialog[open] { animation: ouvrir .3s ease; }
@keyframes ouvrir { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.badge-panier.pop { animation: pop .4s ease; }
@keyframes pop { 40% { transform: scale(1.5); } }
#haut { position: fixed; right: 18px; bottom: 22px; z-index: 900; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--rouge); color: #fff; font-size: 1.4rem; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.3); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .25s, transform .25s; }
#haut.visible { opacity: 1; transform: none; pointer-events: auto; }
footer a { color: #fff; text-decoration: none; border-bottom: 2px solid var(--rouge); padding-bottom: 2px; }
footer a:hover { background: var(--rouge); }
html.grand { font-size: 112.5%; }
body.sans-anim *, body.sans-anim *::before, body.sans-anim *::after { animation: none !important; transition: none !important; }
@media (max-width: 800px) { .grille-compte { grid-template-columns: 1fr; } .profil-tete { flex-wrap: wrap; } }

/* ===== v9 : boutique (Créations) et commande ===== */
input[type="search"] { width: 100%; padding: 12px 14px; font: 1rem var(--police); border: 2px solid #ddd; border-radius: 10px; background: #fff; }
input[type="search"]:focus { border-color: var(--rouge); outline: none; }
.boutique { max-width: 1240px; text-align: left; }
.boutique > p { margin-inline: 0; max-width: none; font-size: 1rem; }
.boutique > .fil { font-size: .9rem; margin: 0 0 6px; }
.fil a { color: var(--rouge); text-decoration: none; }
.boutique h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.reassurance { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 14px 18px; background: var(--fond-doux); border-radius: 12px; font-weight: 600; font-size: .95rem; }
.boutique-corps { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; margin-top: 28px; align-items: start; }
.filtres { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; padding: 20px; border: 1px solid #e5e5e5; border-radius: var(--rayon); background: #fff; }
.filtre-bloc label, .filtre-bloc h2 { display: block; font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.filtres .filtre { margin: 0; }
.facette { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.facette button { border: 0; background: none; padding: 4px 0; font: inherit; color: var(--gris); cursor: pointer; text-align: left; }
.facette button:hover { color: var(--rouge); }
.facette button[aria-pressed="true"] { color: var(--rouge); font-weight: 700; }
.barre-tri { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid #e5e5e5; }
.barre-tri p { margin: 0; font-weight: 700; }
.barre-tri select { width: auto; padding: 8px 12px; }
.cartes-projets { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.projet { padding: 0; display: flex; flex-direction: column; overflow: hidden; background: #fff; color: var(--encre); text-align: left; border: 1px solid #e5e5e5; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.projet:hover { box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.projet-visuel { position: relative; padding: 0; border: 0; background: #f3f0f0; cursor: pointer; display: block; }
.projet-visuel img { border-radius: 0; }
.projet .badge-rupture { top: 10px; left: 10px; }
.coeur { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; color: var(--rouge); font-size: 1.25rem; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.projet-corps { display: flex; flex-direction: column; gap: 4px; padding: 14px; flex: 1; }
.projet-corps small { color: var(--gris); }
.projet h3 { margin: 0; font-size: 1.1rem; cursor: pointer; }
.projet .prix { background: none; padding: 0; font-size: 1.3rem; font-weight: 800; color: var(--encre); margin: 2px 0; }
.stock { margin: 0; font-size: .9rem; font-weight: 700; }
.stock.ok { color: var(--whatsapp); }
.stock.non { color: var(--rouge); }
.projet .ajout { margin-top: auto; padding: 11px 14px; font-size: 1rem; box-shadow: none; width: 100%; }
.vide { grid-column: 1 / -1; text-align: center; padding: 40px 0; }

.commande-grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; margin-top: 30px; text-align: left; align-items: start; }
.commande-grille .formulaire { max-width: none; margin: 0; }
.etape-commande { border: 1px solid #e5e5e5; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 10px; }
.tuile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border: 2px solid #ddd; border-radius: 14px; background: #fff; color: var(--encre); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.tuile:hover { border-color: var(--rouge); }
.tuile[aria-checked="true"] { border-color: var(--rouge); box-shadow: 0 0 0 3px rgba(224,0,0,.15); background: #fff6f6; }
.tuile small { color: var(--gris); }
.tuile .tp { font-weight: 800; color: var(--rouge); }
.cadre { display: block; width: calc(var(--w) * .8px); height: calc(var(--h) * .8px); border: 3px solid var(--encre); background: var(--fond-doux); margin-bottom: 6px; }
.recap { position: sticky; top: 92px; padding: 24px; border: 1px solid #e5e5e5; border-top: 5px solid var(--rouge); border-radius: var(--rayon); background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.recap h2 { font-size: 1.3rem; }
.recap-liste, .recap-garanties { list-style: none; margin: 0; padding: 0; }
.recap-liste li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eee; color: var(--gris); }
.recap-liste li strong { color: var(--encre); text-align: right; overflow-wrap: anywhere; }
.recap-liste li.ok strong::before { content: "✓ "; color: var(--whatsapp); }
.recap-prix { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; margin: 16px 0; }
.recap-prix strong { font-size: 1.8rem; color: var(--rouge); }
.recap-actions { display: flex; flex-direction: column; gap: 10px; }
.recap-actions .bouton { width: 100%; text-align: center; }
.recap-garanties { margin-top: 18px; font-size: .92rem; color: var(--gris); display: grid; gap: 6px; }
@media (max-width: 900px) { .boutique-corps, .commande-grille { grid-template-columns: 1fr; } .filtres, .recap { position: static; } }
body.sombre .projet, body.sombre .filtres, body.sombre .recap, body.sombre .etape-commande, body.sombre .tuile { background: #1e1e1e; border-color: #333; color: var(--encre); }
body.sombre .tuile[aria-checked="true"] { background: #2a1515; }
body.sombre input[type="search"] { background: #222; color: #eee; border-color: #444; }
body.sombre .projet-visuel { background: #111; }
/* ===== BOUTON AJOUTER UNE PHOTO ===== */

input[type="file"] {
    font-size: 0;
}

input[type="file"]::file-selector-button {
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;

    background: #fa0000;
    color: rgb(252, 251, 251);

    border: none;
    border-radius: 10px;

    padding: 12px 20px;
    margin-right: 12px;

    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* ===== Filtres qui suivent le défilement (page Créations) ===== */
@media (min-width: 901px) {
    .filtres { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}

/* ===== Choix original fait main / poster imprimé ===== */
.bloc-version { width: 100%; display: flex; flex-direction: column; gap: 10px; margin: 6px 0 4px; }
.bloc-version[hidden], #v-cadre[hidden] { display: none; }
.bloc-version .option-titre { margin: 0; font-weight: 700; color: var(--encre); }
.bloc-version small { color: var(--gris); }
.choix-version { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choix-version label { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 2px solid #ddd; border-radius: 12px; cursor: pointer; }
.choix-version label:has(input:checked) { border-color: var(--rouge); background: #fff6f6; }
.choix-version label:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.choix-version input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--rouge); flex: none; }
.choix-version span { display: flex; flex-direction: column; font-size: .95rem; }
.choix-version small { font-weight: 700; }
.choix-cadre { display: flex; flex-wrap: wrap; gap: 10px; }
.choix-cadre label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 2px solid #ddd; border-radius: 10px; font-weight: 600; cursor: pointer; }
.choix-cadre label:has(input:checked) { border-color: var(--rouge); background: #fff6f6; }
.choix-cadre input { width: 18px; height: 18px; accent-color: var(--rouge); }
.projet .version, .projet .cadre-poster { width: 100%; margin-top: 4px; padding: 9px 10px; font: .95rem var(--police); border: 2px solid #ddd; border-radius: 10px; background: #fff; color: var(--encre); }
.projet .cadre-poster[hidden] { display: none; }
body.sombre .choix-version label, body.sombre .choix-cadre label { border-color: #444; }
body.sombre .choix-version label:has(input:checked), body.sombre .choix-cadre label:has(input:checked) { background: #2a1515; }
body.sombre .projet .version, body.sombre .projet .cadre-poster { background: #222; color: #eee; border-color: #444; }

/* =====================================================================
   v12 : finition « pro » (couche finale, remplace les anciens effets)
   ===================================================================== */
:root { --rouge: #d90012; --rouge-fonce: #b0000e; --encre: #161616; --gris: #5e5e5e; --fond-doux: #f6f5f3; --ligne: #e7e4e0; --rayon: 14px; }
body.sombre { --ligne: #2f2f2f; }
body { padding-top: 68px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -.02em; }
h1 { font-weight: 700; line-height: 1.05; letter-spacing: -.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 700; }

/* ----- Transition entre les pages : fondu natif, très court, le menu reste fixe ----- */
@view-transition { navigation: auto; }
nav { view-transition-name: menu-site; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .14s; animation-timing-function: ease-out; }
html.sans-transition::view-transition-group(*), html.sans-transition::view-transition-old(*), html.sans-transition::view-transition-new(*) { animation-duration: 0s !important; animation-delay: 0s !important; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* ----- Navigation ----- */
nav { min-height: 68px; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--ligne); box-shadow: none; }
.logo { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.liens { gap: 28px; }
.liens a { font-size: 1rem; }
.liens .icone-nav { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: background .15s; }
.liens .icone-nav:hover { background: var(--fond-doux); }
.liens .icone-nav svg { display: block; }
.liens .icone-nav::after { display: none; }
.liens .icone-nav[aria-current="page"] { color: var(--rouge); }
.badge-panier { top: 0; right: -2px; min-width: 18px; height: 18px; font: 700 .7rem/18px var(--police); }
.bouton-nav-commander { padding: 10px 20px; border-radius: 10px; font-weight: 600; font-size: .95rem; }

/* ----- Boutons : à plat, sans halo coloré ----- */
.bouton, .bouton-galerie { font-size: 1rem; font-weight: 600; padding: 14px 28px; border-radius: 10px; box-shadow: none; transition: background .15s, color .15s, box-shadow .15s; }
.bouton:hover, .bouton-galerie:hover { transform: none; }
.bouton.whatsapp { box-shadow: none; }
.bouton.whatsapp:hover { background: #178a43; }
.bouton.contour { background: transparent; color: var(--rouge); box-shadow: inset 0 0 0 1.5px var(--rouge); }
.bouton.contour:hover { background: var(--rouge); color: #fff; }
.bouton[disabled], .bouton[disabled]:hover { background: #bdbab6; color: #fff; box-shadow: none; }
.bouton.contour[disabled], .bouton.contour[disabled]:hover { background: transparent; color: #a09c97; box-shadow: inset 0 0 0 1.5px #cfcbc6; }
.bouton-favori { border: 1.5px solid var(--ligne); border-radius: 10px; font-weight: 600; }

/* ----- Accueil ----- */
.accueil { max-width: 1180px; padding: 72px 24px 72px; gap: 72px; }
.accueil::before { display: none; }
.accueil .texte, .accueil .photo, .carrousel { animation: none; }
.accueil h1 { font-size: clamp(2.6rem, 5.2vw, 4.2rem); margin-bottom: 20px; }
.description { font-size: 1.2rem; line-height: 1.6; max-width: 44ch; margin-bottom: 32px; }
.carrousel { width: min(440px, 100%); aspect-ratio: 4 / 5; border-radius: 18px; box-shadow: 0 32px 60px -30px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.06); }
.carrousel-piste { border-radius: 18px; }
.carrousel-fleche { width: 38px; height: 38px; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.carrousel-points { display: none; }
.carrousel-compteur { position: absolute; right: 14px; bottom: 14px; padding: 4px 11px; border-radius: 99px; background: rgba(15,15,15,.6); color: #fff; font: 600 .8rem var(--police); backdrop-filter: blur(6px); }

/* ----- Sections ----- */
.section { padding: 88px 24px; }
.section > h2::after { display: none; }
.section > p { font-size: 1.05rem; line-height: 1.75; max-width: 62ch; }
.fond-doux { background: var(--fond-doux); }
.garanties { gap: 0; margin-top: 52px; border-top: 1px solid var(--ligne); }
.garanties div, body.sombre .garanties div { background: transparent; box-shadow: none; border: 0; border-radius: 0; padding: 30px 28px 4px; text-align: left; color: var(--gris); }
.garanties div + div { border-left: 1px solid var(--ligne); }
.garanties .ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 50%; background: rgba(217,0,18,.08); color: var(--rouge); }
.garanties strong { margin-bottom: 4px; font-size: 1.1rem; color: var(--encre); }
.grille-dessins { grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 40px 0; }
.grille-dessins button { border-radius: 10px; }
.grille-dessins button:hover { transform: none; box-shadow: none; }
.grille-dessins button:hover img { transform: scale(1.04); }
.bouton-galerie { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--encre); }
.bouton-galerie:hover { background: var(--encre); color: var(--fond-doux); }
.reseaux { gap: 12px; }

/* ----- Créations ----- */
.reassurance { gap: 8px 28px; padding: 14px 20px; border-radius: 12px; font-weight: 500; }
.reassurance li::before { content: "✓"; margin-right: 8px; color: var(--rouge); font-weight: 700; }
.filtres { border-color: var(--ligne); border-radius: var(--rayon); }
.projet { border: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: none; transition: transform .2s, box-shadow .2s; }
.projet:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -20px rgba(0,0,0,.35); }
.projet .badge-rupture { background: rgba(15,15,15,.85); color: #fff; font-weight: 600; }
.projet .prix { font-size: 1.15rem; }
.creation-commande { max-width: 1000px; margin: 0 auto 88px; padding: 64px 28px; border-radius: 18px; }
.creation-commande h2 { margin-bottom: 12px; }

/* ----- Fenêtre d'un tableau ----- */
dialog { border-radius: 16px; }
dialog[open] { animation: ouvrir .18s ease; }
.popup-fermer { background: #fff; color: var(--encre); font-size: 1.5rem; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.popup-fermer:hover { background: var(--rouge); color: #fff; }
#produit-prix { font-weight: 700; }

/* ----- Commande ----- */
.etape-commande { padding: 24px; background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: none; }
.etape-commande > span, .etape .num { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--encre); color: var(--fond-doux); font-size: .8rem; font-weight: 700; }
.etape-commande > div { position: relative; }
.recap { border: 1px solid var(--ligne); border-top: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: 0 24px 40px -30px rgba(0,0,0,.35); }
.tuile { border: 1.5px solid var(--ligne); border-radius: 12px; }
.tuile[aria-checked="true"] { border-color: var(--rouge); background: #fff7f7; box-shadow: 0 0 0 1px var(--rouge); }
.entree-fichier { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.depot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 18px; border: 2px dashed #cfcac4; border-radius: 12px; background: var(--fond-doux); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.depot:hover, .entree-fichier:focus-visible + .depot { border-color: var(--rouge); background: #fff; }
.depot svg { color: var(--rouge); margin-bottom: 4px; }
.depot span { font-weight: 700; overflow-wrap: anywhere; }
.depot small { color: var(--gris); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], select, textarea { border: 1.5px solid #d9d5d0; border-radius: 10px; }
input:focus, select:focus, textarea:focus { border-color: var(--rouge); box-shadow: 0 0 0 3px rgba(217,0,18,.12); }

/* ----- Comment ça marche ----- */
.etape { padding: 28px 24px; border: 1px solid var(--ligne); border-top: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: none; }
.etape .num { margin-bottom: 18px; }
.etape h3 { font-size: 1.15rem; }
.tarifs th, .tarifs td { padding: 16px 18px; border-color: var(--ligne); }
.tarifs th { font-size: .9rem; font-weight: 600; color: var(--gris); }
.tarifs th:last-child { text-align: right; }
.faq details { border-color: var(--ligne); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; line-height: 1; color: var(--rouge); }
.faq details[open] summary::after { content: "–"; }

/* ----- Compte et panier ----- */
.carte-compte { border: 1px solid var(--ligne); border-top: 1px solid var(--ligne); box-shadow: none; }
.lignes-panier li { border-color: var(--ligne); }
.pastille svg { width: 28px; height: 28px; color: var(--gris); }
.retirer { color: var(--gris); font-size: 1.1rem; }
.retirer:hover { color: var(--rouge); }

/* ----- Pied de page ----- */
footer { padding: 64px 24px 28px; text-align: left; background: #131313; border-top: 0; }
.pied { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px; }
.pied-marque strong { display: block; margin-bottom: 10px; font-size: 1.25rem; color: #fff; letter-spacing: -.01em; }
.pied-marque p { max-width: 34ch; margin: 0; font-size: .95rem; line-height: 1.6; color: #a9a9a9; }
.pied-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pied-titre { margin-bottom: 4px; font-weight: 600; font-size: .95rem; color: #fff; }
footer a { margin: 0; padding: 0; border: 0; color: #bdbdbd; text-decoration: none; }
footer a:hover { background: none; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.pied-bas { max-width: 1100px; margin: 48px auto 0 !important; padding-top: 22px; border-top: 1px solid #2c2c2c; font-size: .85rem !important; color: #8b8b8b !important; }

/* ----- Mode sombre : ajustements de la couche v12 ----- */
body.sombre nav { background: rgba(22,22,22,.92); }
body.sombre .etape-commande, body.sombre .recap, body.sombre .tuile, body.sombre .etape { background: #1c1c1c; border-color: var(--ligne); color: var(--encre); }
body.sombre .tuile[aria-checked="true"] { background: #2a1515; }
body.sombre .depot { background: #1c1c1c; border-color: #444; }
body.sombre .depot:hover { background: #242424; }
body.sombre .popup-fermer { background: #2a2a2a; color: #fff; }
body.sombre .liens .icone-nav:hover { background: #262626; }
body.sombre .bouton-galerie { color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--encre); }

/* ----- Téléphone ----- */
@media (max-width: 800px) {
    body { padding-top: 64px; }
    nav { min-height: 64px; }
    .liens { border-bottom: 1px solid var(--ligne); }
    .accueil { padding: 36px 20px 48px; gap: 36px; }
    .carrousel { width: 100%; max-width: 360px; box-shadow: 0 24px 44px -26px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.06); }
    .section { padding: 60px 20px; }
    .garanties { border-top: 0; }
    .garanties div { padding: 22px 4px; border-top: 1px solid var(--ligne); }
    .garanties div + div { border-left: 0; }
    .grille-dessins { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pied { grid-template-columns: 1fr; gap: 28px; }
    footer { padding: 48px 20px 24px; }
    .creation-commande { margin: 0 16px 60px; padding: 44px 20px; }
}

/* ----- Correctifs v12 : fenêtre d'un tableau et carrousel en mode sombre ----- */
.carrousel-fleche, body.sombre .carrousel-fleche { color: #161616; }
.produit-infos { justify-content: flex-start; gap: 8px; padding: 36px 32px; }
.produit-infos > :first-child { margin-top: auto; }
.produit-infos > :last-child { margin-bottom: auto; }
.choix-cadre { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choix-cadre label { padding: 8px 12px; font-size: .95rem; }
@media (max-width: 800px) { .produit-infos { padding: 24px 20px 28px; } }
input[type="radio"]:focus, input[type="checkbox"]:focus { box-shadow: none; }
.choix-cadre label { white-space: nowrap; font-size: .9rem; padding: 8px 10px; gap: 6px; }
@media (max-width: 800px) { .choix-cadre label { white-space: normal; } }

/* ===== Accueil v13 ===== */
.heros { background: #0f0f10; color: #fff; overflow: hidden; position: relative; }
.heros::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 85% 30%, rgba(224,0,0,.28), transparent 70%); pointer-events: none; }
.heros-in { position: relative; max-width: 1200px; margin: 0 auto; padding: 72px 28px 80px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.heros h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: .35em; }
.heros .lead { font-size: 1.15rem; color: #d6d6d6; max-width: 34em; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.heros .bouton, .appel .bouton { border-radius: 10px; padding: 15px 28px; font-size: 1.02rem; }
.bouton.contour-clair { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.bouton.contour-clair:hover { background: #fff; color: #111; }
.heros-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 28px 0 0; color: #bdbdbd; font-size: .95rem; }
.heros-points li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--rouge); vertical-align: middle; }
.mosaique { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-height: 560px; }
.mosaique .col { display: grid; gap: 12px; align-content: start; }
.mosaique .col:nth-child(2) { margin-top: 36px; }
.mosaique .col:nth-child(3) { margin-top: 12px; }
.oeuvre { padding: 0; border: 0; background: #222; border-radius: 14px; overflow: hidden; cursor: pointer; box-shadow: 0 18px 40px -18px rgba(0,0,0,.8); }
.oeuvre img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform .35s ease; }
.oeuvre:hover img { transform: scale(1.06); }

.zone { padding: 84px 28px; }
.zone-douce { background: var(--fond-doux); }
.bloc { max-width: 1120px; margin: 0 auto; }
.bloc > h2 { text-align: center; }
.intro-bloc { text-align: center; color: var(--gris); max-width: 36em; margin: 0 auto 38px; }
.lien-fleche { font-weight: 700; color: var(--rouge); text-decoration: none; white-space: nowrap; }
.lien-fleche::after { content: " →"; transition: margin .2s; }
.lien-fleche:hover::after { margin-left: 4px; }
.lien-bas { text-align: center; margin: 36px 0 0; }

.vitrine-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.vitrine-tete h2 { margin: 0; }
.vitrine .grille-dessins { grid-template-columns: repeat(4, 1fr); gap: 22px 18px; margin: 32px 0 0; }
.vitrine .grille-dessins button { display: block; text-align: left; border-radius: 0; overflow: visible; font: inherit; color: inherit; }
.vignette { display: block; border-radius: 14px; overflow: hidden; background: #eee; box-shadow: 0 10px 26px -16px rgba(0,0,0,.45); }
.vitrine .grille-dessins img { aspect-ratio: 4/5; }
.legende { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; align-items: baseline; }
.legende strong { font-size: 1rem; }
.legende span { color: var(--rouge); font-weight: 700; white-space: nowrap; }

.parcours { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; counter-reset: p; }
.parcours::before { content: ""; position: absolute; top: 32px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, #cfc6c6 0 8px, transparent 8px 16px); }
.parcours li { position: relative; text-align: center; }
.parcours-ico { position: relative; display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 50%; background: #fff; color: var(--rouge); box-shadow: 0 0 0 6px var(--fond-doux), 0 8px 20px -10px rgba(0,0,0,.4); }
.parcours h3 { font-size: 1.15rem; }
.parcours p { color: var(--gris); max-width: 22em; margin: 0 auto; }

.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.format { text-align: center; padding: 28px 20px 26px; border: 1px solid #e6e1e1; border-radius: 18px; background: #fff; transition: transform .25s, box-shadow .25s; }
.format:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -22px rgba(0,0,0,.45); }
.format-visuel { height: 150px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 18px; }
.format-cadre { display: block; height: calc(var(--h) * 1.4px); aspect-ratio: var(--w) / var(--h); background: linear-gradient(135deg, #e00000, #7a0010); border: 4px solid #fff; border-radius: 2px; box-shadow: 0 0 0 1px #d8d0d0, 0 10px 18px -8px rgba(0,0,0,.5); }
.format h3 { margin-bottom: 2px; }
.format p { margin: 0; color: var(--gris); font-size: .95rem; }
.format .format-prix { margin-top: 10px; color: var(--encre); }
.format-prix strong { color: var(--rouge); font-size: 1.35rem; }
.note-poster { max-width: 44em; margin: 34px auto 0; padding: 16px 20px; text-align: center; background: var(--fond-doux); border-radius: 14px; color: var(--gris); }
.note-poster strong { color: var(--encre); }

.apropos { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.apropos-texte h2 { text-align: left; }
.apropos-texte p { color: #444; }
.apropos-img { margin: 0; }
.apropos-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 18px; box-shadow: 0 24px 50px -26px rgba(0,0,0,.55); }

.appel { background: #0f0f10; color: #fff; text-align: center; padding: 88px 24px; background-image: radial-gradient(50% 120% at 50% 120%, rgba(224,0,0,.35), transparent 70%); }
.appel-in { max-width: 720px; margin: 0 auto; }
.appel h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.appel p { color: #cfcfcf; }
.appel .actions { justify-content: center; margin-top: 26px; }
.appel .appel-contact { margin-top: 26px; font-size: .95rem; color: #9a9a9a; }

body.sombre .zone-douce { background: #161617; }
body.sombre .format, body.sombre .parcours-ico { background: #1d1d1f; border-color: #2c2c2e; }
body.sombre .parcours-ico { box-shadow: 0 0 0 6px #161617; }
body.sombre .format .format-prix, body.sombre .apropos-texte p { color: #ddd; }
body.sombre .note-poster { background: #1d1d1f; }
body.sombre .note-poster strong { color: #fff; }
body.sombre .parcours::before { background: repeating-linear-gradient(90deg, #444 0 8px, transparent 8px 16px); }

@media (max-width: 900px) {
    .heros-in { grid-template-columns: 1fr; padding: 44px 20px 52px; gap: 36px; }
    .mosaique { max-height: 380px; }
    .zone { padding: 56px 20px; }
    .vitrine .grille-dessins { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
    .parcours, .formats { grid-template-columns: 1fr; gap: 28px; }
    .parcours::before { display: none; }
    .formats { gap: 14px; }
    .format-visuel { height: 120px; }
    .format-cadre { height: calc(var(--h) * 1.1px); }
    .apropos { grid-template-columns: 1fr; gap: 28px; }
    .apropos-img { order: -1; max-width: 340px; }
    .appel { padding: 60px 20px; }
}
.apropos > *, .heros-in > * { min-width: 0; }
.apropos-texte .lien-fleche { white-space: normal; }

/* ===== Choix de la langue (v14) ===== */
.langue { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 99px; background: var(--fond-doux); }
.langue button { border: 0; background: none; cursor: pointer; font: 700 .8rem var(--police); letter-spacing: .02em; color: var(--gris); padding: 6px 10px; border-radius: 99px; line-height: 1; transition: background .15s, color .15s; }
.langue button:hover { color: var(--encre); }
.langue button[aria-pressed="true"] { background: var(--rouge); color: #fff; }
body.sombre .langue { background: #232325; }
body.sombre .langue button { color: #b5b5b5; }
body.sombre .langue button[aria-pressed="true"] { color: #fff; }
@media (max-width: 800px) { .langue { align-self: flex-start; margin: 0 20px; } }

/* ===== Hébreu : lecture de droite à gauche ===== */
html[lang="he"] { --police: "Heebo", "Segoe UI", Arial, sans-serif; }
html[lang="he"] h1, html[lang="he"] h2, html[lang="he"] h3, html[lang="he"] .logo { letter-spacing: 0; }
html[dir="rtl"] .logo { direction: ltr; }
html[dir="rtl"] .lien-fleche::after { content: " ←"; }
html[dir="rtl"] .lien-fleche:hover::after { margin-left: 0; margin-right: 4px; }
html[dir="rtl"] .liens a:not(.bouton-nav-commander)::after { left: auto; right: 0; }
html[dir="rtl"] .menu-mobile { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .heros-points li::before { margin-right: 0; margin-left: 9px; }
html[dir="rtl"] .reassurance li::before { margin-right: 0; margin-left: 8px; }
html[dir="rtl"] .garanties div + div { border-left: 0; border-right: 1px solid var(--ligne); }
html[dir="rtl"] .badge-rupture, html[dir="rtl"] .projet .badge-rupture { left: auto; right: 10px; }
html[dir="rtl"] .coeur { right: auto; left: 10px; }
html[dir="rtl"] .popup-fermer { right: auto; left: 12px; }
html[dir="rtl"] #haut { right: auto; left: 18px; }
html[dir="rtl"] .badge-panier { right: auto; left: -2px; }
html[dir="rtl"] .carrousel-compteur { right: auto; left: 14px; }
html[dir="rtl"] .info-whatsapp { border-left: 0; border-right: 4px solid var(--whatsapp); }
html[dir="rtl"] .apropos-texte h2 { text-align: right; }
html[dir="rtl"] .tarifs td:last-child { text-align: left; }
html[dir="rtl"] .recap-prix, html[dir="rtl"] .format-prix, html[dir="rtl"] .prix, html[dir="rtl"] .ligne-prix { unicode-bidi: plaintext; }
html[dir="rtl"] input[type="email"], html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[type="password"] { direction: ltr; text-align: right; }
@media (max-width: 800px) { html[dir="rtl"] .langue { align-self: flex-end; } }
.langue { direction: ltr; }
@media (max-width: 800px) { .langue, html[dir="rtl"] .langue { align-self: center; margin: 0; } }
