/* =========================================================
   64160.fr — Morlaàs — Style historique
   ========================================================= */

:root {
    --ink: #1c1a17;
    --ink-soft: #3a352d;
    --parchment: #f4ecd8;
    --parchment-deep: #ece0c4;
    --gold: #b8860b;
    --gold-soft: #c9a227;
    --oxblood: #6b1f1f;
    --navy: #1a2a4a;
    --stone: #8a7f6a;
    --line: #d8c9a3;
    --shadow: 0 10px 30px rgba(28, 22, 12, 0.18);
    --radius: 6px;
    --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'EB Garamond', Georgia, serif;
    color: var(--ink);
    background: var(--parchment);
    line-height: 1.65;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 0.6em;
    font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; }

a { color: var(--oxblood); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-block;
    padding: 0.85em 1.8em;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .25s ease;
}
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--oxblood); border-color: var(--oxblood); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--gold); color: #fff; }

/* ---------- En-tête ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(244, 236, 216, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 3px double var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-coat { font-size: 1.8rem; color: var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: 'Cinzel', serif; font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.brand-sub { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); }

.main-nav { display: flex; align-items: center; }
.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    font-size: 1.3rem;
    padding: 4px 12px;
    cursor: pointer;
    color: var(--ink);
}
.nav-list {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
}
.nav-list a {
    display: block;
    padding: 8px 14px;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border-radius: var(--radius);
}
.nav-list a:hover { background: var(--gold-soft); color: #fff; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    color: #f6efdd;
    background:
        linear-gradient(rgba(20, 16, 10, 0.55), rgba(20, 16, 10, 0.7)),
        url('images/Sainte-Foy_eliz.jpg') center/cover no-repeat;
    text-align: center;
    padding: 80px 0;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(184,134,11,0.18), transparent 60%);
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--gold-soft);
    margin-bottom: 18px;
}
.hero-title { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.hero-code { color: var(--gold-soft); }
.hero-lead {
    max-width: 720px;
    margin: 22px auto 30px;
    font-size: 1.25rem;
    font-style: italic;
    color: #efe6cf;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--parchment-deep); }
.section-dark { background: var(--navy); color: #ece3cd; }
.section-dark h2, .section-dark h3 { color: #f3ead2; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-eyebrow {
    display: inline-block;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--gold);
    margin-bottom: 12px;
}
.section-eyebrow-light { color: var(--gold-soft); }
.section-title { margin-bottom: 14px; }
.section-intro { font-size: 1.1rem; color: var(--ink-soft); }
.section-intro-light { color: #d9cfb4; }

.prose { max-width: 820px; margin: 28px auto 0; }
.prose p { margin-bottom: 1em; }

/* ---------- Statistiques ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 36px 0;
}
.stat-card {
    background: #fff8ea;
    border: 1px solid var(--line);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat-value { display: block; font-family: 'Cinzel', serif; font-size: 2rem; color: var(--oxblood); font-weight: 700; }
.stat-label { font-size: 0.85rem; color: var(--stone); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 18px; margin-bottom: 10px; }
.timeline-item {
    background: #fff8ea;
    border-left: 5px solid var(--gold);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
}
.timeline-date {
    display: inline-block;
    font-family: 'Cinzel', serif;
    background: var(--oxblood);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}
.timeline-item h3 { margin-bottom: 6px; }

/* ---------- Cartes patrimoine ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.card {
    background: #fff8ea;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(28,22,12,.25); }
.card-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- À visiter ---------- */
.visit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.visit-item {
    background: #fff8ea;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}
.visit-item h3 { font-size: 1.15rem; }

/* ---------- Communes ---------- */
.communes-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 24px; }
.commune-chip {
    background: #fff8ea;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 8px 18px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: var(--ink);
    box-shadow: var(--shadow);
}
.commune-chip small { color: var(--stone); font-family: 'EB Garamond', serif; margin-left: 6px; }
.commune-chip:hover { background: var(--gold-soft); color: #fff; }
.commune-chip:hover small { color: #fff; }

/* ---------- Offre sous-domaines ---------- */
.offer-box {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(201,162,39,0.5);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 28px;
}
.offer-label { font-family: 'Cinzel', serif; letter-spacing: 0.15em; text-transform: uppercase; font-size: 0.75rem; color: var(--gold-soft); margin-bottom: 10px; }
.offer-domain {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    background: #0f1b33;
    color: var(--gold-soft);
    padding: 10px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--gold-soft);
}
.offer-alias { margin-top: 14px; color: #d9cfb4; }
.offer-alias code { color: var(--gold-soft); }
.offer-price { text-align: center; border-left: 1px solid rgba(201,162,39,0.4); padding-left: 24px; }
.offer-amount { font-family: 'Cinzel', serif; font-size: 3rem; color: var(--gold-soft); font-weight: 700; }
.offer-period { font-size: 1.1rem; color: #d9cfb4; }
.offer-note { font-size: 0.85rem; color: #b9ae92; margin-top: 10px; }
.offer-list { list-style: none; padding: 0; margin: 0 0 28px; }
.offer-list li { padding: 8px 0; border-bottom: 1px dashed rgba(201,162,39,0.3); color: #e6dcc2; }
.offer-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.offer-fineprint { font-style: italic; color: #b9ae92; font-size: 0.95rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.service-card {
    background: #fff8ea;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 18px;
    text-align: center;
    box-shadow: var(--shadow);
    color: var(--ink);
    transition: transform .25s;
}
.service-card:hover { transform: translateY(-5px); color: var(--ink); }
.service-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.service-card p { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Personnalités ---------- */
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person-card {
    background: #fff8ea;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}
.person-card h3 { font-size: 1.1rem; }

/* ---------- Formulaire ---------- */
.contact-form { max-width: 640px; margin: 0 auto; display: grid; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-family: 'Cinzel', serif; font-size: 0.85rem; letter-spacing: 0.05em; color: var(--gold-soft); }
.form-row input, .form-row textarea {
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
    padding: 12px 14px;
    border: 1px solid rgba(201,162,39,0.5);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.08);
    color: #f3ead2;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: #9a8f74; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--gold-soft); background: rgba(255,255,255,0.14); }

/* ---------- Bannières AdSense ---------- */
.ad-slot { margin: 18px auto; text-align: center; min-height: 90px; }
.ad-slot .adsbygoogle { margin: 0 auto; }

/* ---------- Pied de page ---------- */
.site-footer { background: #14100a; color: #c9bfa4; padding: 56px 0 0; border-top: 4px solid var(--gold); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.footer-col h4 { color: var(--gold-soft); font-size: 1rem; margin-bottom: 14px; }
.footer-col p, .footer-col li { font-size: 0.92rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: #c9bfa4; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom { border-top: 1px solid #2a2318; padding: 18px 0; text-align: center; font-size: 0.85rem; color: #8a7f6a; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
    .card-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
    .visit-grid, .people-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .offer-box { grid-template-columns: 1fr; }
    .offer-price { border-left: none; border-top: 1px solid rgba(201,162,39,0.4); padding-left: 0; padding-top: 18px; margin-top: 8px; }
    .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    body { font-size: 16.5px; }
    .nav-toggle { display: inline-block; }
    .nav-list {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        background: var(--parchment);
        border-bottom: 3px double var(--line);
        padding: 12px 24px;
        display: none;
        box-shadow: var(--shadow);
    }
    .nav-list.open { display: flex; }
    .nav-list a { padding: 12px 14px; border-bottom: 1px solid var(--line); }
    .card-grid, .services-grid, .visit-grid, .people-grid { grid-template-columns: 1fr; }
    .hero { min-height: 64vh; }
    .hero-lead { font-size: 1.05rem; }
    .section { padding: 52px 0; }
}
