.kicker,
.glow,
.panel,
.stat,
.lead,
p,
span,
strong,
h1,
h2,
h3 {
    color: var(--text);
}

/* =========================
   MODE PAR DÉFAUT (DARK)
========================= */
:root{
    --bg:#0f172a;
    --panel:rgba(255,255,255,.08);
    --text:#e2e8f0;
    --muted:#94a3b8;
    --accent:#7c3aed;
    --accent2:#22c55e;
    --border:rgba(255,255,255,.12);
    --shadow:0 20px 60px rgba(0,0,0,.35);
    --radius:24px;
}

/* =========================
   MODE CLAIR
========================= */
body.light-mode{
    --bg:#f8fafc;
    --panel:rgba(0,0,0,.04);
    --text:#0f172a;
    --muted:#475569;
    --accent:#7c3aed;
    --accent2:#16a34a;
    --border:rgba(0,0,0,.12);
    --shadow:0 20px 40px rgba(0,0,0,.12);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
.top-toggles{
    position: fixed;
    top: 18px;
    right: 18px;

    width:44px;
    height:44px;
    border-radius:12px;

    border:1px solid var(--border);
    background:var(--panel);
    color:var(--text);

    cursor:pointer;
    backdrop-filter: blur(12px);

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:18px;

    transition: all 0.3s ease;
}

.top-toggles:hover{
    transform: translateY(-2px);
}
#lang-toggle{
    right: 70px; /* pour le mettre à côté du dark mode */
}
body{
    margin:0;
    font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

    background:
            radial-gradient(circle at top left, rgba(124,58,237,.25), transparent 32%),
            radial-gradient(circle at top right, rgba(34,197,94,.15), transparent 24%),
            linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);

    color:var(--text);
    min-height:100vh;
    transition: all 0.3s ease;
}

.wrap{
    width:min(1100px, calc(100% - 32px));
    margin:0 auto;
    padding:28px 0 48px;
}

header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    padding:8px 0 28px;
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;
    font-weight:700;
    letter-spacing:2px;
}

.logo{
    width:42px;height:42px;
    border-radius:14px;
    background:linear-gradient(135deg, var(--accent), #06b6d4);
    box-shadow:var(--shadow);
}

nav a{
    color:var(--muted);
    text-decoration:none;
    margin-left:18px;
    font-size:.95rem;
}

nav a:hover{color:var(--muted)}


.dropdown {
    position: relative;
    display: inline-block;
}
/*li{
    list-style: none;
}*/
#menuButton {
    background: none;
    color: var(--muted);
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
}
.dropdown-menu  {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: #333;
    list-style: none;
    top: 100%;
    left: 0;
    transition: oapacity 150ms ease-in-out;
}
.dropdown-menu{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    background:var(--panel);
    border:1px solid var(--border);
    border-radius:12px;
    padding:10px;
    min-width:160px;
    z-index:100;
}

.dropdown.show .dropdown-menu{
    display:block;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border-radius: 6px;
    overflow: hidden;
    z-index: 10;
}

.dropdown-content a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: #333;
}

.dropdown-content a:hover {
    background: #f1f1f1;
}

.dropdown.show .dropdown-content {
    display: block;
}
.visually-hidden {
    color: var(--muted);
    font-size:.95rem;
}

.hero{
    display:grid;
    grid-template-columns: 1.2fr .8fr;
    gap:24px;
    align-items:stretch;
    margin-top:10px;
}

.card{
    background:var(--panel);
    border:1px solid var(--border);
    backdrop-filter:blur(14px);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}

.main{
    padding:40px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    min-height:520px;
    transition: all 0.3s ease;
}

.kicker{
    display:inline-flex;
    width:fit-content;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    border-radius:999px;
    background: rgba(124,58,237,.12);
    border: 1px solid var(--border);
    color: var(--text);
    opacity: .85;
    font-size:.9rem;
    margin-bottom:18px;
}

h1{
    margin:0;
    font-size:clamp(2.4rem, 5vw, 4.8rem);
    line-height:1.02;
    letter-spacing:-.04em;
    max-width:10ch;
}

.lead{
    max-width:58ch;
    color:var(--muted);
    font-size:1.08rem;
    line-height:1.7;
    margin:18px 0 28px;
}

.actions{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:14px 20px;
    border-radius:14px;
    text-decoration:none;
    font-weight:600;
    border:1px solid transparent;
    transition:.2s ease;
}

.btn-primary{
    background:linear-gradient(135deg, var(--accent), #8b5cf6);
    color:white;
}

.btn-secondary{
    background:transparent;
    color:var(--text);
    border-color:var(--border);
}

.btn:hover{transform:translateY(-2px)}

.stats{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:14px;
    margin-top:28px;
}

.stat{
    padding:16px;
    border-radius:18px;
    background:rgba(255,255,255,.04);
    border:1px solid var(--border);
}

.stat strong{
    display:block;
    font-size:1.35rem;
    margin-bottom:6px;
}

.side{
    padding:24px;
    display:flex;
    flex-direction:column;
    gap:18px;
}

.panel{
    padding:20px;
    border-radius:20px;
    background:rgba(255,255,255,.05);
    border:1px solid var(--border);
}

.panel h2{
    margin:0 0 8px;
    font-size:1.1rem;
}

.panel p{
    margin:0;
    color:var(--muted);
    line-height:1.6;
}
.projet{
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 45%;
    border-radius: 25px;
}
.glow{
    margin-top:auto;
    padding:22px;
    border-radius:22px;
    background:linear-gradient(135deg, rgba(124,58,237,.28), rgba(34,197,94,.18));
    border:1px solid rgba(255,255,255,.14);
}

.glow p{
    margin:0;
    color: var(--text);
    line-height:1.7;
}

footer{
    padding:22px 0 0;
    color:var(--muted);
    font-size:.95rem;
    text-align:center;
}
/* En dessous de 1340px : les 2 boutons passent au-dessus de la nav */
@media (max-width: 1340px) {
    .top-toggles {
        position: absolute;      /* basé sur le header */
        top: 0.5rem;
        right: 0.5rem;
        z-index: 9999;           /* au-dessus de la nav */
        display: flex;
        gap: 0.5rem;
    }

    header {
        position: relative;      /* nécessaire pour que .top-toggles en absolute se base dessus */
        padding-top: 3rem;       /* laisse de la place pour les boutons */
    }
}

/* Ton breakpoint 900px */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .main {
        min-height: auto;
    }
}

/* Ton breakpoint 640px */
@media (max-width: 640px) {
    /* Si tu veux que le bouton thème reste fixe en haut même au scroll */
    .top-toggles {
        position: fixed;         /* ou absolute si tu préfères */
        top: 0.5rem;
        right: 0.5rem;
        z-index: 9999;           /* au-dessus du header */
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav a {
        margin: 0 14px 0 0;
    }

    .main {
        padding: 24px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    h1 {
        max-width: none;
    }
}
