/* ============================================================================
   DECIDAUTO — THEME CSS (refonte 2026-04-07)
   ============================================================================
   CSS custom charge EN COMPLEMENT du CDN Tailwind + tailwind.config inline.
   Inclut: variables, gradients, noise overlay, scrollbar, focus rings premium,
   sliders custom, selects custom, animations reveal, selection, print styles.
   ============================================================================ */


/* ----------------------------------------------------------------------------
   1. FONT — Inter Variable
   ---------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');


/* ----------------------------------------------------------------------------
   2. ROOT VARIABLES (couleurs, shadows, gradients, easings)
   ---------------------------------------------------------------------------- */
:root {
    /* ---- Palette forest/teal ---- */
    --forest-950: #061F25;
    --forest-900: #092E36;
    --forest-800: #0F3A42;
    --forest-700: #134754;
    --forest-600: #1B5953;
    --forest-500: #245F58;
    --forest-400: #2A6F5D;
    --forest-300: #37885F;

    /* ---- Palette emerald ---- */
    --emerald-600: #059669;
    --emerald-500: #10B981;
    --emerald-400: #34D399;
    --emerald-300: #6EE7B7;
    --mint-200:    #A7F3D0;
    --mint-100:    #D1FAE5;
    --mint-50:     #ECFDF5;

    /* ---- Neutres ---- */
    --white:    #FFFFFF;
    --bone-50:  #F8F7F2;
    --bone-100: #EFEDE5;
    --bone-200: #E5E2D8;
    --ink-950:  #061218;
    --ink-900:  #0F1B22;
    --ink-700:  #2B3B43;
    --ink-500:  #5C6B72;
    --ink-400:  #8A989E;

    /* ---- Shadows premium ---- */
    --shadow-soft:      0 1px 2px rgba(6, 31, 37, 0.04), 0 1px 3px rgba(6, 31, 37, 0.06);
    --shadow-md:        0 4px 12px rgba(6, 31, 37, 0.08), 0 2px 4px rgba(6, 31, 37, 0.04);
    --shadow-lg:        0 12px 32px rgba(6, 31, 37, 0.12), 0 4px 8px rgba(6, 31, 37, 0.04);
    --shadow-xl:        0 24px 48px rgba(6, 31, 37, 0.16), 0 8px 16px rgba(6, 31, 37, 0.06);
    --shadow-2xl:       0 32px 64px rgba(6, 31, 37, 0.20), 0 16px 32px rgba(6, 31, 37, 0.08);
    --shadow-glow:      0 0 40px rgba(16, 185, 129, 0.25);
    --shadow-glow-lg:   0 0 80px rgba(16, 185, 129, 0.35);
    --shadow-card-form: 0 32px 80px rgba(6, 31, 37, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.08);

    /* ---- Gradients ---- */
    --grad-hero: linear-gradient(
        135deg,
        #061F25 0%,
        #0B333B 18%,
        #134754 42%,
        #1B5953 65%,
        #245F58 82%,
        #2A6F5D 100%
    );
    --grad-card-form: linear-gradient(
        160deg,
        #0F3A42 0%,
        #134754 50%,
        #1B5953 100%
    );
    --grad-cta: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --grad-mesh-dark:
        radial-gradient(at 20% 30%, rgba(45, 212, 191, 0.08) 0%, transparent 50%),
        radial-gradient(at 80% 70%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
        #061F25;

    /* ---- Easings premium ---- */
    --ease-out-expo:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart:   cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);

    /* ---- Durations ---- */
    --dur-fast:   150ms;
    --dur-base:   200ms;
    --dur-slow:   300ms;
    --dur-slower: 500ms;
    --dur-reveal: 700ms;
}


/* ----------------------------------------------------------------------------
   3. BASE — Reset, normalize, font smoothing, smooth scroll
   ---------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-feature-settings: 'cv02', 'cv11', 'ss01', 'ss03';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink-900);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
    margin: 0;
}

img, svg, video, canvas {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
}

/* Alpine cloak */
[x-cloak] { display: none !important; }


/* ----------------------------------------------------------------------------
   4. CUSTOM SCROLLBAR (subtil, forest/bone)
   ---------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bone-50);
}
::-webkit-scrollbar-thumb {
    background: var(--forest-700);
    border: 2px solid var(--bone-50);
    border-radius: 8px;
    transition: background var(--dur-base) var(--ease-out-expo);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--forest-400);
}
::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--forest-700) var(--bone-50);
}


/* ----------------------------------------------------------------------------
   5. FOCUS RINGS PREMIUM
   ---------------------------------------------------------------------------- */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--emerald-500);
    outline-offset: 3px;
    border-radius: 6px;
    transition: outline-offset var(--dur-fast) var(--ease-out-expo);
}

/* Buttons / links specifiques : ring doux au lieu de l'outline */
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px var(--white),
        0 0 0 6px rgba(16, 185, 129, 0.45);
}

/* Sur fond sombre, ring clair */
.bg-forest-950 *:focus-visible,
.bg-forest-900 *:focus-visible,
.bg-forest-800 *:focus-visible,
.bg-hero-gradient *:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(6, 31, 37, 0.8),
        0 0 0 6px rgba(52, 211, 153, 0.60);
}


/* ----------------------------------------------------------------------------
   6. SELECTION COLOR
   ---------------------------------------------------------------------------- */
::selection {
    background: var(--mint-100);
    color: var(--forest-900);
    text-shadow: none;
}

::-moz-selection {
    background: var(--mint-100);
    color: var(--forest-900);
    text-shadow: none;
}


/* ----------------------------------------------------------------------------
   7. GRADIENTS CLASSES (reutilisables)
   ---------------------------------------------------------------------------- */
.hero-gradient {
    background: var(--grad-hero);
    background-size: 200% 200%;
    animation: heroShift 30s var(--ease-in-out-quart) infinite;
    position: relative;
}

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

.card-form-gradient {
    background: var(--grad-card-form);
    box-shadow: var(--shadow-card-form);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-gradient {
    position: relative;
    background: var(--grad-cta);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
    transition: all var(--dur-base) var(--ease-out-expo);
    overflow: hidden;
    isolation: isolate;
}

.cta-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 30%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 800ms var(--ease-out-expo);
    z-index: 1;
    pointer-events: none;
}

.cta-gradient > * {
    position: relative;
    z-index: 2;
}

.cta-gradient:hover::before {
    transform: translateX(100%);
}

.cta-gradient:hover {
    background: linear-gradient(135deg, #0EA574 0%, #047857 100%);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.45);
    transform: translateY(-2px);
}

.cta-gradient:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.30);
}

.mesh-gradient-dark,
.mesh-bg-dark {
    background:
        radial-gradient(at 20% 30%, rgba(45, 212, 191, 0.10) 0%, transparent 50%),
        radial-gradient(at 80% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(at 80% 80%, rgba(55, 136, 95, 0.08) 0%, transparent 50%),
        radial-gradient(at 30% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
        var(--forest-950);
}

.mesh-bg-light {
    background:
        radial-gradient(at 10% 10%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
        radial-gradient(at 90% 20%, rgba(52, 211, 153, 0.04) 0%, transparent 50%),
        radial-gradient(at 50% 100%, rgba(45, 212, 191, 0.03) 0%, transparent 50%),
        var(--bone-50);
}

/* Dot pattern subtil pour sections claires */
.dot-pattern {
    background-image: radial-gradient(circle, rgba(6, 31, 37, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Glass morphism */
.glass-card {
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.60);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.40);
}

.glass-card-dark {
    background: rgba(15, 58, 66, 0.60);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}


/* ----------------------------------------------------------------------------
   8. NOISE OVERLAY (SVG turbulence inline)
   ---------------------------------------------------------------------------- */
.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    mix-blend-mode: overlay;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    background-repeat: repeat;
}

.noise-overlay-strong {
    opacity: 0.08;
    mix-blend-mode: overlay;
}

.noise-overlay-subtle {
    opacity: 0.025;
    mix-blend-mode: soft-light;
}


/* ----------------------------------------------------------------------------
   9. REVEAL ON SCROLL (Intersection Observer friendly)
   ---------------------------------------------------------------------------- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity var(--dur-reveal) var(--ease-out-expo),
        transform var(--dur-reveal) var(--ease-out-expo);
    will-change: opacity, transform;
}

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

/* Stagger helpers (ajouter delai progressif) */
.reveal-stagger-1 { transition-delay: 80ms; }
.reveal-stagger-2 { transition-delay: 160ms; }
.reveal-stagger-3 { transition-delay: 240ms; }
.reveal-stagger-4 { transition-delay: 320ms; }
.reveal-stagger-5 { transition-delay: 400ms; }
.reveal-stagger-6 { transition-delay: 480ms; }

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

@keyframes fadeInScale {
    0%   { opacity: 0; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.35); }
    50%      { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
}

.animate-fade-in-up   { animation: fadeInUp    var(--dur-reveal) var(--ease-out-expo) both; }
.animate-fade-in-scale { animation: fadeInScale var(--dur-reveal) var(--ease-out-expo) both; }
.animate-pulse-glow   { animation: pulseGlow   2s var(--ease-out-expo) infinite; }


/* ----------------------------------------------------------------------------
   10. CUSTOM RANGE SLIDER (hero card form)
   ---------------------------------------------------------------------------- */
input[type="range"].range-emerald {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: transparent;
    cursor: pointer;
    padding: 12px 0;
    margin: 0;
}

/* Track Webkit */
input[type="range"].range-emerald::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Thumb Webkit */
input[type="range"].range-emerald::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -8px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--emerald-400) 0%, var(--emerald-500) 100%);
    border: 3px solid var(--white);
    box-shadow:
        0 2px 8px rgba(16, 185, 129, 0.40),
        0 0 0 0 rgba(16, 185, 129, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    cursor: grab;
    transition: box-shadow var(--dur-base) var(--ease-out-expo), transform var(--dur-base) var(--ease-out-expo);
}

input[type="range"].range-emerald::-webkit-slider-thumb:hover {
    transform: scale(1.08);
    box-shadow:
        0 4px 16px rgba(16, 185, 129, 0.55),
        0 0 0 8px rgba(16, 185, 129, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

input[type="range"].range-emerald::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.05);
    box-shadow:
        0 4px 20px rgba(16, 185, 129, 0.65),
        0 0 0 12px rgba(16, 185, 129, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Track Firefox */
input[type="range"].range-emerald::-moz-range-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Progress fill Firefox */
input[type="range"].range-emerald::-moz-range-progress {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--emerald-500) 0%, var(--emerald-400) 100%);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.50);
}

/* Thumb Firefox */
input[type="range"].range-emerald::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--emerald-400) 0%, var(--emerald-500) 100%);
    border: 3px solid var(--white);
    box-shadow:
        0 2px 8px rgba(16, 185, 129, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    cursor: grab;
    transition: box-shadow var(--dur-base) var(--ease-out-expo), transform var(--dur-base) var(--ease-out-expo);
}

input[type="range"].range-emerald::-moz-range-thumb:hover {
    transform: scale(1.08);
    box-shadow:
        0 4px 16px rgba(16, 185, 129, 0.55),
        0 0 0 8px rgba(16, 185, 129, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Variante fond clair */
input[type="range"].range-emerald-light::-webkit-slider-runnable-track {
    background: var(--bone-100);
    border: 1px solid var(--bone-200);
    box-shadow: inset 0 1px 2px rgba(6, 31, 37, 0.06);
}

input[type="range"].range-emerald-light::-moz-range-track {
    background: var(--bone-100);
    border: 1px solid var(--bone-200);
}


/* ----------------------------------------------------------------------------
   11. CUSTOM SELECT (chevron personnalise)
   ---------------------------------------------------------------------------- */
select.select-custom {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A989E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
    padding-right: 2.75rem;
    cursor: pointer;
}

select.select-custom:focus {
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* Variante fond sombre */
select.select-custom-dark {
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}


/* ----------------------------------------------------------------------------
   12. GRADIENT BORDER ANIMEE (cards features hover)
   ---------------------------------------------------------------------------- */
.gradient-border {
    position: relative;
    isolation: isolate;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, var(--emerald-500), transparent 50%, var(--emerald-300));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--dur-slow) var(--ease-out-expo);
    pointer-events: none;
    z-index: 1;
}

.gradient-border:hover::before,
.gradient-border.is-active::before {
    opacity: 1;
}


/* ----------------------------------------------------------------------------
   13. CHECKBOX / RADIO PREMIUM
   ---------------------------------------------------------------------------- */
input[type="checkbox"].checkbox-emerald,
input[type="radio"].radio-emerald {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--bone-200);
    background: var(--white);
    cursor: pointer;
    position: relative;
    transition: all var(--dur-base) var(--ease-out-expo);
    flex-shrink: 0;
}

input[type="checkbox"].checkbox-emerald {
    border-radius: 6px;
}
input[type="radio"].radio-emerald {
    border-radius: 999px;
}

input[type="checkbox"].checkbox-emerald:hover,
input[type="radio"].radio-emerald:hover {
    border-color: var(--emerald-400);
}

input[type="checkbox"].checkbox-emerald:checked,
input[type="radio"].radio-emerald:checked {
    border-color: var(--emerald-500);
    background: var(--grad-cta);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.30);
}

input[type="checkbox"].checkbox-emerald:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 11px;
    background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
    transform: translate(-50%, -50%);
}

input[type="radio"].radio-emerald:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 999px;
    transform: translate(-50%, -50%);
}


/* ----------------------------------------------------------------------------
   14. SHIMMER LOADING SKELETON
   ---------------------------------------------------------------------------- */
.shimmer {
    background: linear-gradient(
        90deg,
        var(--bone-100) 0%,
        var(--bone-50) 50%,
        var(--bone-100) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.8s linear infinite;
}


/* ----------------------------------------------------------------------------
   15. TEXT BALANCE (headers, leads)
   ---------------------------------------------------------------------------- */
.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}


/* ----------------------------------------------------------------------------
   16. BUTTON UTILITIES (pour quand on veut du premium garanti)
   ---------------------------------------------------------------------------- */
.btn-primary-deluxe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 14px;
    background: var(--grad-cta);
    color: var(--white);
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    box-shadow:
        0 8px 24px rgba(16, 185, 129, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
    transition:
        transform var(--dur-base) var(--ease-out-expo),
        box-shadow var(--dur-base) var(--ease-out-expo),
        background var(--dur-base) var(--ease-out-expo);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary-deluxe::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.25) 50%, transparent 65%);
    transform: translateX(-100%);
    transition: transform 700ms var(--ease-out-expo);
}

.btn-primary-deluxe:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 32px rgba(16, 185, 129, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary-deluxe:hover::before {
    transform: translateX(100%);
}

.btn-primary-deluxe:active {
    transform: translateY(0);
}


/* ----------------------------------------------------------------------------
   17a. REVEAL ANIMATIONS EXTENDED (fadeInLeft, fadeInRight, scaleIn)
   ---------------------------------------------------------------------------- */
@keyframes fadeInLeft {
    0%   { opacity: 0; transform: translateX(-32px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    0%   { opacity: 0; transform: translateX(32px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    0%   { opacity: 0; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

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

@keyframes shimmerText {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-fade-in-left  { animation: fadeInLeft  var(--dur-reveal) var(--ease-out-expo) both; }
.animate-fade-in-right { animation: fadeInRight var(--dur-reveal) var(--ease-out-expo) both; }
.animate-scale-in      { animation: scaleIn     var(--dur-reveal) var(--ease-out-expo) both; }
.animate-float         { animation: float       4s var(--ease-in-out-quart) infinite; }

/* Alias generique .reveal (pour compat avec JS Intersection Observer) */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity var(--dur-reveal) var(--ease-out-expo),
        transform var(--dur-reveal) var(--ease-out-expo);
    will-change: opacity, transform;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition:
        opacity var(--dur-reveal) var(--ease-out-expo),
        transform var(--dur-reveal) var(--ease-out-expo);
}

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

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition:
        opacity var(--dur-reveal) var(--ease-out-expo),
        transform var(--dur-reveal) var(--ease-out-expo);
}

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

/* Stagger cascade via parent .stagger */
.stagger > .reveal:nth-child(1),
.stagger > .reveal-left:nth-child(1),
.stagger > .reveal-scale:nth-child(1) { transition-delay: 0ms; }

.stagger > .reveal:nth-child(2),
.stagger > .reveal-left:nth-child(2),
.stagger > .reveal-scale:nth-child(2) { transition-delay: 80ms; }

.stagger > .reveal:nth-child(3),
.stagger > .reveal-left:nth-child(3),
.stagger > .reveal-scale:nth-child(3) { transition-delay: 160ms; }

.stagger > .reveal:nth-child(4),
.stagger > .reveal-left:nth-child(4),
.stagger > .reveal-scale:nth-child(4) { transition-delay: 240ms; }

.stagger > .reveal:nth-child(5),
.stagger > .reveal-left:nth-child(5),
.stagger > .reveal-scale:nth-child(5) { transition-delay: 320ms; }

.stagger > .reveal:nth-child(6),
.stagger > .reveal-left:nth-child(6),
.stagger > .reveal-scale:nth-child(6) { transition-delay: 400ms; }


/* ----------------------------------------------------------------------------
   17b. MARQUEE (bandeau logos partenaires)
   ---------------------------------------------------------------------------- */
@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee {
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
}

.marquee__track {
    display: flex;
    gap: 3rem;
    flex-shrink: 0;
    min-width: 100%;
    animation: marqueeScroll 40s linear infinite;
    will-change: transform;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}


/* ----------------------------------------------------------------------------
   17c. TOOLTIP (data-tooltip attribute)
   ---------------------------------------------------------------------------- */
.tooltip {
    position: relative;
    display: inline-flex;
}

.tooltip::before,
.tooltip::after {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition:
        opacity var(--dur-base) var(--ease-out-expo),
        transform var(--dur-base) var(--ease-out-expo);
}

.tooltip::before {
    content: attr(data-tooltip);
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 6px 12px;
    background: var(--ink-900);
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 50;
}

.tooltip::after {
    content: '';
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 6px solid transparent;
    border-top-color: var(--ink-900);
    z-index: 50;
}

.tooltip:hover::before,
.tooltip:hover::after,
.tooltip:focus-visible::before,
.tooltip:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* ----------------------------------------------------------------------------
   17d. LOADING SPINNER
   ---------------------------------------------------------------------------- */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(16, 185, 129, 0.20);
    border-top-color: var(--emerald-500);
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

.spinner-lg {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

.spinner-white {
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: var(--white);
}


/* ----------------------------------------------------------------------------
   17e. SKELETON LOADERS (extension)
   ---------------------------------------------------------------------------- */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bone-100) 0%,
        var(--bone-50) 50%,
        var(--bone-100) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.6s var(--ease-in-out-quart) infinite;
    border-radius: 8px;
}

.skeleton-dark {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.6s var(--ease-in-out-quart) infinite;
    border-radius: 8px;
}

.skeleton-text   { height: 14px; margin-bottom: 8px; }
.skeleton-title  { height: 24px; margin-bottom: 12px; width: 60%; }
.skeleton-avatar { width: 48px;  height: 48px; border-radius: 50%; }


/* ----------------------------------------------------------------------------
   17f. PREMIUM EFFECTS — Card lift, btn press, glow, zoom, text gradient
   ---------------------------------------------------------------------------- */

/* Card hover lift */
.card-lift {
    transition:
        transform var(--dur-base) var(--ease-out-expo),
        box-shadow var(--dur-base) var(--ease-out-expo);
    will-change: transform;
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

.card-lift:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Button press */
.btn-press {
    transition:
        transform var(--dur-fast) var(--ease-out-expo),
        box-shadow var(--dur-fast) var(--ease-out-expo);
}

.btn-press:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-soft);
}

/* Glow on focus (wrapper autour d'un input) */
.glow-focus:focus-within {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.20);
    border-color: var(--emerald-500);
    transition:
        box-shadow var(--dur-base) var(--ease-out-expo),
        border-color var(--dur-base) var(--ease-out-expo);
}

/* Image zoom on hover */
.img-zoom {
    overflow: hidden;
    border-radius: inherit;
}

.img-zoom img {
    transition: transform 600ms var(--ease-out-expo);
    will-change: transform;
}

.img-zoom:hover img {
    transform: scale(1.05);
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--emerald-400) 0%, var(--emerald-300) 50%, var(--emerald-500) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.text-gradient-forest {
    background: linear-gradient(135deg, var(--forest-900) 0%, var(--forest-500) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.shimmer-text {
    background: linear-gradient(
        90deg,
        var(--emerald-500) 0%,
        var(--emerald-300) 50%,
        var(--emerald-500) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerText 3s linear infinite;
}

/* Backdrop blur progressif (fade vers le bas) */
.blur-fade {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}

.blur-fade-top {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    mask-image: linear-gradient(to top, black 0%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 0%, black 70%, transparent 100%);
}

/* Smooth corner morphing au hover */
.morph-corners {
    border-radius: 20px;
    transition: border-radius var(--dur-slow) cubic-bezier(0.34, 1.56, 0.64, 1);
}

.morph-corners:hover {
    border-radius: 28px 16px 28px 16px;
}

/* Scrollbar dark (pour sections sombres) */
.scrollbar-dark::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.scrollbar-dark::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.20);
    border-color: transparent;
}

.scrollbar-dark::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* No scrollbar (pour carousels horizontaux) */
.no-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Clip text multiline */
.clip-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clip-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


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

    .reveal-on-scroll,
    .reveal,
    .reveal-left,
    .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-gradient,
    .marquee__track,
    .animate-float {
        animation: none !important;
    }
}


/* ----------------------------------------------------------------------------
   18. PRINT STYLES (minimal, sobre)
   ---------------------------------------------------------------------------- */
@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    html {
        font-size: 11pt;
    }

    body {
        font-family: Georgia, 'Times New Roman', serif;
        line-height: 1.5;
    }

    header,
    footer,
    nav,
    .no-print,
    [role="banner"],
    [role="contentinfo"] {
        display: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
        color: #000 !important;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
        color: #555 !important;
    }

    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }

    h1, h2, h3 {
        page-break-after: avoid;
        break-after: avoid;
    }

    p, blockquote {
        orphans: 3;
        widows: 3;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
}
