/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:           #1a1c1e;
    --bg-card:      #22262b;
    --bg-soft:      #1e2227;
    --border:       #2e3540;
    --gold:         #c9a84c;
    --gold-light:   #e8c97a;
    --text:         #d8dde4;
    --text-muted:   #7a8899;
    --text-soft:    #9faab8;
    --accent:       #4a7fa5;
    --accent-light: #6ba3cc;
    --radius:       12px;
    --radius-sm:    8px;
    --shadow:       0 4px 24px rgba(0,0,0,.45);
    --shadow-sm:    0 2px 12px rgba(0,0,0,.3);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.7;
    font-size: 15px;
    overflow-x: hidden;
}

/* ===== HEADER / HERO ===== */
.hero {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    background: linear-gradient(135deg, #0e1016 0%, #1a1c1e 40%, #1d2228 100%);
}

/* Grain subtil en fond */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

/* Colonne gauche — contenu */
.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 50px 60px 60px;
    position: relative;
    z-index: 2;
    max-width: 55%;
}

/* Colonne droite — galerie (largeur pilotée par JS via --gallery-width) */
.hero-right {
    flex: 0 0 var(--gallery-width, 45%);
    position: relative;
    overflow: hidden;
    background: #0d0f12;
}

/* Séparateur vertical doré */
.hero-right::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    z-index: 10;
}

/* ===== LOGO & TITRE ===== */
.brand {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 48px;
}

.brand img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(201,168,76,.35));
    transition: transform .3s ease;
}

.brand img:hover { transform: scale(1.05); }

.brand-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: .02em;
    line-height: 1.2;
}

.brand-text .subtitle {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--gold);
    margin-top: 4px;
}

/* ===== TAGLINE ===== */
.tagline {
    font-family: 'Playfair Display', serif;
    font-size: 1.65rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text);
    line-height: 1.45;
    margin-bottom: 28px;
    max-width: 520px;
}

.tagline em {
    color: var(--gold-light);
    font-style: normal;
}

/* ===== INTRO TEXT ===== */
.intro-text {
    font-size: .95rem;
    color: var(--text-soft);
    max-width: 520px;
    margin-bottom: 36px;
}

/* ===== BADGES / PILLS ===== */
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    font-size: .8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
}

/* ===== CTA ===== */
.cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s ease;
    cursor: pointer;
    border: none;
    letter-spacing: .02em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), #a87c2a);
    color: #0e1016;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(201,168,76,.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-soft);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ===== SCROLL INDICATOR ===== */
.scroll-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.scroll-hint .line {
    width: 40px;
    height: 1px;
    background: var(--border);
}

/* ===== GALERIE MOSAÏQUE ===== */
.gallery-mosaic {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    perspective: 1200px;
}

/* Chaque "slot" photo — position/taille injectées inline par JS */
.photo-slot {
    position: absolute;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #0d0f12;
    transition: opacity 2s ease-in-out, transform 0.3s cubic-bezier(.34,.1,.68,.55);
    will-change: opacity, transform;
}

.photo-slot img {
    width: 100%;
    height: 100%;
    display: block;
    /* object-fit géré inline par JS selon keepAspectRatio */
}

/* ===== LOGO EN PARALLAXE ===== */
.logo-parallax {
    position: absolute;
    width: 420px;
    height: 420px;
    left: 30px;
    bottom: 60px;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
}

.logo-parallax img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(201,168,76,.35));
}

/* ===== OVERLAY DÉGRADÉ sur galerie ===== */
.gallery-overlay-left {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(to right, #0d0f12, transparent);
    z-index: 5;
    pointer-events: none;
}

/* ===== INFO PHOTO (description + auteur) — visible au survol ===== */
.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 28px;
    background: linear-gradient(to top, rgba(13,15,18,.95) 0%, rgba(13,15,18,.7) 60%, transparent 100%);
    z-index: 20;
    pointer-events: none;
    font-size: .9rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .4s ease, transform .4s ease;
}

/* Affichage au survol de la zone droite */
.hero-right:hover .gallery-info {
    opacity: 1;
    transform: translateY(0);
}

.gallery-info-desc {
    color: var(--text);
    margin-bottom: 4px;
}

.gallery-info-author {
    color: var(--text-muted);
    font-style: italic;
    font-size: .82rem;
}

/* ===== SECTION CARDS ===== */
.sections {
    background: var(--bg-soft);
    padding: 80px 60px;
    margin-top: 120px;  /* Écarte la section pour éviter le recouvrement par la galerie */
    position: relative;
    z-index: 0;  /* En-dessous du logo parallax */
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 64px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: border-color .25s, transform .2s;
}

.card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.card-icon {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 12px;
}

.card p {
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== HORAIRES ===== */
.schedule-section {
    max-width: 1100px;
    margin: 0 auto 64px;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 8px;
}

.section-lead {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 28px;
}

.schedule-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.schedule-card {
    flex: 1;
    min-width: 250px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    border-left: 3px solid var(--gold);
}

.schedule-day {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 6px;
}

.schedule-time {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 8px;
}

.schedule-desc {
    font-size: .85rem;
    color: var(--text-muted);
}

.schedule-room {
    display: inline-block;
    margin-top: 10px;
    font-size: .75rem;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(201,168,76,.1);
    color: var(--gold);
    border: 1px solid rgba(201,168,76,.2);
}

/* ===== BUREAU ===== */
.bureau-section {
    max-width: 1100px;
    margin: 0 auto 64px;
}

.bureau-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.bureau-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    transition: border-color .2s;
}

.bureau-card:hover { border-color: rgba(201,168,76,.4); }

.bureau-role {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--gold);
    margin-bottom: 6px;
}

.bureau-name {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
}

.bureau-contact {
    display: block;
    margin-top: 8px;
    font-size: .8rem;
    color: var(--accent-light);
    text-decoration: none;
}

.bureau-contact:hover { color: var(--gold-light); }

/* ===== CONTACT + CARTE ===== */
.contact-section {
    max-width: 1100px;
    margin: 0 auto 64px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 24px;
}

.contact-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-bottom: none; }

.contact-icon {
    font-size: 1.1rem;
    width: 28px;
    text-align: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.contact-value {
    font-size: .9rem;
    color: var(--text);
}

.contact-value a {
    color: var(--accent-light);
    text-decoration: none;
}

.contact-value a:hover { color: var(--gold-light); }

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    min-height: 280px;
    background: #1a1e24;
}

#map {
    height: 100%;
    min-height: 280px;
    width: 100%;
}

/* ===== FOOTER ===== */
footer {
    background: #0d0f12;
    border-top: 1px solid var(--border);
    padding: 28px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    opacity: .85;
}

.footer-brand span {
    font-size: .85rem;
    color: var(--text-muted);
}

.footer-copy {
    font-size: .78rem;
    color: var(--text-muted);
}

/* ===== DIVIDER ===== */
.divider {
    max-width: 1100px;
    margin: 0 auto 56px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-left > * {
    animation: fadeInUp .7s ease both;
}
.hero-left > *:nth-child(1) { animation-delay: .1s; }
.hero-left > *:nth-child(2) { animation-delay: .2s; }
.hero-left > *:nth-child(3) { animation-delay: .3s; }
.hero-left > *:nth-child(4) { animation-delay: .4s; }
.hero-left > *:nth-child(5) { animation-delay: .5s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .logo-parallax { display: none; }

    .hero {
        flex-direction: column;
        min-height: auto;
    }
    .hero-left {
        max-width: 100%;
        padding: 40px 28px;
    }
    .hero-right {
        flex: 0 0 auto;
        height: 60vw;
        min-height: 320px;
    }
    .hero-right::before { display: none; }
    .sections { padding: 48px 28px; }
    .section-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    footer { padding: 24px 28px; }
}

@media (max-width: 560px) {
    .section-grid { grid-template-columns: 1fr; }
    .brand-text h1 { font-size: 1.5rem; }
    .tagline { font-size: 1.3rem; }
}
