/* =========================================
   1. VARIABLES
   Les polices sont chargées via <link> dans le <head> de chaque page.
   ========================================= */
:root {
    --bg-paper: #FFF2E6;
    --pale-green: #586357;
    --dark-green: #052102;
    --text-main: #280D08;
    --accent-soft: #734141;
    --accent-strong: #3D0000;

    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px rgba(40, 13, 8, 0.05);
    --glass-blur: blur(12px);

    --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

/* =========================================
   2. BASE & FOND ANIMÉ
   Plus de motif SVG en background-image : le fond est désormais
   un canvas plein écran (halos + constellation) piloté par script.js.
   La couleur du body se réchauffe légèrement au scroll.
   ========================================= */
body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-paper);
    min-height: 100vh;
    overflow-x: hidden;
}

#site-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    display: block;
}

/* =========================================
   3. TYPOGRAPHIE
   ========================================= */
h1, h2, h3, h4, h5 {
    font-family: 'Clash Display', sans-serif;
    color: var(--dark-green);
    letter-spacing: 0.5px;
    margin: 0;
}

h1 { font-size: 3.5rem; margin-bottom: 0.5rem; }
h2 { font-size: 2.5rem; margin-top: 3rem; color: var(--accent-strong); }
h3 { font-size: 1.8rem; margin-top: 2rem; }
h4 { font-size: 1.4rem; margin-top: 1.5rem; }
h5 { font-size: 1.15rem; margin-top: 1.2rem; text-transform: uppercase; letter-spacing: 1px; }
p { line-height: 1.6; font-size: 1.1rem; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

.italic-accent {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--accent-soft);
    font-weight: 400;
}

/* Petite étiquette de section, réutilisée sur toutes les pages */
.eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-soft);
    display: block;
}

/* =========================================
   4. NAVIGATION
   ========================================= */
.nav-wrapper {
    position: fixed;
    top: 20px;
    left: 0; width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

nav {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 4px 20px rgba(5, 33, 2, 0.1);
    max-width: 92vw;
}

nav a {
    position: relative;
    z-index: 2;
    text-decoration: none;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 50px;
    transition: color 0.3s ease;
}

nav a:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }

/* Marqueur centré verticalement : ancré en haut ET en bas (au lieu d'une
   hauteur fixe de 40px qui le décalait vers le bas dans une pilule de 55px). */
#nav-marker {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    height: auto;
    background-color: var(--dark-green);
    border-radius: 40px;
    transition: transform 0.45s var(--ease-soft), width 0.45s var(--ease-soft), opacity 0.3s ease;
    z-index: 1;
    opacity: 0;
}

nav a.active { color: var(--bg-paper); }
nav:hover a.active { color: var(--text-main); }
nav a:hover, nav:hover a.active:hover { color: var(--bg-paper); }

@media (max-width: 480px) {
    nav a { padding: 10px 14px; font-size: 0.9rem; }
}

/* =========================================
   5. STRUCTURE & COMPOSANTS
   ========================================= */
main {
    max-width: 1100px;
    margin: 120px auto 40px;
    padding: 20px;
}

.main-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Conteneur large, pour la galerie de projets */
.main-wide {
    max-width: 1440px;
    width: 94vw;
    margin: 130px auto 40px;
    padding: 0 20px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--glass-shadow);
    margin-bottom: 3rem;
    position: relative;
}

.glass-morphism {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

.btn {
    display: inline-block;
    background-color: var(--accent-strong);
    color: var(--bg-paper);
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.btn:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(5, 33, 2, 0.15);
}
.btn-outline { background: transparent; color: var(--dark-green); border: 1px solid var(--dark-green); }
.btn-outline:hover { background: var(--dark-green); color: var(--bg-paper); }

/* =========================================
   6. TRANSITIONS DE PAGE (fondu-montée)
   Sortie vers le haut, entrée depuis le bas. La nav reste fixe,
   ce qui donne la sensation d'une coque d'application.
   ========================================= */
main, footer {
    transition: opacity 0.42s ease, transform 0.42s var(--ease-soft);
}
body.is-entering main, body.is-entering footer {
    opacity: 0;
    transform: translateY(28px);
}
body.is-leaving main, body.is-leaving footer {
    opacity: 0;
    transform: translateY(-28px);
}

/* Apparition des sections au scroll */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.7s ease, transform 0.7s var(--ease-soft);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================
   7. ACCUEIL
   ========================================= */
.hero-container {
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 80px;
    position: relative;
    margin-bottom: 4rem;
    gap: 40px;
}

.hero-text-wrapper { z-index: 2; flex: 1; }

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--accent-soft);
}

.hero-title { font-size: 6rem; line-height: 0.9; margin: 10px 0 20px; color: var(--dark-green); }

.hero-role {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--pale-green);
    margin-bottom: 3rem;
    font-weight: 400;
}

.stage-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255,255,255,0.4);
    border: 1px solid var(--dark-green);
    color: var(--dark-green);
    font-weight: 600;
    font-size: 0.9rem;
}
.dot { width: 8px; height: 8px; background: #2ecc71; border-radius: 50%; box-shadow: 0 0 10px #2ecc71; }

/* --- PORTRAIT HORS-CADRE ---
   Le cadre arrondi est un bloc à part, DERRIÈRE l'image. L'image
   détourée (WebP à fond transparent) est ancrée en bas et dépasse
   du cadre par le haut : la tête sort du cadre, comme sur le CV. */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
}

.portrait-stage {
    position: relative;
    width: 380px;
    height: 460px;
    overflow: visible;
}

.portrait-frame {
    position: absolute;
    top: 15%;
    left: 0;
    width: 100%;
    height: 85%;
    border-radius: 26px;
    background: linear-gradient(150deg, rgba(88,99,87,0.55), rgba(5,33,2,0.75));
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 20px 50px rgba(5, 33, 2, 0.18);
    z-index: 1;
}

.portrait-img {
    position: absolute;
    bottom: 0;
    left: 50%;
    height: 100%;
    width: auto;
    max-width: none;
    transform: translateX(-50%);
    z-index: 2;
    filter: drop-shadow(0 18px 28px rgba(5, 33, 2, 0.28));
    transition: transform 0.6s var(--ease-soft);
}
.portrait-stage:hover .portrait-img { transform: translateX(-50%) translateY(-10px); }

/* --- Sections --- */
.section-block { margin: 8rem 0; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    gap: 30px;
}

.section-title { font-size: 4rem; line-height: 1; color: var(--accent-strong); }
.section-desc { max-width: 400px; font-size: 1.1rem; color: var(--pale-green); text-align: right; }

.link-arrow { font-size: 1.2rem; font-weight: 500; border-bottom: 1px solid var(--text-main); padding-bottom: 5px; white-space: nowrap; }

.projects-vertical-list { display: flex; flex-direction: column; gap: 40px; }

.project-row {
    display: flex;
    height: 350px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.4s var(--ease-soft);
    border: 1px solid rgba(255,255,255,0.5);
}
.project-row:hover { transform: scale(1.02); }

.project-info { flex: 1; padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.project-info h3 { font-size: 2.5rem; margin: 0 0 1rem; color: var(--dark-green); }
.project-cat { font-family: 'Outfit', sans-serif; text-transform: uppercase; font-size: 0.9rem; opacity: 0.7; letter-spacing: 1px; }

.project-visual { flex: 1.5; height: 100%; }
.project-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.project-row:hover .project-visual img { transform: scale(1.05); }

.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-card { padding: 2rem; text-align: center; transition: 0.3s; }
.skill-card:hover { background: rgba(255,255,255,0.6); transform: translateY(-5px); }
.skill-icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }
.skill-card h4 { font-size: 1.5rem; margin: 0 0 1rem; }
.skill-card ul { list-style: none; padding: 0; color: var(--pale-green); line-height: 1.8; }

.about-card { padding: 4rem; text-align: center; max-width: 800px; margin: 0 auto; }
.about-card p {
    font-size: 1.5rem;
    margin: 2rem 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--text-main);
}
.btn-liquid {
    display: inline-block;
    padding: 15px 40px;
    background: var(--dark-green);
    color: #fff;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: transform 0.3s;
}
.btn-liquid:hover { transform: scale(1.05); }

.contact-block { text-align: center; padding-bottom: 6rem; }
.contact-subtitle { font-size: 1.2rem; margin-bottom: 1rem; opacity: 0.6; }

.contact-huge-link {
    font-family: 'Clash Display', sans-serif;
    font-size: 5vw;
    font-weight: 600;
    color: var(--accent-strong);
    display: inline-flex;
    align-items: center;
    gap: 20px;
    transition: 0.3s;
}
.contact-huge-link svg { width: 50px; height: 50px; transition: 0.3s; }
.contact-huge-link:hover { opacity: 0.8; letter-spacing: 2px; }
.contact-huge-link:hover svg { transform: translate(10px, -10px); }

/* =========================================
   8. GALERIE PROJETS — GRILLE BENTO
   6 colonnes ; un projet "mis en avant" occupe 4 colonnes sur 2 rangées,
   un projet normal 2 colonnes sur 1 rangée. grid-auto-flow: dense
   comble automatiquement les trous quel que soit l'ordre choisi.
   ========================================= */
.projets-intro { max-width: 620px; margin-bottom: 3.5rem; }
.projets-intro h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); line-height: 1; }
.projets-intro p { font-size: 1.2rem; color: var(--pale-green); margin-top: 1.2rem; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 210px;
    grid-auto-flow: dense;
    gap: 18px;
}

.p-card {
    position: relative;
    grid-column: span 2;
    grid-row: span 1;
    border-radius: 22px;
    overflow: hidden;
    display: block;
    color: #fff;
    background: var(--dark-green);
    box-shadow: 0 12px 32px rgba(5, 33, 2, 0.10);
    transition: transform 0.55s var(--ease-soft), box-shadow 0.55s var(--ease-soft);
}
.p-card.is-featured { grid-column: span 4; grid-row: span 2; }

.p-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(5, 33, 2, 0.22); }
.p-card:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; }

.p-card-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease-soft);
}
.p-card:hover .p-card-img { transform: scale(1.06); }

.p-card-veil {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(5,33,2,0.92) 0%, rgba(5,33,2,0.45) 42%, rgba(5,33,2,0.05) 78%);
    transition: opacity 0.5s ease;
}
.p-card:hover .p-card-veil { opacity: 0.86; }

.p-card-body {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.6rem;
    gap: 0.7rem;
}

.p-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.p-card-tags span {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 4px 11px;
    border-radius: 30px;
    background: rgba(255, 242, 230, 0.16);
    border: 1px solid rgba(255, 242, 230, 0.28);
    color: var(--bg-paper);
    backdrop-filter: blur(4px);
}

.p-card-body h3 {
    color: #fff;
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.1;
    transition: transform 0.5s var(--ease-soft);
}
.p-card.is-featured .p-card-body { padding: 2.4rem; }
.p-card.is-featured .p-card-body h3 { font-size: 2.4rem; }
.p-card.is-featured .p-card-sub {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: rgba(255, 242, 230, 0.82);
    font-size: 1.05rem;
    margin: 0;
}

.p-card-index {
    position: absolute;
    top: 1.4rem; left: 1.6rem;
    z-index: 3;
    font-family: 'Clash Display', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: rgba(255, 242, 230, 0.65);
}

.p-card-arrow {
    position: absolute;
    top: 1.2rem; right: 1.2rem;
    z-index: 3;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255, 242, 230, 0.18);
    border: 1px solid rgba(255, 242, 230, 0.3);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transform: rotate(-40deg) scale(0.8);
    transition: all 0.45s var(--ease-soft);
}
.p-card:hover .p-card-arrow {
    opacity: 1;
    transform: rotate(0) scale(1);
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}

.p-card-badge {
    position: absolute;
    bottom: 1.6rem; right: 1.6rem;
    z-index: 3;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 242, 230, 0.7);
}

@media (max-width: 1100px) {
    .bento-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
    .p-card.is-featured { grid-column: span 4; grid-row: span 2; }
    .p-card { grid-column: span 2; }
}
@media (max-width: 680px) {
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
    .p-card, .p-card.is-featured { grid-column: span 1; grid-row: span 1; }
    .p-card.is-featured .p-card-body h3 { font-size: 1.7rem; }
    .p-card.is-featured .p-card-body { padding: 1.6rem; }
}

/* =========================================
   9. PAGE À PROPOS (refonte éditoriale)
   ========================================= */
.about-hero { margin-bottom: 6rem; }
.about-hero h1 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 0.92;
    margin: 0.6rem 0 0;
}
.about-lead {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.3rem, 2.4vw, 1.85rem);
    line-height: 1.45;
    color: var(--accent-soft);
    max-width: 720px;
    margin: 2rem 0 0;
}
.about-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 2.5rem;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--pale-green);
}
.about-meta span { display: inline-flex; align-items: center; gap: 10px; }
.about-meta span::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-soft);
}

/* Bandeau de chiffres */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: rgba(88, 99, 87, 0.25);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 6rem;
}
.stat-item { background: rgba(255, 255, 255, 0.42); padding: 2rem 1.5rem; text-align: center; }
.stat-num {
    font-family: 'Clash Display', sans-serif;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--accent-strong);
    display: block;
}
.stat-label {
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--pale-green);
    margin-top: 0.7rem;
    display: block;
}

/* Chapitre : étiquette collante à gauche, contenu à droite */
.chapter {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    margin-bottom: 6rem;
}
.chapter-label { position: sticky; top: 130px; align-self: start; }
.chapter-label .num {
    font-family: 'Clash Display', sans-serif;
    font-size: 3.2rem;
    line-height: 1;
    color: rgba(61, 0, 0, 0.18);
    display: block;
}
.chapter-label h2 {
    font-size: 1.35rem;
    margin: 0.4rem 0 0;
    color: var(--dark-green);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.chapter-body > p { max-width: 680px; }
.chapter-body > p:first-child { margin-top: 0; }

/* Frise chronologique */
.timeline { position: relative; padding-left: 2rem; margin: 0; list-style: none; }
.timeline::before {
    content: '';
    position: absolute;
    left: 5px; top: 8px; bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent-soft), rgba(88, 99, 87, 0.25));
}
.timeline li { position: relative; padding-bottom: 2.8rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 7px;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--bg-paper);
    border: 2px solid var(--accent-strong);
}
.timeline .tl-date {
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-soft);
    display: block;
    margin-bottom: 0.4rem;
}
.timeline h3 { font-size: 1.45rem; margin: 0 0 0.5rem; }
.timeline p { font-size: 1rem; margin: 0 0 0.6rem; max-width: 620px; }
.timeline ul { margin: 0.6rem 0 0; padding-left: 1.1rem; color: var(--pale-green); }
.timeline ul li { padding-bottom: 0.35rem; }
.timeline ul li::before { display: none; }

/* Compétences en nuages de puces */
.skill-cluster { margin-bottom: 2.4rem; }
.skill-cluster h4 {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin: 0 0 1rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips span {
    padding: 8px 17px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(88, 99, 87, 0.3);
    font-size: 0.92rem;
    color: var(--text-main);
    transition: all 0.3s ease;
}
.chips span:hover { background: var(--dark-green); color: var(--bg-paper); border-color: var(--dark-green); }

/* Cartes "ce qui m'anime" */
.passion-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.passion-card {
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 20px;
    padding: 2.2rem 1.8rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s var(--ease-soft), background 0.4s ease;
}
.passion-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.62); }
.passion-card .p-num {
    font-family: 'Clash Display', sans-serif;
    font-size: 4.5rem;
    line-height: 1;
    color: rgba(61, 0, 0, 0.10);
    position: absolute;
    top: 0.6rem; right: 1.1rem;
}
.passion-card h3 { font-size: 1.4rem; margin: 0 0 0.6rem; }
.passion-card .p-meta {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--accent-soft);
    font-size: 0.98rem;
    margin: 0 0 1rem;
}
.passion-card p { font-size: 1rem; margin: 0; }

/* Bandeau d'appel en bas de page */
.about-cta {
    text-align: center;
    padding: 4.5rem 2rem;
    border-radius: 24px;
    background: rgba(255,255,255,0.35);
    border: 1px solid rgba(255,255,255,0.6);
    margin-top: 2rem;
}
.about-cta h2 { margin-top: 0; font-size: clamp(2rem, 4vw, 3rem); }
.about-cta .btn { margin: 0.5rem 0.4rem 0; }

@media (max-width: 860px) {
    .chapter { grid-template-columns: 1fr; gap: 1.5rem; }
    .chapter-label { position: static; }
    .chapter-label .num { font-size: 2.4rem; }
}

/* =========================================
   10. CONTACT
   ========================================= */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; }
.info-list { list-style: none; padding: 0; margin-top: 1.5rem; }
.info-list li { display: flex; align-items: center; margin-bottom: 1rem; font-size: 1.1rem; }
.info-list .icon { margin-right: 15px; font-size: 1.5rem; }
.info-list a { color: var(--text-main); text-decoration: none; transition: color 0.3s; }
.info-list a:hover { color: var(--accent-soft); }

.btn-icon {
    display: inline-block; margin-right: 10px; padding: 8px 16px;
    border: 1px solid var(--dark-green);
    border-radius: 50px;
    text-decoration: none; color: var(--dark-green);
    font-size: 0.9rem; transition: all 0.3s ease;
}
.btn-icon:hover { background: var(--dark-green); color: var(--bg-paper); }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--accent-strong); font-family: 'Outfit', sans-serif; }
.glass-form input, .glass-form textarea, .glass-form select {
    width: 100%; padding: 15px; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.4);
    font-family: 'Outfit', sans-serif; font-size: 1rem; color: var(--text-main);
    transition: all 0.3s ease; box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
}
.glass-form input:focus, .glass-form textarea:focus, .glass-form select:focus {
    outline: none; border-color: var(--accent-soft); background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(115, 65, 65, 0.1);
}
::placeholder { color: var(--pale-green); opacity: 0.7; }

/* =========================================
   11. FICHE PROJET
   ========================================= */
.projet-hero {
    position: relative;
    height: 55vh;
    min-height: 320px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.projet-hero img { width: 100%; height: 100%; object-fit: cover; }
.projet-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(5,33,2,0.85), transparent 55%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 2.5rem;
}
.projet-hero-overlay h1 { color: #fff; margin-bottom: 0.5rem; }
.projet-hero-overlay .italic-accent { color: rgba(255,255,255,0.85); }

.projet-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0 2rem; }
.tag-chip {
    display: inline-block;
    background: rgba(255,255,255,0.4);
    border: 1px solid rgba(255,255,255,0.7);
    color: var(--dark-green);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.projet-galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 2rem 0; }
.projet-galerie img { width: 100%; border-radius: 14px; display: block; box-shadow: var(--glass-shadow); }

.projet-video {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    border-radius: 14px; overflow: hidden; margin: 2rem 0; background: #000;
}
.projet-video iframe, .projet-video video { width: 100%; height: 100%; border: 0; display: block; }

.browser-mockup {
    border-radius: 14px; overflow: hidden;
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(255,255,255,0.6);
    margin: 2rem 0;
}
.browser-mockup-bar { background: rgba(255,255,255,0.6); padding: 12px 16px; display: flex; align-items: center; gap: 8px; }
.browser-mockup-bar .dot-group { display: flex; gap: 6px; }
.browser-mockup-bar .dot-group span { width: 10px; height: 10px; border-radius: 50%; background: rgba(5,33,2,0.25); }
.browser-mockup-bar .url-bar {
    flex: 1; margin-left: 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 20px; padding: 5px 14px;
    font-size: 0.8rem; color: var(--pale-green);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser-mockup-screen { background: #000; }
.browser-mockup-screen img { width: 100%; display: block; }

.projet-nav {
    display: flex; justify-content: space-between; gap: 20px;
    margin-top: 4rem; padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.6);
}
.projet-nav a { flex: 1; padding: 1.5rem; border-radius: 16px; background: rgba(255,255,255,0.3); transition: background 0.3s; }
.projet-nav a:hover { background: rgba(255,255,255,0.6); }
.projet-nav .nav-label { font-size: 0.8rem; text-transform: uppercase; opacity: 0.6; }
.projet-nav .nav-titre { font-family: 'Clash Display', sans-serif; font-size: 1.3rem; color: var(--dark-green); }
.projet-nav .suivant { text-align: right; }

/* =========================================
   12. CONSTRUCTEUR
   ========================================= */
.builder-login { max-width: 420px; margin: 0 auto; text-align: center; }
.builder-login input[type="password"] {
    width: 100%; padding: 15px; border-radius: 12px; margin: 1.5rem 0;
    border: 1px solid rgba(255,255,255,0.6); background: rgba(255,255,255,0.5);
    font-size: 1rem; text-align: center;
}
.builder-error {
    background: rgba(115,65,65,0.15); border: 1px solid var(--accent-soft);
    color: var(--accent-strong); padding: 1rem; border-radius: 12px; margin-bottom: 1.5rem;
}
.builder-success {
    background: rgba(88,99,87,0.15); border: 1px solid var(--pale-green);
    color: var(--dark-green); padding: 1rem; border-radius: 12px; margin-bottom: 1.5rem;
}

.builder-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.builder-list-item {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255,255,255,0.4);
    padding: 1rem 1.5rem; border-radius: 14px;
    gap: 1rem; flex-wrap: wrap;
}
.builder-list-item .infos { display: flex; align-items: center; gap: 1rem; }
.builder-list-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.builder-list-item .actions { display: flex; gap: 10px; }
.builder-list-item .ordre-badge {
    background: var(--dark-green); color: var(--bg-paper);
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 600;
}

.builder-form fieldset { border: 1px solid rgba(255,255,255,0.6); border-radius: 16px; padding: 1.5rem 2rem 2rem; margin-bottom: 2rem; }
.builder-form legend { font-family: 'Clash Display', sans-serif; color: var(--accent-strong); padding: 0 10px; font-size: 1.1rem; }
.builder-form label { display: block; font-weight: 500; margin-bottom: 0.4rem; color: var(--accent-strong); }
.builder-form .champ { margin-bottom: 1.3rem; }
.builder-form .champ-inline { display: flex; gap: 1rem; flex-wrap: wrap; }
.builder-form .champ-inline > div { flex: 1; min-width: 180px; }
.builder-form .aide { font-size: 0.85rem; color: var(--pale-green); margin-top: 0.3rem; }

.tags-checklist { display: flex; flex-wrap: wrap; gap: 10px; }
.tags-checklist label {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.4);
    padding: 8px 14px; border-radius: 30px;
    font-weight: 400; margin: 0; cursor: pointer; font-size: 0.9rem;
}

.bloc-contenu {
    display: flex; gap: 10px; align-items: flex-start;
    background: rgba(255,255,255,0.3);
    padding: 1rem; border-radius: 12px; margin-bottom: 1rem;
}
.bloc-contenu select { max-width: 110px; flex-shrink: 0; }
.bloc-contenu textarea { flex: 1; min-height: 60px; font-family: inherit; padding: 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.6); }
.bloc-contenu .btn-supprimer-bloc {
    background: none; border: none; color: var(--accent-strong);
    cursor: pointer; font-size: 1.3rem; flex-shrink: 0; line-height: 1; padding: 8px;
}

.upload-existant { display: flex; align-items: center; gap: 10px; margin-bottom: 0.5rem; font-size: 0.85rem; color: var(--pale-green); }
.upload-existant img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; }

/* =========================================
   13. MEDIA QUERIES GÉNÉRALES
   ========================================= */
@media (max-width: 900px) {
    .hero-container { flex-direction: column-reverse; text-align: center; justify-content: center; gap: 30px; padding-top: 100px; }
    .hero-title { font-size: 4rem; }
    .hero-visual { justify-content: center; }
    .portrait-stage { width: 270px; height: 340px; }

    .section-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .section-title { font-size: 3rem; }
    .section-desc { text-align: left; }

    .project-row { flex-direction: column; height: auto; }
    .project-visual { height: 250px; }
    .project-info { padding: 1.5rem; }

    .skills-grid { grid-template-columns: 1fr; }

    .contact-huge-link { font-size: 3rem; }
    .contact-layout { grid-template-columns: 1fr; gap: 2rem; }

    .projet-nav { flex-direction: column; }
    .projet-nav .suivant { text-align: left; }

    .glass-panel { padding: 2rem 1.5rem; }
}

/* Respect de "mouvement réduit" : plus d'animation de fond ni de transitions */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .reveal { opacity: 1; transform: none; }
    body.is-entering main, body.is-entering footer,
    body.is-leaving main, body.is-leaving footer { opacity: 1; transform: none; }
}
