/* ============================================================
   TEAM GROUPE — Design System
   ------------------------------------------------------------
   Palette      : Noir profond #111111 · Blanc cassé #F5F5F5
                  Gris argent #858585 · Violet discret #77708F
   Typographie  : Sora (titres) · Inter (texte & interface)
   Thèmes       : sombre (défaut) + clair, via [data-theme]
   ------------------------------------------------------------
   Structure
   01. Tokens de marque (constantes)
   02. Tokens sémantiques — thème sombre
   03. Tokens sémantiques — thème clair
   04. Base & réinitialisation
   05. En-tête / navigation
   06. Boutons
   07. Héro
   08. Sections
   09. Statistiques
   10. Projets / solutions
   11. Valeurs
   12. Partenaires
   13. Équipe
   14. Contact & formulaires
   15. Pied de page & icônes
   16. Pages légales
   17. Cybersécurité (veille, fuites, CVE)
   18. Page d'erreur
   19. Utilitaires
   20. Responsive
   ============================================================ */

/* ------------------------------------------------------------
   01. Tokens de marque (constantes — communs aux deux thèmes)
   ------------------------------------------------------------ */

:root {
    /* Palette officielle */
    --black: #111111;
    --white: #F5F5F5;
    --silver: #858585;
    --violet: #77708F;

    /* Typographie */
    --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
    --font-mono: "Consolas", "SFMono-Regular", monospace;

    /* Espacements (échelle 4 px) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;

    /* Rayons (rappels du cercle du logo) */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --radius-full: 50%;

    /* Mouvement */
    --ease: cubic-bezier(.4, 0, .2, 1);
    --dur: .18s;
    --dur-slow: .3s;

    /* Structure */
    --container: 1200px;
    --gutter: 32px;
    --header-h: 64px;
}

/* ------------------------------------------------------------
   02. Tokens sémantiques — thème sombre (défaut)
   ------------------------------------------------------------ */

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

    --bg: #111111;
    --bg-alt: #0D0D0D;
    --surface: #171717;
    --surface-hover: #1D1D1D;
    --border: #262626;
    --border-light: #3A3A3A;

    --text: #F5F5F5;
    --text-dim: #858585;

    /* Violet discret : secondaire, utilisé avec parcimonie */
    --accent: #9B94BC;              /* variante claire : lisibilité sur noir */
    --accent-solid: #77708F;
    --accent-solid-hover: #6A6382;
    --accent-hover: #B0AAC6;
    --accent-soft: rgba(119, 112, 143, .16);
    --accent-deep: #B9B3CE;
    --accent-deep-soft: rgba(185, 179, 206, .12);
    --on-accent: #FFFFFF;

    /* Anciens noms conservés (styles inline des pages) */
    --teal: #858585;
    --teal-soft: rgba(133, 133, 133, .16);

    /* Couleurs fonctionnelles (statuts uniquement) */
    --green: #6FA57C;
    --green-soft: rgba(111, 165, 124, .16);
    --red: #D9756B;
    --red-soft: rgba(217, 117, 107, .16);
    --warning: #CFA05E;
    --warning-soft: rgba(207, 160, 94, .16);
    --silver-soft: rgba(133, 133, 133, .14);

    /* Bouton principal (inversé : blanc sur noir) */
    --btn-bg: #F5F5F5;
    --btn-bg-hover: #FFFFFF;
    --btn-color: #111111;

    /* En-tête */
    --header-bg: rgba(17, 17, 17, .88);
}

/* ------------------------------------------------------------
   03. Tokens sémantiques — thème clair
   ------------------------------------------------------------ */

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

    --bg: #F5F5F5;
    --bg-alt: #ECECEC;
    --surface: #FFFFFF;
    --surface-hover: #F1F1F1;
    --border: #E2E2E2;
    --border-light: #C9C9C9;

    --text: #111111;
    --text-dim: #6B6B6B;

    --accent: #77708F;
    --accent-solid: #625B84;
    --accent-solid-hover: #575073;
    --accent-hover: #5F5880;
    --accent-soft: rgba(119, 112, 143, .10);
    --accent-deep: #575073;
    --accent-deep-soft: rgba(87, 80, 115, .10);
    --on-accent: #FFFFFF;

    --teal: #6B6B6B;
    --teal-soft: rgba(133, 133, 133, .12);

    --green: #4A7A55;
    --green-soft: rgba(74, 122, 85, .12);
    --red: #A9443D;
    --red-soft: rgba(169, 68, 61, .10);
    --warning: #8F6A2B;
    --warning-soft: rgba(143, 106, 43, .12);
    --silver-soft: rgba(133, 133, 133, .12);

    --btn-bg: #111111;
    --btn-bg-hover: #000000;
    --btn-color: #F5F5F5;

    --header-bg: rgba(245, 245, 245, .9);
}

/* ------------------------------------------------------------
   04. Base & réinitialisation
   ------------------------------------------------------------ */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--dur-slow) var(--ease), color var(--dur-slow) var(--ease);
}

img { max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

::selection {
    background: var(--accent-solid);
    color: #FFFFFF;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}
a:hover { color: var(--accent-hover); }

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

button { font: inherit; }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .animate-on-scroll { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   05. En-tête / navigation
   ------------------------------------------------------------ */

header {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text) !important;
}
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--accent);
    display: grid;
    place-items: center;
}
.brand-mark svg {
    width: 18px;
    height: 18px;
    display: block;
}

.nav-tools {
    order: 3;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-left: var(--space-4);
}

nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    padding-left: var(--space-4);
    order: 2;
}

nav a {
    color: var(--text-dim);
    padding: 8px 13px;
    font-weight: 500;
    font-size: .875rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
nav a:hover {
    color: var(--text);
    background: var(--surface-hover);
}
nav a.active {
    color: var(--accent-hover);
    background: var(--accent-soft);
}

/* Menus déroulants : produits gaming / services */
.nav-group {
    position: relative;
    display: flex;
    align-items: center;
}
.nav-group > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.nav-chevron {
    width: .9em;
    height: .9em;
    transition: transform var(--dur) var(--ease);
}
.nav-group:hover .nav-chevron,
.nav-group:focus-within .nav-chevron { transform: rotate(180deg); }

.nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 236px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
    z-index: 120;
}
.nav-menu::before {
    /* zone tampon pour le survol */
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}
.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-menu a {
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: .85rem;
}
.nav-menu a:hover { background: var(--surface-hover); color: var(--text); }
.nav-menu a.active {
    background: var(--accent-soft);
    color: var(--accent-hover);
}

/* Bascule de thème — cercle du logo */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.theme-toggle:hover {
    color: var(--text);
    border-color: var(--border-light);
    background: var(--surface-hover);
}
.theme-toggle:active { background: var(--surface); }
.theme-toggle svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: transparent;
    cursor: pointer;
    z-index: 110;
    transition: border-color var(--dur) var(--ease);
}
.hamburger:hover { border-color: var(--border-light); }
.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--dur-slow) var(--ease), opacity var(--dur) var(--ease);
}
header.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.nav-open .hamburger span:nth-child(2) { opacity: 0; }
header.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   06. Boutons
   ------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 12px 26px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .01em;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--dur) var(--ease),
                border-color var(--dur) var(--ease),
                color var(--dur) var(--ease);
}

/* Principal : noir & blanc, contraste maximal */
.btn-primary {
    background: var(--btn-bg);
    color: var(--btn-color);
}
.btn-primary:hover {
    background: var(--btn-bg-hover);
    color: var(--btn-color);
}

/* Secondaire : contour discret */
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-light);
}
.btn-ghost:hover {
    background: var(--surface-hover);
    border-color: var(--text-dim);
    color: var(--text);
}

/* Accent : violet, usage parcimonieux */
.btn-teal {
    background: var(--accent-solid);
    color: var(--on-accent);
}
.btn-teal:hover {
    background: var(--accent-solid-hover);
    color: var(--on-accent);
}

/* ------------------------------------------------------------
   07. Héro
   ------------------------------------------------------------ */

.hero {
    max-width: var(--container);
    margin: 0 auto;
    padding: 112px var(--gutter) 88px;
    position: relative;
    overflow: hidden;
}

/* Rappels subtils du double cercle du logo */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: var(--radius-full);
    pointer-events: none;
}
.hero::after {
    width: 420px;
    height: 420px;
    border: 1px solid var(--border);
    right: 64px;
    top: 76px;
}
.hero::before {
    width: 360px;
    height: 360px;
    border: 1px solid var(--border-light);
    right: 94px;
    top: 106px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: .72rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .18em;
    margin-bottom: var(--space-5);
}
.hero-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: var(--radius-full);
}

.hero h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(2.4rem, 5.2vw, 4rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.06;
    margin-bottom: var(--space-5);
    max-width: 720px;
}

.hero p {
    position: relative;
    z-index: 1;
    color: var(--text-dim);
    font-size: 1.06rem;
    max-width: 540px;
    line-height: 1.75;
    margin-bottom: var(--space-7);
}

.hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* ------------------------------------------------------------
   08. Sections
   ------------------------------------------------------------ */

main {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter) var(--space-9);
}

.section { padding: var(--space-8) 0; }

.section + .section { border-top: 1px solid var(--border); }

.section-header { margin-bottom: var(--space-7); }

.section-header .label,
.legal-header .label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--accent);
    margin-bottom: var(--space-3);
}
.section-header .label::before,
.legal-header .label::before {
    content: "";
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.section-header h1,
.section-header h2 {
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: var(--space-2);
}

.section-header p {
    color: var(--text-dim);
    font-size: 1rem;
    max-width: 540px;
    line-height: 1.7;
}

/* ------------------------------------------------------------
   09. Statistiques
   ------------------------------------------------------------ */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 0 0 var(--space-8) 0;
}

.stat {
    background: var(--surface);
    padding: var(--space-6) var(--space-5);
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1;
    margin-bottom: var(--space-2);
}
.stat-number.amber { color: var(--accent); }
.stat-number.teal { color: var(--text-dim); }
.stat-number.green { color: var(--accent-deep); }

.stat-label {
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* ------------------------------------------------------------
   10. Projets / solutions
   ------------------------------------------------------------ */

.project-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.project-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-7);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-6);
    align-items: center;
    transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.project-item:hover {
    border-color: var(--border-light);
    background: var(--surface-hover);
}

/* Cercle : rappel du logo */
.project-mark {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .02em;
    flex-shrink: 0;
}
.project-mark.amber { background: var(--accent-soft); color: var(--accent); }
.project-mark.teal { background: var(--silver-soft); color: var(--text-dim); }
.project-mark.green { background: var(--accent-deep-soft); color: var(--accent-deep); }

.project-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    letter-spacing: -.01em;
}

.project-body p {
    color: var(--text-dim);
    font-size: .9rem;
    line-height: 1.65;
    margin-bottom: var(--space-4);
}

.project-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.project-tags span {
    font-size: .66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-dim);
}

.project-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 168px;
}

/* ------------------------------------------------------------
   11. Valeurs
   ------------------------------------------------------------ */

.values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.value {
    background: var(--surface);
    padding: var(--space-6) var(--space-5);
}

.value-symbol {
    width: 46px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    display: grid;
    place-items: center;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: var(--space-4);
    transition: border-color var(--dur) var(--ease);
}
.value:hover .value-symbol { border-color: var(--border-light); }
.value-symbol .icon { width: 17px; height: 17px; }

.value h4 {
    font-size: .92rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -.01em;
}

.value p {
    color: var(--text-dim);
    font-size: .82rem;
    line-height: 1.6;
}

.value-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--accent);
}
.value-link:hover { color: var(--accent-hover); }

/* ------------------------------------------------------------
   12. Partenaires
   ------------------------------------------------------------ */

.partners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.partner {
    background: var(--surface);
    padding: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    transition: background-color var(--dur) var(--ease);
}
.partner:hover { background: var(--surface-hover); }

.partner-letter {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.partner strong {
    display: block;
    font-family: var(--font-display);
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.partner span {
    font-size: .78rem;
    color: var(--text-dim);
    line-height: 1.45;
}

/* ------------------------------------------------------------
   13. Équipe
   ------------------------------------------------------------ */

.team {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-4);
}

.member {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-5);
    text-align: center;
    transition: border-color var(--dur) var(--ease);
}
.member:hover { border-color: var(--border-light); }

.member-avatar {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-full);
    background: var(--bg);
    border: 1px solid var(--border);
    margin: 0 auto var(--space-5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: var(--space-1);
}

.member-role {
    font-family: var(--font-display);
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--accent);
    margin-bottom: var(--space-4);
}

.member p {
    color: var(--text-dim);
    font-size: .85rem;
    line-height: 1.6;
}

/* ------------------------------------------------------------
   14. Contact & formulaires
   ------------------------------------------------------------ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.contact-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: border-color var(--dur) var(--ease);
}
.contact-item:hover { border-color: var(--border-light); }

.contact-item h3 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.contact-item p {
    color: var(--text-dim);
    font-size: .88rem;
    line-height: 1.65;
    margin-bottom: var(--space-4);
}

.contact-email {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .82rem;
    color: var(--accent);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.contact-email:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-group { margin-bottom: var(--space-4); }

.form-group.full { grid-column: 1 / -1; }

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-size: .68rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: var(--space-2);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: .9rem;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover { border-color: var(--border-light); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.account-section { max-width: 980px; margin-left: auto; margin-right: auto; }
.account-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.account-card { padding: clamp(20px, 4vw, 32px); }
.account-card h2 { margin: 0 0 var(--space-5); font-size: 1.2rem; }
.account-form .btn { margin-top: var(--space-2); }
.account-form small { display: block; margin-top: var(--space-2); color: var(--text-dim); font-size: .78rem; }
.account-forgot-form { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.account-forgot-form label { text-transform: none; letter-spacing: 0; font-size: .82rem; }
.account-privacy { margin: var(--space-4) 0 0; color: var(--text-dim); font-size: .8rem; }
.account-privacy a { color: var(--accent); }
.account-status { margin: 0 0 var(--space-4); padding: 13px 16px; border: 1px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text); }
.account-status.is-error { border-color: var(--red); background: var(--red-soft); }
.account-reset { max-width: 560px; margin: 0 auto; }

@media (max-width: 640px) {
    .account-layout { grid-template-columns: 1fr; }
}

.form-inline {
    display: flex;
    gap: var(--space-2);
}

/* ------------------------------------------------------------
   15. Pied de page & icônes
   ------------------------------------------------------------ */

footer {
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--space-6) var(--gutter);
    display: flex;
    gap: var(--space-5);
    flex-wrap: wrap;
    align-items: center;
    font-size: .8rem;
    color: var(--text-dim);
}

.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
    flex-shrink: 0;
}
.icon-sm { width: 0.85em; height: 0.85em; }
.icon-lg { width: 1.25em; height: 1.25em; }

.footer-links {
    display: flex;
    gap: var(--space-4);
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    font-weight: 500;
    transition: color var(--dur) var(--ease);
}
.footer-links a:hover { color: var(--text); }

.footer-social {
    display: flex;
    gap: var(--space-2);
    margin-left: auto;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.footer-social a:hover {
    color: var(--text);
    border-color: var(--border-light);
    background: var(--surface-hover);
}

/* ------------------------------------------------------------
   16. Pages légales
   ------------------------------------------------------------ */

.legal-header {
    padding-top: var(--space-7);
    margin-bottom: var(--space-7);
}

.legal-header h1 {
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: var(--space-3);
}

.legal-header p {
    color: var(--text-dim);
    font-size: 1rem;
    max-width: 620px;
    line-height: 1.7;
}

.legal-meta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: .78rem;
    color: var(--text-dim);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-top: var(--space-4);
}

.legal-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-7);
    margin-bottom: var(--space-4);
    transition: border-color var(--dur) var(--ease);
}
.legal-section:hover { border-color: var(--border-light); }

.legal-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    letter-spacing: -.01em;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.legal-section h2 .icon { color: var(--accent); }

.legal-section p,
.legal-section li {
    color: var(--text-dim);
    font-size: .9rem;
    line-height: 1.75;
    margin-bottom: 10px;
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
}

.legal-section ul li {
    padding-left: 20px;
    position: relative;
}

.legal-section ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.legal-section a { color: var(--accent); }

/* ------------------------------------------------------------
   17. Cybersécurité (veille, fuites, CVE)
   ------------------------------------------------------------ */

.cyber-hero {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--space-8) var(--gutter) var(--space-7);
}

.cyber-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

.cyber-hero p {
    color: var(--text-dim);
    font-size: 1.02rem;
    max-width: 620px;
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.search-box {
    display: flex;
    gap: var(--space-2);
    max-width: 500px;
}
.search-box input {
    flex: 1;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text);
    font: inherit;
    font-size: .9rem;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.search-box input:hover { border-color: var(--border-light); }
.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-box input::placeholder { color: var(--text-dim); }

.filter-bar {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: var(--space-5);
}
.filter-bar input,
.filter-bar select {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text);
    font: inherit;
}
.filter-bar input:focus,
.filter-bar select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.filter-bar label { align-self: center; color: var(--text-dim); font-size: .85rem; }
.filter-bar #breach-search { flex: 1 1 240px; }
.filter-bar input[type="date"] { flex: 1 1 140px; min-width: 140px; }
.quick-links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filter-btn {
    padding: 6px 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-dim);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.filter-btn:hover,
.filter-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.breach-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-3);
    transition: border-color var(--dur) var(--ease);
}
.breach-card:hover { border-color: var(--border-light); }

.breach-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
}
.breach-card .breach-meta {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-3);
}
.breach-card .breach-meta span {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.severity-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 11px;
    border-radius: var(--radius-pill);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.severity-badge.critical { background: var(--red-soft); color: var(--red); }
.severity-badge.high { background: var(--warning-soft); color: var(--warning); }
.severity-badge.medium { background: var(--silver-soft); color: var(--text-dim); }
.severity-badge.low { background: var(--green-soft); color: var(--green); }

.cve-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-3);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-5);
    align-items: start;
    transition: border-color var(--dur) var(--ease);
}
.cve-card:hover { border-color: var(--border-light); }

.cve-score {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}
.cve-score.critical { background: var(--red-soft); color: var(--red); }
.cve-score.high { background: var(--warning-soft); color: var(--warning); }
.cve-score.medium { background: var(--silver-soft); color: var(--text-dim); }

.cve-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-1);
}
.cve-card .cve-id {
    font-family: var(--font-mono);
    font-size: .82rem;
    color: var(--accent);
    margin-bottom: var(--space-2);
}
.cve-card p {
    color: var(--text-dim);
    font-size: .88rem;
    line-height: 1.65;
}
.cve-card .cve-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: var(--space-2);
}

.timeline {
    position: relative;
    padding-left: var(--space-5);
}
.timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    padding-bottom: var(--space-6);
}
.timeline-item::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: var(--radius-full);
    border: 3px solid var(--bg);
}

.newsletter-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-7) var(--space-6);
    text-align: center;
    margin-top: var(--space-7);
}

/* Pastille de statut (ex. « En développement ») */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-display);
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: 7px 15px;
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    color: var(--accent-hover);
    border: 1px solid var(--border);
    margin-bottom: var(--space-4);
}
/* Variante « disponible / sorti » */
.status-pill.is-live {
    background: var(--green-soft);
    color: var(--green);
}
.status-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: currentColor;
}

/* En-tête de page de service (aligné sur les sections) */
.page-hero {
    padding: var(--space-7) 0 var(--space-6);
}
.page-hero .hero-eyebrow { margin-bottom: var(--space-4); }
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-bottom: var(--space-4);
}
.page-hero p {
    color: var(--text-dim);
    font-size: 1.02rem;
    max-width: 640px;
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

/* Étapes (méthode de travail) */
.timeline-item h4 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -.01em;
}
.timeline-item p {
    color: var(--text-dim);
    font-size: .88rem;
    line-height: 1.65;
}

.newsletter-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
}
.newsletter-box p {
    color: var(--text-dim);
    font-size: .9rem;
    margin-bottom: var(--space-5);
}
.newsletter-box .form-inline {
    max-width: 400px;
    margin: 0 auto;
}

/* ------------------------------------------------------------
   18. Page d'erreur
   ------------------------------------------------------------ */

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: var(--space-9) var(--gutter);
}
.error-page .error-code {
    font-family: var(--font-display);
    font-size: clamp(5rem, 15vw, 8rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -.04em;
    opacity: .3;
}
.error-page h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: var(--space-4) 0 var(--space-3);
}
.error-page p {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: var(--space-6);
    max-width: 420px;
}

/* ------------------------------------------------------------
   19. Utilitaires
   ------------------------------------------------------------ */

.skip-to-content {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    background: var(--accent-solid);
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .85rem;
    z-index: 200;
    transition: top var(--dur) var(--ease);
}
.skip-to-content:focus { top: var(--space-4); }

.back-to-top {
    position: fixed;
    bottom: var(--space-5);
    right: var(--space-5);
    width: 46px;
    height: 46px;
    background: var(--btn-bg);
    color: var(--btn-color);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-slow) var(--ease), background-color var(--dur) var(--ease);
    z-index: 90;
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}
.back-to-top:hover { background: var(--btn-bg-hover); }

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------------------------------------
   20. Responsive
   ------------------------------------------------------------ */

@media (max-width: 1080px) {
    .hero::before,
    .hero::after { display: none; }
}

@media (max-width: 900px) {
    .hero h1 { font-size: 2.8rem; }
    .stats { grid-template-columns: 1fr 1fr; }
    .values { grid-template-columns: 1fr 1fr; }
    .partners { grid-template-columns: 1fr; }
    .project-item {
        grid-template-columns: 1fr;
        text-align: center;
        padding: var(--space-6) var(--space-5);
    }
    .project-mark { margin: 0 auto; }
    .project-body h3 { margin-top: var(--space-2); }
    .project-actions {
        flex-direction: row;
        justify-content: center;
        min-width: 0;
    }
    .project-tags { justify-content: center; }
    .cve-card { grid-template-columns: 1fr; }
    .cve-score { margin: 0 auto; }
    .cve-card .cve-tags { justify-content: center; }
    .checklist { columns: 1; }
}

@media (max-width: 640px) {
    :root { --gutter: 24px; }

    .hero { padding: 64px var(--gutter) 56px; }
    .hero h1 { font-size: 2.2rem; }
    .cyber-hero { padding: 64px var(--gutter) 40px; }

    main { padding-bottom: var(--space-8); }
    .section { padding: var(--space-7) 0; }
    .section-header { margin-bottom: var(--space-6); }

    .stats, .values { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .team { grid-template-columns: 1fr; }

    .legal-section { padding: var(--space-5); }

    .brand { font-size: .72rem; gap: 12px; }
    .brand-mark { width: 32px; height: 32px; flex-basis: 32px; }

    .search-box { flex-direction: column; }
    .newsletter-box .form-inline { flex-direction: column; }
    .filter-bar { justify-content: center; }
    .filter-bar input[type="search"],
    .filter-bar input[type="date"],
    .filter-bar select { width: 100%; }
    .footer-social { margin-left: 0; }
    .footer-inner { padding: var(--space-5) var(--gutter); }
}

/* Basculer avant que la navigation complète ne déborde. */
@media (max-width: 1360px) {
    .nav-tools { margin-left: auto; }
    .hamburger { display: flex; }

    nav {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-4) var(--gutter);
        padding-left: var(--gutter);
        gap: var(--space-1);
        z-index: 100;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    nav a {
        padding: 12px 16px;
        font-size: .95rem;
    }
    header.nav-open nav { display: flex; }

    /* Menus déroulants dépliés en liste simple */
    .nav-group { flex-direction: column; align-items: stretch; }
    .nav-chevron { display: none; }
    .nav-group > a {
        font-weight: 600;
        color: var(--text);
        border-top: 1px solid var(--border);
        border-radius: 0;
        margin-top: var(--space-2);
        text-transform: none;
    }
    .nav-menu {
        position: static;
        min-width: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0 0 0 var(--space-4);
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
        gap: 0;
    }
    .nav-menu::before { display: none; }
    .nav-menu a {
        padding: 9px 16px;
        font-size: .9rem;
        color: var(--text-dim);
        border-left: 1px solid var(--border);
        border-radius: 0;
    }
    .nav-menu a.active {
        border-left-color: var(--accent);
        background: transparent;
        color: var(--accent-hover);
    }
}

/* ------------------------------------------------------------
   12. Sélecteurs d'en-tête — langue + couleur du site
   ------------------------------------------------------------ */

.picker {
    position: relative;
    display: inline-flex;
}

.picker-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    cursor: pointer;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.picker-btn:hover {
    color: var(--text);
    border-color: var(--border-light);
    background: var(--surface-hover);
}
.picker-btn:active { background: var(--surface); }
.picker-btn[aria-expanded="true"] {
    color: var(--text);
    border-color: var(--border-light);
    background: var(--surface);
}
.account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-dim);
    font-size: .76rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.account-link:hover {
    color: var(--text);
    border-color: var(--border-light);
    background: var(--surface-hover);
}
.account-link svg { width: 16px; height: 16px; flex: none; }
.account-link span { margin-left: 7px; }
.account-switch { display: flex; justify-content: center; gap: 10px; margin: 0 auto 24px; }
.account-switch .btn { min-width: 160px; text-align: center; }
.account-security { margin: 26px 0 22px; padding: 22px 0 18px; border-top: 1px solid var(--border); }
.account-security h3 { margin: 0 0 8px; }
.account-security > p, .account-mfa-panel > p { color: var(--text-dim); line-height: 1.6; }
.account-security-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.account-mfa-panel { margin-top: 18px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.account-secret { display: block; margin: 8px 0 16px; padding: 12px; overflow-wrap: anywhere; border-radius: var(--radius-sm); background: var(--surface-hover); color: var(--text); }
.account-recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 16px; overflow-wrap: anywhere; border-radius: var(--radius-sm); background: var(--surface-hover); color: var(--text); }
.account-passkey-list { display: grid; gap: 8px; padding-left: 20px; color: var(--text-dim); }
.picker-btn svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.lang-code {
    font-family: var(--font-display);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .05em;
    line-height: 1;
}

.accent-dot {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    background: var(--accent-solid);
    border: 1px solid rgba(255, 255, 255, .18);
    transition: background-color var(--dur) var(--ease);
}

.picker-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 236px;
    max-width: min(88vw, 300px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    z-index: 130;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}
.picker-menu[hidden] { display: none; }

.picker-title {
    font-family: var(--font-display);
    font-size: .66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--text-dim);
    margin: 0 0 12px;
}

.picker-hint {
    font-size: .72rem;
    line-height: 1.45;
    color: var(--text-dim);
    margin: 12px 0 0;
}

/* Pastilles de couleur */
.accent-swatches {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 9px;
    justify-items: center;
}
.accent-swatch {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    background: var(--sw, transparent);
    padding: 0;
    cursor: pointer;
    transition: transform var(--dur) var(--ease);
}
.accent-swatch:hover { transform: scale(1.14); }
.accent-swatch[aria-pressed="true"] {
    outline: 2px solid var(--text);
    outline-offset: 2px;
}
.accent-custom {
    display: inline-flex;
    width: 26px;
    height: 26px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid var(--border-light);
    cursor: pointer;
    background: conic-gradient(#f47a74, #f2c94c, #4cc38a, #38c4e6, #8b9cff, #e879f9, #f47a74);
}
.accent-custom-input {
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
    opacity: 0;
}
.accent-custom:hover .accent-custom-input,
.accent-custom:focus-within .accent-custom-input { opacity: 1; }

/* Liste des langues */
.lang-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 330px;
    overflow-y: auto;
}
.lang-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: .86rem;
    color: var(--text);
    text-decoration: none;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang-list a:hover {
    background: var(--surface-hover);
    color: var(--text);
}
.lang-list a[aria-current="true"] {
    background: var(--accent-soft);
    color: var(--accent-hover);
}
.lang-list a[aria-current="true"]::after {
    content: "\2713";
    font-size: .74rem;
    opacity: .9;
}

@media (max-width: 420px) {
    .picker-btn { width: 34px; height: 34px; }
    .picker-menu { right: -4px; }
    .account-link { width: 34px; min-height: 34px; padding: 0; }
    .account-link span { display: none; }
}

/* ------------------------------------------------------------
   TEAM GROUPE — finition de la page d’accueil
   ------------------------------------------------------------ */
.hero-home {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    min-height: 470px;
    padding-top: 76px;
    padding-bottom: 64px;
}
.hero-home::before,
.hero-home::after { display: none; }
.hero-copy { position: relative; z-index: 1; }
.hero-home h1 { max-width: 680px; font-size: clamp(2.6rem, 5vw, 4.4rem); }
.hero-home h1 span { color: var(--accent); }
.hero-home p { max-width: 510px; }

.hero-orbit {
    position: relative;
    width: min(100%, 430px);
    aspect-ratio: 1;
    justify-self: end;
    isolation: isolate;
}
.orbit-ring {
    position: absolute;
    inset: 9%;
    border: 1px solid var(--border-light);
    border-radius: 50%;
}
.orbit-ring-outer::before,
.orbit-ring-inner::before {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    top: 14%;
    left: 12%;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px var(--accent-soft);
}
.orbit-ring-inner { inset: 22%; border-style: dashed; opacity: .72; }
.orbit-core {
    position: absolute;
    inset: 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-dim);
    font: 600 .58rem/1.3 var(--font-display);
    letter-spacing: .12em;
    text-align: center;
}
.orbit-core-mark { color: var(--text); font: 700 1.2rem/1 var(--font-display); letter-spacing: -.06em; }
.orbit-node {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 13px 9px 9px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg);
    color: var(--text) !important;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.orbit-node:hover { border-color: var(--accent); background: var(--surface); transform: translateY(-2px); }
.orbit-node-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font: 700 .62rem var(--font-display);
}
.orbit-node-top { top: 8%; left: 50%; transform: translateX(-50%); }
.orbit-node-top:hover { transform: translate(-50%, -2px); }
.orbit-node-right { top: 48%; right: -3%; }
.orbit-node-bottom { bottom: 10%; left: 50%; transform: translateX(-50%); }
.orbit-node-bottom:hover { transform: translate(-50%, -2px); }
.orbit-caption {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    color: var(--text-dim);
    font: 600 .57rem var(--font-display);
    letter-spacing: .17em;
    text-align: center;
    transform: translateX(-50%);
}
.discipline-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0 0 var(--space-7);
    padding: 17px 20px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
    font: 600 .69rem var(--font-display);
    letter-spacing: .1em;
    text-align: center;
    text-transform: uppercase;
}
.discipline-strip i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.footer-layout {
    display: grid;
    grid-template-columns: minmax(200px, 1.45fr) repeat(5, minmax(100px, 1fr));
    align-items: start;
    gap: clamp(20px, 3vw, 42px);
    padding-top: 48px;
    padding-bottom: 40px;
}
.footer-brand-col .brand { display: inline-flex; gap: 12px; margin-bottom: 18px; }
.footer-brand-col .brand-mark { width: 32px; height: 32px; flex-basis: 32px; }
.footer-brand-col p { max-width: 240px; margin: 0 0 18px; color: var(--text-dim); font-size: .84rem; line-height: 1.65; }
.footer-contact-link { font-size: .8rem; font-weight: 600; }
.footer-contact-link span { display: inline-block; margin-left: 4px; transition: transform var(--dur) var(--ease); }
.footer-contact-link:hover span { transform: translate(2px, -2px); }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-column h2 { margin-bottom: 5px; color: var(--text); font: 600 .67rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.footer-column a { color: var(--text-dim); font-size: .78rem; line-height: 1.5; }
.footer-column a:hover { color: var(--text); }
.footer-bottom {
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px var(--gutter) 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: .73rem;
}
.footer-bottom .footer-social { margin-left: 0; }

/* Cohérence des éléments réutilisés sur toutes les pages. */
.section-header { max-width: 760px; }
.project-item, .value, .partner, .legal-section, .account-card {
    transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.project-item { border-radius: var(--radius-md); }
.project-item:hover { transform: translateY(-2px); }
.value { min-height: 190px; }
.value-symbol { color: var(--accent); }
footer { border-top: 1px solid var(--border); }
.footer-inner { gap: 20px; }
@media (max-width: 900px) {
    .hero-home { grid-template-columns: 1fr; min-height: 0; gap: 24px; padding-top: 64px; }
    .hero-orbit { width: min(100%, 360px); justify-self: center; }
    .footer-layout { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-brand-col { grid-column: 1 / -1; }
    .footer-brand-col p { max-width: 360px; }
}
@media (max-width: 640px) {
    .hero-home { padding-top: 48px; padding-bottom: 40px; }
    .hero-home h1 { font-size: clamp(2.3rem, 10vw, 3.2rem); }
    .hero-orbit { width: min(100%, 320px); }
    .discipline-strip { gap: 10px; padding: 14px 4px; font-size: .59rem; }
    .orbit-node { font-size: .67rem; }
    .orbit-node-right { right: -2%; }
    .value { min-height: auto; }
    .footer-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-top: 34px; }
    .footer-brand-col { grid-column: 1 / -1; }
    .footer-bottom { padding-right: var(--gutter); padding-left: var(--gutter); }
}

/* Petits écrans : évite le débordement horizontal de l’en-tête */
@media (max-width: 420px) {
    .navbar { gap: 8px; padding: 0 16px; }
    .nav-tools { gap: 6px; }
}

/* ============================================================
   REFONTE V2 — direction sobre et professionnelle
   Couleurs de marque inchangées ; typographie IBM Plex Sans ;
   thème clair par défaut, thème sombre disponible.
   ============================================================ */

:root {
    --font-display: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
    --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --header-h: 72px;
}

[data-theme="light"] {
    --bg: #FFFFFF;
    --bg-alt: #F5F5F5;
    --surface: #FFFFFF;
    --surface-hover: #FAFAFA;
    --border: #E2E2E2;
    --border-light: #C9C9C9;
    --text: #111111;
    --text-dim: #555555;
    --accent: #625B84;
    --accent-hover: #4E4870;
    --header-bg: #FFFFFF;
    --shadow-panel: 0 1px 2px rgba(17, 17, 17, .04), 0 8px 24px rgba(17, 17, 17, .05);
    --status-live: #3D6B48;
    --status-team: #575073;
    --status-dev: #7A5A22;
    --status-planned: #5C5C5C;
}

[data-theme="dark"] {
    --bg-alt: #161616;
    --text-dim: #A3A3A3;
    --header-bg: #111111;
    --shadow-panel: none;
    --status-live: #8FBF9A;
    --status-team: #B9B3CE;
    --status-dev: #D9B27A;
    --status-planned: #A3A3A3;
}

/* Base */
body { line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -.015em; }

/* En-tête : fond plein, sans flou */
header { background: var(--header-bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand, .brand-name { text-transform: none; letter-spacing: 0; font-weight: 600; }

/* Boutons */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: .95rem;
    letter-spacing: 0;
    padding: 12px 22px;
    min-height: 44px;
}
.btn-ghost { background: var(--surface); }
.btn-ghost:hover { background: var(--surface); border-color: var(--text); }

/* Étiquettes : plus de majuscules espacées ni de pastilles */
.hero-eyebrow,
.section-header .label,
.legal-header .label {
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--accent);
}
.hero-eyebrow::before,
.section-header .label::before,
.legal-header .label::before { display: none; }

.stat-label, .project-tags span, .member-role, .form-group label,
.severity-badge, .status-pill, .picker-title, .discipline-strip, .footer-column h2 {
    text-transform: none;
    letter-spacing: 0;
}

/* Héros (toutes pages) */
.hero::before, .hero::after { display: none; }
.hero h1 {
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.12;
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
}
.hero p { color: var(--text-dim); font-size: 1.12rem; line-height: 1.65; }

/* Héros d'accueil : bandeau gris pleine largeur + panneau d'état */
.hero-home {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    padding-top: 88px;
    padding-bottom: 96px;
    min-height: 0;
    overflow: visible;
    background: var(--bg-alt);
    box-shadow: 0 0 0 100vmax var(--bg-alt);
    clip-path: inset(0 -100vmax);
}
.hero-home h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); max-width: 620px; }

.status-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-panel);
}
.status-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.status-panel-head h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; margin: 0; }
.status-panel-head span { font-size: .875rem; color: var(--text-dim); }
.status-list { list-style: none; margin: 0; padding: 0 24px; }
.status-list li + li { border-top: 1px solid var(--border); }
.status-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 15px 0;
    color: var(--text);
    font-weight: 500;
}
.status-list a:hover .status-name { color: var(--accent); }
.status-name small { display: block; font-size: .875rem; font-weight: 400; color: var(--text-dim); }

/* Statuts : forme + couleur + texte */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 500; white-space: nowrap; }
.status::before { content: ""; flex-shrink: 0; box-sizing: border-box; }
.status-live { color: var(--status-live); }
.status-live::before { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-team { color: var(--status-team); }
.status-team::before { width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.status-dev { color: var(--status-dev); }
.status-dev::before { width: 9px; height: 9px; border-radius: 50%; border: 2px solid currentColor; }
.status-planned { color: var(--status-planned); }
.status-planned::before { width: 10px; height: 2px; background: currentColor; }

/* Bande des domaines */
.discipline-strip {
    margin-top: 0;
    font: 500 .95rem var(--font-body);
    color: var(--text-dim);
    gap: 28px;
}

/* Sections */
.section { padding: 88px 0; }
.section-header { margin-bottom: 48px; }
.section-header h1,
.section-header h2 {
    font-size: clamp(1.75rem, 2.6vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.2;
}
.section-header p { font-size: 1.06rem; max-width: 640px; }

/* Cartes et listes de projets */
.project-item {
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: none;
}
.project-item:hover { transform: none; background: var(--surface); border-color: var(--border-light); }
.project-mark {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    font-size: .95rem;
    font-weight: 600;
}
.project-body h3 { font-size: 1.25rem; font-weight: 600; }
.project-body p { font-size: .98rem; }
.project-tags span {
    font-size: .8rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    padding: 4px 10px;
}

.value, .partner, .legal-section, .account-card, .breach-card, .contact-item {
    border-radius: var(--radius-lg);
    box-shadow: none;
}
.value { min-height: 0; }
.value-symbol { color: var(--accent); }
.value h4 { font-weight: 600; }

/* Statistiques */
.stat-number { font-weight: 600; letter-spacing: -.02em; }

/* Formulaires */
input, select, textarea { border-radius: var(--radius-sm); font-family: var(--font-body); }

/* Pied de page */
footer { background: var(--bg); }
.footer-column h2 { font: 600 .95rem var(--font-body); color: var(--text); margin-bottom: 6px; }
.footer-column a { font-size: .92rem; }
.footer-brand-col p { font-size: .92rem; }

/* Responsive du héros d'accueil */
@media (max-width: 900px) {
    .hero-home { grid-template-columns: minmax(0, 1fr); padding-top: 56px; padding-bottom: 64px; }
}
@media (max-width: 480px) {
    .status-list { padding: 0 16px; }
    .status-panel-head { padding: 16px; flex-direction: column; gap: 4px; }
}

/* En-tête : marque sur une ligne, bouclier à gauche */
.brand { gap: 10px; flex-shrink: 0; }
.brand .brand-mark { order: -1; }
header .brand-name { font-size: 1.12rem; white-space: nowrap; line-height: 1; max-width: none; }
.footer-brand .brand-name { font-size: 1.12rem; white-space: nowrap; }
.hero-home h1 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); max-width: 640px; }
.brand-mark { border: 0; background: none; width: 28px; height: 28px; flex-basis: 28px; }
.brand-mark svg { width: 26px; height: 26px; }
nav a, .nav-group > a, .nav-group > button { border-radius: var(--radius-sm); }

/* Outils de l’en-tête : compte réduit à l’icône tant que la place manque */
.account-link, .picker-btn, .theme-toggle, .hamburger { border-radius: var(--radius-sm); }
@media (max-width: 1600px) {
    .account-link { width: 40px; min-height: 40px; padding: 0; }
    .account-link span { display: none; }
}
@media (max-width: 420px) {
    .brand { gap: 8px; }
    .brand-mark { width: 24px; height: 24px; flex-basis: 24px; }
    .brand-mark svg { width: 22px; height: 22px; }
    header .brand-name { font-size: .92rem; }
    .nav-tools { gap: 4px; }
}

/* En-têtes de pages intérieures : bandeau gris pleine largeur, aligné sur la grille */
.cyber-hero, .page-hero, .legal-header {
    max-width: none;
    margin: 0 0 32px;
    padding: 72px 0 64px;
    background: var(--bg-alt);
    box-shadow: 0 0 0 100vmax var(--bg-alt);
    clip-path: inset(0 -100vmax);
}
.cyber-hero .hero-eyebrow, .page-hero .hero-eyebrow { color: var(--accent); }
.cyber-hero h1, .page-hero h1, .legal-header h1 { font-weight: 600; letter-spacing: -.02em; }
.cyber-hero p:last-child, .page-hero p:last-child { margin-bottom: 0; }
.section:has(> .legal-header:first-child), .section:has(> .page-hero:first-child) { padding-top: 0; }
.hero, .hero-home { padding-left: 0; padding-right: 0; }

/* ============================================================
   Décoration de Noël (js/noel.js) — discrète, sans clignotement
   ============================================================ */
.saison-noel header { position: sticky; }
.noel-guirlande {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -18px;
    height: 22px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.noel-guirlande svg { display: block; }

.saison-noel .brand-mark { position: relative; overflow: visible; }
.noel-etoile {
    position: absolute;
    top: -9px;
    right: -7px;
    width: 14px;
    height: 14px;
    pointer-events: none;
}

.saison-noel .hero-home { position: relative; }
.noel-boules {
    position: absolute;
    top: 0;
    right: 4%;
    width: 150px;
    height: 96px;
    pointer-events: none;
}
.noel-boule { transform-box: fill-box; transform-origin: 50% 0; animation: noel-balance 6s ease-in-out infinite; }
.noel-boule-2 { animation-delay: -2s; }
.noel-boule-3 { animation-delay: -4s; }
@keyframes noel-balance {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

.noel-sapin {
    position: absolute;
    right: 0;
    bottom: 8px;
    width: 72px;
    height: 90px;
    pointer-events: none;
}

@media (max-width: 900px) {
    .noel-boules { right: 0; width: 110px; height: 70px; }
    .noel-sapin { width: 52px; height: 65px; bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .noel-boule { animation: none; }
}
header.nav-open .noel-guirlande { display: none; }

/* Musique de Noël : contrôle discret en bas à gauche */
.noel-musique {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 16px rgba(17, 17, 17, .08);
}
.noel-musique-btn {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #2F7D45;
    color: #FFFFFF;
    cursor: pointer;
}
.noel-musique-btn:hover { background: #276B3B; }
.noel-musique.is-muted .noel-musique-btn { background: var(--bg-alt); color: var(--text-dim); }
.noel-musique-btn svg { width: 20px; height: 20px; }
.noel-musique input[type="range"] { width: 96px; accent-color: #2F7D45; cursor: pointer; }
.noel-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
@media (max-width: 480px) {
    .noel-musique { left: 12px; bottom: 12px; padding-right: 10px; }
    .noel-musique input[type="range"] { width: 72px; }
}
@media print { .noel-musique, .noel-guirlande, .noel-boules, .noel-sapin, .noel-etoile { display: none; } }

/* ============================================================
   THÈME DE NOËL — appliqué à tout le site via html.saison-noel
   Rouge, vert et or ; le choix de couleur du visiteur reste prioritaire.
   ============================================================ */
html.saison-noel[data-theme="light"] {
    --noel-rouge: #B3261E;
    --noel-rouge-hover: #8F1D17;
    --noel-vert: #2F7D45;
    --noel-vert-texte: #276B3B;
    --noel-or: #A8861C;
    --accent: #276B3B;
    --accent-hover: #1E5530;
    --accent-solid: #2F7D45;
    --accent-solid-hover: #276B3B;
    --accent-soft: rgba(47, 125, 69, .10);
    --btn-bg: #B3261E;
    --btn-bg-hover: #8F1D17;
    --btn-color: #FFFFFF;
    --noel-footer-bg: #1F4D2C;
}
html.saison-noel[data-theme="dark"] {
    --noel-rouge: #C8352C;
    --noel-rouge-hover: #A92A22;
    --noel-vert: #3E9A58;
    --noel-vert-texte: #7CC48F;
    --noel-or: #E3C15A;
    --accent: #7CC48F;
    --accent-hover: #9AD6AA;
    --accent-solid: #3E9A58;
    --accent-solid-hover: #2F7D45;
    --accent-soft: rgba(62, 154, 88, .16);
    --btn-bg: #C8352C;
    --btn-bg-hover: #A92A22;
    --btn-color: #FFFFFF;
    --noel-footer-bg: #14301C;
}

/* En-tête : liseré rouge discret */
.saison-noel header { border-top: 3px solid var(--noel-rouge); }

/* Boutons */
.saison-noel .btn-primary { background: var(--noel-rouge); color: #FFFFFF; }
.saison-noel .btn-primary:hover { background: var(--noel-rouge-hover); color: #FFFFFF; }
.saison-noel .btn-ghost:hover { border-color: var(--noel-vert); color: var(--noel-vert-texte); }
.saison-noel .btn-teal { background: var(--noel-vert); color: #FFFFFF; }
.saison-noel .btn-teal:hover { background: var(--accent-solid-hover); color: #FFFFFF; }
.saison-noel .back-to-top { background: var(--noel-vert); color: #FFFFFF; }

/* Étiquettes de section : petite étoile dorée */
.saison-noel .hero-eyebrow,
.saison-noel .section-header .label,
.saison-noel .legal-header .label { color: var(--noel-rouge); display: inline-flex; align-items: center; gap: 8px; }
.saison-noel .hero-eyebrow::before,
.saison-noel .section-header .label::before,
.saison-noel .legal-header .label::before {
    display: block;
    content: "";
    width: 12px;
    height: 12px;
    background: var(--noel-or);
    border-radius: 0;
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Navigation */
.saison-noel nav a.active { background: var(--accent-soft); color: var(--noel-vert-texte); }

/* Cartes : liseré festif en haut, alterné rouge / vert */
.saison-noel .project-item,
.saison-noel .value,
.saison-noel .breach-card,
.saison-noel .contact-item,
.saison-noel .legal-section { border-top: 3px solid var(--noel-vert); }
.saison-noel .project-item:nth-child(even),
.saison-noel .value:nth-child(even),
.saison-noel .contact-item:nth-child(even),
.saison-noel .legal-section:nth-child(even) { border-top-color: var(--noel-rouge); }
.saison-noel .project-mark.amber { background: rgba(179, 38, 30, .10); color: var(--noel-rouge); }
.saison-noel .project-mark.teal { background: var(--accent-soft); color: var(--noel-vert-texte); }
.saison-noel .project-mark.green { background: rgba(168, 134, 28, .14); color: var(--noel-or); }
.saison-noel .status-panel { border-top: 3px solid var(--noel-rouge); }
.saison-noel ::selection { background: var(--noel-rouge); color: #FFFFFF; }

/* Pied de page : vert sapin, titres dorés, guirlande en haut */
.saison-noel footer {
    position: relative;
    background: var(--noel-footer-bg);
    border-top: 0;
    color: #EDEDED;
}
.saison-noel footer .brand,
.saison-noel footer .brand-name { color: #FFFFFF !important; }
.saison-noel footer .brand-mark { color: var(--noel-or); }
.saison-noel .footer-column h2 { color: #E3C15A; }
.saison-noel .footer-column a,
.saison-noel .footer-brand-col p,
.saison-noel .footer-bottom,
.saison-noel .footer-social a { color: #D9E4DC; }
.saison-noel .footer-column a:hover,
.saison-noel .footer-social a:hover { color: #FFFFFF; }
.saison-noel .footer-contact-link { color: #E3C15A; }
.saison-noel .footer-bottom { border-top-color: rgba(255, 255, 255, .14); }
.saison-noel footer a:focus-visible { outline-color: #E3C15A; }
.noel-guirlande-footer {
    position: absolute;
    left: 0;
    right: 0;
    top: -4px;
    height: 22px;
    overflow: hidden;
    pointer-events: none;
}
.noel-guirlande-footer svg { display: block; }
.noel-voeux { display: inline-flex; align-items: center; gap: 8px; color: #E3C15A; font-weight: 500; }
.noel-voeux svg { width: 14px; height: 14px; }
.saison-noel .cyber-hero, .saison-noel .page-hero, .saison-noel .legal-header { position: relative; }
.saison-noel .footer-social a { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #FFFFFF; }
.saison-noel .footer-social a:hover { background: rgba(255, 255, 255, .16); }
.saison-noel .footer-bottom { padding-bottom: 84px; }
html.saison-noel[data-theme="light"] { --noel-rouge-texte: #B3261E; }
html.saison-noel[data-theme="dark"] { --noel-rouge-texte: #F28B82; }
.saison-noel .hero-eyebrow,
.saison-noel .section-header .label,
.saison-noel .legal-header .label { color: var(--noel-rouge-texte); }

/* ============================================================
   Noël — neige qui tombe, givre et stalactites sur les boutons
   ============================================================ */
html.saison-noel[data-theme="light"] { --noel-neige: #A9BCCF; --noel-glace-haut: #E3EFF7; --noel-glace-bas: #8DB3CE; --noel-chapeau-ombre: rgba(17, 17, 17, .14); }
html.saison-noel[data-theme="dark"] { --noel-neige: #F2F6FA; --noel-glace-haut: #F0F7FC; --noel-glace-bas: #A9C9DE; --noel-chapeau-ombre: rgba(0, 0, 0, .35); }

.noel-neige {
    position: fixed;
    inset: 0;
    z-index: 60;
    overflow: hidden;
    pointer-events: none;
}
.noel-flocon {
    position: absolute;
    top: -20px;
    display: block;
    border-radius: 50%;
    background: var(--noel-neige);
    color: var(--noel-neige);
    animation-name: noel-chute, noel-derive;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-direction: normal, alternate;
    will-change: transform;
}
.noel-flocon.is-cristal, .noel-flocon-rafale.is-cristal { background: none; border-radius: 0; }
.noel-flocon svg, .noel-flocon-rafale svg { display: block; width: 100%; height: 100%; }
@keyframes noel-chute {
    from { transform: translateY(0) rotate(0deg); }
    to { transform: translateY(calc(100vh + 40px)) rotate(240deg); }
}
@keyframes noel-derive {
    from { translate: -14px 0; }
    to { translate: 14px 0; }
}

.noel-rafale { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.noel-flocon-rafale {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: var(--noel-neige);
    color: var(--noel-neige);
}

/* Boutons : stalactites qui s'allongent au survol */
.saison-noel .btn { position: relative; overflow: visible; }
.saison-noel .btn::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 12%;
    right: 12%;
    height: 10px;
    background: linear-gradient(var(--noel-glace-haut), var(--noel-glace-bas));
    clip-path: polygon(0 0, 100% 0, 97% 45%, 93% 0, 88% 100%, 82% 0, 77% 55%, 71% 0, 64% 85%, 57% 0, 52% 40%, 46% 0, 39% 100%, 32% 0, 27% 50%, 21% 0, 14% 80%, 8% 0, 4% 45%);
    transform: scaleY(.35);
    transform-origin: top;
    transition: transform .35s cubic-bezier(.3, .7, .3, 1.3);
    pointer-events: none;
}
.saison-noel .btn:hover::after,
.saison-noel .btn:focus-visible::after { transform: scaleY(1); }

@media (prefers-reduced-motion: reduce) {
    .saison-noel .btn::after { transition: none; }
}
/* Version calme si le visiteur a demandé moins d'animations : chute lente, sans rotation ni dérive */
.noel-neige.is-calme .noel-flocon { animation-name: noel-chute-calme, none !important; }
@keyframes noel-chute-calme {
    from { transform: translateY(0); }
    to { transform: translateY(calc(100vh + 40px)); }
}

/* Étoiles dorées : dans la neige, les rafales et les bandeaux */
html.saison-noel[data-theme="light"] { --noel-etoile: #C9A227; }
html.saison-noel[data-theme="dark"] { --noel-etoile: #E3C15A; }
.noel-flocon.is-etoile, .noel-flocon-rafale.is-etoile { background: none; border-radius: 0; color: var(--noel-etoile); }
.noel-flocon.is-etoile svg, .noel-flocon-rafale.is-etoile svg, .noel-etoile-fixe svg { display: block; width: 100%; height: 100%; }

.noel-scintillement { position: absolute; inset: 0; pointer-events: none; }
.noel-etoile-fixe {
    position: absolute;
    display: block;
    color: var(--noel-etoile);
    opacity: .85;
    animation: noel-scintille 4s ease-in-out infinite;
}
@keyframes noel-scintille {
    0%, 100% { opacity: .35; transform: scale(.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.1) rotate(18deg); }
}
@media (max-width: 900px) {
    .noel-scintillement { display: none; }
}

/* Petits cadeaux : au pied du sapin sur l'accueil, en bas à droite des autres bandeaux */
.noel-cadeaux {
    position: absolute;
    right: 0;
    bottom: 8px;
    width: 78px;
    height: 38px;
    pointer-events: none;
}
.noel-cadeaux.is-sapin { right: 60px; bottom: 6px; }
@media (max-width: 900px) {
    .noel-cadeaux { width: 60px; height: 29px; }
    .noel-cadeaux.is-sapin { right: 44px; }
}
.noel-flocon.is-cadeau, .noel-flocon-rafale.is-cadeau { background: none; border-radius: 0; }
.noel-flocon.is-cadeau { opacity: 1 !important; }
.noel-flocon.is-cadeau svg, .noel-flocon-rafale.is-cadeau svg { display: block; width: 100%; height: 100%; }

/* Newsletter : message de retour du formulaire d'abonnement */
#newsletter-message:empty { display: none; }
#newsletter-message {
    margin-top: 16px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    color: var(--text);
}
#newsletter-message.is-error { border-left-color: var(--red); }

/* AP Captcha : espacement dans les formulaires */
form .ap-captcha { margin: 16px 0 24px; }

/* Vérification de mot de passe (Pwned Passwords) */
.password-field { display: flex; gap: 8px; }
.password-field input { flex: 1; min-width: 0; }
.password-field .btn { flex-shrink: 0; }
#password-check-result:empty { display: none; }
#password-check-result {
    margin-top: 16px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    color: var(--text);
}
#password-check-result.is-danger,
#password-check-result.is-error { border-left-color: var(--red); }
#password-check-result.is-ok { border-left-color: var(--green); }
