/* ============================================================
   INDEX — même esthétique que la chronologie
   ============================================================ */

:root {
    --color-bg:              #f9f8f6;   /* quasi-blanc — fond principal */
    --color-bg-secondary:    #ede5b0;   /* crème — sections alternées */
    --color-bg-header:       #3964e2;   /* bleu — header */
    --color-border:          #e2ddd4;   /* beige clair — bordures */
    --color-border-hover:    #c8bda0;   /* beige soutenu — bordures hover */
    --color-primary:         #5e4d2c;   /* brun — ui principal */
    --color-primary-light:   #a08060;   /* brun clair */
    --color-text-primary:    #1a1512;   /* brun très foncé — texte */
    --color-text-secondary:  #4a3e28;   /* brun moyen — texte secondaire */
    --color-text-muted:      #9b8a62;   /* brun clair — texte atténué */
    --color-accent:          #c8bca4;   /* beige chaud — accents */
    --color-bg-panel:        #fdf8e8;   /* crème — panneaux/cartes */

    --font-display: 'Labrada', Georgia, serif;
    --font-ui:      'Helvetica Neue', Helvetica, Arial, sans-serif;

    --transition:  0.3s ease;
    --shadow-sm:   0 1px 4px rgba(0,0,0,0.06);
    --shadow-md:   0 4px 16px rgba(0,0,0,0.10);
    --radius-md:   8px;
    --radius-sm:   4px;
    --header-h:    60px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-family: var(--font-ui);
    background: var(--color-bg);
    color: var(--color-text-primary);
    font-size: 15px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ── Header ─────────────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: var(--color-bg-header);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.logo {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: #f5f5f5;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.logo-sub {
    font-size: 1.2rem;
    font-weight: 300;
    font-style: italic;
    color: #f5f5f5;
    letter-spacing: 0.12em;
    border-left: 1px solid rgba(255,255,255,0.28);
    padding-left: 1rem;
}

.header-buttons { display: flex; gap: 1.4rem; align-items: center; }

.header-btn-img {
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    opacity: 0.82;
    transition: opacity 0.2s;
}
.header-btn-img:hover { opacity: 1; }
.header-btn-img img {
    height: 26px;
    width: auto;
    display: block;
}
.header-btn-img span {
    font-family: var(--font-ui);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
    min-height: calc(100vh - var(--header-h));
    margin-top: var(--header-h);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    padding: 3rem 4rem;
    background: var(--color-bg);
    position: relative;
}

.hero-image {
    height: clamp(300px, 52vh, 500px);
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.9;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 460px;
}

.hero-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 200;
    letter-spacing: 0.06em;
    color: var(--color-text-primary);
    line-height: 1.15;
    margin-bottom: 0.4em;
}
.hero-title em {
    font-style: italic;
    font-weight: 100;
    color: var(--color-primary);
}

.hero-rule {
    width: 80px;
    height: 1px;
    background: var(--color-accent);
    margin: 1.2rem 0;
    opacity: 0.7;
}

.hero-dates {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 200;
    font-style: italic;
    color: var(--color-text-secondary);
    letter-spacing: 0.12em;
    margin-bottom: 1.2rem;
}

.hero-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    max-width: 420px;
    line-height: 1.8;
    letter-spacing: 0.02em;
    margin-bottom: 2.2rem;
    text-align: left;
}

.hero-desc a {
    text-decoration: underline;
    text-underline-offset: 3px;
    color: inherit;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.hero-desc a:hover {
    opacity: 1;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-md);
    background: transparent;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    transition: all var(--transition);
}
.hero-cta:hover {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(94,77,44,0.25);
}
.hero-cta-arrow {
    font-size: 1rem;
    transition: transform var(--transition);
}
.hero-cta:hover .hero-cta-arrow { transform: translateX(3px); }

/* ── Avis mobile ────────────────────────────────────────────── */
.mobile-notice {
    display: none;
}

@media (max-width: 860px) {
    .mobile-notice {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: var(--header-h);
        padding: 1rem 1rem;
        background: #f0e8d8;
        border-bottom: 1px solid rgba(120,100,80,0.22);
    }
    .mobile-notice-text {
        font-size: 0.8rem;
        color: var(--color-text-secondary);
        text-align: center;
        line-height: 1.8;
        letter-spacing: 0.02em;
    }
    .hero {
        margin-top: 0;
    }
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
    position: absolute;
    bottom: 1.2rem;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.site-footer-sep {
    font-size: 0.62rem;
    color: var(--color-text-muted);
    opacity: 0.4;
}

.site-footer a {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    opacity: 0.6;
    transition: opacity 0.2s;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer a:hover {
    opacity: 1;
}

.footer-visite-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.footer-visite-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    background: var(--color-text-secondary);
    color: #f9f8f6;
    font-size: 0.8rem;
    line-height: 1.6;
    letter-spacing: 0.02em;
    text-transform: none;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    white-space: normal;
    text-align: center;
}

.footer-visite-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--color-text-secondary);
}

.footer-visite-wrap:hover .footer-visite-tooltip {
    opacity: 1;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
    .hero {
        flex-direction: column;
        gap: 2.5rem;
        padding: 2.5rem 2rem 3rem;
        text-align: center;
    }
    .hero-text { align-items: center; }
    .hero-desc { text-align: center; }
    .hero-rule { margin: 1.2rem auto; }
    .hero-image { height: clamp(180px, 38vw, 280px); }
    .hero-cta { display: none; }
}

@media (max-width: 680px) {
    .header { padding: 0 1rem; }
    .logo {
        font-size: 0.95rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.1rem;
    }
    .logo-sub {
        font-size: 0.6rem;
        border-left: none;
        padding-left: 0;
        letter-spacing: 0.1em;
    }
    .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
}
