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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    background-color: #e6d7c7;
    color: #3a2a1a;
    line-height: 1.6;
}

/* --------------------------------------------------------
   NAVIGATION
---------------------------------------------------------*/
body > header {
    width: 100%;
    background: rgba(230, 215, 199, 0.75);
    backdrop-filter: blur(5px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    padding: 10px 0;
}

body > header nav {
    width: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    position: relative;
}

body > header .nav-toggle{
    display: none;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.25);
    border-radius: 10px;
    font-size: 30px;
    line-height: 1;
    padding: 10px 14px;
    min-width: 48px;
    min-height: 48px;
    color: #3a2a1a;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 60;
}

body > header .nav-links{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
}

body > header nav a {
    text-decoration: none;
    font-weight: 500;
    color: #3a2a1a;
    transition: 0.3s;
    padding: 8px 10px;
    border-radius: 8px;
}

body > header nav a:hover {
    color: #8c6239;
}

body > header .lang-switch{
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
}

body > header .lang-flag img{
    display:inline-block;
    vertical-align: middle;
}

@media (max-width: 820px), (max-device-width: 600px){
    body > header nav{
        justify-content: space-between;
    }

    /* Bigger, easier hamburger button on mobile (especially Android Chrome) */
    body > header .nav-toggle{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 34px;
        padding: 12px 16px;
        min-width: 56px;
        min-height: 56px;
    }

    /* Dropdown panel */
    body > header .nav-links{
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        background: rgba(230, 215, 199, 0.96);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(0,0,0,0.06);
        border-radius: 16px;
        padding: 14px 14px;
        flex-direction: column;
        gap: 12px;
        box-shadow: 0 16px 30px rgba(0,0,0,0.10);
    }
    body > header.nav-open .nav-links{
        display: flex;
    }

    /* Links: use clamp so it stays large enough on Android */
    body > header .nav-links a{
        width: 100%;
        text-align: center;
        padding: 14px 16px;
        font-size: clamp(18px, 5vw, 22px);
        line-height: 1.25;
    }

    /* Flag size in the dropdown */
    body > header .lang-flag img{
        width: 22px;
        height: auto;
    }
}


/* --------------------------------------------------------
   HERO STATIQUE (avec liseret blanc moyen)
---------------------------------------------------------*/

#hero {
    margin-top: 70px;
    width: 100%;
    height: 65vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* Bloc texte avec LISERET blanc moyen (4px) */
#hero-overlay {
    padding: 28px 40px;
    border: 4px solid rgba(255,255,255,0.88); /* 🔥 LISERET MOYEN */
    border-radius: 12px;
    text-align: center;
    max-width: 750px;
    background: none;  /* pas de plaque blanche */
}

/* Texte lisible sur l’image */
#hero-overlay h1,
#hero-overlay p {
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.65);
}

#hero-overlay h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 15px;
}

#hero-overlay p {
    font-size: 1.15rem;
    margin-bottom: 25px;
}

/* Boutons du hero */
.hero-btn {
    display: inline-block;
    padding: 10px 22px;
    border: 2px solid #ffffff;
    color: white;
    font-weight: 600;
    border-radius: 6px;
    margin: 0 10px;
    text-decoration: none;
    transition: 0.3s ease;
}

.hero-btn:hover {
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 8px rgba(255,255,255,0.8);
}

/* --------------------------------------------------------
   SECTION — RÉTROSPECTIVE 2026
---------------------------------------------------------*/
#exposition {
    width: 85%;
    margin: 60px auto;
    background: #ffffff;
    padding: 35px;
    text-align: center;
    border-radius: 14px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
}

#exposition h2 {
    font-size: 1.7rem;
    color: #3a2a1a;
    margin-bottom: 10px;
}

/* --------------------------------------------------------
   SLIDER (sous l'exposition)
---------------------------------------------------------*/
#hero-slider {
    width: 100%;
    height: 65vh;
    overflow: hidden;
    position: relative;
    margin-top: 40px;
}

#hero-slider img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
}

/* --------------------------------------------------------
   FOOTER
---------------------------------------------------------*/
footer {
    text-align: center;
    padding: 25px;
    opacity: 0.7;
    font-size: 0.9rem;
    margin-top: 40px;
}
/* ===========================
   PAGE BIOGRAPHIE
   =========================== */

.bio-page {
    background-color: #f4e7d4; /* beige doux, cohérent avec le site */
    padding: 3.5rem 1.5rem 4.5rem;
}

/* En-tête court */

.bio-hero {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    text-align: left;
}

.bio-hero h1 {
    font-size: 2.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.bio-hero-lead {
    font-size: 1.18rem;      /* +12% */
    line-height: 1.75;
}

/* Layout principal : texte + frise */

.bio-layout {
    max-width: 1180px;
    margin: 0 auto;
    display: block;
}

.bio-main {
    max-width: 980px;
    margin: 0 auto 3rem;
    text-align: left;
}

.bio-section + .bio-section {
    margin-top: 2.4rem;
}

.bio-section h2 {
    font-size: 1.4rem;
    margin-bottom: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bio-section p {
    font-size: 1.12rem;      /* +12% */
    line-height: 1.78;
    margin-bottom: 1rem;
}

/* Figures / images */

.bio-figure {
    margin: 1.6rem 0 1rem;
    background: #f9efe0;
    border-radius: 12px;
    padding: 0.9rem;
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

.bio-figure img {
    display: block;
    width: 100%;
    height: auto;          /* pas de recadrage, on garde l’image entière */
    border-radius: 8px;
}

.bio-figure figcaption {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 0.6rem;
    color: #694b32;
}

/* Portrait : largeur classique */

.bio-figure-portrait {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Contrat Zborowski : deux images côte à côte */

.bio-figure-contrat .bio-figure-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.bio-figure-contrat img {
    flex: 1 1 0;
}

/* Fresque : format panoramique large */

.bio-figure-fresque {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Photo à Caromb */

.bio-figure-caromb {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   FR I S E   C H R O N O
   =========================== */

.bio-timeline {
    margin: 0 auto;
    max-width: 980px;
    padding: 1.5rem 1.2rem;
    background: #f1e3cf;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.06);
}

.bio-timeline h2 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.8rem;
}

.bio-timeline ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bio-timeline li {
    display: flex;
    gap: 0.8rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.bio-timeline li:last-child {
    border-bottom: none;
}

.bio-timeline .year {
    flex: 0 0 90px;
    font-weight: 600;
    font-size: 0.9rem;
}

.bio-timeline .event {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===========================
   R E S P O N S I V E
   =========================== */

/* Desktop : texte + frise côte à côte */

@media (min-width: 1024px) {

    .bio-layout {
        display: flex;
        align-items: flex-start;
        gap: 3rem;
    }

    .bio-main {
        flex: 3;
        margin: 0;
    }

    .bio-timeline {
        flex: 1;
        position: sticky;
        top: 5.5rem;  /* sous la barre de navigation */
        max-height: calc(100vh - 7rem);
        overflow-y: auto;
    }
}

/* Petits écrans : tout en colonne */

@media (max-width: 767px) {

    .bio-page {
        padding: 3rem 1rem 3.5rem;
    }

    .bio-hero h1 {
        font-size: 1.6rem;
    }

    .bio-timeline {
        margin-top: 1.5rem;
        padding: 1.2rem 1rem;
    }
}
