:root {
    --bg-color-light: #f4f4f961;
    --text-color-light: #333;
    --bg-color-dark: #121212d4;
    --text-color-dark: #f4f4f9;
    --link-color-light: #007BFF;
    --link-color-dark: #4dabf7;
    --card-bg-light: #ffffff61;
    --card-bg-dark: #1e1e1ed4;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(255, 255, 255, 0.1);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom,#fff,#f8fafc);
    color: var(--text-color-light);
}

header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(8px);
    background-color: rgba(255,255,255,0.6);
    border-bottom: 1px solid rgba(203,213,225,0.6);
    z-index: 30;
}
.nav {
    max-width: 72rem;
    margin: 0 auto;
    padding: .75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-links a {
    margin-left: 1.5rem;
    font-size: .875rem;
    text-decoration: none;
    color: #334155;
}
.nav-links a:hover { color: #0f172a; }

.hero {
    position: relative;
    overflow: hidden;
    text-align: left;
    max-width: 72rem;
    margin: 0 auto;
}
.hero p {
    font-size: 1.125rem;
    color: #334155;
    max-width: 48rem;
    margin: .5rem 0;
    opacity: 0; transform: translateY(8px);
    animation: fadeUp .5s ease-out forwards;
}
.manifest-lines p:nth-of-type(1){animation-delay:.3s}
.manifest-lines p:nth-of-type(2){animation-delay:.45s}
.manifest-lines p:nth-of-type(3){animation-delay:.6s}
.manifest-lines p:nth-of-type(4){animation-delay:.7s}
.manifest-lines p:nth-of-type(5){animation-delay:.9s}
.manifest-lines p:nth-of-type(6){animation-delay:1.1s}

@keyframes fadeUp {to{opacity:1;transform:translateY(0)}}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: 1rem;
    font-weight: 500;
    padding: .75rem 1.5rem;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    background: linear-gradient(to right,#24c9fb,#ea0c2b);
    color: white;
    transition: box-shadow .3s ease;
    text-decoration: none;
}
.btn:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-outline {
    background: transparent;
    border: 2px solid #ea0c2b;
    color: #ea0c2b;
}
.btn-outline:hover {
    background: #ea0c2b;
    color: white;
}

.cards {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem 1rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
}
.card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: box-shadow .3s ease;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.card h3 {
    display: flex; align-items: center; gap: .5rem;
    font-size: 1.125rem; margin: 0 0 .5rem;
}
.newsletter {
    max-width: 72rem;
    margin: 0 auto 3rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    display: flex; flex-wrap: wrap; gap:1rem; align-items:center;
}
.newsletter input {
    flex:1;
    padding:.75rem 1rem;
    border:1px solid #e2e8f0;
    border-radius:1rem;
    font-size:1rem;
}

/* A propos */
.apropos {
    max-width: 72rem;
    margin: 0 auto;
    padding: 4rem 1rem;
    display: grid;
    gap:2rem;
    grid-template-columns: 120px 1fr;
    align-items: center;
}
.apropos-photo {
    position: relative;
    width: 120px; height: 120px;
}
.apropos-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(to bottom right,#fbbf24,#ea580c);
}
.apropos-initials {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700; color:#0f172a;
}
footer {
    border-top:1px solid #e2e8f0;
    background:white;
    padding:2rem 1rem;
    text-align:center;
    font-size:.9rem;
    color:#64748b;
}

article footer {
    text-align: center;
    padding: 5px;
    background: var(--bg-color-light);
    color: var(--text-color-light);
    margin-top: 20px;
}

.media iframe {
    max-width: 100%;
}

.audio-player {
    margin-top: 1em;
}

article, section {
    max-width: 72rem;
    margin: 10px auto;
    padding: 20px;
    background: var(--card-bg-light);
    box-shadow: 0 0 10px var(--shadow-light);
    border-radius: 5px;
}

h1 {
    color: var(--text-color-light);
}

h2, h3 {
    color: var(--text-color-light);
    margin-top: 0;
}

.sessionize-wrapper {
    color: var(--text-color-light);
}

.cv {
    margin-top:.5rem;
    max-width:40rem;
    color:#334155;
}

/* Styles pour la page Ateliers */
.content-section {
    background: var(--card-bg-light);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 72rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.sessionize-container {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Styles pour le mode sombre */
@media (prefers-color-scheme: dark) {
    .content-section {
        background: var(--card-bg-dark);
        color: var(--text-color-dark);
    }
    
    .sessionize-container {
        background: rgba(30, 30, 30, 0.7);
        color: var(--text-color-dark);
    }
    
    .content-section h2 {
        color: var(--text-color-dark);
    }
}


.hero h1{
    font-family:"Playfair Display", serif;
    font-weight:900;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    margin:1rem 0 2rem 1rem;
    letter-spacing:-0.02em;
    line-height:1.02;
    color:var(--text);
    opacity:0; transform:translateY(18px);
    animation:fadeUp .7s ease-out .1s forwards;
}
.hero .subtitle{
    max-width:120ch;
    font-size:1.125rem;
    color:var(--muted);
    margin:0 0 1.25rem 0;
    opacity:0; transform:translateY(12px);
    animation:fadeUp .6s ease-out .25s forwards;
}

/* Manifesto lines */
.manifest-lines{margin-top:1.25rem;margin-left:1.25rem;display:flex;flex-direction:column;gap:.6rem;line-height: 1.6;}
.manifest-lines p{
    font-family:"Playfair Display", serif;
    font-weight:600;
    font-size:1.25rem;
    margin:0;
    color:var(--text);
    opacity:0; transform:translateY(12px);
    /* delays applied inline via style attr for precise staggering below */
}

@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(to bottom,var(--bg-color-dark),var(--bg-color-dark));
        color: var(--text-color-dark);
    }

    header {
        background-color: var(--bg-color-dark);
        color: var(--text-color-dark);
    }

    article, section, .card {
        background: var(--card-bg-dark);
        box-shadow: 0 0 10px var(--shadow-dark);
    }

    h1, h2, h3, .hero p {
        color: var(--text-color-dark);
    }

    .sessionize-wrapper {
        color: var(--text-color-dark) !important;
    }

    a {
        color: var(--link-color-dark);
    }

    .nav-links a {
        margin-left: 1.5rem;
        font-size: .875rem;
        text-decoration: none;
        color: var(--link-color-dark);
    }
    .nav-links a:hover { color: var(--link-color-dark); }

    footer {
        background: var(--bg-color-dark);
        border-top-color: var(--bg-color-dark);
        color: var(--text-color-dark);
    }

    #floating-menu{
        background-color: var(--bg-color-dark);
    }
    #floating-menu a {
        color: var(--text-color-dark);
    }

    .cv {
        color:var(--text-color-dark);
    }

}