/* =====================================================================
   Atelier de Lionel — feuille de style
   Esthétique « atlantique ancienne » : grès, Beaker / celtique, viking.
   Palette inspirée des émaux de grès : terre, ocre, cendre, sel-bleu.
   ===================================================================== */

:root {
    --parchemin:   #ece2cf; /* fond clair, terre cuite pâle  */
    --parchemin-2: #e3d6bd;
    --gres-sombre: #2b211a; /* brun fer, terre cuite au feu  */
    --gres-noir:   #1d1712;
    --ocre:        #b3702a; /* glaçure ocre / ambre          */
    --ocre-clair:  #cf9a4a;
    --sel-bleu:    #5d6f70; /* glaçure au sel, bleu-cendre   */
    --cendre:      #8a7d68;
    --lin:         #f5efe2;
    --rouille:     #8a4a23;

    --serif-titre: "Cinzel", "Trajan Pro", Georgia, serif;
    --serif-texte: "Spectral", "EB Garamond", Georgia, serif;

    --mesure: 70ch;
    --rythme: clamp(1.5rem, 4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--serif-texte);
    font-size: clamp(1.02rem, 0.6vw + 0.9rem, 1.18rem);
    line-height: 1.7;
    color: var(--gres-sombre);
    background-color: var(--parchemin);
    /* grain de terre subtil */
    background-image:
        radial-gradient(circle at 20% 15%, rgba(179,112,42,0.06) 0, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(93,111,112,0.07) 0, transparent 50%);
}

img { max-width: 100%; display: block; }

a { color: var(--rouille); text-underline-offset: 3px; }
a:hover { color: var(--ocre); }

h1, h2, h3 {
    font-family: var(--serif-titre);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.02em;
    color: var(--gres-noir);
}

/* ----------------------------- En-tête ----------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: linear-gradient(180deg, #f8f2e6, #efe7d4);
    box-shadow: 0 2px 16px rgba(43,33,26,.14);
    color: var(--gres-sombre);
}
.header-inner {
    max-width: 1180px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 0.3rem clamp(1rem, 4vw, 2.5rem);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo {
    height: 3.4rem; width: auto; display: block;
}

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a {
    color: var(--gres-sombre); text-decoration: none;
    font-family: var(--serif-titre); font-size: 0.92rem; letter-spacing: 0.08em;
    padding-bottom: 2px; border-bottom: 2px solid transparent;
    transition: border-color .2s, color .2s;
}
.site-nav a:hover { color: var(--ocre); border-color: var(--ocre); }

/* sélecteur de langue */
.lang-switch { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--cendre); margin-left: 0.4rem; }
.lang-switch a { font-family: var(--serif-titre); font-size: 0.82rem; letter-spacing: 0.06em; color: var(--gres-sombre); text-decoration: none; border-bottom: none; }
.lang-switch a:hover { color: var(--ocre); }
.lang-switch a.is-active { color: var(--ocre); }

.header-rule { height: 3px; background: linear-gradient(90deg, transparent, var(--ocre), var(--sel-bleu), transparent); }

/* menu mobile (CSS pur) */
.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 720px) {
    .nav-toggle-label {
        display: block; cursor: pointer; width: 30px; height: 24px; position: relative;
    }
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: ""; position: absolute; left: 0; width: 100%; height: 2px;
        background: var(--gres-sombre); transition: .25s;
    }
    .nav-toggle-label span { top: 11px; }
    .nav-toggle-label span::before { top: -8px; }
    .nav-toggle-label span::after  { top:  8px; }
    .site-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; gap: 0; background: #f5efe2;
        padding: 0.5rem 0; box-shadow: 0 10px 20px rgba(43,33,26,.2);
        border-top: 1px solid rgba(43,33,26,.12);
    }
    .site-nav a { padding: 0.7rem clamp(1rem, 4vw, 2.5rem); border-bottom: none; }
    .nav-toggle:checked ~ .site-nav { display: flex; }
    .brand-logo { height: 2.7rem; }
}

/* ----------------------------- Sections ---------------------------- */
.section { padding: var(--rythme) clamp(1rem, 4vw, 2.5rem); }
.wrap { max-width: 1180px; margin: 0 auto; }
.wrap-narrow { max-width: var(--mesure); margin: 0 auto; }

.kicker {
    font-family: var(--serif-titre); font-size: 0.8rem;
    letter-spacing: 0.28em; text-transform: uppercase; color: var(--ocre);
    margin: 0 0 0.6rem;
}
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin: 0 0 0.4rem; }
.lead { font-size: 1.15rem; color: #463528; }

.divider { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--cendre), transparent); margin: 2.5rem 0; }

/* ----------------------------- Héro -------------------------------- */
.hero {
    position: relative; color: var(--lin);
    background:
        linear-gradient(180deg, rgba(29,23,18,.55), rgba(29,23,18,.78)),
        url('/images/hero-bretagne.jpg') center/cover no-repeat;
    padding: clamp(4rem, 14vh, 9rem) clamp(1rem, 4vw, 2.5rem);
    text-align: center;
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero h1 {
    color: var(--lin); font-size: clamp(2.2rem, 6vw, 4.2rem);
    margin: 0 0 1rem; text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.hero p { font-size: clamp(1.05rem, 2vw, 1.35rem); color: #ead9bd; margin: 0 auto 2rem; max-width: 60ch; }
.hero .runes { font-family: var(--serif-titre); letter-spacing: 0.5em; color: var(--ocre-clair); margin-bottom: 1.2rem; }

/* ----------------------------- Boutons ----------------------------- */
.btn {
    display: inline-block; font-family: var(--serif-titre); font-size: 0.92rem;
    letter-spacing: 0.08em; text-decoration: none; cursor: pointer;
    padding: 0.75rem 1.6rem; border-radius: 2px; transition: .2s;
    border: 2px solid var(--ocre);
}
.btn-primary { background: var(--ocre); color: var(--gres-noir); }
.btn-primary:hover { background: var(--ocre-clair); color: var(--gres-noir); }
.btn-ghost { background: transparent; color: var(--lin); }
.btn-ghost:hover { background: rgba(207,154,74,.15); color: var(--lin); }
.btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-whatsapp {
    display: inline-flex; align-items: center; gap: 0.55rem;
    background: #25D366; color: #07321a; border-color: #1da851;
    margin-top: 0.8rem;
}
.btn-whatsapp:hover { background: #1ebe5b; color: #07321a; }
.btn-whatsapp svg { display: block; }

/* bouton WhatsApp flottant (toutes pages) */
.wa-float {
    position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
    width: 3.6rem; height: 3.6rem; border-radius: 50%;
    background: #25D366; color: #fff; display: grid; place-items: center;
    box-shadow: 0 6px 18px rgba(0,0,0,.3); text-decoration: none;
    transition: transform .2s, background .2s;
}
.wa-float:hover { background: #1ebe5b; color: #fff; transform: scale(1.07); }
.wa-float svg { width: 2.1rem; height: 2.1rem; }
@media (max-width: 600px) { .wa-float { right: 0.9rem; bottom: 0.9rem; width: 3.2rem; height: 3.2rem; } }

/* --------------------------- Grille cartes -------------------------- */
.grid { display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
    background: var(--lin); border: 1px solid rgba(43,33,26,.12);
    border-radius: 3px; overflow: hidden;
    box-shadow: 0 8px 22px rgba(43,33,26,.10);
    transition: transform .25s, box-shadow .25s;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(43,33,26,.18); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--parchemin-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 1.3rem 1.4rem 1.6rem; }
.card-body h3 { font-size: 1.35rem; margin: 0 0 0.5rem; }
.card-body .period { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sel-bleu); margin: 0 0 0.6rem; }
.card-body p { margin: 0; color: #4a3a2c; }

/* --------------------------- Galerie sculptures --------------------- */
.gallery {
    display: grid; gap: 0.8rem; margin-top: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.gallery-item {
    display: block; aspect-ratio: 1; overflow: hidden; border-radius: 3px;
    border: 1px solid rgba(43,33,26,.12); background: var(--parchemin-2);
    box-shadow: 0 4px 12px rgba(43,33,26,.10); cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.gallery-item:hover img { transform: scale(1.07); }

/* visionneuse */
.lightbox {
    position: fixed; inset: 0; z-index: 100; display: flex;
    align-items: center; justify-content: center;
    background: rgba(20,16,12,.92); padding: 1.5rem;
}
.lightbox[hidden] { display: none; }
.lb-img { max-width: 90vw; max-height: 86vh; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.lb-caption {
    position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center;
    color: var(--lin); font-family: var(--serif-texte); font-size: 0.95rem; margin: 0; padding: 0 1rem;
}
.lb-close, .lb-prev, .lb-next {
    position: absolute; background: rgba(245,239,226,.12); color: var(--lin);
    border: 1px solid rgba(245,239,226,.3); cursor: pointer; border-radius: 50%;
    width: 3rem; height: 3rem; font-size: 1.6rem; line-height: 1; display: grid; place-items: center;
    transition: background .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(207,154,74,.4); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { width: 2.4rem; height: 2.4rem; font-size: 1.2rem; } }

/* ------------------------ Bandeau « parcours » ---------------------- */
.band { background: var(--gres-sombre); color: var(--lin); }
.band .section-title, .band h2, .band h3 { color: var(--lin); }
.band .kicker { color: var(--ocre-clair); }
.band a { color: var(--ocre-clair); }

/* timeline du parcours */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
    content: ""; position: absolute; left: 0.55rem; top: 0.4rem; bottom: 0.4rem;
    width: 2px; background: linear-gradient(180deg, var(--ocre), var(--sel-bleu));
}
.timeline li { position: relative; padding: 0 0 1.8rem 2.2rem; }
.timeline li::before {
    content: ""; position: absolute; left: 0; top: 0.35rem;
    width: 1.2rem; height: 1.2rem; border-radius: 50%;
    background: var(--parchemin); border: 3px solid var(--ocre);
}
.timeline .year { font-family: var(--serif-titre); color: var(--ocre); font-size: 1.05rem; letter-spacing: 0.06em; }
.timeline p { margin: 0.2rem 0 0; }

.band-light { background: var(--parchemin-2); }

/* ----------------------------- Citation ---------------------------- */
.quote {
    font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.7rem);
    text-align: center; max-width: 60ch; margin: 0 auto;
    color: var(--gres-sombre);
}
.quote::before { content: "« "; color: var(--ocre); }
.quote::after  { content: " »"; color: var(--ocre); }
/* sur les bandes sombres, la citation doit être claire (sinon invisible) */
.band .quote { color: var(--lin); }

/* ----------------------------- Contact ----------------------------- */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--serif-titre); font-size: 0.85rem; letter-spacing: 0.06em; margin-bottom: 0.35rem; }
.field input, .field textarea {
    width: 100%; padding: 0.7rem 0.8rem; font-family: var(--serif-texte); font-size: 1rem;
    background: var(--lin); border: 1px solid rgba(43,33,26,.25); border-radius: 2px; color: var(--gres-sombre);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--ocre); border-color: var(--ocre); }
.contact-detail { margin: 0 0 1rem; }
.contact-detail strong { font-family: var(--serif-titre); display: block; font-size: 0.85rem; letter-spacing: 0.06em; color: var(--sel-bleu); }
.notice { background: rgba(93,111,112,.12); border-left: 3px solid var(--sel-bleu); padding: 1rem 1.2rem; border-radius: 2px; }
.alert-ok { background: rgba(123,150,90,.18); border-left: 3px solid #6f8a4a; padding: 1rem 1.2rem; border-radius: 2px; margin-bottom: 1.5rem; }

/* ----------------------------- Pied --------------------------------- */
.site-footer { background: var(--gres-noir); color: var(--cendre); text-align: center; padding: 2.5rem 1rem; }
.footer-rune { font-family: var(--serif-titre); letter-spacing: 0.3em; color: var(--ocre); margin: 0 0 0.8rem; }
.footer-name { font-family: var(--serif-titre); color: var(--lin); margin: 0 0 0.4rem; }
.footer-meta { font-size: 0.82rem; margin: 0; }
.footer-credit { font-size: 0.78rem; margin: 0.7rem 0 0; color: var(--cendre); }
.footer-credit a { color: var(--ocre-clair); text-decoration: none; }
.footer-credit a:hover { color: var(--ocre); text-decoration: underline; }

/* ------------------------- Accessibilité ---------------------------- */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
