/* =========================================================
   PAGES PIÈCES — PLASTIQUE DÉPOLI / GIVRE
   Même univers que l'accueil : translucide, flou, lumière, bleu glacé.
   À lier dans chaque page_XX.html à la place du bloc <style>.
   ========================================================= */

:root {
    --ice-1: #e6eef3;
    --ice-2: #cfdee8;
    --blue: #9cc9e0;
    --blue-deep: #5f98b8;
    --ink: #1c2a33;
    --ink-soft: #3f5563;
    --frost: rgba(255, 255, 255, 0.46);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--ice-1); }

body {
    min-height: 100vh;
    zoom: .72;
    padding: 3vw;
    position: relative;
    color: var(--ink);
    font-family: var(--mono);
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(ellipse at 15% 10%, #ffffff 0%, transparent 45%),
        radial-gradient(ellipse at 85% 30%, #bcd8e8 0%, transparent 50%),
        radial-gradient(ellipse at 30% 90%, #d9e6ee 0%, transparent 55%),
        linear-gradient(180deg, #eef3f6 0%, #d8e5ee 100%);
    background-attachment: fixed;
}

/* Taches de couleur floues derrière la feuille */
body::before, body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}
body::before {
    width: 46vw; height: 46vw;
    left: -10vw; top: 10vh;
    background: radial-gradient(circle, rgba(120,175,210,.55), transparent 70%);
}
body::after {
    width: 38vw; height: 38vw;
    right: -8vw; bottom: -6vh;
    background: radial-gradient(circle, rgba(255,214,200,.45), transparent 70%);
}

/* =========================================================
   FEUILLE DE PLASTIQUE DÉPOLI
   ========================================================= */

.page {
    width: min(1400px, 100%);
    min-height: calc(100vh - 6vw);
    margin: auto;
    position: relative;
    z-index: 1;
    overflow: hidden;
    isolation: isolate;
    border-radius: 6px;
    background: linear-gradient(115deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.25) 40%, rgba(190,220,238,.3) 100%);
    backdrop-filter: blur(26px) saturate(1.15);
    -webkit-backdrop-filter: blur(26px) saturate(1.15);
    border: 1px solid rgba(255,255,255,.85);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.5),
        inset 0 0 60px rgba(255,255,255,.45),
        0 30px 80px rgba(70,110,140,.25),
        0 2px 0 rgba(255,255,255,.9);
}

/* Reflet de lumière qui glisse (derrière le contenu, pour ne rien teinter par-dessus) */
.page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .6;
    background:
        linear-gradient(112deg, transparent 22%, rgba(255,255,255,.75) 38%, rgba(200,230,248,.35) 46%, transparent 58%),
        radial-gradient(ellipse at 75% 0%, rgba(255,255,255,.8), transparent 55%);
    background-size: 260% 100%, 100% 100%;
    background-position: 0% 0, 0 0;
    animation: lightDrift 16s ease-in-out infinite alternate;
}

/* Grain de givre + voile bleuté */
.page::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .35;
    mix-blend-mode: soft-light;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
        radial-gradient(ellipse at 20% 8%, rgba(255,255,255,.9), transparent 35%),
        radial-gradient(ellipse at 85% 45%, rgba(110,170,210,.5), transparent 40%);
}

.content { position: relative; z-index: 2; }

@keyframes lightDrift {
    from { background-position: 0% 0, 0 0; }
    to   { background-position: 100% 0, 0 0; }
}

@keyframes focusIn {
    from { opacity: 0; filter: blur(14px); transform: translateY(18px); }
    to   { opacity: 1; filter: blur(0);    transform: translateY(0); }
}

/* =========================================================
   BARRE DU HAUT
   ========================================================= */

.topbar {
    padding: 36px 52px 24px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid rgba(255,255,255,.85);
    box-shadow: 0 1px 0 rgba(95,152,184,.16);
}
.topbar a,
.nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    transition: text-shadow .4s ease, color .4s ease;
}
.topbar a:hover,
.nav a:hover {
    color: var(--blue-deep);
    text-shadow: 0 0 12px rgba(120,180,220,.95);
    text-decoration: none;
}
.index {
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

main { padding-bottom: 60px; }

/* =========================================================
   IMAGE PRINCIPALE — VERRE DÉPOLI QUI SE MET AU POINT
   ========================================================= */

.image-button {
    appearance: none;
    border: 0;
    padding: 0;
    cursor: zoom-in;
    display: block;
    position: relative;
    text-align: left;
}

.image.image-button {
    width: calc(100% - 104px);
    margin: 44px 52px 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    background: linear-gradient(135deg, #dbe8f0, #b4d0e2);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.8),
        0 18px 50px rgba(70,110,140,.28);
}

.image-button:focus-visible {
    outline: 2px solid var(--blue-deep);
    outline-offset: 3px;
}

.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(.95) contrast(.98);
    transition: transform 1.2s var(--ease);
    animation: focusIn 1.6s var(--ease) backwards;
}
.image-button:hover img { transform: scale(1.02); }

/* Reflet lumineux par-dessus l'image */
.image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: soft-light;
    background:
        linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%),
        radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.65), transparent 55%),
        linear-gradient(100deg, rgba(255,255,255,.3) 0%, rgba(255,255,255,.02) 45%, rgba(130,185,220,.25) 100%);
    background-size: 250% 100%, 100% 100%, 100% 100%;
    background-position: 0% 0, 0 0, 0 0;
    box-shadow: inset 0 0 50px rgba(255,255,255,.5);
    animation: lightDrift 11s ease-in-out infinite alternate;
}

.zoom-hint {
    position: absolute;
    right: 14px;
    bottom: 12px;
    z-index: 3;
    padding: 5px 9px;
    border-radius: 2px;
    background: rgba(255,255,255,.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.85);
    color: var(--ink);
    font: 10px var(--mono);
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: 0;
    transition: opacity .3s ease;
}
.image-button:hover .zoom-hint,
.image-button:focus-visible .zoom-hint { opacity: 1; }

/* =========================================================
   TITRE / DESCRIPTION / MÉTADONNÉES
   ========================================================= */

.info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding: 50px 52px 10px;
    align-items: start;
}

.title {
    font-family: var(--mono);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.04em;
    color: var(--ink);
    text-shadow: 0 0 14px rgba(120,175,210,.55), 0 0 1px rgba(28,42,51,.4);
    animation: focusIn 1.2s var(--ease) backwards;
}

.description {
    margin-top: 30px;
    max-width: 820px;
    padding: 34px 40px 18px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink);
    background: var(--frost);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 4px;
    box-shadow:
        inset 0 0 30px rgba(255,255,255,.5),
        0 12px 40px rgba(70,110,140,.14);
    animation: focusIn 1.4s .15s var(--ease) backwards;
}
.description p { margin-bottom: 17px; }
.description strong { font-weight: 700; }
.description a {
    color: var(--blue-deep);
    text-decoration: none;
    border-bottom: 1px solid rgba(95,152,184,.5);
    transition: text-shadow .4s ease;
}
.description a:hover { text-shadow: 0 0 10px rgba(120,180,220,.9); }

.meta {
    margin-top: 76px;
    padding: 26px 28px 20px;
    font-size: .8rem;
    line-height: 1.8;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--ink-soft);
    background: rgba(255,255,255,.36);
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 4px;
    box-shadow:
        inset 0 0 24px rgba(255,255,255,.45),
        0 10px 30px rgba(70,110,140,.12);
}
.meta p { margin-bottom: 6px; }

/* Lecteur de la pièce 05 : on restitue exactement son contexte d'origine */
.amp-slot {
    margin-top: 34px;
    text-transform: none;
    letter-spacing: normal;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: .76rem;
    line-height: 1.7;
    color: #151515;
}
.amp-slot .amp { margin: 0; }

/* =========================================================
   NAVIGATION BAS DE PAGE
   ========================================================= */

.nav {
    margin: 45px 52px 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.85);
    box-shadow: 0 -1px 0 rgba(95,152,184,.15);
    display: flex;
    justify-content: space-between;
}

/* =========================================================
   LIGHTBOX — VOILE GIVRÉ
   ========================================================= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4vh 4vw;
    background: rgba(214,228,238,.62);
    backdrop-filter: blur(26px) saturate(1.1);
    -webkit-backdrop-filter: blur(26px) saturate(1.1);
    cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox.open img { animation: focusIn .9s var(--ease) backwards; }
.lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 3px;
    box-shadow: 0 20px 70px rgba(50,90,120,.35), 0 0 0 1px rgba(255,255,255,.8);
}
.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: 28px Arial, sans-serif;
    cursor: pointer;
    line-height: 1;
    transition: text-shadow .3s ease;
}
.lightbox-close:hover { text-shadow: 0 0 12px rgba(120,180,220,.95); }
.lightbox-caption {
    position: absolute;
    left: 24px;
    bottom: 18px;
    color: var(--ink-soft);
    font: 10px var(--mono);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {
    body { zoom: 1; padding: 10px; }
    .page { min-height: calc(100vh - 20px); }
    .topbar { padding: 26px 24px 20px; }
    .image.image-button { width: calc(100% - 32px); margin: 24px 16px 0; }
    .info { grid-template-columns: 1fr; gap: 25px; padding: 32px 16px 10px; }
    .title { font-size: 1.5rem; }
    .description { margin-top: 24px; padding: 24px 20px 10px; font-size: 1rem; }
    .meta { margin-top: 0; }
    .nav { margin: 35px 16px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .page::before, .image::after { animation: none; }
    .image img, .title, .description, .lightbox.open img { animation: none; }
    .image img { transition: none; }
}
/* =========================================================
   CONTACT — PLASTIQUE DÉPOLI
   ========================================================= */

.contact-section {
    margin-top: 12px;
}

.contact-section h2 {
    margin-bottom: 22px;
}

.contact-intro {
    max-width: 720px;
    margin-bottom: 30px !important;
    color: var(--ink-soft);
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.editorial-text .contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    min-height: 155px;
    padding: 25px;

    color: var(--ink);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(95, 152, 184, 0.4);
    border-radius: 4px;

    box-shadow:
        inset 0 0 25px rgba(255, 255, 255, 0.4),
        0 8px 24px rgba(70, 110, 140, 0.06);

    transition:
        background 0.4s ease,
        transform 0.4s var(--motion-ease),
        box-shadow 0.4s ease;
}

.contact-card-label {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.contact-card-title {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.contact-card-arrow {
    align-self: flex-end;
    font-size: 1.1rem;
    color: var(--blue-deep);
}

.editorial-text .contact-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 32px rgba(70, 110, 140, 0.13);
    text-shadow: none;
    filter: none;
}

.editorial-text .contact-card:focus-visible {
    outline: 2px solid var(--blue-deep);
    outline-offset: 4px;
}

@media (max-width: 700px) {
    .contact-links {
        grid-template-columns: 1fr;
    }

    .editorial-text .contact-card {
        min-height: 125px;
        padding: 22px;
    }
}