/* ==========================================================================
   Nadine Bernard — Artiste peintre — main.css
   Palette extraite par analyse colorimétrique des 20 tableaux réels (PROVISOIRE,
   à remplacer par la vraie carte de visite dès réception — voir CLAUDE.md).
   ========================================================================== */

/* -- 1. Polices auto-hébergées ------------------------------------------ */
@font-face {
    font-family: 'Bodoni Moda';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/bodoni-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
    font-family: 'Bodoni Moda';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/bodoni-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02CC, U+1E00-1EFF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02CC, U+1E00-1EFF;
}

/* -- 2. Variables -------------------------------------------------------- */
:root {
    --encre:        #1A1712;
    --or:           #A6824C;
    --or-fonce:     #7E6238;
    --or-clair:     #D9C6A0;
    --sable:        #F6F1E7;
    --sable-profond:#EDE4D2;
    --texte:        #33302B;
    --texte-doux:   #6B6355;
    --ligne:        #E4DCC8;
    --blanc:        #FFFFFF;

    --f-titre:  'Bodoni Moda', Georgia, serif;
    --f-corps:  'Inter', -apple-system, sans-serif;

    --largeur: 1200px;
    --gouttiere: clamp(20px, 5vw, 56px);
    --radius: 4px;
    --ombre: 0 12px 40px rgba(26,23,18,0.14);
}

/* -- 3. Reset minimal ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--f-corps);
    color: var(--texte);
    background: var(--sable);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
svg { width: 1em; height: 1em; vertical-align: -0.15em; flex-shrink: 0; }
h1, h2, h3, h4 {
    font-family: var(--f-titre);
    color: var(--encre);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.5em;
}
p { line-height: 1.7; margin: 0 0 1em; }

/* -- 4. Verrou Design System Elementor (piège elementor-kit-usine-ecrase-theme) --------- */
body.nadine-bernard .elementor-widget-heading .elementor-heading-title {
    font-family: var(--f-titre);
    color: var(--encre);
}
body.nadine-bernard .elementor-widget-text-editor {
    font-family: var(--f-corps);
    color: var(--texte);
}
body.nadine-bernard .elementor-widget-button .elementor-button {
    background-color: var(--or);
    color: var(--encre);
}

/* -- 5. Header ------------------------------------------------------------ */
.nb-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(246,241,231,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--ligne);
}
.nb-header-inner {
    max-width: var(--largeur);
    margin: 0 auto;
    padding: 16px var(--gouttiere);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.nb-brand { display: flex; align-items: center; gap: 12px; }
.nb-brand-mono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--encre);
    color: var(--or-clair);
    font-family: var(--f-titre);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.02em;
}
.nb-brand-name {
    font-family: var(--f-titre);
    font-size: 18px;
    letter-spacing: 0.01em;
    color: var(--encre);
}
.nb-nav-list {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}
.nb-nav-list a {
    font-size: 14.5px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--texte-doux);
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: color .2s, border-color .2s;
}
.nb-nav-list a:hover,
.nb-nav-list .current-menu-item a {
    color: var(--encre);
    border-color: var(--or);
}
.nb-header-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--encre);
    color: var(--sable);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s;
}
.nb-header-call:hover { background: var(--or-fonce); }

@media (max-width: 760px) {
    .nb-nav { display: none; }
    .nb-header-call span { display: none; }
    .nb-header-call { padding: 10px; }
}

/* -- 6. Hero (#hero) ------------------------------------------------------- */
#hero { --display: grid !important; grid-template-columns: 1.05fr .95fr; align-items: stretch; min-height: 640px; }
body.nadine-bernard #hero { background: var(--encre); }

[id^="hero-texte"] { --display: flex !important; flex-direction: column; justify-content: center; gap: 22px; padding: clamp(48px, 8vw, 96px) var(--gouttiere); }
[id^="hero-visuel"] { --display: block !important; position: relative; overflow: hidden; min-height: 320px; }
[id^="hero-visuel"] img { width: 100%; height: 100%; object-fit: cover; }

#hero .elementor-widget-heading .elementor-heading-title,
#hero h1 { color: var(--sable); font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
#hero .ek-eyebrow { color: var(--or-clair); }
#hero .elementor-widget-text-editor,
#hero .elementor-widget-text-editor p { color: var(--or-clair); font-size: 1.1rem; max-width: 46ch; }

@media (max-width: 900px) {
    #hero { --display: flex !important; flex-direction: column; min-height: 0; }
    [id^="hero-visuel"] { min-height: 280px; order: -1; }
}

/* -- 7. Barre de confiance (#confiance) ------------------------------------ */
#confiance { --display: flex !important; flex-wrap: wrap; justify-content: center; gap: 12px 28px; padding: 22px var(--gouttiere); background: var(--sable-profond); border-bottom: 1px solid var(--ligne); }
[id^="badge-"] { --display: flex !important; align-items: center; gap: 8px; }
[id^="badge-"] svg { color: var(--or); width: 1.1em; height: 1.1em; }
[id^="badge-"] .elementor-widget-text-editor,
[id^="badge-"] .elementor-widget-text-editor p { font-size: 13.5px; color: var(--texte-doux); margin: 0; letter-spacing: 0.01em; }

/* -- 8. Sections génériques ------------------------------------------------ */
[id^="section-"] { padding: clamp(56px, 8vw, 104px) var(--gouttiere); }
[id^="inner-"] { --margin-left: auto !important; --margin-right: auto !important; max-width: var(--largeur); margin: 0 auto; }

.ek-eyebrow { display: inline-block; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--or-fonce); margin-bottom: 10px; font-weight: 600; }

#presentation { background: var(--sable); }
[id^="presentation-texte"] { max-width: 68ch; }
#presentation h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
#presentation .elementor-widget-text-editor p { font-size: 1.08rem; color: var(--texte); }

/* -- 9. Technique (#technique) — 3 colonnes ------------------------------- */
#technique { background: var(--encre); }
#technique h2, #technique .elementor-widget-heading .elementor-heading-title { color: var(--sable); }
#technique .ek-eyebrow { color: var(--or-clair); }
[id^="technique-tete"] { max-width: 62ch; margin-bottom: 40px; }
[id^="technique-tete"] .elementor-widget-text-editor p { color: var(--or-clair); }
[id^="technique-grille"] { --display: grid !important; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 28px; }
[id^="tech-"] { --display: flex !important; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid rgba(217,198,160,0.25); border-radius: var(--radius); }
[id^="tech-"] .elementor-widget-heading .elementor-heading-title { color: var(--or-clair); font-size: 1.15rem; }
[id^="tech-"] .elementor-widget-text-editor p { color: rgba(246,241,231,0.78); font-size: 0.96rem; margin: 0; }
[id^="tech-"] svg { color: var(--or); width: 28px; height: 28px; }

/* -- 10. Aperçu galerie (#galerie-apercu) ---------------------------------- */
#galerie-apercu { background: var(--sable); }
[id^="galerie-apercu-grille"] { --display: grid !important; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; margin-top: 36px; }
[id^="oeuvre-"] { --display: block !important; position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/5; box-shadow: var(--ombre); }
[id^="oeuvre-"] img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
[id^="oeuvre-"]:hover img { transform: scale(1.05); }
[id^="oeuvre-"] .elementor-widget-image { height: 100%; }
[id^="oeuvre-"] .elementor-widget-image .elementor-widget-container,
[id^="oeuvre-"] .elementor-widget-image figure { height: 100%; margin: 0; }

.nb-cta-inline { --display: flex !important; justify-content: center; margin-top: 40px; }

/* -- 11. Preuves / réassurance (#preuves) ---------------------------------- */
#preuves { background: var(--sable-profond); }
[id^="preuves-grille"] { --display: grid !important; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 24px; margin-top: 36px; }
[id^="preuve-"] { --display: flex !important; flex-direction: column; gap: 10px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--radius); padding: 28px; }
[id^="preuve-"] svg { color: var(--or); width: 26px; height: 26px; }
[id^="preuve-"] .elementor-widget-heading .elementor-heading-title { font-size: 1.02rem; }
[id^="preuve-"] .elementor-widget-text-editor p { font-size: 0.94rem; color: var(--texte-doux); margin: 0; }

/* -- 12. CTA final (#cta-final) --------------------------------------------- */
#cta-final { background: var(--encre); text-align: center; }
#cta-final h2, #cta-final .elementor-widget-heading .elementor-heading-title { color: var(--sable); }
#cta-final .elementor-widget-text-editor p { color: var(--or-clair); }
[id^="cta-final-inner"] { max-width: 640px; margin: 0 auto; }

/* -- 13. Boutons ------------------------------------------------------------ */
.ek-btn-primary .elementor-button,
.ek-btn-primary a.elementor-button {
    background-color: var(--or);
    color: var(--encre);
    border-radius: 999px;
    padding: 15px 34px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color .2s, transform .2s;
}
.ek-btn-primary .elementor-button:hover,
.ek-btn-primary a.elementor-button:hover {
    background-color: var(--or-clair);
    transform: translateY(-1px);
}
.ek-btn-ghost .elementor-button,
.ek-btn-ghost a.elementor-button {
    background-color: transparent;
    color: var(--sable);
    border: 1px solid rgba(246,241,231,0.4);
    border-radius: 999px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 15px;
}

/* -- 14. Footer -------------------------------------------------------------- */
.nb-footer { background: var(--encre); color: rgba(246,241,231,0.75); padding: 64px var(--gouttiere) 0; }
.nb-footer-inner {
    max-width: var(--largeur);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(246,241,231,0.12);
}
.nb-footer-mono { margin-bottom: 16px; }
.nb-footer-baseline { max-width: 34ch; font-size: 14px; color: rgba(246,241,231,0.6); }
.nb-footer-col h3 { color: var(--or-clair); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--f-corps); font-weight: 600; margin-bottom: 16px; }
.nb-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nb-footer-col a { font-size: 14.5px; color: rgba(246,241,231,0.75); transition: color .2s; }
.nb-footer-col a:hover { color: var(--or-clair); }
.nb-footer-bottom { max-width: var(--largeur); margin: 0 auto; padding: 20px 0; text-align: center; font-size: 12.5px; color: rgba(246,241,231,0.45); }
.nb-footer-bottom a { color: rgba(217,198,160,0.75); }

@media (max-width: 760px) {
    .nb-footer-inner { grid-template-columns: 1fr; }
}

/* -- 15. Sticky call bar (mobile) -------------------------------------------- */
.nb-sticky-call { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: var(--encre); box-shadow: 0 -4px 20px rgba(0,0,0,0.25); }
.nb-sticky-call a { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; color: var(--or-clair); font-weight: 600; font-size: 15px; }
@media (max-width: 760px) {
    .nb-sticky-call { display: block; }
    body { padding-bottom: 60px; }
}

/* -- 16. Page Galerie (page.php, template Elementor default) ---------------- */
#galerie-intro { background: var(--sable); text-align: center; }
[id^="galerie-intro-inner"] { max-width: 720px; margin: 0 auto; }
#galerie-grille-complete { background: var(--sable); padding-top: 0; }
[id^="galerie-complete-grille"] { --display: grid !important; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 22px; }
[id^="toile-"] { --display: flex !important; flex-direction: column; gap: 10px; }
[id^="toile-"] .elementor-widget-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--ombre); }
[id^="toile-"] .elementor-widget-text-editor p { font-size: 13.5px; color: var(--texte-doux); margin: 6px 0 0; text-align: center; }

/* -- 17. Page Parcours & Reconnaissance -------------------------------------- */
#parcours-intro { background: var(--encre); }
#parcours-intro h1, #parcours-intro .elementor-widget-heading .elementor-heading-title { color: var(--sable); }
#parcours-intro .elementor-widget-text-editor p { color: var(--or-clair); }
[id^="parcours-intro-inner"] { max-width: 760px; }

#parcours-bio { background: var(--sable); }
[id^="parcours-bio-inner"] { max-width: 68ch; }

#parcours-differenciation { background: var(--sable-profond); }
[id^="diff-grille"] { --display: grid !important; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 24px; margin-top: 32px; }
[id^="diffcarte-"] { --display: flex !important; flex-direction: column; gap: 10px; background: var(--blanc); border-radius: var(--radius); padding: 26px; border: 1px solid var(--ligne); }
[id^="diffcarte-"] .elementor-widget-heading .elementor-heading-title { font-size: 1.05rem; }
[id^="diffcarte-"] .elementor-widget-text-editor p { font-size: 0.94rem; color: var(--texte-doux); margin: 0; }

#parcours-reconnaissance { background: var(--sable); }
[id^="reco-liste"] { --display: grid !important; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 22px; margin-top: 32px; }
[id^="reco-item-"] { --display: flex !important; gap: 16px; align-items: flex-start; padding: 24px; background: var(--sable-profond); border-radius: var(--radius); }
[id^="reco-item-"] svg { color: var(--or); width: 24px; height: 24px; flex-shrink: 0; margin-top: 3px; }
[id^="reco-item-"] .elementor-widget-heading .elementor-heading-title { font-size: 1rem; }
[id^="reco-item-"] .elementor-widget-text-editor p { font-size: 0.92rem; color: var(--texte-doux); margin: 4px 0 0; }

/* -- 18. Page Mentions légales (gabarit statique, pas Elementor) ------------- */
.nb-legal { padding: 56px var(--gouttiere) 96px; background: var(--sable); }
.nb-legal-inner { max-width: 760px; margin: 0 auto; }
.nb-legal-back { display: inline-block; margin-bottom: 28px; color: var(--or-fonce); font-weight: 600; font-size: 14px; }
.nb-legal h1 { font-size: 2rem; margin-bottom: 32px; }
.nb-legal h2 { font-size: 1.15rem; margin-top: 36px; color: var(--encre); }
.nb-legal p { color: var(--texte); }
.nb-legal-note { background: var(--sable-profond); border-left: 3px solid var(--or); padding: 14px 18px; font-size: 14px; color: var(--texte-doux); border-radius: 0 var(--radius) var(--radius) 0; }

/* -- 19. Fallback (index.php) ------------------------------------------------ */
.nb-fallback { max-width: 760px; margin: 0 auto; padding: 64px var(--gouttiere); }
