/* =========================================================================
   style.css — Louis Vignac / vignac.pro
   Thème sombre, cinématique, noblesse ridicule.
   Palette : noir, brun cuir, rouge sombre, doré vieilli.
   ========================================================================= */

/* ----- Variables de couleurs et réglages ----- */
:root {
    --noir:        #0d0b0a;   /* fond principal */
    --noir-2:      #15110e;   /* fond secondaire (sections alternées) */
    --cuir:        #3a2a1d;   /* brun cuir */
    --cuir-clair:  #5a4230;
    --rouge:       #6e1414;   /* rouge sombre */
    --rouge-vif:   #9b2226;
    --dore:        #c9a24b;   /* doré vieilli */
    --dore-clair:  #e6c878;
    --texte:       #e8ddc7;   /* texte clair, légèrement parcheminé */
    --texte-doux:  #b6a98c;   /* texte secondaire, atténué */
    --ombre:       rgba(0, 0, 0, 0.6);

    --max-width:   1100px;
    --radius:      4px;
}

/* ----- Reset léger ----- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;        /* défilement fluide natif (renforcé par le JS) */
    scroll-padding-top: 80px;       /* compense l'en-tête fixe lors des ancres */
}

body {
    margin: 0;
    background-color: var(--noir);
    color: var(--texte);
    font-family: "EB Garamond", Georgia, "Times New Roman", serif;
    font-size: 1.125rem;
    line-height: 1.7;
    /* Texture sombre subtile via dégradés (aucune image requise). */
    background-image:
        radial-gradient(circle at 20% 0%, rgba(110, 20, 20, 0.10), transparent 45%),
        radial-gradient(circle at 80% 100%, rgba(58, 42, 29, 0.18), transparent 50%);
    background-attachment: fixed;
}

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

a {
    color: var(--dore);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--dore-clair);
}

/* =========================================================================
   En-tête / navigation
   ========================================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(13, 11, 10, 0.97), rgba(13, 11, 10, 0.82));
    border-bottom: 1px solid var(--cuir);
    backdrop-filter: blur(4px);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    color: var(--dore);
    text-transform: uppercase;
}

.brand:hover {
    color: var(--dore-clair);
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.6rem;
}

.site-nav a {
    font-family: "Cinzel", serif;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: var(--texte);
    position: relative;
}

/* Soulignement doré animé au survol */
.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: var(--dore);
    transition: width 0.3s ease;
}

.site-nav a:hover {
    color: var(--dore-clair);
}

.site-nav a:hover::after {
    width: 100%;
}

/* Bouton menu mobile (caché sur desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--dore);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    /* Portrait en pied : on cadre vers le haut pour garder le visage visible. */
    background-position: center top;
    overflow: hidden;
}

/* Si pas d'image de fond : dégradé sombre dramatique de secours. */
.hero.no-bg {
    background-image:
        radial-gradient(circle at 50% 30%, rgba(110, 20, 20, 0.35), transparent 60%),
        linear-gradient(160deg, var(--noir), var(--cuir));
}

/* Voile sombre pour garder le texte lisible par-dessus l'image. */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(13, 11, 10, 0.55), rgba(13, 11, 10, 0.88)),
        radial-gradient(circle at center, transparent 30%, rgba(13, 11, 10, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 2rem 1.5rem;
}

.hero-title {
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    margin: 0 0 0.5rem;
    color: var(--dore);
    letter-spacing: 0.06em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-style: italic;
    color: var(--texte);
    margin: 0 0 2rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================================================
   Boutons
   ========================================================================= */
.btn {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    font-family: "Cinzel", serif;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    border-radius: var(--radius);
    border: 1px solid var(--dore);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary {
    background: linear-gradient(180deg, var(--rouge-vif), var(--rouge));
    color: var(--texte);
    border-color: var(--dore);
}

.btn-primary:hover {
    color: #fff;
    box-shadow: 0 6px 20px rgba(155, 34, 38, 0.5), 0 0 0 1px var(--dore-clair) inset;
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--dore);
}

.btn-ghost:hover {
    background: rgba(201, 162, 75, 0.12);
    color: var(--dore-clair);
    transform: translateY(-2px);
}

/* =========================================================================
   Sections génériques
   ========================================================================= */
.section {
    padding: 4.5rem 1.25rem;
}

/* Alternance de fonds pour rythmer la page */
.section:nth-of-type(even) {
    background-color: var(--noir-2);
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-family: "Cinzel", serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--dore);
    text-align: center;
    margin: 0 0 2.5rem;
    letter-spacing: 0.05em;
    position: relative;
}

/* Petit ornement doré sous les titres */
.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    margin: 0.9rem auto 0;
    background: linear-gradient(90deg, transparent, var(--dore), transparent);
}

.empty-note {
    text-align: center;
    color: var(--texte-doux);
    font-style: italic;
}

/* =========================================================================
   Histoire
   ========================================================================= */
.story-text {
    max-width: 760px;
    margin: 0 auto;
}

.story-text p {
    margin: 0 0 1.5rem;
    text-align: justify;
}

/* Lettrine sur le premier paragraphe pour le côté manuscrit ancien */
.story-text p:first-child::first-letter {
    font-family: "Cinzel", serif;
    font-size: 3.4rem;
    float: left;
    line-height: 0.8;
    padding: 0.1rem 0.6rem 0 0;
    color: var(--dore);
}

/* =========================================================================
   Musique
   ========================================================================= */
.section-subtitle {
    text-align: center;
    font-style: italic;
    color: var(--texte-doux);
    margin: -1.5rem 0 2.6rem;
}

.music-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

/* ----- Carte d'une piste ----- */
.track {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    background: linear-gradient(160deg, rgba(58, 42, 29, 0.42), rgba(13, 11, 10, 0.66));
    border: 1px solid var(--cuir-clair);
    border-radius: 10px;
    padding: 1.35rem 1.6rem;
    box-shadow: 0 10px 28px var(--ombre), inset 0 1px 0 rgba(201, 162, 75, 0.08);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.track:hover {
    border-color: var(--dore);
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);
}

.track.is-playing {
    border-color: var(--dore);
    box-shadow: inset 0 0 0 1px var(--dore), 0 14px 34px rgba(0, 0, 0, 0.6);
}

/* ----- Bouton lecture en forme de disque vinyle ----- */
.track-play {
    position: relative;
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--dore);
    background: radial-gradient(circle at 50% 50%, #1a1512 0 38%, #0d0b0a 39% 100%);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.track-play:hover {
    box-shadow: 0 0 18px rgba(201, 162, 75, 0.45);
    transform: scale(1.04);
}

.track-play:focus-visible {
    outline: 2px solid var(--dore-clair);
    outline-offset: 3px;
}

/* Sillons du disque + pastille dorée centrale */
.track-disc {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle at 50% 50%, rgba(201, 162, 75, 0.14) 0 2px, transparent 2px 4px),
        radial-gradient(circle at 50% 50%, var(--dore) 0 18%, transparent 19%);
}

.track.is-playing .track-disc {
    animation: spin 3.2s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Icône lecture (triangle) / pause (deux barres) au centre du disque */
.track-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.track-icon::before {
    content: "";
    display: block;
    margin-left: 3px;
    border-style: solid;
    border-width: 9px 0 9px 15px;
    border-color: transparent transparent transparent var(--noir);
}

.track.is-playing .track-icon::before { display: none; }

.track.is-playing .track-icon::after {
    content: "";
    display: block;
    width: 14px;
    height: 16px;
    border-left: 5px solid var(--noir);
    border-right: 5px solid var(--noir);
}

/* ----- Corps de la piste (titre, progression, minutage, description) ----- */
.track-body {
    flex: 1 1 auto;
    min-width: 0;
}

.track-head {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}

.track-num {
    font-family: "Cinzel", serif;
    color: var(--dore);
    opacity: 0.55;
    font-size: 0.85rem;
}

.track-title {
    font-family: "Cinzel", serif;
    color: var(--dore);
    margin: 0;
    font-size: 1.15rem;
    flex: 1 1 auto;
}

.track-time {
    font-size: 0.8rem;
    color: var(--texte-doux);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Barre de progression cliquable */
.track-progress {
    position: relative;
    height: 6px;
    border-radius: 3px;
    background: rgba(201, 162, 75, 0.15);
    cursor: pointer;
    margin-bottom: 0.9rem;
}

.track-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--cuir-clair), var(--dore));
}

/* Pastille dorée au bout de la progression (apparaît au survol / lecture) */
.track-progress-fill::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dore-clair);
    box-shadow: 0 0 8px rgba(201, 162, 75, 0.6);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.track:hover .track-progress-fill::after,
.track.is-playing .track-progress-fill::after {
    opacity: 1;
}

.track-fallback {
    padding: 0.85rem 1.1rem;
    margin-bottom: 0.9rem;
    border: 1px dashed var(--dore);
    border-radius: var(--radius);
    color: var(--dore-clair);
    text-align: center;
    font-style: italic;
    background: rgba(201, 162, 75, 0.06);
}

.track-desc {
    margin: 0;
    font-style: italic;
    color: var(--texte-doux);
    line-height: 1.5;
}

/* Lecteur empilé sur très petits écrans */
@media (max-width: 520px) {
    .track {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .track-play { align-self: center; }
    .track-head { justify-content: center; flex-wrap: wrap; }
    .track-title { flex: 0 1 auto; }
}

/* =========================================================================
   Galerie
   ========================================================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    margin: 0;
    border: 1px solid var(--cuir-clair);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--noir-2);
    box-shadow: 0 8px 22px var(--ombre);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    border-color: var(--dore);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.gallery-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    cursor: pointer;            /* indique que la vignette s'agrandit au clic */
    filter: grayscale(0.15) contrast(1.05);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.gallery-item:hover .gallery-img {
    filter: grayscale(0) contrast(1.1);
    transform: scale(1.03);
}

/* Fallback image : cadre doré + label centré (jamais d'image cassée). */
.media-fallback {
    width: 100%;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    background:
        repeating-linear-gradient(45deg, rgba(58, 42, 29, 0.25) 0 12px, rgba(13, 11, 10, 0.4) 12px 24px);
    border-bottom: 2px solid var(--dore);
    color: var(--dore-clair);
    font-family: "Cinzel", serif;
    letter-spacing: 0.05em;
}

.media-fallback span {
    opacity: 0.85;
}

.gallery-item figcaption {
    padding: 0.8rem 1rem;
    text-align: center;
    font-family: "Cinzel", serif;
    font-size: 0.95rem;
    color: var(--texte);
    letter-spacing: 0.04em;
}

/* =========================================================================
   Lightbox (agrandissement des images de la galerie)
   L'élément .lightbox est injecté dans le <body> par js/main.js.
   ========================================================================= */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vmin;
    background: rgba(8, 6, 5, 0.92);
    /* Caché par défaut ; affiché via la classe .open */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

/* Figure = image + légende empilées et centrées */
.lightbox-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 92vw;
}

.lightbox-img {
    max-width: 92vw;
    max-height: 76vh;
    object-fit: contain;        /* image ENTIÈRE, jamais recadrée */
    border: 1px solid var(--dore);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.8);
    background: var(--noir);
}

/* Légende : titre doré + lore en italique */
.lightbox-caption {
    max-width: 640px;
    text-align: center;
}

.lightbox-label {
    display: block;
    font-family: "Cinzel", serif;
    color: var(--dore);
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.lightbox-lore {
    display: block;
    color: var(--texte-doux);
    font-style: italic;
    line-height: 1.5;
}

/* Flèches précédent / suivant */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 2rem;
    line-height: 1;
    color: var(--dore);
    background: rgba(13, 11, 10, 0.6);
    border: 1px solid var(--dore);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-nav:hover {
    background: var(--rouge);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

/* Bouton de fermeture (doré, en haut à droite) */
.lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--dore);
    background: rgba(13, 11, 10, 0.6);
    border: 1px solid var(--dore);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.lightbox-close:hover {
    background: var(--rouge);
    color: #fff;
    transform: scale(1.06);
}

/* Empêche le défilement de la page quand la lightbox est ouverte */
body.lightbox-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .lightbox { transition: none; }
}

/* =========================================================================
   Bréviaire (citations en carrousel)
   ========================================================================= */
.quotes-carousel {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

/* Scène : les citations sont superposées ; seule .active est visible */
.quotes-stage {
    position: relative;
    min-height: 7.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote {
    position: absolute;
    inset: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    font-family: "EB Garamond", Georgia, serif;
    font-style: italic;
    font-size: clamp(1.25rem, 3vw, 1.9rem);
    line-height: 1.5;
    color: var(--texte);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.quote.active {
    opacity: 1;
    pointer-events: auto;
}

/* Grands guillemets dorés ornementaux */
.quote::before {
    content: "\201C";
    color: var(--dore);
    font-size: 2.4em;
    line-height: 0;
    margin-right: 0.15em;
    vertical-align: -0.45em;
    opacity: 0.55;
}

.quote-dots {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 1.6rem;
}

.quote-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--dore);
    background: transparent;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
}

.quote-dot:hover { transform: scale(1.15); }

.quote-dot.active {
    background: var(--dore);
    box-shadow: 0 0 8px rgba(201, 162, 75, 0.5);
}

@media (prefers-reduced-motion: reduce) {
    .quote { transition: none; }
}

/* =========================================================================
   Bouton téléchargement d'une piste
   ========================================================================= */
.track-dl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-left: 0.4rem;
    border-radius: 50%;
    border: 1px solid var(--cuir-clair);
    color: var(--dore);
    font-size: 0.95rem;
    line-height: 1;
    text-decoration: none;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.track-dl:hover {
    border-color: var(--dore);
    background: rgba(201, 162, 75, 0.12);
    transform: translateY(-1px);
}

/* =========================================================================
   Mini-lecteur fixe (barre basse, injecté par main.js)
   ========================================================================= */
.miniplayer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.7rem 1.1rem;
    background: linear-gradient(180deg, rgba(26, 21, 18, 0.98), rgba(13, 11, 10, 0.98));
    border-top: 1px solid var(--dore);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.55);
    transform: translateY(0);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Masqué tant qu'aucune piste n'a été lancée */
.miniplayer.hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}

.mini-btn {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--dore);
    background: transparent;
    color: var(--dore);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.mini-btn:hover {
    background: rgba(201, 162, 75, 0.14);
    transform: scale(1.06);
}

.mini-play {
    background: linear-gradient(180deg, var(--rouge-vif), var(--rouge));
    color: #fff;
}

.mini-info {
    flex: 1 1 auto;
    min-width: 0;
}

.mini-title {
    display: block;
    font-family: "Cinzel", serif;
    font-size: 0.85rem;
    color: var(--dore);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.35rem;
}

.mini-progress {
    position: relative;
    height: 5px;
    border-radius: 3px;
    background: rgba(201, 162, 75, 0.18);
    cursor: pointer;
}

.mini-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--cuir-clair), var(--dore));
}

.mini-time {
    flex: 0 0 auto;
    font-size: 0.75rem;
    color: var(--texte-doux);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.mini-vol {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mini-vol-ico { color: var(--dore); font-size: 0.9rem; }

/* Curseur de volume aux couleurs du thème */
.mini-volume {
    width: 90px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(201, 162, 75, 0.25);
    border-radius: 3px;
    cursor: pointer;
}

.mini-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--dore);
    border: none;
    box-shadow: 0 0 6px rgba(201, 162, 75, 0.5);
}

.mini-volume::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: var(--dore);
}

/* Sur mobile : on masque le minutage et on réduit le volume pour gagner de la place */
@media (max-width: 600px) {
    .miniplayer { gap: 0.6rem; padding: 0.6rem 0.7rem; }
    .mini-time { display: none; }
    .mini-volume { width: 60px; }
}

/* =========================================================================
   Contact — « Avis de recherche » (formulaire + mur public)
   ========================================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2.4rem;
    align-items: start;
    margin-bottom: 3rem;
}

.contact-poster img {
    width: 100%;
    border: 1px solid var(--cuir-clair);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px var(--ombre);
}

/* Champs de formulaire */
.contact-form .field {
    display: block;
    margin-bottom: 1.1rem;
}

.field-label {
    display: block;
    font-family: "Cinzel", serif;
    font-size: 0.9rem;
    color: var(--dore);
    letter-spacing: 0.03em;
    margin-bottom: 0.45rem;
}

.contact-form input[type="text"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    background: rgba(13, 11, 10, 0.7);
    border: 1px solid var(--cuir-clair);
    border-radius: var(--radius);
    color: var(--texte);
    font-family: "EB Garamond", Georgia, serif;
    font-size: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input[type="text"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--dore);
    box-shadow: 0 0 0 2px rgba(201, 162, 75, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 110px;
}

/* Champ honeypot anti-robot : invisible et hors flux */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Message de retour après envoi */
.form-feedback {
    margin: 0.9rem 0 0;
    min-height: 1.2em;
    font-style: italic;
}

.form-feedback.is-ok    { color: var(--dore-clair); }
.form-feedback.is-error { color: var(--rouge-vif); }

/* Mur des signalements */
.board-title {
    font-family: "Cinzel", serif;
    color: var(--dore);
    text-align: center;
    font-size: 1.3rem;
    margin: 0 0 1.6rem;
}

.signalements {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.1rem;
    max-width: 900px;
    margin: 0 auto;
}

.signalement {
    background: linear-gradient(160deg, rgba(58, 42, 29, 0.32), rgba(13, 11, 10, 0.6));
    border: 1px solid var(--cuir-clair);
    border-left: 3px solid var(--dore);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    box-shadow: 0 6px 18px var(--ombre);
}

.signalement-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.signalement-name {
    font-family: "Cinzel", serif;
    color: var(--dore);
    font-size: 1rem;
    margin: 0;
}

.signalement-date {
    font-size: 0.72rem;
    color: var(--texte-doux);
    white-space: nowrap;
}

.signalement-msg {
    margin: 0;
    color: var(--texte);
    line-height: 1.55;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }
}

/* =========================================================================
   Pied de page
   ========================================================================= */
.site-footer {
    text-align: center;
    padding: 2.5rem 1.25rem;
    border-top: 1px solid var(--cuir);
    background-color: var(--noir);
    color: var(--texte-doux);
    font-style: italic;
    font-size: 0.95rem;
}

/* =========================================================================
   Animation d'apparition au scroll (.reveal -> .is-visible via main.js)
   ========================================================================= */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Accessibilité : pas d'animation pour qui la refuse. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================================
   Responsive — mobile
   ========================================================================= */
@media (max-width: 760px) {
    .nav-toggle {
        display: flex;
    }

    /* Menu replié par défaut sur mobile, déroulé via .open (ajouté par le JS). */
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 11, 10, 0.98);
        border-bottom: 1px solid var(--cuir);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .site-nav.open {
        max-height: 320px;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }

    .site-nav li {
        text-align: center;
        padding: 0.75rem 0;
        border-top: 1px solid rgba(58, 42, 29, 0.5);
    }

    .header-inner {
        position: relative;
    }

    .section {
        padding: 3rem 1rem;
    }

    .gallery-img,
    .media-fallback {
        height: 200px;
    }
}
