/* =============================================================
   MAÎTRIZE — SITE VITRINE
   Feuille de styles principale
   Organisation :
     1.  Variables & reset
     2.  Base & typographie
     3.  Conteneurs & utilitaires
     4.  Boutons (App Store + secondaires)
     5.  Header & navigation
     6.  Hero
     7.  Mockup fenêtre Mac
     8.  Section "Pour qui ?"
     9.  Fonctionnalités
     10. IA spotlight
     11. Ressources
     12. Communauté & compteurs
     13. Timeline
     14. Témoignages
     15. FAQ
     16. CTA final
     17. Footer
     18. Animations & reveal au scroll
     19. Responsive (tablette + mobile)
   ============================================================= */


/* =============================================================
   1. VARIABLES & RESET
   ============================================================= */
:root {
    /* Couleurs primaires */
    --color-primary: #2C5F9E;
    --color-primary-dark: #1F4775;
    --color-primary-light: #5B8DC8;

    /* Couleurs accent (corail solaire) */
    --color-accent: #FF8C5A;
    --color-accent-dark: #E5723F;
    --color-accent-light: #FFB594;

    /* Couleurs secondaires (clins d'œil à l'app) */
    --color-purple: #7B5CF6;
    --color-teal: #2BC4B4;
    --color-pink: #E45CA0;

    /* Neutres */
    --color-bg: #FAFAF7;
    --color-bg-soft: #F0EFEC;
    --color-bg-dark: #1A1A2E;
    --color-text: #1A1A2E;
    --color-text-soft: #4A4A5E;
    --color-text-muted: #7A7A8C;
    --color-border: #E8E6E1;
    --color-white: #FFFFFF;

    /* Dégradés */
    --gradient-primary: linear-gradient(135deg, #2C5F9E 0%, #5B8DC8 100%);
    --gradient-accent: linear-gradient(135deg, #FF8C5A 0%, #FFB594 100%);
    --gradient-mix: linear-gradient(135deg, #2C5F9E 0%, #FF8C5A 100%);
    --gradient-soft: linear-gradient(180deg, #FAFAF7 0%, #F0EFEC 100%);

    /* Typographie */
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-text: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

    /* Tailles texte (clamp pour fluide) */
    --fs-h1: clamp(2.25rem, 1.4rem + 3.5vw, 4.25rem);
    --fs-h2: clamp(1.85rem, 1.2rem + 2.5vw, 3.25rem);
    --fs-h3: clamp(1.25rem, 1rem + 0.8vw, 1.5rem);
    --fs-lead: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
    --fs-base: 1rem;
    --fs-small: 0.875rem;

    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    --section-padding: clamp(5rem, 4rem + 4vw, 8rem);

    /* Coins arrondis */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 999px;

    /* Ombres */
    --shadow-xs: 0 1px 2px rgba(26,26,46,0.04);
    --shadow-sm: 0 2px 8px rgba(26,26,46,0.05), 0 1px 2px rgba(26,26,46,0.03);
    --shadow-md: 0 8px 24px rgba(26,26,46,0.07), 0 2px 6px rgba(26,26,46,0.04);
    --shadow-lg: 0 16px 40px rgba(26,26,46,0.09), 0 4px 12px rgba(26,26,46,0.05);
    --shadow-xl: 0 24px 60px rgba(26,26,46,0.12), 0 8px 24px rgba(26,26,46,0.06);

    /* Transitions */
    --t-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --t-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Container */
    --container-max: 1200px;
    --container-padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 80px;
}

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

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }


/* =============================================================
   2. BASE & TYPOGRAPHIE
   ============================================================= */
body {
    font-family: var(--font-text);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1.05rem; font-weight: 700; }

p { color: var(--color-text-soft); }

.text-gradient {
    background: var(--gradient-mix);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.text-gradient-light {
    background: linear-gradient(135deg, #FFE9DC 0%, #FFB594 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

::selection {
    background: rgba(255,140,90,0.25);
    color: var(--color-text);
}

/* Focus accessible */
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 4px;
}


/* =============================================================
   3. CONTENEURS & UTILITAIRES
   ============================================================= */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section { padding-block: var(--section-padding); position: relative; }

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto var(--space-xl);
}

.section-header .lead {
    font-size: var(--fs-lead);
    margin-top: var(--space-md);
    color: var(--color-text-soft);
    line-height: 1.55;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    background: rgba(44,95,158,0.08);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,140,90,0.1);
    border: 1px solid rgba(255,140,90,0.25);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-dark);
    margin-bottom: var(--space-md);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(255,140,90,0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(255,140,90,0.2); }
    50% { box-shadow: 0 0 0 8px rgba(255,140,90,0.05); }
}


/* =============================================================
   4. BOUTONS
   ============================================================= */
/* App Store — style officiel : noir, icône pomme + double texte */
.btn-appstore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-family: var(--font-text);
    font-weight: 500;
    transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-base);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.btn-appstore:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-lg);
    background: #1a1a2e;
}

.btn-appstore:active { transform: translateY(0) scale(1); }

.btn-appstore-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    text-align: left;
}

.appstore-small {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: 0.02em;
}

.appstore-big {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: -0.01em;
}

.btn-appstore-large {
    padding: 14px 24px;
    border-radius: var(--radius-lg);
}

.btn-appstore-large .appstore-small { font-size: 0.72rem; }
.btn-appstore-large .appstore-big { font-size: 1.2rem; }

/* Bouton secondaire */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-white);
    color: var(--color-text);
    padding: 14px 22px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-border);
    font-weight: 600;
    transition: all var(--t-base);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.btn-secondary svg { transition: transform var(--t-base); }
.btn-secondary:hover svg { transform: translateY(2px); }


/* =============================================================
   5. HEADER & NAVIGATION
   ============================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    background: transparent;
    transition: background var(--t-base), backdrop-filter var(--t-base), box-shadow var(--t-base), padding var(--t-base);
}

.site-header.scrolled {
    background: rgba(250,250,247,0.85);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 1px 0 rgba(26,26,46,0.04), var(--shadow-sm);
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.logo-mark { transition: transform var(--t-base); }
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }

.primary-nav ul {
    display: flex;
    gap: 4px;
}

.primary-nav a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-soft);
    transition: all var(--t-base);
}

.primary-nav a:hover {
    color: var(--color-primary);
    background: rgba(44,95,158,0.06);
}

/* Burger mobile */
.burger {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: var(--radius-md);
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--t-base);
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100dvh;
    background: rgba(250,250,247,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    padding: 90px var(--container-padding) var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base), visibility var(--t-base);
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu nav { display: flex; flex-direction: column; gap: var(--space-md); }

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu a {
    display: block;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text);
    transition: background var(--t-base);
}

.mobile-menu a:hover { background: rgba(44,95,158,0.08); }
.mobile-menu .btn-appstore.mobile { align-self: flex-start; margin-top: var(--space-md); }


/* =============================================================
   6. HERO
   ============================================================= */
.hero {
    position: relative;
    min-height: 100dvh;
    padding: 130px 0 var(--space-2xl);
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--gradient-soft);
}

.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-shapes .shape {
    position: absolute;
    will-change: transform;
}

.shape-1 {
    width: 360px;
    top: -80px;
    right: -100px;
    animation: floatBig 18s ease-in-out infinite;
}

.shape-2 {
    width: 320px;
    bottom: -120px;
    left: -100px;
    transform: rotate(20deg);
    animation: floatBig 22s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    top: 50%;
    left: 45%;
    opacity: 0.5;
    animation: floatBig 16s ease-in-out infinite;
}

@keyframes floatBig {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -30px) rotate(8deg); }
    66% { transform: translate(-15px, 20px) rotate(-5deg); }
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-title {
    margin-top: var(--space-sm);
    font-weight: 800;
}

.hero-subtitle {
    margin-top: var(--space-md);
    font-size: var(--fs-lead);
    line-height: 1.55;
    color: var(--color-text-soft);
    max-width: 540px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.trust-strip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: var(--space-lg);
    padding: 10px 16px;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
}

.trust-stars { display: inline-flex; gap: 2px; }
.trust-text { font-size: 0.9rem; color: var(--color-text-soft); }
.trust-text strong { color: var(--color-text); font-weight: 700; }


/* =============================================================
   7. MOCKUP MAC WINDOW & APP UI
   Recréation du dashboard Maîtrize dans une fenêtre macOS
   (titlebar avec traffic lights, dark mode, cartes statistiques).
   ============================================================= */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 580px;
    width: 100%;
}

.mac-window {
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16 / 11;
    background: linear-gradient(180deg, #1d1d2e 0%, #14142a 100%);
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05),
        0 50px 100px -20px rgba(26,26,46,0.45),
        0 30px 60px -30px rgba(26,26,46,0.35),
        inset 0 0 0 1px rgba(255,255,255,0.04);
    color: #fff;
    font-family: var(--font-text);
}

.mac-floating { animation: macFloat 7s ease-in-out infinite; }

@keyframes macFloat {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-14px) rotate(-1deg); }
}

/* Barre de titre Mac */
.mac-titlebar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
}

.mac-traffic {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.tl {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 0.5px solid rgba(0,0,0,0.2);
}

.tl-red { background: #FF5F57; }
.tl-yellow { background: #FEBC2E; }
.tl-green { background: #28C840; }

.mac-toolbar-tabs {
    display: flex;
    gap: 2px;
    flex: 1;
    margin-left: 8px;
    overflow: hidden;
}

.mac-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    transition: background var(--t-base);
}

.mac-tab svg { color: rgba(255,255,255,0.45); }

.mac-search-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 4px 10px;
    color: rgba(255,255,255,0.5);
    font-size: 10px;
    flex-shrink: 0;
    min-width: 130px;
}

/* Corps de la fenêtre */
.mac-body {
    padding: 14px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: calc(100% - 36px);
}

/* Greet card */
.mac-greet {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.g-hello { font-size: 13px; font-weight: 700; color: #fff; }
.wave { display: inline-block; animation: wave 2.5s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave {
    0%, 60%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
}

.g-date { font-size: 10px; color: rgba(255,255,255,0.5); margin-top: 3px; }

.g-class {
    display: inline-block;
    margin-top: 7px;
    padding: 3px 9px;
    background: rgba(123,92,246,0.18);
    color: #a594ff;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
}

.g-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7B5CF6, #E45CA0);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

/* Stats : 4 cartes en ligne (paysage Mac) */
.mac-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.stat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -16px;
    right: -16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    opacity: 0.22;
}

.stat-purple::before { background: #7B5CF6; }
.stat-teal::before { background: #2BC4B4; }
.stat-orange::before { background: #FF8C5A; }
.stat-pink::before { background: #E45CA0; }

.stat-purple { border-color: rgba(123,92,246,0.35); }
.stat-teal { border-color: rgba(43,196,180,0.35); }
.stat-orange { border-color: rgba(255,140,90,0.35); }
.stat-pink { border-color: rgba(228,92,160,0.35); }

.stat-icon { font-size: 12px; opacity: 0.8; line-height: 1; }

.stat-num {
    font-size: 20px;
    font-weight: 800;
    font-family: var(--font-display);
    color: #fff;
    line-height: 1;
    margin-top: 4px;
}

.stat-label {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

.mac-section-title {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* Quick actions : 3 cartes */
.mac-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.action-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.ai-icon { background: linear-gradient(135deg, #7B5CF6, #5B4ACF); }
.ai-icon-2 { background: linear-gradient(135deg, #2BC4B4, #1A8F84); }
.ai-icon-3 { background: linear-gradient(135deg, #FF8C5A, #E5723F); }

.action-card span {
    font-size: 10px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    line-height: 1.2;
}

/* Tab bar bas */
.mac-tabbar {
    margin: auto -16px 0;
    padding: 8px 12px;
    background: rgba(0,0,0,0.45);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-around;
    gap: 4px;
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.tab {
    font-size: 9px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    transition: all var(--t-base);
}

.tab.active {
    color: #fff;
    background: rgba(123,92,246,0.18);
}

/* Cartes flottantes autour de la fenêtre Mac */
.floating-card {
    position: absolute;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    z-index: 5;
}

.floating-1 {
    top: 50px;
    left: -30px;
    animation: floatA 5s ease-in-out infinite;
}

.floating-2 {
    bottom: 30px;
    right: -20px;
    animation: floatA 5s ease-in-out infinite reverse;
}

@keyframes floatA {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.fc-icon {
    font-size: 22px;
    width: 38px;
    height: 38px;
    background: var(--gradient-soft);
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.fc-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}

.fc-sub {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    line-height: 1.2;
    margin-top: 2px;
}

/* 3 cycles dans la carte flottante */
.fc-cycles {
    display: flex;
    gap: 4px;
    margin-top: 5px;
}

.fc-cycle {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.fc-c1 { background: rgba(255,140,90,0.14); color: var(--color-accent-dark); }
.fc-c2 { background: rgba(44,95,158,0.12); color: var(--color-primary); }
.fc-c3 { background: rgba(123,92,246,0.14); color: var(--color-purple); }


/* =============================================================
   8. POUR QUI ?
   ============================================================= */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.audience-card {
    background: var(--color-white);
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
    text-align: left;
}

.audience-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(44,95,158,0.2);
}

.audience-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: grid;
    place-items: center;
    margin-bottom: var(--space-md);
    transition: transform var(--t-base);
}

.audience-card:hover .audience-icon { transform: scale(1.08) rotate(-4deg); }

.audience-icon svg { width: 36px; height: 36px; }

.icon-coral { background: rgba(255,140,90,0.12); color: var(--color-accent-dark); }
.icon-blue { background: rgba(44,95,158,0.10); color: var(--color-primary); }
.icon-purple { background: rgba(123,92,246,0.12); color: var(--color-purple); }
.icon-teal { background: rgba(43,196,180,0.12); color: #1F9F92; }

.audience-card h3 { margin-bottom: 6px; }

.audience-levels {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.04em;
}


/* =============================================================
   9. FONCTIONNALITÉS
   ============================================================= */
.features { background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-soft) 100%); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.feature-card {
    position: relative;
    background: var(--color-white);
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(44,95,158,0.18);
}

.feature-highlight {
    background: linear-gradient(180deg, #fff 0%, #FAFAF7 100%);
    border-color: rgba(255,140,90,0.18);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    margin-bottom: var(--space-sm);
    transition: transform var(--t-base);
}

.feature-card:hover .feature-icon { transform: scale(1.08); }
.feature-icon svg { width: 28px; height: 28px; }

.feature-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient-mix);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
}

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.95rem; line-height: 1.55; }


/* =============================================================
   10. IA SPOTLIGHT
   ============================================================= */
.ai-spotlight {
    background: linear-gradient(135deg, rgba(44,95,158,0.04) 0%, rgba(255,140,90,0.04) 100%);
    border-block: 1px solid var(--color-border);
}

.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-xl);
    align-items: center;
}

.ai-text h2 { margin-top: 6px; margin-bottom: var(--space-md); }
.ai-text p { margin-bottom: var(--space-md); font-size: var(--fs-lead); line-height: 1.6; }

.check-list {
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--color-text-soft);
    font-weight: 500;
}

.check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

/* Visualisation : input → IA → output */
.ai-visual {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
}

.ai-step {
    width: 100%;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
}

.ai-step-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.ai-input {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    min-height: 1.6em;
    margin-bottom: 12px;
}

.cursor {
    display: inline-block;
    color: var(--color-accent);
    animation: blink 1s steps(1) infinite;
    font-weight: 400;
    margin-left: 1px;
}

@keyframes blink { 50% { opacity: 0; } }

.ai-meta { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
    background: var(--color-bg-soft);
    color: var(--color-text-soft);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 500;
}

.ai-step-engine {
    display: grid;
    place-items: center;
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--color-primary) 0%, #1F4775 100%);
    color: #fff;
    border: none;
}

.ai-engine {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.ai-engine-orb {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #FFB594, #FF8C5A 60%, #2C5F9E);
    box-shadow:
        0 0 0 4px rgba(255,140,90,0.2),
        0 0 30px rgba(255,140,90,0.4);
    animation: orb 3s ease-in-out infinite;
}

@keyframes orb {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(255,140,90,0.2), 0 0 30px rgba(255,140,90,0.4); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(255,140,90,0.1), 0 0 50px rgba(255,140,90,0.6); }
}

.ai-arrow {
    color: var(--color-primary);
    opacity: 0.5;
    animation: arrowDown 2s ease-in-out infinite;
}

.ai-arrow svg { width: 24px; height: 24px; }

@keyframes arrowDown {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(4px); opacity: 0.9; }
}

.ai-output { position: relative; }

.ai-output-line {
    height: 10px;
    background: linear-gradient(90deg, var(--color-bg-soft), var(--color-border));
    border-radius: 5px;
    margin-bottom: 8px;
    transform-origin: left;
    animation: outLine 4s ease-in-out infinite;
    width: 100%;
}

.ai-line-title { height: 14px; background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light)); width: 70%; }
.ai-line-mid { width: 85%; }
.ai-line-short { width: 60%; }

@keyframes outLine {
    0%, 90%, 100% { transform: scaleX(1); opacity: 1; }
    95% { transform: scaleX(1.02); opacity: 0.7; }
}

.ai-output-tag {
    display: inline-block;
    margin-top: 8px;
    background: rgba(43,196,180,0.12);
    color: #1F9F92;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
}


/* =============================================================
   11. RESSOURCES
   ============================================================= */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.resource-card {
    background: var(--color-white);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all var(--t-base);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.resource-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-sm);
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    color: #fff;
    font-size: 1.3rem;
}

.logo-bo { background: linear-gradient(135deg, #2C5F9E, #1F4775); }
.logo-eduscol { background: linear-gradient(135deg, #E5723F, #FF8C5A); }
.logo-canope { background: linear-gradient(135deg, #7B5CF6, #5B4ACF); }
.logo-magistere { background: linear-gradient(135deg, #2BC4B4, #1A8F84); }

.resource-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.resource-card p { font-size: 0.92rem; line-height: 1.5; }

/* Q&A interactif : démo visuelle de l'IA augmentée sur les ressources officielles */
.resources-qa {
    max-width: 760px;
    margin: 0 auto;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.qa-eyebrow {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primary);
    background: linear-gradient(135deg, rgba(44,95,158,0.06), rgba(255,140,90,0.06));
    padding: 8px 16px;
    border-radius: var(--radius-full);
    align-self: center;
    letter-spacing: 0.04em;
}

.qa-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.qa-user {
    flex-direction: row-reverse;
    margin-left: 15%;
}

.qa-bot {
    margin-right: 15%;
}

.qa-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    flex-shrink: 0;
}

.qa-avatar-user {
    background: var(--color-bg-soft);
    color: var(--color-text-muted);
}

.qa-avatar-user svg { width: 18px; height: 18px; }

.qa-avatar-bot {
    background: var(--gradient-mix);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 0 0 4px rgba(255,140,90,0.12);
}

.qa-bubble {
    background: var(--color-bg-soft);
    color: var(--color-text);
    padding: 12px 16px;
    border-radius: 16px 16px 4px 16px;
    font-weight: 500;
    line-height: 1.5;
    max-width: 100%;
}

.qa-bubble-bot {
    background: linear-gradient(135deg, rgba(44,95,158,0.04), rgba(255,140,90,0.04));
    border: 1px solid rgba(44,95,158,0.12);
    border-radius: 16px 16px 16px 4px;
}

.qa-bubble-bot p {
    color: var(--color-text);
    margin-bottom: 10px;
}

.qa-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
}

.qa-source {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(44,95,158,0.08);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}


/* =============================================================
   11b. SHOWCASE — Tour d'horizon des écrans de l'app
   4 cartes en grille 2×2 avec aperçus SVG.
   ============================================================= */
.showcase {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-soft) 60%, var(--color-bg) 100%);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.showcase-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    box-shadow: var(--shadow-xs);
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
    overflow: hidden;
}

.showcase-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(44,95,158,0.15);
}

.sc-visual {
    height: 220px;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
    display: grid;
    place-items: center;
    transition: transform var(--t-base);
}

.sc-visual svg { width: 100%; height: 100%; padding: 8px; }

.showcase-card:hover .sc-visual { transform: scale(1.02); }

.sc-purple { background: linear-gradient(135deg, rgba(123,92,246,0.06) 0%, rgba(123,92,246,0.16) 100%); }
.sc-teal { background: linear-gradient(135deg, rgba(43,196,180,0.06) 0%, rgba(43,196,180,0.16) 100%); }
.sc-orange { background: linear-gradient(135deg, rgba(255,140,90,0.06) 0%, rgba(255,140,90,0.16) 100%); }
.sc-pink { background: linear-gradient(135deg, rgba(228,92,160,0.06) 0%, rgba(228,92,160,0.16) 100%); }

.showcase-card h3 { margin-bottom: 8px; }
.showcase-card p { font-size: 0.95rem; line-height: 1.55; }


/* =============================================================
   12. COMMUNAUTÉ & COMPTEURS
   ============================================================= */
.community { background: var(--color-bg-soft); }

.counters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.counter {
    text-align: center;
    padding: var(--space-md);
}

.counter-num {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 1.8rem + 2vw, 3.75rem);
    font-weight: 800;
    background: var(--gradient-mix);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.counter-suffix {
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
    font-weight: 800;
    color: var(--color-accent);
    margin-left: 4px;
}

.counter p {
    margin-top: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.35;
}

.counter p small {
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-top: 2px;
}


/* =============================================================
   13. TIMELINE
   ============================================================= */
.timeline-rail {
    position: relative;
    margin-top: var(--space-lg);
}

.timeline-rail::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    z-index: 0;
}

.timeline-progress {
    position: absolute;
    top: 28px;
    left: 0;
    height: 4px;
    width: 0;
    background: var(--gradient-mix);
    border-radius: 2px;
    z-index: 1;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-steps {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.t-step { display: flex; flex-direction: column; align-items: center; text-align: center; }

.t-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-white);
    border: 4px solid var(--color-border);
    margin-bottom: var(--space-md);
    transition: all var(--t-slow);
    position: relative;
    top: 8px;
}

.t-step.active .t-dot {
    border-color: var(--color-accent);
    background: var(--color-accent);
    box-shadow: 0 0 0 6px rgba(255,140,90,0.18);
    transform: scale(1.15);
}

.t-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    width: 100%;
    transition: all var(--t-base);
}

.t-step.active .t-card {
    border-color: rgba(255,140,90,0.4);
    box-shadow: var(--shadow-md);
}

.t-month {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.t-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.t-card p { font-size: 0.88rem; line-height: 1.5; }


/* =============================================================
   14. TÉMOIGNAGES
   ============================================================= */
.testimonials { background: var(--color-bg-soft); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.testimonial {
    background: var(--color-white);
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
    transition: all var(--t-base);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

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

.t-stars {
    color: #FFB400;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonial blockquote {
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--color-text);
    flex: 1;
}

.t-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
}

.t-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-family: var(--font-display);
}

.t-av-1 { background: linear-gradient(135deg, #FF8C5A, #E5723F); }
.t-av-2 { background: linear-gradient(135deg, #2C5F9E, #1F4775); }
.t-av-3 { background: linear-gradient(135deg, #7B5CF6, #5B4ACF); }
.t-av-4 { background: linear-gradient(135deg, #2BC4B4, #1A8F84); }

.t-name { font-weight: 700; color: var(--color-text); font-size: 0.95rem; }
.t-meta { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 2px; }


/* =============================================================
   15. FAQ
   ============================================================= */
.faq-container { max-width: 820px; }

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--t-base), box-shadow var(--t-base);
}

.faq-item[open] {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--color-text);
    transition: color var(--t-base);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--color-primary); }

.faq-chev {
    color: var(--color-text-muted);
    transition: transform var(--t-base), color var(--t-base);
    flex-shrink: 0;
}

.faq-item[open] .faq-chev {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq-answer {
    padding: 0 var(--space-md) var(--space-md);
    color: var(--color-text-soft);
    line-height: 1.6;
    animation: faqOpen 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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


/* =============================================================
   16. CTA FINAL
   ============================================================= */
.cta-final {
    position: relative;
    padding-block: var(--section-padding);
    overflow: hidden;
    color: #fff;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1F4775 0%, #2C5F9E 50%, #FF8C5A 130%);
    z-index: -2;
}

.cta-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,140,90,0.5) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(123,92,246,0.4) 0%, transparent 40%);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.cta-text h2 {
    color: #fff;
    margin-bottom: var(--space-md);
}

.cta-text p {
    font-size: var(--fs-lead);
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-lg);
    max-width: 540px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.cta-final .btn-appstore {
    background: #fff;
    color: #1A1A2E;
}

.cta-final .btn-appstore:hover {
    background: #F0EFEC;
}

.cta-mini {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
}

.cta-specs { display: flex; justify-content: center; }

.specs-card {
    background: #fff;
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-xl);
    color: var(--color-text);
    transform: rotate(1.5deg);
    transition: transform var(--t-base);
    width: 280px;
    max-width: 100%;
}

.specs-card:hover { transform: rotate(0) scale(1.03); }

.specs-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-sm);
    display: grid;
    place-items: center;
}

.specs-icon svg { width: 100%; height: 100%; }

.specs-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.specs-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.specs-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.specs-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.specs-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text);
}


/* =============================================================
   17. FOOTER
   ============================================================= */
.site-footer {
    background: #14142a;
    color: rgba(255,255,255,0.75);
    padding-block: var(--space-2xl) var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo {
    color: #fff;
    margin-bottom: var(--space-md);
}

.footer-baseline {
    color: rgba(255,255,255,0.65);
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
    color: rgba(255,255,255,0.65);
    font-size: 0.92rem;
    transition: color var(--t-base);
}

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

.social {
    display: flex;
    gap: 10px;
    margin-top: var(--space-md);
}

.social a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    color: rgba(255,255,255,0.75);
    transition: all var(--t-base);
}

.social a:hover {
    background: var(--gradient-mix);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}

.footer-mini { font-size: 0.78rem; opacity: 0.8; }


/* =============================================================
   17b. PAGES SECONDAIRES — Legal, FAQ, About, Tarifs, Blog
   Mise en page article + composants pour les pages internes.
   ============================================================= */
.page-hero {
    padding: 130px 0 60px;
    background: linear-gradient(180deg, var(--color-bg-soft) 0%, var(--color-bg) 100%);
    text-align: center;
}

.page-hero .eyebrow { margin-bottom: var(--space-sm); }

.page-hero h1 {
    margin-bottom: var(--space-md);
    font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.85rem);
}

.page-hero .lead {
    font-size: var(--fs-lead);
    color: var(--color-text-soft);
    max-width: 720px;
    margin: 0 auto;
}

.page-content { padding: var(--space-xl) 0 var(--space-2xl); }

.container-narrow {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.page-content article h2 {
    margin: var(--space-xl) 0 var(--space-md);
    font-size: 1.55rem;
    scroll-margin-top: 100px;
}

.page-content article h3 {
    margin: var(--space-lg) 0 var(--space-sm);
    font-size: 1.2rem;
}

.page-content article > p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
    color: var(--color-text);
    font-size: 1.02rem;
}

.page-content article ul,
.page-content article ol {
    margin-bottom: var(--space-md);
    padding-left: 1.5rem;
}

.page-content article li {
    list-style: disc;
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--color-text);
}

.page-content article ol li { list-style: decimal; }

.page-content article a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--t-base);
}

.page-content article a:hover { color: var(--color-accent); }

.page-content article strong { font-weight: 700; color: var(--color-text); }

.page-content article blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 1rem 1.5rem;
    background: var(--color-bg-soft);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: var(--space-md) 0;
    font-style: italic;
    color: var(--color-text-soft);
}

.page-content article table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-md) 0;
    font-size: 0.93rem;
    overflow-x: auto;
    display: block;
    white-space: normal;
}

.page-content article table thead { background: var(--color-bg-soft); }

.page-content article th,
.page-content article td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.page-content article th {
    font-weight: 700;
    border-bottom: 2px solid var(--color-border);
}

/* Table of Contents */
.toc {
    background: var(--color-bg-soft);
    border-left: 4px solid var(--color-primary);
    padding: var(--space-md);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: var(--space-lg) 0;
}

.toc-title {
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    font-size: 0.85rem;
}

.toc ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.toc li {
    list-style: none !important;
    margin-bottom: 4px;
    padding: 0;
}

.toc a {
    text-decoration: none !important;
    color: var(--color-text-soft) !important;
    display: inline-block;
    padding: 2px 0;
    font-size: 0.95rem;
}

.toc a:hover { color: var(--color-primary) !important; }

/* Article meta + Author bio */
.article-meta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    color: var(--color-text-muted);
    font-size: 0.88rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.article-meta strong { color: var(--color-text); }

.author-bio {
    background: var(--color-bg-soft);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-top: var(--space-xl);
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.author-bio-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-mix);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.4rem;
    font-family: var(--font-display);
    flex-shrink: 0;
}

.author-bio-name { font-weight: 700; color: var(--color-text); font-size: 1rem; }

.author-bio-text {
    color: var(--color-text-soft);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 4px 0 0;
}

/* Blog index — grille articles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.blog-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--t-base);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(44,95,158,0.18);
}

.blog-card a {
    text-decoration: none;
    display: block;
    padding: var(--space-md);
}

.blog-card-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(44,95,158,0.08);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.blog-card h3 {
    font-size: 1.18rem;
    margin-bottom: 8px;
    color: var(--color-text);
    line-height: 1.3;
}

.blog-card-meta {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.blog-card p {
    color: var(--color-text-soft);
    line-height: 1.55;
    font-size: 0.94rem;
    margin: 0;
}

/* CTA box dans les articles */
.cta-box {
    background: linear-gradient(135deg, rgba(44,95,158,0.06), rgba(255,140,90,0.06));
    border: 1px solid rgba(44,95,158,0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin: var(--space-lg) 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
}

.cta-box-text { flex: 1; min-width: 240px; }
.cta-box-text strong {
    display: block;
    font-size: 1.08rem;
    margin-bottom: 4px;
    color: var(--color-text);
}
.cta-box-text p { margin: 0 !important; font-size: 0.92rem; color: var(--color-text-soft); }

/* Tarifs */
.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.tarif-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    position: relative;
    transition: transform var(--t-base), box-shadow var(--t-base);
}

.tarif-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.tarif-card.featured {
    border-color: rgba(255,140,90,0.4);
    box-shadow: var(--shadow-lg);
}

.tarif-card.featured::before {
    content: 'Workshop';
    position: absolute;
    top: -12px;
    right: var(--space-md);
    background: var(--gradient-mix);
    color: #fff;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.tarif-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-text);
}

.tarif-price {
    font-size: 2.4rem;
    font-weight: 800;
    font-family: var(--font-display);
    background: var(--gradient-mix);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin: var(--space-sm) 0 4px;
}

.tarif-period {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.tarif-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 var(--space-md) !important;
}

.tarif-features li {
    list-style: none !important;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
    color: var(--color-text-soft);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tarif-features li:last-child { border-bottom: none; }

.tarif-features li::before {
    content: '✓';
    color: var(--color-primary);
    font-weight: 800;
    flex-shrink: 0;
}

/* Mobile : tables scrollables */
@media (max-width: 600px) {
    .page-content article table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}


/* =============================================================
   18. ANIMATIONS REVEAL AU SCROLL
   ============================================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* =============================================================
   19. RESPONSIVE
   ============================================================= */
/* Tablette */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }

    .hero-subtitle { margin-inline: auto; }
    .hero-ctas { justify-content: center; }
    .trust-strip { margin-inline: auto; }
    .hero-visual { min-height: 480px; }
    .mac-window { max-width: 520px; }

    .ai-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .cta-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-text p, .cta-actions { margin-inline: auto; }
    .cta-actions { justify-content: center; }

    .timeline-steps { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
    .timeline-rail::before, .timeline-progress { display: none; }

    .showcase-grid { grid-template-columns: 1fr; }
    .sc-visual { height: 200px; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }

    .footer-brand { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 768px) {
    .primary-nav { display: none; }
    .site-header .btn-appstore:not(.mobile) { display: none; }
    .burger { display: flex; }
    .mobile-menu { display: block; }

    .hero {
        padding-top: 110px;
        min-height: auto;
    }

    .hero-visual {
        min-height: 380px;
        padding: 0 var(--space-sm);
    }

    .mac-window {
        max-width: 100%;
        aspect-ratio: 16 / 12;
    }

    /* Sur petit écran : cacher la toolbar centrale et la search box, garder traffic lights */
    .mac-toolbar-tabs { display: none; }
    .mac-search-mini { min-width: 0; padding: 4px 8px; }
    .mac-search-mini span { display: none; }

    /* Stats : 2 colonnes */
    .mac-stats { grid-template-columns: repeat(2, 1fr); }

    /* Actions : 1 colonne pleine */
    .mac-actions { grid-template-columns: 1fr 1fr; }
    .mac-actions .action-card:nth-child(3) { display: none; }

    /* Tabbar : ne montrer que les icônes */
    .tab { font-size: 8px; padding: 4px 5px; }

    .floating-1 { left: -10px; top: 30px; }
    .floating-2 { right: 0; bottom: 10px; }
    .floating-card { padding: 8px 10px; }

    .hero-ctas { flex-direction: column; align-items: stretch; }
    .hero-ctas > * { justify-content: center; }

    .timeline-steps { grid-template-columns: 1fr; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .specs-card { transform: rotate(0); }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 4.5rem;
    }

    .floating-card { padding: 8px 12px; }
    .floating-card .fc-icon { width: 32px; height: 32px; font-size: 18px; }
    .fc-title { font-size: 0.78rem; }
    .fc-sub { font-size: 0.65rem; }

    .feature-card, .audience-card, .testimonial { padding: var(--space-md); }
}


/* =============================================================
   20. CORRECTIONS MOBILES COMPLÉMENTAIRES
   Patches ciblés pour les sections ajoutées tardivement
   (Q&A, showcase, AI visual, tarifs, blog, FAQ, pages secondaires).
   ============================================================= */

/* ---- Mobile : ≤ 768px ---- */
@media (max-width: 768px) {

    /* === Section Q&A (Ressources) ===
       Les marges latérales 15% laissaient trop peu de place sur mobile. */
    .qa-user, .qa-bot {
        margin-left: 0;
        margin-right: 0;
    }

    .qa-bubble {
        font-size: 0.92rem;
        padding: 10px 14px;
    }

    /* === Section IA — typewriter ===
       Laisse le texte wrapper proprement sur plusieurs lignes. */
    .ai-input {
        font-size: 0.95rem;
        min-height: auto;
        word-break: break-word;
        line-height: 1.4;
    }

    .ai-meta { gap: 4px; }
    .chip { font-size: 0.72rem; padding: 3px 8px; }

    /* === Counters en 2 colonnes au lieu de 4 ===
       Évite la grande colonne unique. */
    .counters {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    /* === FAQ summary — meilleur wrapping ===
       Force le span du texte à prendre toute la place et le chevron à droite. */
    .faq-item summary {
        gap: 10px;
        padding: 14px var(--space-md);
        font-size: 0.96rem;
    }
    .faq-item summary > span { flex: 1; min-width: 0; line-height: 1.35; }

    /* === Hero CTAs — boutons pleine largeur ===
       Empêche le bouton App Store de déborder de son contenu interne. */
    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-ctas .btn-appstore,
    .hero-ctas .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* === Pages secondaires — page-hero ===
       Réduit le padding top devenu inutile sur mobile (header + petit). */
    .page-hero { padding: 105px 0 40px; }

    /* Article : meta plus compact + tableaux scrollables avec hint */
    .article-meta { font-size: 0.82rem; gap: var(--space-sm); }
    .page-content { padding: var(--space-lg) 0 var(--space-2xl); }

    /* Container narrow : padding mobile cohérent */
    .container-narrow { padding: 0 var(--container-padding); }

    /* === CTA box dans articles : stack vertical sur mobile === */
    .cta-box {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-md);
    }
    .cta-box .btn-appstore,
    .cta-box .btn-secondary {
        align-self: stretch;
        justify-content: center;
    }

    /* === Tarifs : padding réduit === */
    .tarif-card { padding: var(--space-md); }
    .tarif-card.featured::before { right: 10px; }
    .tarif-price { font-size: 2.1rem; }

    /* === Showcase visuels : un peu moins haut === */
    .sc-visual { height: 180px; }

    /* === Mockup Mac sur tablette/mobile : titlebar plus compacte === */
    .mac-titlebar { padding: 8px 10px; gap: 8px; }
    .mac-body { padding: 12px 12px 0; }

    /* === Footer : centré et plus compact === */
    .footer-grid { text-align: left; }
    .footer-bottom p { font-size: 0.82rem; }

    /* === Reveal sur mobile : moins de translation Y pour éviter le glitch ===
       Sur petit écran, +30px de translateY peut donner l'impression que
       le contenu saute trop. Réduit à 20px. */
    .reveal { transform: translateY(20px); }
}


/* ---- Très petit mobile : ≤ 480px (iPhone SE, mini) ---- */
@media (max-width: 480px) {

    /* === Mac window : libère l'aspect-ratio sur très petit ===
       Sinon contenu trop tassé verticalement. */
    .mac-window {
        aspect-ratio: auto;
        min-height: 360px;
    }

    /* Stats Mac window : encore plus compactes */
    .stat-num { font-size: 18px; }
    .stat-card { padding: 8px; }

    /* AI engine orb : plus petit */
    .ai-engine-orb { width: 30px; height: 30px; }
    .ai-engine { font-size: 0.95rem; gap: 8px; }

    /* AI step : padding réduit */
    .ai-step { padding: var(--space-sm); }

    /* Q&A avatars : plus petits */
    .qa-avatar { width: 30px; height: 30px; }
    .qa-avatar-bot { font-size: 0.95rem; }
    .qa-avatar-user svg { width: 16px; height: 16px; }
    .qa-bubble { font-size: 0.88rem; line-height: 1.45; }

    /* Counters : police plus petite pour rester lisible sur 2 cols */
    .counter-num { font-size: 2rem; }
    .counter-suffix { font-size: 1.6rem; }
    .counter p { font-size: 0.85rem; }
    .counter p small { font-size: 0.7rem; }

    /* Section header : eyebrow et titre plus compacts */
    .section-header { margin-bottom: var(--space-lg); }
    .section-header .lead { font-size: 1rem; }

    /* Tarifs : layout cards en stack avec moins de blanc */
    .tarif-card { padding: var(--space-md) var(--space-sm); }
    .tarif-features li { font-size: 0.9rem; }

    /* Hero badge : plus discret */
    .badge { font-size: 0.75rem; padding: 5px 11px; }

    /* Trust strip : plus compact */
    .trust-strip { padding: 8px 12px; gap: 8px; }
    .trust-text { font-size: 0.82rem; }

    /* Audience cards : icônes plus petites */
    .audience-icon { width: 52px; height: 52px; }
    .audience-icon svg { width: 28px; height: 28px; }
    .audience-card { padding: var(--space-md); }

    /* Showcase : encore plus compact */
    .sc-visual { height: 160px; padding: 6px; }

    /* Spec card sur CTA final : largeur adaptive */
    .specs-card { width: 100%; max-width: 320px; }
    .qr-svg, .specs-icon { max-width: 100%; }

    /* CTA final : titre plus compact */
    .cta-text h2 { font-size: 1.85rem; }
    .cta-mini { font-size: 0.82rem; }

    /* Témoignages : avatar plus petit */
    .t-avatar { width: 38px; height: 38px; font-size: 0.95rem; }
    .testimonial blockquote { font-size: 0.95rem; line-height: 1.55; }

    /* FAQ : padding plus serré */
    .faq-item summary { padding: 12px var(--space-sm); font-size: 0.92rem; }
    .faq-answer { padding: 0 var(--space-sm) var(--space-sm); }

    /* Footer : tout en stack */
    .footer-grid {
        gap: var(--space-md);
        padding-bottom: var(--space-md);
    }
    .footer-col h4 { font-size: 0.88rem; }
    .footer-col a { font-size: 0.88rem; }
}


/* ---- Mini écrans (< 360px) — ultime sécurité ---- */
@media (max-width: 360px) {

    /* Hero visual : floating cards risquent de gêner — on les masque */
    .floating-card { display: none; }

    /* Logo text : on peut cacher le texte si vraiment serré */
    .logo-text { font-size: 1.1rem; }
}


/* =============================================================
   21. CORRECTIONS DÉBORDEMENT MOBILE
   Hero title trop large + trust strip trop longue + sécurité overflow
   ============================================================= */

/* Sécurité globale : empêche tout débordement horizontal du document */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Force le wrapping des longs mots dans tous les textes */
h1, h2, h3, h4, p {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* === Hero — corrections de taille pour empêcher le débordement === */
@media (max-width: 768px) {

    /* H1 plus contenu sur mobile : 28-30px au lieu de 36px+ */
    .hero-title {
        font-size: clamp(1.75rem, 1.4rem + 2.2vw, 2.25rem);
        line-height: 1.18;
        letter-spacing: -0.025em;
    }

    /* Subtitle un peu plus petit pour mieux respirer */
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.55;
        max-width: 100%;
        padding: 0 4px;
    }

    /* Trust strip — flex-wrap pour qu'elle passe à la ligne si trop large */
    .trust-strip {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
        padding: 8px 14px;
        gap: 8px 12px;
    }
    .trust-text {
        font-size: 0.85rem;
        text-align: center;
    }

    /* Badge — ne dépasse jamais */
    .badge {
        max-width: 100%;
        white-space: normal;
        text-align: center;
        line-height: 1.4;
    }

    /* Hero ctas et autres conteneurs — pas de débordement */
    .hero-ctas, .hero-content, .hero-grid {
        max-width: 100%;
    }
}

/* === Très petit mobile (≤ 420px : iPhone SE, mini, vue zoomée) === */
@media (max-width: 420px) {

    .hero-title {
        font-size: 1.85rem;
        line-height: 1.18;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    /* Trust strip : passe en colonne si vraiment serré */
    .trust-strip {
        flex-direction: column;
        gap: 4px;
        padding: 8px 16px;
    }
    .trust-text { font-size: 0.82rem; }

    /* Badge sur 2 lignes possibles */
    .badge {
        font-size: 0.78rem;
        padding: 6px 14px;
    }

    /* Section header : titres respirent */
    .section-header h2 {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    /* Container padding — un peu réduit pour gagner de la place */
    .container {
        padding-inline: 16px;
    }
}


