/* =====================================================================
   Charte graphique — geoffreygeorge.eu  ·  style « verre » (façon iOS)
   Feuille commune à index.html, cv.html et services.html.
   Chaque page la charge AVANT son propre <style>, qui ne contient plus
   que ce qui lui est spécifique.

   Règles de la charte
   - Police : police système Apple si disponible (SF Pro), sinon Inter.
   - Matière : pavés de verre dépoli (fond translucide + flou + reflet
     clair sur le bord) posés sur une scène sobre : un halo vert/violet
     en haut de page et une trame de points fine, en parallaxe (theme.js).
   - Accent : vert (--accent). C'est la seule couleur « de marque ».
   - Violet : réservé à l'IA, uniquement dans le dégradé --grad-ia
     (et dans le halo du haut de page, très diffus).
   - Boutons : pilule. Principal = noir (blanc en sombre), secondaire =
     verre, IA = dégradé vert → violet.
   - Rayons : 12 / 22 / 30 px, pilule = 999px.
   - Thème : suit l'appareil, puis le choix du visiteur (theme.js).
   ===================================================================== */

/* ---------- Jetons ---------- */
:root {
    color-scheme: light;

    /* Scène (fond sous le verre) : halo en haut de page + trame de points */
    --bg: #f3f4f3;
    --halo-green: rgba(16, 185, 129, 0.22);
    --halo-violet: rgba(167, 139, 250, 0.2);
    --dot: rgba(15, 23, 42, 0.16);

    /* Verre */
    --bg-card: rgba(255, 255, 255, 0.55);       /* pavé de verre */
    --bg-elevated: rgba(255, 255, 255, 0.82);   /* verre plus opaque */
    --bg-inset: rgba(255, 255, 255, 0.5);       /* élément posé dans un pavé */
    --glass-blur: blur(24px) saturate(180%);
    --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    --border: rgba(15, 23, 42, 0.12);
    --border-light: rgba(255, 255, 255, 0.7);

    /* Texte */
    --text-primary: #111214;
    --text-secondary: #4b5058;
    --text-tertiary: #6e747c;

    /* Marque */
    --accent: #10b981;
    --accent-strong: #059669;
    --accent-light: rgba(16, 185, 129, 0.14);
    --accent-text: #047857;           /* vert lisible sur fond clair */
    --ia-green: #34d399;
    --ia-violet: #a78bfa;
    --grad-ia: linear-gradient(135deg, var(--ia-green), var(--ia-violet));
    --purple: #8b5cf6;                /* IA uniquement */
    --purple-light: rgba(139, 92, 246, 0.14);
    --grad-ia-dark: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 27, 75, 0.9) 50%, rgba(76, 29, 149, 0.88) 100%);

    /* États (projets, formulaires) */
    --status-dev: #f59e0b;
    --status-beta: #3b82f6;
    --status-done: #10b981;
    --danger: #ef4444;

    /* Boutons */
    --btn-bg: #111214;
    --btn-color: #ffffff;

    /* Divers */
    --nav-bg: rgba(255, 255, 255, 0.6);
    --cover-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3));
    --icon-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));

    /* Ombres (douces et larges, comme iOS) */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);
    --glass-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);

    /* Formes */
    --radius-sm: 12px;
    --radius: 22px;
    --radius-lg: 30px;
    --radius-pill: 999px;

    /* Mouvement : courbe « ressort » d'iOS */
    --spring: cubic-bezier(0.2, 0.9, 0.25, 1.05);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    /* Typographie */
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, sans-serif;
    --container: 1200px;
}

[data-theme="dark"] {
    color-scheme: dark;

    --bg: #08090b;
    --halo-green: rgba(16, 185, 129, 0.2);
    --halo-violet: rgba(139, 92, 246, 0.2);
    --dot: rgba(255, 255, 255, 0.13);

    --bg-card: rgba(36, 38, 44, 0.5);
    --bg-elevated: rgba(58, 60, 68, 0.72);
    --bg-inset: rgba(255, 255, 255, 0.06);
    --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.14);
    --border-light: rgba(255, 255, 255, 0.1);

    --text-primary: #f5f5f7;
    --text-secondary: #a1a1aa;
    --text-tertiary: #7c7c86;

    --accent-light: rgba(16, 185, 129, 0.18);
    --accent-text: #34d399;

    --btn-bg: #f5f5f7;
    --btn-color: #0b0c0f;

    --nav-bg: rgba(30, 32, 38, 0.55);
    --cover-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    --icon-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.25s ease, color 0.25s ease;
}

img {
    max-width: 100%;
}

::selection {
    background: var(--accent-light);
    color: var(--text-primary);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Navigation ---------- */
/* Barre flottante en capsule de verre, détachée du haut (iOS) */
nav {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(var(--container) - 48px), calc(100% - 24px));
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(30px) saturate(190%);
    -webkit-backdrop-filter: blur(30px) saturate(190%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    box-shadow: var(--glass-edge), var(--glass-shadow);
    transition: box-shadow 0.3s ease, top 0.4s var(--spring), width 0.4s var(--spring);
}

nav.scrolled {
    top: 8px;
    box-shadow: var(--glass-edge), var(--shadow-lg);
}

.nav-container {
    margin: 0 auto;
    padding: 0 8px 0 14px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--text-primary);
    color: var(--bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    position: relative;
}

.logo-mark::after {
    content: '';
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
}

.nav-cta {
    background: var(--btn-bg);
    color: var(--btn-color) !important;
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.theme-toggle,
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: background 0.2s, color 0.2s;
}

.theme-toggle:hover,
.menu-toggle:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

.menu-toggle {
    display: none;
    color: var(--text-primary);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 12px;
    right: 12px;
    z-index: 999;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: var(--nav-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: var(--accent-light);
    color: var(--accent-text);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-links a:not(.nav-cta) {
        display: none;
    }

    .logo-text {
        display: none;
    }
}

/* ---------- Boutons ---------- */
.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--btn-bg);
    color: var(--btn-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-tertiary);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent);
    color: #ffffff;
}

.btn-accent:hover {
    background: var(--accent-strong);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

/* Le seul bouton qui porte du violet : tout ce qui concerne l'IA */
.btn-ia {
    background: var(--grad-ia);
    background-size: 200% 200%;
    color: #0f172a;
    box-shadow: 0 8px 24px rgba(52, 211, 153, 0.25);
    animation: gradShift 5s ease infinite;
}

.btn-ia:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(139, 92, 246, 0.35);
}

/* Variante pour fond sombre (cartes IA) */
.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---------- Pastilles ---------- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--border-light);
    color: var(--text-secondary);
}

.chip-accent {
    background: var(--accent-light);
    color: var(--accent-text);
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-text);
}

/* Pastille « disponible » avec point pulsant */
.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light);
    color: var(--accent-text);
    padding: 7px 15px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-live::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}

/* ---------- Titres de section ---------- */
.page-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.section-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

.section-intro .eyebrow {
    margin-bottom: 10px;
}

.section-intro h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 10px;
}

.section-intro p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ---------- Cartes ---------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

/* ---------- Pied de page ---------- */
footer {
    margin-top: 40px;
    padding: 32px 24px 40px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.footer-inner {
    max-width: calc(var(--container) - 48px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent-text);
}

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ---------- Animations ---------- */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

@keyframes gradShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes auroraMove {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(6%, -6%) scale(1.15); }
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible,
.reveal-scale.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }
}

@media print {
    nav,
    .mobile-menu,
    .theme-toggle {
        display: none !important;
    }
}

/* =====================================================================
   Verre & parallaxe
   ===================================================================== */

/* ---------- Scène : halo + trame de points derrière le verre ---------- */
/* Le <div class="scene"> est ajouté par theme.js ; --sy = défilement.   */
.scene {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Halo vert et violet en haut de page, qui remonte doucement au défilement */
.scene::before {
    content: '';
    position: absolute;
    inset: -10% -10% auto -10%;
    height: 90vh;
    translate: 0 calc(var(--sy, 0) * -0.25px);
    background:
        radial-gradient(ellipse 55% 60% at 30% 0%, var(--halo-green), transparent 70%),
        radial-gradient(ellipse 45% 55% at 80% 5%, var(--halo-violet), transparent 70%);
    will-change: translate;
}

/* Trame de points fine, qui défile en parallaxe et s'efface vers le bas */
.scene::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
    background-size: 22px 22px;
    background-position: 0 calc(var(--sy, 0) * -0.3px);
    -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 15%, #000 25%, transparent 80%);
    mask-image: radial-gradient(ellipse 90% 75% at 50% 15%, #000 25%, transparent 80%);
}

/* ---------- Le verre ---------- */
/* Toutes les surfaces « carte » du site deviennent des pavés de verre.
   Le fond translucide vient de --bg-card (défini plus haut) ; ici on
   ajoute le flou d'arrière-plan, le reflet du bord et l'ombre. */
.glass,
.card,
.project-card,
.path-card:not(.clients),
.timeline-item,
.contact-section,
.service-card,
.process-step,
.cta-section,
.cv-header,
.profile-card,
.skill-card,
.sidebar-card,
.modal,
.custom-modal,
.modal-content,
.mobile-menu {
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-edge), var(--glass-shadow);
    border-color: var(--border-light) !important;
}

.glass {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}

/* Reflet spéculaire en haut des pavés */
.project-card,
.path-card:not(.clients),
.timeline-item,
.service-card,
.process-step,
.skill-card,
.sidebar-card,
.profile-card,
.cv-header {
    position: relative;
}

.project-card > *,
.service-card > * {
    position: relative;
}

/* Pavés au survol : léger soulèvement « ressort » */
.project-card,
.service-card,
.path-card,
.process-step,
.skill-card {
    transition: transform 0.5s var(--spring), box-shadow 0.4s ease, background-color 0.3s ease !important;
}

.project-card:hover,
.service-card:hover,
.path-card:hover,
.process-step:hover,
.skill-card:hover {
    transform: translateY(-6px) scale(1.01) !important;
    box-shadow: var(--glass-edge), var(--shadow-lg) !important;
}

/* Le bouton secondaire devient du verre */
.btn-secondary {
    background: var(--bg-card);
    border-color: var(--border-light);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-edge), var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--border-light);
}

.btn:active {
    transform: scale(0.97) !important;
    transition-duration: 0.1s;
}

/* Pastilles en verre */
.chip,
.contact-link {
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

/* ---------- Sélecteur segmenté (iOS) ---------- */
.segmented {
    display: inline-flex;
    gap: 2px;
    padding: 4px;
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-edge), var(--shadow-sm);
}

.segmented button {
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 18px;
    border: none;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.35s var(--spring), color 0.2s, box-shadow 0.35s;
}

.segmented button:hover {
    color: var(--text-primary);
}

.segmented button.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}

/* ---------- Parallaxe des éléments ---------- */
/* theme.js règle --py (décalage en px) sur tout [data-parallax]. */
[data-parallax] {
    translate: 0 calc(var(--py, 0) * 1px);
    will-change: translate;
}

/* ---------- Apparition au défilement, façon ressort ---------- */
.reveal,
.reveal-scale {
    transition: opacity 0.8s var(--ease-out), transform 0.9s var(--spring) !important;
}

.reveal {
    transform: translateY(40px) scale(0.98);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(36px) scale(0.97);
    transition: opacity 0.8s var(--ease-out), transform 0.9s var(--spring);
    transition-delay: var(--delay, 0s);
}

[data-reveal].visible {
    opacity: 1;
    transform: none;
}

/* ---------- Titres « grand titre » iOS ---------- */
.section-intro h2,
.page-title {
    letter-spacing: -0.035em;
}

@media (prefers-reduced-motion: reduce) {
    .scene::before { translate: none; }
    [data-parallax] { translate: none; }
    [data-reveal] { opacity: 1; transform: none; }
}

@media print {
    .scene { display: none !important; }
}

/* Navigateurs sans flou d'arrière-plan : verre plus opaque */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    :root { --bg-card: rgba(255, 255, 255, 0.92); --nav-bg: rgba(255, 255, 255, 0.95); }
    [data-theme="dark"] { --bg-card: rgba(36, 38, 44, 0.95); --nav-bg: rgba(30, 32, 38, 0.95); }
}

/* ---------- Reflet de lumière (suit la souris, theme.js) ---------- */
:root { --shine: rgba(255, 255, 255, 0.55); }
[data-theme="dark"] { --shine: rgba(255, 255, 255, 0.08); }

.project-card::after,
.path-card::after,
.timeline-item::after,
.service-card::after,
.process-step::after,
.skill-card::after,
.sidebar-card::after,
.profile-card::after,
.cv-header::after,
.contact-section::after,
.cta-section::after,
.glass::after,
.float-chip::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s ease;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), var(--shine), transparent 45%);
}

.contact-section,
.cta-section,
.float-chip {
    position: relative;
}

@media (hover: hover) and (pointer: fine) {
    .project-card:hover::after,
    .path-card:hover::after,
    .timeline-item:hover::after,
    .service-card:hover::after,
    .process-step:hover::after,
    .skill-card:hover::after,
    .sidebar-card:hover::after,
    .profile-card:hover::after,
    .cv-header:hover::after,
    .contact-section:hover::after,
    .cta-section:hover::after,
    .glass:hover::after,
    .float-chip:hover::after {
        opacity: 1;
    }
}

/* ---------- Changement de thème : cercle qui se déploie ---------- */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-new(root) {
    animation: themeReveal 0.75s var(--ease-out);
}

@keyframes themeReveal {
    from { clip-path: circle(0 at var(--tx, 50%) var(--ty, 0)); }
    to { clip-path: circle(var(--tr, 150vmax) at var(--tx, 50%) var(--ty, 0)); }
}

.theme-toggle svg {
    transition: transform 0.6s var(--spring);
}

[data-theme="dark"] .theme-toggle svg {
    transform: rotate(-25deg);
}

.theme-toggle:active svg {
    transform: scale(0.8) rotate(20deg);
}
