/* === SoSa — Charte graphique (piste 1 « Le lien ») — Dark mode par défaut === */

/* ---- Thème SOMBRE (défaut) ---- */
:root {
    --orange:        #E56A38;  /* Orange Capital — primaire */
    --orange-dark:   #c9572a;
    --violet:        #9a7bd0;  /* Violet éclairci pour fond sombre */
    --violet-dark:   #7d5cb8;

    --ink:           #111116;  /* bandeaux/surfaces « encre » accentuées */
    --on-ink:        #F5F3EF;  /* texte sur surfaces encre (constant) */
    --encre:         #2B2B31;  /* gris encre de marque (logo thumbnail) */

    --bg:            #1a1a1f;   /* fond de page */
    --card:          #26262d;   /* cartes */
    --surface:       #26262d;
    --line:          #37373f;   /* bordures */
    --muted:         #8d8a83;
    --text:          #F2F0EB;
    --text-2:        #C4C1BB;

    --orange-tint:   rgba(229,106,56,.13);
    --violet-tint:   rgba(154,123,208,.13);

    --radius:        6px;
    --radius-lg:     10px;
    --shadow:        0 1px 3px rgba(0,0,0,.3);
    --shadow-md:     0 8px 30px -8px rgba(0,0,0,.55);
    --tracking:      0.16em;

    --font-logo:     'Jost', sans-serif;
    --font-heading:  'Outfit', -apple-system, system-ui, sans-serif;
    --font-body:     'Outfit', -apple-system, system-ui, sans-serif;
    --font-mono:     'JetBrains Mono', monospace;

    --max-width:     1120px;
    --gap:           clamp(2rem, 5vw, 4rem);

    /* Alias rétro-compat */
    --green-darkest: var(--ink);
    --green-dark:    var(--orange);
    --green:         var(--orange);
    --green-light:   var(--orange-tint);
    --amber:         var(--orange);
    --amber-dark:    var(--orange-dark);
    --border:        var(--line);
    --text-muted:    var(--text-2);
    --white:         var(--card);
}

/* ---- Thème CLAIR (opt-in via bascule) ---- */
:root[data-theme="light"] {
    --violet:        #6B4A9C;
    --violet-dark:   #573b80;
    --ink:           #2B2B31;
    --bg:            #F5F3EF;
    --card:          #FFFFFF;
    --surface:       #FFFFFF;
    --line:          #E7E3DC;
    --muted:         #94918C;
    --text:          #2B2B31;
    --text-2:        #56545A;
    --orange-tint:   #fbeee7;
    --violet-tint:   #ede8f3;
    --shadow:        0 1px 3px rgba(43,43,49,.05);
    --shadow-md:     0 8px 30px -8px rgba(43,43,49,.12);
    --white:         #FFFFFF;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background .25s, color .25s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong, b { font-weight: 500; }

/* === Layout === */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* === Logo === */
.logo { display: flex; align-items: center; gap: .9rem; line-height: 1; }
.logo-rings { position: relative; width: 46px; height: 30px; flex-shrink: 0; }
.logo-rings i {
    position: absolute; top: 50%; width: 30px; height: 30px;
    border: 3px solid; border-radius: 50%; transform: translateY(-50%);
}
.logo-rings .ring-o { left: 0; border-color: var(--orange); }
.logo-rings .ring-v { left: 16px; border-color: var(--violet); }
.logo-word {
    font-family: var(--font-logo);
    font-weight: 300;
    font-size: 1.9rem;
    letter-spacing: var(--tracking);
    color: var(--text);
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.logo-word .wm { line-height: 1; }
.logo-word .o-grad {
    background: linear-gradient(96deg, var(--orange) 48%, var(--violet) 52%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-tagline {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: .58rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--muted);
}
.logo.on-dark .logo-word { color: var(--on-ink); }

/* === Header === */
.site-header {
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    transition: background .25s;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1rem;
}
.nav-side { display: flex; align-items: center; gap: .5rem; }
.main-nav ul { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.main-nav a {
    display: block;
    padding: .45rem .85rem;
    border-radius: var(--radius);
    font-size: .92rem;
    font-weight: 400;
    color: var(--text-2);
    transition: color .15s, background .15s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--text); background: var(--line); }
.btn-nav { background: var(--orange) !important; color: #fff !important; font-weight: 500; }
.btn-nav:hover { background: var(--orange-dark) !important; }

/* Bascule thème */
.theme-toggle {
    background: transparent; border: 1px solid var(--line); color: var(--text);
    width: 36px; height: 36px; border-radius: var(--radius); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: border-color .15s, color .15s;
}
.theme-toggle:hover { border-color: var(--orange); color: var(--orange); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* === Eyebrow / labels === */
.hero-eyebrow, .section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.25rem;
}
.section-label { color: var(--orange); letter-spacing: .14em; margin-bottom: .7rem; }

/* === Hero === */
.hero { background: var(--bg); padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.hero-content { max-width: 720px; }
.hero h1 {
    font-family: var(--font-heading); font-weight: 300;
    font-size: clamp(2rem, 5vw, 3rem); line-height: 1.18; letter-spacing: -.01em;
    margin-bottom: 1.5rem; color: var(--text);
}
.hero h1 em { font-style: normal; font-weight: 500; color: var(--orange); }
.hero h1 b { font-weight: 500; }
.hero-lead { font-size: clamp(1.05rem, 2.5vw, 1.2rem); line-height: 1.6; color: var(--text-2); max-width: 640px; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

/* === Buttons === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .75rem 1.5rem; border-radius: var(--radius);
    font-family: var(--font-heading); font-size: .95rem; font-weight: 500;
    cursor: pointer; border: 1.5px solid transparent; transition: all .15s; line-height: 1;
}
.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--text); }
.btn-outline:hover { background: var(--text); color: var(--bg); }
.btn-outline-dark { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn-outline-dark:hover { background: var(--orange); color: #fff; }
.btn-dark { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn-dark:hover { background: #000; border-color: #000; }
.cta-band .btn-outline { color: var(--on-ink); border-color: rgba(245,243,239,.45); }
.cta-band .btn-outline:hover { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }

/* Bouton Google */
.btn-google {
    background: #fff; color: #1f1f1f; border: 1.5px solid #dadce0; width: 100%;
    font-weight: 500; gap: .6rem;
}
.btn-google:hover { background: #f7f8f8; border-color: #c6c9cd; }
.btn-google svg { width: 18px; height: 18px; }
.auth-sep { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; color: var(--muted); font-size: .78rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* === Sections === */
section { padding: var(--gap) 0; }
.section-title { font-family: var(--font-heading); font-weight: 400; font-size: clamp(1.5rem, 3.5vw, 2rem); line-height: 1.22; letter-spacing: -.01em; color: var(--text); margin-bottom: 1rem; }
.section-lead { font-size: 1.05rem; color: var(--text-2); max-width: 640px; margin-bottom: 1.25rem; font-weight: 300; }

/* === Principes === */
.principes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 2.25rem; }
.principe-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; }
.principe-num { font-family: var(--font-mono); font-size: .9rem; font-weight: 500; color: var(--orange); letter-spacing: .1em; margin-bottom: 1rem; }
.principe-card p { font-size: .98rem; line-height: 1.6; color: var(--text-2); font-weight: 300; }

/* === Bande CTA === */
.cta-band { background: var(--ink); color: var(--on-ink); padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { font-family: var(--font-heading); font-weight: 400; font-size: clamp(1.3rem, 3vw, 1.7rem); max-width: 540px; }
.cta-band p { color: rgba(245,243,239,.7); margin-top: .5rem; font-size: .98rem; font-weight: 300; }

/* === Events === */
.events-list { margin-top: 2rem; }
.event-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 1.5rem; align-items: start; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.event-item:first-child { border-top: 1px solid var(--line); }
.event-date-box { background: var(--ink); color: var(--on-ink); border-radius: var(--radius); padding: .65rem; text-align: center; line-height: 1.2; }
.event-date-box .day { font-family: var(--font-logo); font-weight: 300; font-size: 1.8rem; display: block; }
.event-date-box .month { font-family: var(--font-mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.event-title { font-family: var(--font-heading); font-weight: 500; font-size: 1.1rem; margin-bottom: .35rem; color: var(--text); }
.event-meta { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem .9rem; text-transform: uppercase; letter-spacing: .04em; }
.event-tbd { color: var(--muted); font-style: italic; font-weight: 300; }
.event-actions { align-self: center; }

/* === Tarifs === */
.tarifs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2.25rem; }
.tarif-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.25rem; position: relative; }
.tarif-card.featured { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.tarif-badge { position: absolute; top: -11px; left: 2.25rem; background: var(--orange); color: #fff; font-family: var(--font-mono); font-size: .65rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; padding: .25rem .7rem; border-radius: 100px; }
.tarif-name { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.tarif-price { font-family: var(--font-logo); font-weight: 300; font-size: 2.75rem; line-height: 1; color: var(--text); margin: .9rem 0; }
.tarif-price sup { font-size: 1rem; vertical-align: super; }
.tarif-price sub { font-size: .85rem; font-weight: 400; color: var(--muted); }
.tarif-desc { font-size: .98rem; color: var(--text-2); margin-top: .5rem; line-height: 1.55; font-weight: 300; }
.tarif-card .btn { margin-top: 1.75rem; width: 100%; }

/* === Forms === */
.newsletter-form, .form-soft { background: var(--orange-tint); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; max-width: 560px; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.form-group input, .form-group select, .form-group textarea {
    padding: .65rem .9rem; border: 1px solid var(--line); border-radius: var(--radius);
    font-size: .98rem; font-family: var(--font-body); font-weight: 300;
    background: var(--card); color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(229,106,56,.2); }
.form-note { font-size: .78rem; color: var(--muted); margin-top: .75rem; font-weight: 300; }
.alert { padding: .8rem 1.1rem; border-radius: var(--radius); font-size: .92rem; margin-bottom: 1rem; font-weight: 400; }
.alert-success { background: var(--orange-tint); color: var(--orange); border: 1px solid var(--line); }
.alert-error { background: rgba(220,80,60,.14); color: #f0a99f; border: 1px solid rgba(220,80,60,.3); }
:root[data-theme="light"] .alert-error { color: #a3372b; }

/* === Qui sommes-nous === */
.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.about-block .section-title { margin-bottom: .75rem; }
.about-text p { margin-bottom: 1rem; color: var(--text-2); font-weight: 300; }
.about-text p:last-child { margin-bottom: 0; }
.about-stats { background: var(--orange-tint); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.5rem; }
.about-stats .stat-num { font-family: var(--font-logo); font-weight: 300; font-size: 2.5rem; color: var(--orange); line-height: 1; }
.about-stats .stat-label { font-size: .9rem; color: var(--text-2); margin-top: .25rem; }

/* === Auth / membre === */
.auth-wrapper { min-height: 60vh; display: flex; align-items: flex-start; padding: 3rem 0; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.5rem; width: 100%; max-width: 460px; margin-inline: auto; box-shadow: var(--shadow-md); }
.auth-card h1 { font-family: var(--font-heading); font-weight: 400; font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--text); }
.auth-card .form-group { margin-bottom: 1rem; }
.auth-card .btn { width: 100%; margin-top: .5rem; }
.member-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.member-card h3 { font-family: var(--font-heading); font-weight: 500; font-size: 1.1rem; margin-bottom: .75rem; color: var(--text); }

/* === Page hero === */
.page-hero { background: var(--ink); color: var(--on-ink); padding: clamp(2.5rem, 5vw, 4rem) 0; }
.page-hero h1 { font-family: var(--font-heading); font-weight: 300; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.01em; margin-bottom: .5rem; }
.page-hero p { color: rgba(245,243,239,.7); font-size: 1.05rem; font-weight: 300; }

/* === Divider === */
.divider { border: none; border-top: 1px solid var(--line); margin: var(--gap) 0; }
.note-box { background: var(--orange-tint); border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: var(--radius); padding: 1rem 1.25rem; max-width: 620px; font-size: .92rem; color: var(--text-2); }

/* === Footer === */
.site-footer { background: var(--ink); color: rgba(245,243,239,.6); padding: 3rem 0; margin-top: auto; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-brand p { font-size: .82rem; margin-top: .5rem; font-weight: 300; }
.footer-brand a { color: rgba(245,243,239,.78); text-decoration: underline; }
.footer-brand a:hover { color: var(--on-ink); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.footer-nav a { font-size: .86rem; padding: .25rem; font-weight: 300; }
.footer-nav a:hover { color: var(--on-ink); }
.footer-legal { font-size: .82rem; }
.footer-legal a { color: rgba(245,243,239,.78); }
.footer-legal a:hover { color: var(--on-ink); text-decoration: underline; }

/* === Responsive === */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--bg); padding: 1rem; border-bottom: 1px solid var(--line);
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: .25rem; align-items: stretch; }
    .event-item { grid-template-columns: 70px 1fr; }
    .event-actions { grid-column: 1 / -1; }
    .about-block { grid-template-columns: 1fr; }
    .cta-band-inner { flex-direction: column; align-items: flex-start; }
    .tarifs-grid { grid-template-columns: 1fr; max-width: 420px; }
}
@media (max-width: 480px) {
    .event-item { grid-template-columns: 1fr; }
    .event-date-box { display: none; }
    .logo-tagline { display: none; }
}
