/*--------------------------------------------------------------
# Font & Colors & UI ASSETS
--------------------------------------------------------------*/

:root {
    /* Charte graphique SFAIT */
    --brand-sapphire: #1e1ee2;
    --brand-navy: #0c0c3d;
    --brand-green: #21d859;
    --brand-blue-circuit: #2799ff;
    --brand-cloud-byte: #a1d0ff;
    --brand-sky-byte: #d7ecff;
    --brand-violet: #6131f4;
    --brand-violet-pale: #ded6ff;
    --brand-warning: #ff9e0a;
    --brand-warning-mid: #ffb333;
    --brand-warning-pale: #ffe8a6;
    --brand-error: #e53c38;
    --brand-error-mid: #ff706b;
    --brand-error-pale: #ffc9c7;
    --brand-silver: #6b7380;
    --brand-silver-mid: #d4d4d9;
    --brand-silver-pale: #e5e8eb;
    --brand-green-light: #7ae554;
    --brand-green-pale: #b5fccf;

    --brand-gradient-primary: linear-gradient(135deg, var(--brand-sapphire) 0%, var(--brand-blue-circuit) 100%);
    --brand-gradient-mark: linear-gradient(135deg, var(--brand-green-light) 0%, var(--brand-green) 28%, var(--brand-sapphire) 70%, var(--brand-blue-circuit) 100%);
    --brand-gradient-gaming: linear-gradient(135deg, var(--brand-violet-pale) 0%, var(--brand-violet) 52%, var(--brand-sapphire) 100%);
    --brand-gradient-assistance: linear-gradient(135deg, var(--brand-sky-byte) 0%, var(--brand-cloud-byte) 52%, var(--brand-blue-circuit) 100%);
    --brand-gradient-care: linear-gradient(135deg, var(--brand-green-pale) 0%, var(--brand-green-light) 46%, var(--brand-green) 100%);
    --brand-gradient-repair: linear-gradient(135deg, var(--brand-warning-pale) 0%, var(--brand-warning-mid) 48%, var(--brand-warning) 100%);
    --brand-gradient-performance: linear-gradient(135deg, var(--brand-error-pale) 0%, var(--brand-error-mid) 48%, var(--brand-error) 100%);
    --brand-gradient-business: linear-gradient(135deg, var(--brand-silver-pale) 0%, var(--brand-silver-mid) 48%, var(--brand-silver) 100%);

    --ui-radius-button: 8px;
    --ui-radius-card: 16px;
    --ui-transition: 180ms ease;
    --ui-hover-lift: translateY(-2px);
    --ui-shadow-brand: 0 14px 30px rgba(30, 30, 226, 0.22);
    --ui-shadow-brand-soft: 0 10px 24px rgba(30, 30, 226, 0.14);
    /*
     * Accent fonctionnel : utilise le violet de marque en thème clair, mais
     * peut devenir plus lumineux en thème sombre sans éclaircir les boutons
     * pleins et les grands aplats de la marque.
     */
    --ui-accent-foreground: var(--brand-sapphire);
    --ui-accent-foreground-hover: var(--brand-violet);
    --ui-accent-surface: rgba(30, 30, 226, 0.08);
    --ui-accent-border: rgba(30, 30, 226, 0.32);
    --ui-accent-focus-ring: rgba(30, 30, 226, 0.14);

    /* Legacy aliases */
    --color-green: var(--brand-green);
    --color-blue: var(--brand-sapphire);
    --text-blue-hover: var(--brand-blue-circuit);
    --background-button: var(--brand-sapphire);

    --background-body: rgb(249 247 247);
    --title-h1: #000000;
    --title-h2: #000000;
    --color-text: #000000;
    --color-text-secondary: #444444;
    --background-box: rgb(255 255 255);
    --background-box-hover: var(--brand-sapphire);
    --color-text-breadcrumbs: #000;

    /* Hero & Modern sections */
    --hero-bg-overlay: rgba(30, 30, 226, 0.05);
    --hero-navbar-height: 92px;
    --hero-padding-top: clamp(10px, 1.25vw, 18px);
    --hero-padding-y: clamp(28px, 3.5vw, 48px);
    --hero-compact-padding-y: clamp(24px, 3vw, 38px);
    --hero-breadcrumb-gap: clamp(28px, 3vw, 44px);
    --hero-title-subtitle-gap: 12px;
    --layout-page-max: 1700px;
    --layout-gutter: 24px;
    --section-padding-y: clamp(36px, 3.5vw, 52px);
    --section-padding-y-compact: clamp(28px, 3vw, 42px);
    --section-spacing-y: clamp(20px, 2.5vw, 36px);
    --section-heading-gap: clamp(18px, 2.4vw, 30px);
    --section-grid-gap: clamp(18px, 2vw, 30px);
    --section-card-padding: clamp(22px, 2.5vw, 34px);
    --section-title-font-size: 40px;
    --section-bg: #ffffff;
    --section-border: var(--brand-silver-pale);
    --hero-title: var(--brand-navy);
    --hero-subtitle: var(--brand-silver);
    --stat-gradient-start: var(--brand-navy);
    --stat-gradient-end: var(--brand-sapphire);
    --stat-label: var(--brand-silver);

    /* FAQ Modern */
    --faq-item-bg-start: #f8fafc;
    --faq-item-bg-end: #ffffff;
    --faq-border-hover: var(--brand-cloud-byte);
    --faq-border-active: var(--brand-sapphire);

    /* Status Badge */
    --badge-bg-start: #f8fafc;
    --badge-bg-end: var(--brand-sky-byte);
    --badge-border: var(--brand-cloud-byte);
    --badge-text: var(--brand-navy);
}

@media (max-width: 768px) {
    :root {
        --hero-navbar-height: 86px;
        --hero-padding-y: 28px;
        --hero-compact-padding-y: 24px;
        --layout-gutter: 20px;
        --section-padding-y: 34px;
        --section-padding-y-compact: 26px;
        --section-spacing-y: 28px;
        --section-heading-gap: 20px;
        --section-grid-gap: 20px;
        --section-card-padding: 24px;
        --section-title-font-size: 26px;
    }
}

@media (max-width: 640px) {
    :root {
        --layout-gutter: 16px;
        --section-padding-y: 30px;
        --section-padding-y-compact: 24px;
        --section-spacing-y: 24px;
        --section-heading-gap: 18px;
        --section-grid-gap: 16px;
        --section-card-padding: 20px;
    }
}

body.dark-theme {
    --ui-accent-foreground: #78bbff;
    --ui-accent-foreground-hover: var(--brand-cloud-byte);
    --ui-accent-surface: rgba(39, 153, 255, 0.14);
    --ui-accent-border: rgba(120, 187, 255, 0.58);
    --ui-accent-focus-ring: rgba(120, 187, 255, 0.24);

    --color-green: var(--brand-green);
    --color-blue: var(--brand-blue-circuit);
    --text-blue-hover: var(--brand-cloud-byte);
    --background-button: var(--brand-sapphire);

    --background-body: #121212;
    --title-h1: #ffffff;
    --title-h2: #ffffff;
    --color-text: #e5e7eb;
    --color-text-secondary: #d1d5db;
    --background-box: #1a1a1a;
    --background-box-hover: var(--brand-blue-circuit);
    --color-text-breadcrumbs: #e5e7eb;

    /* Hero & Modern sections */
    --hero-bg-overlay: rgba(39, 153, 255, 0.08);
    --section-bg: #1a1a1a;
    --section-border: #2a2a2a;
    --hero-title: #f9fafb;
    --hero-subtitle: var(--brand-sky-byte);
    --stat-gradient-start: #f9fafb;
    --stat-gradient-end: var(--brand-blue-circuit);
    --stat-label: var(--brand-cloud-byte);

    /* FAQ Modern */
    --faq-item-bg-start: #1e1e1e;
    --faq-item-bg-end: #1a1a1a;
    --faq-border-hover: #3a3a3a;
    --faq-border-active: var(--brand-blue-circuit);

    /* Status Badge */
    --badge-bg-start: #1e1e1e;
    --badge-bg-end: #252525;
    --badge-border: #2a2a2a;
    --badge-text: var(--brand-sky-byte);
}

.highlight {
    color: var(--brand-blue-circuit);
    font-family: "Chakra Petch", sans-serif;
    font-weight: 600;
    font-style: normal;
}

body.dark-theme .highlight {
    color: var(--brand-cloud-byte);
}

.custom-button {
    font-size: 19px;
    color: var(--ui-accent-foreground, var(--brand-sapphire));
    background: transparent;
    border: 2px solid var(--brand-sapphire);
    padding: 12px;
    border-radius: var(--ui-radius-button);
    transition: color var(--ui-transition), background-color var(--ui-transition), border-color var(--ui-transition), transform var(--ui-transition), box-shadow var(--ui-transition);
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    text-align: center;
    min-width: 280px;
    display: flex;
    margin: auto;
    justify-content: center;
}

body.dark-theme .custom-button {
    color: var(--ui-accent-foreground);
    border-color: var(--ui-accent-border);
}

.custom-button i {
    margin-left: 7px;
}

.custom-button:hover {
    background: var(--brand-sapphire);
    color: white;
    box-shadow: var(--ui-shadow-brand-soft);
    transform: var(--ui-hover-lift);
}

body.dark-theme .custom-button:hover {
    background: var(--brand-sapphire);
    color: white;
    border-color: var(--brand-sapphire);
}

/* Composants Bootstrap et liens fins : contraste renforcé en thème sombre. */
body.dark-theme .text-primary,
body.dark-theme .link-primary,
body.dark-theme .btn-link {
    color: var(--ui-accent-foreground) !important;
}

body.dark-theme .link-primary:hover,
body.dark-theme .btn-link:hover {
    color: var(--ui-accent-foreground-hover) !important;
}

body.dark-theme .btn-outline-primary {
    --bs-btn-color: var(--ui-accent-foreground);
    --bs-btn-border-color: var(--ui-accent-border);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--brand-sapphire);
    --bs-btn-hover-border-color: var(--brand-sapphire);
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: var(--brand-sapphire);
    --bs-btn-active-border-color: var(--brand-sapphire);
    --bs-btn-focus-shadow-rgb: 120, 187, 255;
}

hr {
    margin: 1rem 0;
    color: grey;
    border: 0;
    border-top: var(--bs-border-width) solid;
    opacity: 1;
}

body.dark-theme hr {
    opacity: 0.3;
}

.unselectable {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/*--------------------------------------------------------------
# Fonts - Importation locale
--------------------------------------------------------------*/

/* Poppins Regular */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Regular.woff2') format('woff2'),
    url('../fonts/Poppins/Poppins-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Poppins Medium */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Medium.woff2') format('woff2'),
    url('../fonts/Poppins/Poppins-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Poppins Semibold */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-SemiBold.woff2') format('woff2'),
    url('../fonts/Poppins/Poppins-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Poppins Bold */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Bold.woff2') format('woff2'),
    url('../fonts/Poppins/Poppins-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Poppins Regular Italic */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Italic.woff2') format('woff2'),
    url('../fonts/Poppins/Poppins-Italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Chakra Petch Semibold */
@font-face {
    font-family: 'Chakra Petch';
    src: url('../fonts/Chakra_Petch/ChakraPetch-SemiBold.woff2') format('woff2'),
    url('../fonts/Chakra_Petch/ChakraPetch-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Chakra Petch Semibold Italic */
@font-face {
    font-family: 'Chakra Petch';
    src: url('../fonts/Chakra_Petch/ChakraPetch-SemiBoldItalic.woff2') format('woff2'),
    url('../fonts/Chakra_Petch/ChakraPetch-SemiBoldItalic.woff') format('woff');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

/*--------------------------------------------------------------
# Fonts - Utilisation via classes utilitaires
--------------------------------------------------------------*/

.chakra-petch-semibold {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    font-style: normal;
}

.chakra-petch-semibold-italic {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    font-style: italic;
}

.poppins-regular {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-style: normal;
}

.poppins-medium {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-style: normal;
}

.poppins-semibold,
.title-page h1,
.title-page h2,
.section-title h1,
.section-title h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-style: normal;
}

.poppins-bold {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-style: normal;
}

.poppins-regular-italic {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-style: italic;
}

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/

html {
    overflow-x: hidden;
}

body {
    color: var(--color-text-secondary);
    background-color: var(--background-body);
    font-family: "Poppins", sans-serif;
    overflow-x: clip;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-blue-hover);
    text-decoration: none;
}

.green-span {
    color: var(--color-green);
}

.sfait-container,
.sfait-section,
.page-container {
    width: min(100%, var(--layout-page-max));
    max-width: var(--layout-page-max);
    margin-inline: auto;
    padding-inline: var(--layout-gutter);
    box-sizing: border-box;
}

.sfait-section {
    padding-block: var(--section-padding-y);
}

.sfait-section-compact {
    padding-block: var(--section-padding-y-compact);
}

.page-container > section:not(.hero-section):not(.title-page):not(.landing-hero):not(.sfait-section-flush),
#content > section:not(.hero-section):not(.title-page):not(.landing-hero):not(.sfait-section-flush),
main > section:not(.hero-section):not(.title-page):not(.landing-hero):not(.sfait-section-flush) {
    padding-block: var(--section-padding-y);
}

.page-container > section + section,
#content > section + section,
main > section + section {
    margin-top: 0;
}

.page-container > .hero-section + section,
.page-container > .title-page + section,
#content > .hero-section + section,
#content > .title-page + section,
main > .hero-section + section,
main > .title-page + section {
    margin-top: 0;
}

.sfait-section-flush,
.hero-section,
.title-page,
.landing-hero {
    padding-inline: 0;
}

.sfait-section-heading,
.section-title,
.section-header,
.section-header-centered,
.section-intro,
.landing-section-heading,
.business-section-heading,
.assistance-section-header {
    margin-inline: auto;
    margin-bottom: var(--section-heading-gap);
}

.sfait-grid-gap {
    gap: var(--section-grid-gap);
}

.title-page {
    text-align: center;
}

.title-page h1,
.title-page h2 {
    font-size: 35px;
    color: var(--title-h2);
}

.section-title {
    text-align: center;
}

.section-title h1,
.section-title h2,
.section-header h2,
.section-intro h2,
.section-header-centered h2,
.business-section h2,
.business-section-heading h2 {
    font-size: var(--section-title-font-size);
    padding: 0 0 15px 0;
    position: relative;
    color: var(--title-h2);
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: 0;
}

@media screen and (max-width: 788px) {
    .section-title h1,
    .section-title h2,
    .section-header h2,
    .section-intro h2,
    .section-header-centered h2,
    .business-section h2,
    .business-section-heading h2 {
        font-size: var(--section-title-font-size);
    }
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.4;
}

p {
    margin-top: 0;
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# Bouton retour en haut
--------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    right: 15px;
    bottom: 15px;
    z-index: 49;
    background: var(--brand-sapphire);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s;
}

body.dark-theme .back-to-top {
    background: var(--brand-sapphire);
}

.back-to-top i {
    font-size: 28px;
    color: #fff;
    line-height: 0;
}

.back-to-top:hover {
    background: var(--brand-blue-circuit);
}

body.dark-theme .back-to-top:hover {
    background: var(--brand-blue-circuit);
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

/*#################### */
/*###### Loader ###### */
/*#################### */

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-body);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.5s ease, background-color 0.3s ease;
    pointer-events: none;
}

#loader h5,
#loader .loader-message {
    position: fixed;
    top: 120px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-green);
    font-size: 30px;
}

@keyframes chenillard {
    0% {
        opacity: 0;
    }
    33.33% {
        opacity: 1;
    }
    66.66% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

#dot1 {
    animation: chenillard 900ms infinite;
}

#dot2 {
    animation: chenillard 900ms infinite 300ms;
}

#dot3 {
    animation: chenillard 900ms infinite 600ms;
}

.loader-circle {
    border: 5px solid transparent;
    border-top: 5px solid var(--color-green);
    border-radius: 50%;
    width: 130px;
    height: 130px;
    animation: spin 2s linear infinite;
    position: absolute;
    transform: translate(-50%, -50%);
    background: #0c0c3d;
}

body.dark-theme .loader-circle {
    background: #1a1a1a;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#loader.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#content {
    display: none;
    padding-top: var(--hero-navbar-height);
}

#content > section:last-of-type,
.page-container > section:last-of-type,
main > section:last-of-type {
    margin-bottom: var(--section-spacing-y);
}

@media (max-width: 768px) {
    #content > section:last-of-type,
    .page-container > section:last-of-type,
    main > section:last-of-type {
        margin-bottom: var(--section-spacing-y);
    }
}

@media (max-width: 999px) {
    #content {
        padding-top: var(--hero-navbar-height);
    }
}

/*--------------------------------------------------------------
# Breadcrumbs dans Hero Section
--------------------------------------------------------------*/
.breadcrumbs-hero {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out backwards;
}

.hero-section .breadcrumbs-hero {
    width: 100%;
    margin-bottom: var(--hero-breadcrumb-gap);
}

.breadcrumbs-hero ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.breadcrumbs-hero li {
    font-size: 0.95rem;
    font-weight: 500;
    align-items: center;
    display: flex;
    color: var(--brand-silver);
}

body.dark-theme .breadcrumbs-hero li {
    color: #94a3b8;
}

.breadcrumbs-hero i {
    font-size: 1.1rem;
}

.breadcrumbs-hero a {
    color: var(--brand-silver);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

body.dark-theme .breadcrumbs-hero a {
    color: #cbd5e1;
}

.breadcrumbs-hero a:hover {
    color: var(--ui-accent-foreground, var(--brand-sapphire));
    text-decoration: none;
}

body.dark-theme .breadcrumbs-hero a:hover {
    color: var(--brand-cloud-byte);
}

.breadcrumbs-hero ol li + li::before {
    display: inline-block;
    padding-right: 8px;
    font-size: 1rem;
    font-family: bootstrap-icons;
    content: "\F285";
    color: #b3bcc7;
}

body.dark-theme .breadcrumbs-hero ol li + li::before {
    color: var(--brand-silver);
}

@media (max-width: 768px) {
    .breadcrumbs-hero {
        display: none;
    }
}

/*--------------------------------------------------------------
# Section Info
--------------------------------------------------------------*/
.info-section {
    position: relative;
    border-radius: 15px;
    transform-origin: center;
    transition: all 0.4s ease-in-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
    width: 100%;
    background: var(--color-green);
}

.info-section .article-text {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    color: #fff;
    margin: 25px;
}

.info-section .article-text h2 {
    font-size: 28px;
    font-weight: 600;
}

.info-section .article-text p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# Modern Pages - Common Styles
--------------------------------------------------------------*/

.title-page h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.title-page h2 span,
.section-header h2 span,
.presentation-left h2 span,
.card-hover h2 span {
    font-family: 'Chakra Petch', sans-serif !important;
    font-weight: 600;
    font-style: normal;
}

.presentation-left h2 span {
    background: var(--brand-gradient-assistance);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-hover h2 span {
    background: var(--brand-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-theme .card-hover h2 span {
    background: linear-gradient(135deg, var(--brand-cloud-byte) 0%, var(--brand-blue-circuit) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-header h2 span {
    color: var(--brand-blue-circuit);
}

.offers-header h2 span {
    background: var(--brand-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-theme .offers-header h2 span {
    background: linear-gradient(135deg, var(--brand-cloud-byte) 0%, var(--brand-blue-circuit) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.final-cta-opti h2 span,
.custom-pc-hero_container h2 span,
.our-difference .accent,
.final-cta h2 span {
    color: var(--brand-blue-circuit);
}

.section-title .accent {
    color: var(--ui-accent-foreground, var(--brand-sapphire));
}

body.dark-theme .section-title .accent {
    color: var(--brand-cloud-byte);
}

.icon-box h3 span {
    color: var(--ui-accent-foreground, var(--brand-sapphire));
}

body.dark-theme .icon-box h3 span {
    color: var(--brand-cloud-byte);
}

.speedtest .section-title .accent {
    background: var(--brand-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-theme .speedtest .section-title .accent {
    background: linear-gradient(135deg, var(--brand-cloud-byte) 0%, var(--brand-blue-circuit) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section,
.title-page {
    text-align: center;
    display: flex;
    align-items: center;
    padding: var(--hero-padding-y) 0;
    background: transparent;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 0;
    margin-bottom: 52px;
    border-radius: 0;
}

.hero-section {
    padding: var(--hero-padding-top) 0 var(--hero-padding-y);
    overflow: visible;
}

.hero-section,
.hero-section * {
    z-index: auto !important;
}

.hero-section-compact,
.title-page-compact {
    padding: var(--hero-compact-padding-y) 0;
}

.hero-section-compact {
    padding: var(--hero-padding-top) 0 var(--hero-compact-padding-y);
}

.hero-container {
    width: min(100%, var(--layout-page-max));
    max-width: var(--layout-page-max);
    margin: 0 auto;
    padding-inline: var(--layout-gutter);
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
}

.hero-section::before,
.title-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 150%;
    background: radial-gradient(circle, var(--hero-bg-overlay) 0%, transparent 70%);
}

.hero-section::before {
    display: none;
}

.hero-title {
    display: block;
    background: none;
    color: var(--hero-title);
    padding: 0;
    border-radius: 0;
    font-weight: 800;
    font-size: clamp(2rem, 3vw, 2.5rem);
    line-height: 1.05;
    margin: 0 auto;
    max-width: 1180px;
    box-shadow: none;
    animation: slideDown 0.6s ease-out;
    position: relative;
    z-index: 1;
    font-family: 'Poppins', sans-serif;
}

body.dark-theme .hero-title {
    background: none;
    color: var(--hero-title);
    box-shadow: none;
}

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

.title-page h2 {
    font-size: clamp(1.45rem, 2.1vw, 2rem);
    font-weight: 700;
    color: var(--hero-title);
    max-width: 980px;
    margin: 0 auto 18px;
    line-height: 1.25;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    position: relative;
    z-index: 1;
}

.hero-title span,
.title-page h2 span {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    font-style: normal;
    background: var(--brand-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-theme .hero-title span,
body.dark-theme .title-page h2 span {
    background: linear-gradient(135deg, var(--brand-cloud-byte) 0%, var(--brand-blue-circuit) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-subtitle,
.title-page p {
    font-size: clamp(0.98rem, 1.2vw, 1.12rem);
    color: var(--hero-subtitle);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.65;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    position: relative;
    z-index: 1;
}

.hero-title + .hero-subtitle {
    margin-top: var(--hero-title-subtitle-gap);
}

/*--------------------------------------------------------------
# Status Badge
--------------------------------------------------------------*/

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--badge-bg-start) 0%, var(--badge-bg-end) 100%);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--badge-text);
    border: 2px solid var(--badge-border);
    margin-top: 20px;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
    transition: all 0.3s ease;
}

.status-badge i {
    color: var(--ui-accent-foreground, var(--brand-sapphire));
    font-size: 1.1rem;
}

body.dark-theme .status-badge i {
    color: var(--brand-cloud-byte);
}

.status-badge.status-success {
    background: linear-gradient(135deg, var(--brand-green-pale) 0%, var(--brand-green-light) 100%);
    border-color: var(--brand-green);
    color: #0d6a2d;
}

body.dark-theme .status-badge.status-success {
    background: linear-gradient(135deg, rgba(33, 216, 89, 0.18) 0%, rgba(33, 216, 89, 0.1) 100%);
    border-color: var(--brand-green);
    color: var(--brand-green-pale);
}

.status-badge.status-success i {
    color: var(--brand-green);
}

.status-badge.status-error {
    background: linear-gradient(135deg, var(--brand-error-pale) 0%, #fff1f1 100%);
    border-color: var(--brand-error);
    color: #8d201d;
}

body.dark-theme .status-badge.status-error {
    background: linear-gradient(135deg, rgba(229, 60, 56, 0.22) 0%, rgba(229, 60, 56, 0.1) 100%);
    border-color: var(--brand-error);
    color: var(--brand-error-pale);
}

.status-badge.status-error i {
    color: var(--brand-error);
}

.status-badge.status-warning {
    background: linear-gradient(135deg, var(--brand-warning-pale) 0%, var(--brand-warning-mid) 100%);
    border-color: var(--brand-warning);
    color: #7a4300;
}

body.dark-theme .status-badge.status-warning {
    background: linear-gradient(135deg, rgba(255, 158, 10, 0.24) 0%, rgba(255, 158, 10, 0.1) 100%);
    border-color: var(--brand-warning);
    color: var(--brand-warning-pale);
}

.status-badge.status-warning i {
    color: var(--brand-warning);
}

.status-badge.status-info {
    background: linear-gradient(135deg, var(--brand-sky-byte) 0%, var(--brand-cloud-byte) 100%);
    border-color: var(--brand-blue-circuit);
    color: var(--brand-navy);
}

body.dark-theme .status-badge.status-info {
    background: linear-gradient(135deg, rgba(39, 153, 255, 0.18) 0%, rgba(30, 30, 226, 0.16) 100%);
    border-color: var(--brand-blue-circuit);
    color: var(--brand-cloud-byte);
}

.status-badge.status-info i {
    color: var(--brand-blue-circuit);
}

@media (max-width: 768px) {
    .status-badge {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

.hero-section {
    z-index: 1 !important;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-weight: 800;
    color: var(--hero-title);
}

.section-header h2 span {
    background: var(--brand-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-theme .section-header h2 span {
    background: linear-gradient(135deg, var(--brand-cloud-byte) 0%, var(--brand-blue-circuit) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--brand-silver);
    max-width: 700px;
    margin: 0 auto;
}

body.dark-theme .section-header p {
    color: #94a3b8;
}

.page-container {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-section {
        padding: var(--hero-padding-top) 0 var(--hero-padding-y);
        margin-bottom: 42px;
    }

    .title-page {
        padding: var(--hero-padding-y) 0;
        margin-bottom: 42px;
    }

    .hero-section-compact {
        padding: var(--hero-padding-top) 0 var(--hero-compact-padding-y);
    }

    .title-page-compact {
        padding: var(--hero-compact-padding-y) 0;
    }

    .title-page h2 {
        font-size: 1.6rem;
    }

    .hero-title {
        font-size: clamp(1.65rem, 7vw, 2rem);
        line-height: 1.12;
    }

    .hero-subtitle,
    .title-page p {
        font-size: 1rem;
    }

    .section-header p {
        font-size: 1.05rem;
    }
}

/*--------------------------------------------------------------
# FAQ Section - Modern Version
--------------------------------------------------------------*/

.faq-section {
    padding: 50px 20px;
    background: var(--background-box);
    border-radius: 24px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--background-body);
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.faq-item:hover {
    border: 2px solid var(--faq-border-active);
}

.faq-item.active {
    border: 2px solid var(--faq-border-active);
}

body.dark-theme .faq-item.active {
    border: 2px solid var(--faq-border-active);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.faq-question h3 {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.faq-question h3 i.bi-question-circle {
    color: var(--ui-accent-foreground, var(--brand-sapphire));
    font-size: 1.5rem;
    flex-shrink: 0;
}

body.dark-theme .faq-question h3 i.bi-question-circle {
    color: var(--brand-cloud-byte);
}

.faq-question > i.bi-chevron-down {
    color: var(--ui-accent-foreground, var(--brand-sapphire));
    font-size: 1.3rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

body.dark-theme .faq-question > i.bi-chevron-down {
    color: var(--brand-cloud-byte);
}

.faq-item.active .faq-question > i.bi-chevron-down {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 30px 25px;
}

.faq-answer p {
    color: var(--faq-text);
    line-height: 1.8;
    margin-bottom: 15px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer h4 {
    color: var(--faq-title);
    font-weight: 700;
    margin: 20px 0 10px;
    font-size: 1.05rem;
}

.faq-answer strong {
    color: var(--faq-title);
    font-weight: 700;
}

.faq-answer em {
    color: var(--brand-silver);
}

body.dark-theme .faq-answer em {
    color: #94a3b8;
}

@media (max-width: 576px) {
    .faq-section {
        padding: 50px 15px;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
}

/* Responsive adjustments restent identiques au fichier original */

@media (min-width: 1601px) and (max-width: 1920px) {
    :root {
        --section-title-font-size: 40px;
    }

    .title-page h2 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: var(--section-title-font-size);
    }
}

@media (min-width: 1200px) and (max-width: 1600px) {
    :root {
        --section-title-font-size: 36px;
    }

    .title-page h2 {
        font-size: 1.85rem;
        margin-bottom: 18px;
    }

    .hero-subtitle,
    .title-page p {
        font-size: 1.05rem;
        max-width: 800px;
    }

    .section-header h2 {
        font-size: var(--section-title-font-size);
    }

    .section-header p {
        font-size: 1.05rem;
        max-width: 650px;
    }

    .title-page h1,
    .title-page h2 {
        font-size: 32px;
    }

    .section-title h1,
    .section-title h2 {
        font-size: var(--section-title-font-size);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    :root {
        --section-title-font-size: 32px;
    }

    .title-page h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .hero-subtitle,
    .title-page p {
        font-size: 1rem;
        max-width: 700px;
    }

    .hero-title {
        font-size: 2.25rem;
        padding: 0;
        margin-bottom: 12px;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .section-header h2 {
        font-size: var(--section-title-font-size);
        margin-bottom: 10px;
    }

    .section-header p {
        font-size: 1rem;
        max-width: 600px;
    }

    .title-page h1,
    .title-page h2 {
        font-size: 30px;
    }

    .section-title h1,
    .section-title h2 {
        font-size: var(--section-title-font-size);
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 0.95rem;
    }

    .info-section .article-text h2 {
        font-size: 26px;
    }

    .info-section .article-text p {
        font-size: 16px;
    }

    .custom-button {
        font-size: 17px;
        padding: 10px;
        min-width: 250px;
    }
}

@media (min-width: 768px) and (max-width: 1366px) {
    .hero-section {
        padding: var(--hero-padding-top) 0 var(--hero-padding-y);
        margin-bottom: 48px;
    }

    .title-page {
        padding: var(--hero-padding-y) 0;
        margin-bottom: 48px;
    }

    .hero-section-compact {
        padding: var(--hero-padding-top) 0 var(--hero-compact-padding-y);
    }

    .title-page-compact {
        padding: var(--hero-compact-padding-y) 0;
    }

    .status-badge {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .faq-section {
        padding: 40px 20px;
        margin: 50px 0;
    }

    .faq-question {
        padding: 20px 25px;
    }

    .faq-item.active .faq-answer {
        padding: 0 25px 20px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    :root {
        --section-title-font-size: 28px;
    }

    .title-page h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .hero-subtitle,
    .title-page p {
        font-size: 0.95rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: var(--section-title-font-size);
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .title-page h1,
    .title-page h2 {
        font-size: 28px;
    }

    .section-title h1,
    .section-title h2 {
        font-size: var(--section-title-font-size);
    }

}

.no-scale-reduction {
    font-size: inherit !important;
}

/* Appel de note vers une mention légale numérotée. */
.legal-reference {
    display: inline-block;
    margin-left: 0.1em;
    color: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-decoration: underline;
    vertical-align: super;
    cursor: pointer;
}

.legal-reference:hover,
.legal-reference:focus-visible {
    color: var(--ui-accent-foreground-hover);
}

.legal-reference:focus-visible {
    outline: 2px solid var(--ui-accent-focus-ring);
    outline-offset: 3px;
}

/* Bandeau commun de mentions légales placé juste avant le footer. */
.legal-notices {
    width: 100%;
    margin: var(--section-spacing-y) 0 0;
    padding: 0;
    /* Couleurs du bloc selon le thème (clair par défaut) */
    --legal-bg: var(--background-box);
    --legal-border: var(--section-border);
    --legal-title: var(--brand-navy);
    --legal-text: #5b6070;
    color: var(--legal-title);
    background: var(--legal-bg);
    border-top: 1px solid var(--legal-border);
    border-bottom: 0;
}

body.dark-theme .legal-notices {
    --legal-bg: #000000;
    --legal-border: #242424;
    --legal-title: #ffffff;
    --legal-text: #b8b8b8;
}

#content > .legal-notices:last-of-type {
    margin-bottom: 0;
}

.legal-notices-inner {
    width: min(100%, var(--layout-page-max));
    margin: 0 auto;
    padding: 0 var(--layout-gutter);
}

.legal-notices-disclosure summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
    padding: 18px 0;
    color: var(--legal-title);
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.legal-notices-disclosure summary::-webkit-details-marker {
    display: none;
}

.legal-notices-disclosure summary i {
    flex: 0 0 auto;
    font-size: 1rem;
    transition: transform var(--ui-transition);
}

.legal-notices-disclosure[open] summary i {
    transform: rotate(180deg);
}

.legal-notices-content {
    padding: 22px 0 30px;
    border-top: 1px solid var(--legal-border);
}

.legal-notices-content ol {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: legal-note;
}

.legal-notices-content li {
    position: relative;
    display: block;
    padding-left: 34px;
    color: var(--legal-text);
    font-size: 0.78rem;
    line-height: 1.65;
    scroll-margin-top: 120px;
    counter-increment: legal-note;
}

.legal-notices-content li::before {
    content: counter(legal-note) ".";
    position: absolute;
    top: 0;
    left: 0;
    color: var(--legal-title);
    font-weight: 800;
}

.legal-notices-content a {
    color: var(--ui-accent-foreground);
    text-underline-offset: 2px;
}

.legal-notices-content a:hover {
    color: var(--ui-accent-foreground-hover);
}

@media (max-width: 640px) {
    .legal-notices-disclosure summary {
        min-height: 60px;
        padding: 15px 0;
        font-size: 0.92rem;
    }

    .legal-notices-content {
        padding: 18px 0 24px;
    }

    .legal-notices-content li {
        padding-left: 28px;
        font-size: 0.74rem;
    }
}

@media (min-width: 992px) and (max-width: 1600px) {
    .force-scale-reduction {
        transform: scale(0.9);
        transform-origin: top center;
    }
}
