/* ==========================================================================
   Sens du bois : feuille principale du thème
   Palette tirée des essences travaillées par l'atelier ; typographie Cormorant Garamond + Jost
   (choix du client, d'après la référence robins-wood.com), polices auto-hébergées.
   Règle de cascade : main.css est chargée AVANT Elementor. Tout sélecteur visant un container
   Elementor passe par body.sdb + #id ou [id^=...] ; tout display de container passe par --display.
   ========================================================================== */

/* ---------- Polices (fichiers variables, sous-ensembles latin et latin-ext) ---------- */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('../fonts/cormorant-garamond-latin-ext-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('../fonts/cormorant-garamond-latin-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 400; font-display: swap; src: url('../fonts/cormorant-garamond-latin-ext-italic.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 400; font-display: swap; src: url('../fonts/cormorant-garamond-latin-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 500; font-display: swap; src: url('../fonts/jost-latin-ext-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 500; font-display: swap; src: url('../fonts/jost-latin-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Jetons ---------- */
:root {
    /* Essences : chaque teinte porte le nom du bois dont elle est relevée */
    --ecorce:      #1C150F;   /* écorce brûlée, le plus sombre */
    --noyer:       #34241A;   /* noyer, panneaux sombres */
    --chataignier: #7A5236;   /* châtaignier, accent sur fond clair */
    --chene:       #C4995F;   /* chêne, accent sur fond sombre */
    --merisier:    #8E3F27;   /* merisier */
    --acacia:      #A48D3B;   /* robinier, doré-olive */
    --noisetier:   #DCCDB4;   /* noisetier, fond sable */
    --frene:       #EFE8DA;   /* frêne, fond clair principal */
    --aubier:      #FAF6EE;   /* aubier, le plus clair */
    --bambou:      #D6C68F;

    --texte:        #2E241B;
    --texte-doux:   #5E5145;
    --sur-sombre:   #EDE4D3;
    --sur-sombre-doux: #BFB2A0;

    --f-titre: 'Cormorant Garamond', 'Cormorant', Garamond, Georgia, serif;
    --f-texte: 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;

    --largeur:   1240px;
    --gouttiere: clamp(16px, 5vw, 64px);
    --bloc:      clamp(72px, 10vw, 150px);
    --entete-h:  76px;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='480' viewBox='0 0 160 480'%3E%3Cg fill='none' stroke='%23000' stroke-opacity='.07'%3E%3Cpath d='M18 0c6 80-4 160 2 240s-6 160 0 240'/%3E%3Cpath d='M44 0c-5 90 7 170 0 250s5 150-2 230'/%3E%3Cpath d='M70 0c4 60-6 130 2 200 8 70-8 140 0 280'/%3E%3Cpath d='M96 0c-6 100 6 180-1 260s5 140 0 220'/%3E%3Cpath d='M122 0c5 70-5 150 2 230s-6 170 0 250'/%3E%3Cpath d='M146 0c-4 90 5 160-1 240s4 160 0 240'/%3E%3Cellipse cx='84' cy='300' rx='9' ry='22' stroke-opacity='.09'/%3E%3C/g%3E%3C/svg%3E");

    /* Couleurs de contexte, redéfinies par section */
    --c-fond:  var(--frene);
    --c-titre: var(--texte);
    --c-texte: var(--texte);
    --c-doux:  var(--texte-doux);
    --c-accent: var(--chataignier);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete-h) + 16px); }
body.sdb {
    margin: 0;
    background: var(--frene);
    color: var(--texte);
    font-family: var(--f-texte);
    font-weight: 300;
    font-size: 1.0625rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.sdb *, body.sdb *::before, body.sdb *::after { box-sizing: border-box; }
body.sdb img { max-width: 100%; height: auto; }
body.sdb a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
body.sdb strong { font-weight: 500; }
body.sdb :focus-visible { outline: 2px solid var(--chene); outline-offset: 3px; }
body.sdb .sdb-ico { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -.18em; }
.sdb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sdb-evitement { position: absolute; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--aubier); color: var(--ecorce); }
.sdb-evitement:focus { top: 12px; }

/* ---------- Neutralisation des réglages d'usine Elementor (verrou si le kit est réinitialisé) ---------- */
body.sdb .e-con { --row-gap: 0px; --column-gap: 0px; --gap: 0px; --container-default-padding-top: 0px; --container-default-padding-right: 0px; --container-default-padding-bottom: 0px; --container-default-padding-left: 0px; }
body.sdb .elementor-widget:not(:last-child) { margin-block-end: 0; }
body.sdb .elementor-widget-text-editor p:last-child { margin-bottom: 0; }

body.sdb .elementor-widget-heading .elementor-heading-title {
    font-family: var(--f-titre);
    font-weight: 300;
    color: var(--c-titre);
    line-height: 1.08;
    letter-spacing: -.005em;
    margin: 0;
}
body.sdb .elementor-widget-heading .elementor-heading-title em { font-style: italic; color: var(--c-accent); }
body.sdb .elementor-widget-text-editor { font-family: var(--f-texte); font-weight: 300; color: var(--c-texte); }
body.sdb .elementor-widget-text-editor p { margin: 0 0 1em; }

body.sdb h1.elementor-heading-title { font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5.6rem); line-height: 1; }
body.sdb h2.elementor-heading-title { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.9rem); }
body.sdb h3.elementor-heading-title { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.9rem); font-weight: 400; }

/* Surtitre : petite capitale espacée + filet bois */
body.sdb .sdb-surtitre p {
    display: inline-flex; align-items: center; gap: 14px;
    margin: 0 0 22px;
    font-family: var(--f-texte); font-weight: 500;
    font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
    color: var(--c-accent);
}
body.sdb .sdb-surtitre p::before { content: ""; width: 40px; height: 1px; background: currentColor; }

body.sdb .sdb-chapo p { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.7; }
body.sdb .sdb-legende p {
    margin: 0; font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
    color: var(--c-doux);
}
body.sdb .sdb-latin p { margin: 0; font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; opacity: .78; }

/* ---------- Boutons (widgets natifs) ---------- */
body.sdb .sdb-btn .elementor-button,
body.sdb .sdb-form__envoi,
body.sdb .sdb-entete__cta {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 17px 30px;
    border: 1px solid var(--ecorce);
    border-radius: 0;
    background-color: var(--ecorce);
    color: var(--aubier);
    font-family: var(--f-texte); font-weight: 500;
    font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; line-height: 1.2;
    text-decoration: none;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
    cursor: pointer;
}
body.sdb .sdb-btn .elementor-button:hover,
body.sdb .sdb-form__envoi:hover { background-color: var(--chataignier); border-color: var(--chataignier); color: var(--aubier); }
body.sdb .sdb-btn--clair .elementor-button { background-color: var(--chene); border-color: var(--chene); color: var(--ecorce); }
body.sdb .sdb-btn--clair .elementor-button:hover { background-color: var(--aubier); border-color: var(--aubier); color: var(--ecorce); }
body.sdb .sdb-btn--contour .elementor-button { background-color: transparent; border-color: var(--chene); color: var(--sur-sombre); }
body.sdb .sdb-btn--contour .elementor-button:hover { background-color: var(--chene); color: var(--ecorce); }

body.sdb .sdb-lien .elementor-button {
    padding: 6px 0; background-color: transparent; border: 0; border-bottom: 1px solid currentColor; border-radius: 0;
    color: var(--c-titre);
    font-family: var(--f-texte); font-weight: 500; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase;
}
body.sdb .sdb-lien .elementor-button:hover { background-color: transparent; color: var(--c-accent); }
body.sdb .sdb-lien--clair .elementor-button { color: var(--sur-sombre); }

body.sdb .sdb-puce .elementor-button {
    padding: 10px 18px; background-color: transparent; border: 1px solid rgba(237, 228, 211, .35); border-radius: 0;
    color: var(--sur-sombre); font-family: var(--f-texte); font-weight: 500; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
}
body.sdb .sdb-puce .elementor-button:hover { border-color: var(--chene); color: var(--chene); background-color: transparent; }

/* ---------- En-tête ---------- */
.sdb-entete {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    color: var(--sur-sombre);
    transition: background-color .3s ease, box-shadow .3s ease;
}
body.admin-bar .sdb-entete { top: 32px; }
.sdb-entete.is-scrolled, body.sdb--clair .sdb-entete, .sdb-entete.is-open {
    background-color: rgba(28, 21, 15, .94);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(237, 228, 211, .08);
}
.sdb-entete__barre {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    max-width: calc(var(--largeur) + 2 * var(--gouttiere)); height: var(--entete-h);
    margin: 0 auto; padding: 0 var(--gouttiere);
}
.sdb-logo { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.sdb-logo .sdb-marque { width: 34px; height: 34px; color: var(--chene); }
.sdb-logo__nom { font-family: var(--f-titre); font-weight: 400; font-size: 1.55rem; letter-spacing: .01em; line-height: 1; }
.sdb-logo__nom em { font-style: italic; color: var(--chene); }
.sdb-nav { display: flex; align-items: center; gap: 36px; }
.sdb-nav__liste { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }
.sdb-nav__liste a {
    color: inherit; text-decoration: none;
    font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
    padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s ease, color .2s ease;
}
.sdb-nav__liste a:hover, .sdb-nav__liste .current-menu-item > a { border-bottom-color: var(--chene); color: var(--aubier); }
body.sdb .sdb-entete__cta { padding: 12px 20px; background-color: transparent; border-color: var(--chene); color: var(--sur-sombre); }
body.sdb .sdb-entete__cta:hover { background-color: var(--chene); color: var(--ecorce); }
.sdb-burger { display: none; }

@media (max-width: 899px) {
    :root { --entete-h: 64px; }
    .sdb-logo__nom { font-size: 1.35rem; }
    .sdb-logo .sdb-marque { width: 28px; height: 28px; }
    .sdb-burger {
        display: inline-flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; padding: 0; border: 1px solid rgba(237, 228, 211, .3); background: transparent; color: inherit; cursor: pointer;
    }
    .sdb-burger .sdb-ico { width: 22px; height: 22px; }
    .sdb-burger__fermer, .is-open .sdb-burger__ouvrir { display: none; }
    .is-open .sdb-burger__fermer { display: inline-flex; }
    .sdb-nav {
        display: none; position: fixed; inset: var(--entete-h) 0 0 0; z-index: 99;
        flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 40px;
        padding: 48px var(--gouttiere); background-color: var(--ecorce);
    }
    body.admin-bar .sdb-nav { top: calc(var(--entete-h) + 46px); }
    .is-open .sdb-nav { display: flex; }
    .sdb-nav__liste { flex-direction: column; gap: 22px; }
    .sdb-nav__liste a { font-family: var(--f-titre); font-size: 2rem; font-weight: 300; letter-spacing: 0; text-transform: none; }
}
@media (max-width: 782px) { body.admin-bar .sdb-entete { top: 46px; } }

/* ---------- Accueil : hero ---------- */
body.sdb #hero {
    --display: grid !important;
    grid-template-columns: 1fr; grid-template-rows: 1fr;
    position: relative; overflow: hidden;
    min-height: 100svh;
    padding: 0 !important;
    background-color: var(--ecorce);
    --c-titre: var(--aubier); --c-texte: var(--sur-sombre); --c-accent: var(--chene); --c-doux: var(--sur-sombre-doux);
}
body.sdb #hero > .elementor-widget-image { position: absolute; inset: 0; z-index: 0; margin: 0; height: auto; }
body.sdb #hero .sdb-hero-photo .elementor-widget-container { height: 100%; }
body.sdb #hero .sdb-hero-photo img {
    display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 45%;
    animation: sdb-lent 22s ease-out both;
}
body.sdb #hero::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(28, 21, 15, .82) 0%, rgba(28, 21, 15, .45) 48%, rgba(28, 21, 15, .1) 100%),
                linear-gradient(0deg, rgba(28, 21, 15, .7) 0%, rgba(28, 21, 15, 0) 45%);
}
body.sdb #hero-texte {
    grid-area: 1 / 1; z-index: 2; align-self: end;
    --display: flex !important; --flex-direction: column; flex-direction: column;
    width: 100%; max-width: calc(760px + 2 * var(--gouttiere));
    padding: calc(var(--entete-h) + 40px) var(--gouttiere) clamp(56px, 11vh, 120px) max(var(--gouttiere), calc((100vw - var(--largeur)) / 2)) !important;
}
body.sdb #hero-texte h1 { margin-bottom: 26px; }
body.sdb #hero-texte .sdb-chapo { max-width: 560px; margin-bottom: 36px; }
body.sdb #hero-actions { --display: flex !important; --flex-direction: row; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 18px 34px; }
body.sdb #hero-actions > .elementor-widget { width: auto; }
@keyframes sdb-lent { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Repères */
body.sdb #reperes {
    --display: flex !important; --flex-direction: row; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 10px 0;
    padding: 20px var(--gouttiere) !important;
    background-color: var(--noyer);
    --c-texte: var(--sur-sombre-doux);
}
body.sdb [id^="repere-"] { width: auto; --display: flex !important; --flex-direction: row; flex-direction: row; align-items: center; }
body.sdb [id^="repere-"] p { margin: 0; font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
body.sdb [id^="repere-"]:not(:first-child)::before {
    content: ""; width: 5px; height: 5px; margin: 0 22px; border: 1px solid var(--chene); border-radius: 50%;
}

/* ---------- Mise en page commune des sections ---------- */
body.sdb :is(#manifeste, #parcours-texte, #essencier, #maison, #pourqui, #avis, #contact, #zone, #faq, #pfintro, #bijoux, #objets, #encours, #pfcontact) {
    padding-left: max(var(--gouttiere), calc((100% - var(--largeur)) / 2)) !important;
    padding-right: max(var(--gouttiere), calc((100% - var(--largeur)) / 2)) !important;
}
body.sdb :is(#manifeste, #essencier, #maison, #pourqui, #avis, #contact, #zone, #faq, #bijoux, #objets, #encours, #pfcontact) {
    padding-top: var(--bloc) !important; padding-bottom: var(--bloc) !important;
}

/* Manifeste */
body.sdb #manifeste {
    --display: grid !important; grid-template-columns: 1fr; gap: 36px;
    background-color: var(--frene);
}
body.sdb #manifeste h2 { font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem); line-height: 1; }
body.sdb #manifeste-corps p { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); max-width: 62ch; }
@media (min-width: 900px) {
    body.sdb #manifeste { grid-template-columns: 5fr 6fr; gap: 80px; align-items: end; }
}

/* Bandes photo pleine largeur */
body.sdb [id^="bande-"] {
    --display: grid !important; grid-template-columns: 1fr; grid-template-rows: 1fr;
    position: relative; overflow: hidden;
    height: clamp(340px, 72vh, 780px);
    padding: 0 !important;
    background-color: var(--ecorce);
    --c-doux: var(--sur-sombre);
}
body.sdb [id^="bande-"] > .elementor-widget-image { position: absolute; inset: 0; z-index: 0; height: auto; margin: 0; overflow: hidden; }
body.sdb [id^="bande-"] .elementor-widget-container { height: 100%; }
body.sdb [id^="bande-"] .sdb-bande-photo img {
    display: block; width: 100%; height: 118%; max-width: none; object-fit: cover;
    transform: translate3d(0, var(--decalage, -8%), 0); will-change: transform;
}
body.sdb [id^="bande-"] .sdb-legende { grid-area: 1 / 1; z-index: 2; align-self: end; padding: 0 var(--gouttiere) 26px; }
body.sdb [id^="bande-"] .sdb-legende p { color: var(--sur-sombre); text-shadow: 0 1px 12px rgba(28, 21, 15, .7); }

/* Parcours */
body.sdb #parcours {
    --display: grid !important; grid-template-columns: 1fr;
    padding: 0 !important;
    background-color: var(--noisetier);
    --c-accent: #6A4630;
}
body.sdb #parcours-photo { min-height: 360px; aspect-ratio: 1 / 1; overflow: hidden; }
body.sdb #parcours-photo .elementor-widget-image, body.sdb #parcours-photo .elementor-widget-container { height: 100%; }
body.sdb #parcours-photo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 38% 40%; }
body.sdb #parcours-texte {
    --display: flex !important; --flex-direction: column; flex-direction: column; justify-content: center;
    padding-top: var(--bloc) !important; padding-bottom: var(--bloc) !important;
}
body.sdb #parcours-texte h2 { margin-bottom: 28px; }
body.sdb #parcours-texte .elementor-widget-text-editor p { max-width: 58ch; }
body.sdb .sdb-citation blockquote { margin: 18px 0 0; padding: 4px 0 4px 26px; border-left: 1px solid var(--c-accent); }
body.sdb .sdb-citation blockquote p { font-family: var(--f-titre); font-style: italic; font-weight: 400; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); line-height: 1.35; color: var(--texte); margin: 0; }
@media (min-width: 900px) {
    body.sdb #parcours { grid-template-columns: 1fr 1fr; }
    body.sdb #parcours-photo { aspect-ratio: auto; min-height: 100%; }
    body.sdb #parcours-texte { padding-left: clamp(40px, 6vw, 96px) !important; padding-right: max(var(--gouttiere), calc((100vw - var(--largeur)) / 2)) !important; }
}

/* ---------- Essencier : la signature ---------- */
body.sdb #essencier {
    --display: flex !important; --flex-direction: column; flex-direction: column; gap: 56px;
    background-color: var(--ecorce);
    --c-titre: var(--aubier); --c-texte: var(--sur-sombre); --c-accent: var(--chene); --c-doux: var(--sur-sombre-doux);
}
body.sdb #essencier-tete { max-width: 720px; }
body.sdb #essencier-tete h2 { margin-bottom: 22px; }
body.sdb #essencier-liste { --display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.sdb [id^="bois-"] {
    --display: flex !important; --flex-direction: column; flex-direction: column;
    position: relative; min-height: 300px;
    padding: 22px 18px 24px !important;
    background-color: var(--essence);
    background-image: var(--grain); background-size: 160px 480px; background-position: center top;
    --c-titre: var(--ecorce); --c-texte: #2A1F16;
    transition: transform .35s ease;
}
body.sdb [id^="bois-"]::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 -40px 60px rgba(0, 0, 0, .06); pointer-events: none; }
body.sdb [id^="bois-"] .sdb-latin { margin-bottom: auto; }
body.sdb [id^="bois-"] .sdb-latin p { color: var(--c-texte); }
body.sdb [id^="bois-"] h3.elementor-heading-title { font-style: italic; font-size: clamp(1.7rem, 1.4rem + .9vw, 2.2rem); margin: 64px 0 10px; }
body.sdb [id^="bois-"] .elementor-widget-text-editor p { font-size: .92rem; line-height: 1.55; margin: 0; }
body.sdb #bois-1 { --essence: #C4995F; }
body.sdb #bois-2 { --essence: #A48D3B; }
body.sdb #bois-3 { --essence: #855C3B; --c-titre: var(--aubier); --c-texte: #F7EFE2; }
body.sdb #bois-4 { --essence: #E3D6BC; }
body.sdb #bois-5 { --essence: #8E3F27; --c-titre: var(--aubier); --c-texte: #F6E9DE; }
body.sdb #bois-6 { --essence: #4A3222; --c-titre: var(--aubier); --c-texte: var(--sur-sombre); }
body.sdb #bois-7 { --essence: #CDB48E; }
body.sdb #bois-8 { --essence: #D6C68F; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    body.sdb [id^="bois-"]:hover { transform: translateY(-8px); }
}
@media (min-width: 700px) { body.sdb #essencier-liste { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1180px) {
    body.sdb #essencier-liste { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
    body.sdb [id^="bois-"] { min-height: 460px; }
    body.sdb [id^="bois-"]:nth-child(even) { margin-top: 36px; }
}

/* ---------- Pour la maison (quinconce) ---------- */
body.sdb #maison {
    --display: grid !important; grid-template-columns: 1fr; gap: 48px;
    background-color: var(--frene);
}
body.sdb #maison-tete { --display: flex !important; --flex-direction: column; flex-direction: column; align-items: flex-start; }
body.sdb #maison-tete h2 { margin-bottom: 22px; }
body.sdb #maison-tete .elementor-widget-text-editor { margin-bottom: 26px; }
body.sdb #maison-grille { --display: grid !important; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
body.sdb [id^="piece-"] { --display: flex !important; --flex-direction: column; flex-direction: column; gap: 12px; }
body.sdb [id^="piece-"] .elementor-widget-image { overflow: hidden; }
body.sdb [id^="piece-"] img { display: block; width: 100%; object-fit: cover; transition: transform .8s ease; }
body.sdb #piece-1 { grid-row: span 2; }
body.sdb #piece-1 img { aspect-ratio: 3 / 4; }
body.sdb #piece-2 img, body.sdb #piece-3 img { aspect-ratio: 4 / 3; }
body.sdb #piece-3 { margin-left: clamp(0px, 4vw, 56px); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    body.sdb [id^="piece-"]:hover img { transform: scale(1.04); }
}
@media (max-width: 599px) {
    body.sdb #maison-grille { grid-template-columns: 1fr; }
    body.sdb #piece-1 { grid-row: auto; }
    body.sdb #piece-3 { margin-left: 0; }
}
@media (min-width: 900px) {
    body.sdb #maison { grid-template-columns: 4fr 7fr; gap: 72px; align-items: center; }
}

/* ---------- Pour qui ---------- */
body.sdb #pourqui {
    --display: flex !important; --flex-direction: column; flex-direction: column; gap: 52px;
    background-color: var(--chataignier);
    background-image: var(--grain); background-size: 320px 960px;
    --c-titre: var(--aubier); --c-texte: #F3EADB; --c-accent: #F0DDB8;
}
body.sdb #pourqui-grille { --display: grid !important; grid-template-columns: 1fr; gap: 36px; }
body.sdb [id^="profil-"] { --display: flex !important; --flex-direction: column; flex-direction: column; gap: 14px; padding-top: 22px !important; border-top: 1px solid rgba(250, 246, 238, .35); }
@media (min-width: 800px) { body.sdb #pourqui-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; } }

/* ---------- Témoignages ---------- */
body.sdb #avis { --display: flex !important; --flex-direction: column; flex-direction: column; gap: 52px; background-color: var(--aubier); }
body.sdb #avis-grille { --display: grid !important; grid-template-columns: 1fr; gap: 28px; }
body.sdb [id^="temoin-"] {
    --display: flex !important; --flex-direction: column; flex-direction: column; justify-content: space-between; gap: 22px;
    padding: 34px 30px !important; background-color: var(--frene); border-top: 2px solid var(--chene);
}
body.sdb .sdb-temoin-texte p { font-family: var(--f-titre); font-style: italic; font-weight: 400; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.4; color: var(--texte); margin: 0; }
body.sdb .sdb-temoin-qui p { margin: 0; font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--texte-doux); }
@media (min-width: 900px) { body.sdb #avis-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Contact ---------- */
body.sdb #contact {
    --display: grid !important; grid-template-columns: 1fr; gap: 48px;
    background-color: var(--noyer);
    --c-titre: var(--aubier); --c-texte: var(--sur-sombre); --c-accent: var(--chene); --c-doux: var(--sur-sombre-doux);
}
body.sdb #contact-texte { --display: flex !important; --flex-direction: column; flex-direction: column; align-items: flex-start; }
body.sdb #contact-texte h2 { margin-bottom: 22px; }
body.sdb #contact-texte .elementor-widget-text-editor { margin-bottom: 28px; }
body.sdb #contact-texte .sdb-appel { margin-bottom: 30px; }
body.sdb .sdb-coordonnees p { font-size: .95rem; color: var(--sur-sombre-doux); }
body.sdb .sdb-coordonnees strong { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--chene); }
body.sdb .sdb-coordonnees a { color: var(--sur-sombre); }
@media (min-width: 900px) { body.sdb #contact { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } }

/* Formulaire (HTML brut dans un widget html : display littéral, jamais --display) */
body.sdb .sdb-form {
    display: grid; grid-template-columns: 1fr; gap: 20px;
    padding: clamp(24px, 4vw, 44px);
    background-color: var(--aubier); color: var(--texte);
}
body.sdb .sdb-form__champ { display: flex; flex-direction: column; gap: 8px; }
body.sdb .sdb-form label { font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--texte); }
body.sdb .sdb-form label span { letter-spacing: .06em; text-transform: none; font-weight: 400; color: var(--texte-doux); }
body.sdb .sdb-form input, body.sdb .sdb-form select, body.sdb .sdb-form textarea {
    width: 100%; padding: 13px 14px; border: 1px solid #C9B99F; border-radius: 0;
    background-color: #FFFDF8; color: var(--texte); font: 400 1rem/1.4 var(--f-texte);
}
body.sdb .sdb-form textarea { resize: vertical; min-height: 120px; }
body.sdb .sdb-form input:focus, body.sdb .sdb-form select:focus, body.sdb .sdb-form textarea:focus { outline: 2px solid var(--chataignier); outline-offset: 0; border-color: var(--chataignier); }
body.sdb .sdb-form__pied { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
body.sdb .sdb-form__note { margin: 0; font-size: .85rem; color: var(--texte-doux); }
body.sdb .sdb-form__retour { margin: 0; padding: 14px 16px; border-left: 2px solid var(--chataignier); background-color: var(--frene); font-size: .95rem; }
@media (min-width: 640px) {
    body.sdb .sdb-form { grid-template-columns: 1fr 1fr; }
    body.sdb .sdb-form__champ--large, body.sdb .sdb-form__pied, body.sdb .sdb-form__retour { grid-column: 1 / -1; }
}

/* ---------- Zone ---------- */
body.sdb #zone { --display: grid !important; grid-template-columns: 1fr; gap: 32px; background-color: var(--noisetier); --c-accent: #6A4630; }
body.sdb #zone-texte h2 { margin-bottom: 20px; }
body.sdb .sdb-villes ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
body.sdb .sdb-villes li {
    padding: 10px 18px; border: 1px solid rgba(46, 36, 27, .28);
    font-family: var(--f-titre); font-size: 1.35rem; font-weight: 400; line-height: 1.2; color: var(--texte);
}
@media (min-width: 900px) { body.sdb #zone { grid-template-columns: 6fr 5fr; gap: 80px; align-items: end; } }

/* ---------- FAQ ---------- */
body.sdb #faq { --display: grid !important; grid-template-columns: 1fr; gap: 40px; background-color: var(--frene); }
body.sdb #faq-liste { --display: flex !important; --flex-direction: column; flex-direction: column; }
body.sdb [id^="question-"] { --display: flex !important; --flex-direction: column; flex-direction: column; gap: 10px; padding: 26px 0 !important; border-top: 1px solid rgba(46, 36, 27, .18); }
body.sdb [id^="question-"]:last-child { border-bottom: 1px solid rgba(46, 36, 27, .18); }
body.sdb [id^="question-"] h3.elementor-heading-title { font-size: clamp(1.35rem, 1.2rem + .5vw, 1.65rem); }
body.sdb [id^="question-"] .elementor-widget-text-editor p { max-width: 66ch; }
@media (min-width: 900px) {
    body.sdb #faq { grid-template-columns: 4fr 7fr; gap: 80px; align-items: start; }
    body.sdb #faq-tete { position: sticky; top: calc(var(--entete-h) + 32px); }
}

/* ---------- Appel final ---------- */
body.sdb #final {
    --display: grid !important; grid-template-columns: 1fr; grid-template-rows: 1fr;
    position: relative; overflow: hidden; min-height: clamp(420px, 78vh, 820px);
    padding: 0 !important; background-color: var(--ecorce);
    --c-titre: var(--aubier); --c-texte: var(--sur-sombre); --c-accent: var(--chene);
}
body.sdb #final > .elementor-widget-image { position: absolute; inset: 0; z-index: 0; height: auto; margin: 0; overflow: hidden; }
body.sdb #final .elementor-widget-container { height: 100%; }
body.sdb #final .sdb-bande-photo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
body.sdb #final::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(28, 21, 15, .58); pointer-events: none; }
body.sdb #final-texte {
    grid-area: 1 / 1; z-index: 2; align-self: center; justify-self: center;
    --display: flex !important; --flex-direction: column; flex-direction: column; align-items: center; text-align: center;
    max-width: 760px; padding: 48px var(--gouttiere) !important;
}
body.sdb #final-texte h2 { margin-bottom: 18px; }
body.sdb #final-texte .elementor-widget-text-editor { margin-bottom: 32px; }

/* ---------- Portfolio ---------- */
body.sdb #pfintro {
    --display: flex !important; --flex-direction: column; flex-direction: column; align-items: flex-start;
    padding-top: calc(var(--entete-h) + clamp(64px, 10vw, 140px)) !important; padding-bottom: clamp(48px, 7vw, 96px) !important;
    background-color: var(--ecorce);
    --c-titre: var(--aubier); --c-texte: var(--sur-sombre); --c-accent: var(--chene);
}
body.sdb #pfintro h1 { margin-bottom: 26px; }
body.sdb #pfintro .sdb-chapo { max-width: 640px; margin-bottom: 34px; }
body.sdb #pfintro-nav { --display: flex !important; --flex-direction: row; flex-direction: row; flex-wrap: wrap; gap: 12px; }
body.sdb #pfintro-nav > .elementor-widget { width: auto; }

body.sdb :is(#bijoux, #objets) {
    --display: flex !important; --flex-direction: column; flex-direction: column; gap: 40px;
    --c-titre: var(--aubier); --c-texte: var(--sur-sombre); --c-accent: var(--chene); --c-doux: var(--sur-sombre-doux);
}
body.sdb #bijoux { background-color: var(--ecorce); padding-top: 24px !important; }
body.sdb #objets { background-color: var(--noyer); }
body.sdb :is(#bijoux-tete, #objets-tete) { max-width: 720px; }
body.sdb :is(#bijoux-tete, #objets-tete) h2 { margin-bottom: 16px; }

/* Galerie basique Elementor ([gallery] WordPress, html5) : mosaïque en colonnes, proportions d'origine */
body.sdb .sdb-galerie .gallery { columns: 3 300px; column-gap: 14px; margin: 0; }
body.sdb .sdb-galerie .gallery-item {
    display: block; width: 100%; max-width: none; margin: 0 0 14px; padding: 0;
    break-inside: avoid; text-align: left;
}
body.sdb .sdb-galerie .gallery-icon { overflow: hidden; background-color: var(--noyer); }
body.sdb .sdb-galerie .gallery-icon a { display: block; cursor: zoom-in; }
body.sdb .sdb-galerie .gallery-item img { display: block; width: 100%; height: auto; margin: 0; border: 0; transition: transform .9s ease, opacity .9s ease; }
body.sdb .sdb-galerie .gallery-caption {
    display: block; padding: 10px 2px 4px; margin: 0;
    font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--sur-sombre-doux);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    body.sdb .sdb-galerie .gallery-icon a:hover img { transform: scale(1.035); }
}
@media (max-width: 599px) { body.sdb .sdb-galerie .gallery { columns: 2 150px; column-gap: 10px; } body.sdb .sdb-galerie .gallery-item { margin-bottom: 10px; } }

body.sdb #encours {
    --display: flex !important; --flex-direction: column; flex-direction: column; align-items: flex-start;
    background-color: var(--noisetier); --c-accent: #6A4630;
}
body.sdb #encours h2 { margin-bottom: 20px; }
body.sdb #encours .elementor-widget-text-editor p { max-width: 62ch; }

body.sdb #pfcontact {
    --display: flex !important; --flex-direction: column; flex-direction: column; align-items: center; text-align: center;
    background-color: var(--frene);
}
body.sdb #pfcontact h2 { margin-bottom: 16px; }
body.sdb #pfcontact .elementor-widget-text-editor { margin-bottom: 30px; }

/* ---------- Mentions légales et gabarits simples ---------- */
.sdb-legal, .sdb-repli {
    max-width: calc(780px + 2 * var(--gouttiere)); margin: 0 auto;
    padding: calc(var(--entete-h) + 64px) var(--gouttiere) var(--bloc);
}
.sdb-legal h1, .sdb-repli h1 { font-family: var(--f-titre); font-weight: 300; font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem); line-height: 1.05; margin: 12px 0 8px; color: var(--texte); }
.sdb-legal h2 { font-family: var(--f-titre); font-weight: 400; font-size: 1.7rem; margin: 44px 0 10px; color: var(--texte); }
.sdb-legal p { margin: 0 0 1em; }
.sdb-legal__retour a { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--chataignier); }
.sdb-legal__maj { font-size: .9rem; color: var(--texte-doux); }

/* ---------- Pied de page ---------- */
.sdb-pied { background-color: var(--ecorce); color: var(--sur-sombre-doux); font-size: .95rem; }
.sdb-pied__grille {
    display: grid; grid-template-columns: 1fr; gap: 40px;
    max-width: calc(var(--largeur) + 2 * var(--gouttiere)); margin: 0 auto;
    padding: clamp(56px, 8vw, 96px) var(--gouttiere) 40px;
}
.sdb-pied .sdb-logo { color: var(--aubier); margin-bottom: 18px; }
.sdb-pied__col p { margin: 0 0 1em; max-width: 38ch; }
.sdb-pied__titre { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--chene); }
.sdb-pied ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sdb-pied a { color: var(--sur-sombre); text-decoration: none; }
.sdb-pied a:hover { color: var(--chene); }
.sdb-pied__contact li { display: flex; gap: 12px; align-items: flex-start; }
.sdb-pied__contact .sdb-ico { color: var(--chene); margin-top: .3em; }
.sdb-pied__bas {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
    max-width: calc(var(--largeur) + 2 * var(--gouttiere)); margin: 0 auto;
    padding: 22px var(--gouttiere) 28px; border-top: 1px solid rgba(237, 228, 211, .1);
    font-size: .8rem;
}
.sdb-pied__bas p { margin: 0; }
.sdb-pied__signature a { text-decoration: underline; }
@media (min-width: 800px) { .sdb-pied__grille { grid-template-columns: 5fr 3fr 4fr; gap: 56px; } }

/* ---------- Barre d'actions mobile ---------- */
.sdb-mobile { display: none; }
@media (max-width: 899px) {
    body.sdb { padding-bottom: 64px; }
    .sdb-mobile {
        position: fixed; inset: auto 0 0 0; z-index: 90;
        display: grid; grid-template-columns: 1fr 1fr;
        transform: translateY(100%); transition: transform .3s ease;
    }
    .sdb-mobile.is-visible { transform: translateY(0); }
    .sdb-mobile a {
        display: flex; align-items: center; justify-content: center; gap: 10px; height: 64px;
        font-size: .76rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
    }
    .sdb-mobile__appel { background-color: var(--ecorce); color: var(--aubier); }
    .sdb-mobile__ecrire { background-color: var(--chene); color: var(--ecorce); }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    body.sdb *, body.sdb *::before, body.sdb *::after { animation: none !important; transition: none !important; }
    body.sdb [id^="bande-"] .sdb-bande-photo img { height: 100%; transform: none; }
}
