@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Epilogue:wght@300;400;500;600;700;800&display=swap');

/* ══════════════════════════════════════════════
   TYPOGRAPHIE
══════════════════════════════════════════════ */
html { font-size: 17px; }
body {
    font-family: 'Epilogue', sans-serif;
    line-height: 1.75;
    background-color: #f1f5f9;   /* slate-100 — fond global légèrement teinté */
    color: #1e293b;              /* slate-800 — ratio 13:1 sur blanc */
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .hero-title { font-family: 'Playfair Display', serif; }

/* Texte secondaire — minimum gray-700 (9.7:1 sur blanc) */
section:not(.hero-dark) p, section:not(.hero-dark) li, section:not(.hero-dark) blockquote, footer p {
    color: #374151;
    font-size: 1rem !important;
    line-height: 1.75 !important;
}
section h3, section h4 { color: #0f172a; }

/* ══════════════════════════════════════════════
   SECTIONS — SYSTÈME DE FOND
══════════════════════════════════════════════ */

/* Fond blanc pur (cartes, formulaires) */
.section-white { background-color: #ffffff; }

/* Fond clair légèrement teinté — sections alternées */
.section-light { background-color: #f8fafc; }   /* slate-50 */

/* Fond sombre — sections d'accent */
.section-dark  { background-color: #0f172a; }   /* slate-900 */

/* Hero page intérieure */
.page-hero {
    background-color: #0f172a;
    border-bottom: 3px solid #FF9500;
}

/* Hero d'accueil */
.hero-dark { background-color: #0f172a; }
.hero-dark::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(255,149,0,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ══════════════════════════════════════════════
   CARTES
══════════════════════════════════════════════ */
.card-hover { transition: all 0.35s cubic-bezier(0.4,0,0.2,1); }
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.12);
}

/* Carte signature PDG */
.card-accent {
    background: #ffffff;
    border-top: 4px solid #FF9500;
    border-radius: 1rem;
    box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}

/* Carte solution (sur fond slate-50) */
.solution-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s, transform 0.3s;
}
.solution-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

/* ══════════════════════════════════════════════
   ANIMATION & SCROLL
══════════════════════════════════════════════ */
.floating-animation { animation: float 8s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25%       { transform: translateY(-12px) rotate(0.8deg); }
    50%       { transform: translateY(-20px) rotate(-0.8deg); }
    75%       { transform: translateY(-8px) rotate(0.4deg); }
}

.section-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
                transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.section-reveal.active { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }

/* ══════════════════════════════════════════════
   DARK MODE
══════════════════════════════════════════════ */
.dark body          { background-color: #0f172a; color: #f1f5f9; }
.dark section p,
.dark section li,
.dark section blockquote { color: #cbd5e1; } /* slate-300 */
.dark section h3,
.dark section h4    { color: #f8fafc; }
.dark .section-white { background-color: #1e293b; }
.dark .section-light { background-color: #0f172a; }
.dark .card-accent   { background: #1e293b; }
.dark .solution-card { background: #1e293b; border-color: #334155; }
.dark .text-gray-500,
.dark .text-gray-600 { color: #94a3b8 !important; }   /* slate-400 */
.dark .text-gray-700 { color: #cbd5e1 !important; }   /* slate-300 */
.dark .text-gray-800,
.dark .text-gray-900 { color: #f1f5f9 !important; }   /* slate-100 */

/* ══════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════ */
.mobile-menu { transform: translateX(100%); transition: transform 0.3s ease-in-out; }
.mobile-menu.active { transform: translateX(0); }

.nav-active { color: #FF9500 !important; font-weight: 700; }
.nav-active-indicator { position: relative; }
.nav-active-indicator::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 2px;
    background: #FF9500;
    border-radius: 9999px;
}

/* Cas spécial : bouton CTA (Contact) actif — fond orange, texte blanc */
nav a.nav-active[class*="rounded-full"] {
    color: #fff !important;
    outline: 2px solid #fff;
    outline-offset: 2px;
    opacity: 0.9;
}
nav a.nav-active-indicator[class*="rounded-full"]::after {
    display: none;
}

/* ══════════════════════════════════════════════
   BADGES & LABELS
══════════════════════════════════════════════ */
.badge-operational {
    background: #dcfce7;
    color: #15803d;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 9999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.dark .badge-operational { background: #14532d; color: #86efac; }

/* ══════════════════════════════════════════════
   LOGOS OUTILS
══════════════════════════════════════════════ */
.tool-logo {
    height: 3rem;
    width: auto;
    object-fit: contain;
    max-width: 9rem;
}

/* ══════════════════════════════════════════════
   BANDEAU LOGOS DÉFILANT (MARQUEE)
══════════════════════════════════════════════ */
.logos-marquee-outer {
    overflow: hidden;
    position: relative;
}
.logos-marquee-outer::before,
.logos-marquee-outer::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}
.logos-marquee-outer::before {
    left: 0;
    background: linear-gradient(to right, #f1f5f9, transparent);
}
.logos-marquee-outer::after {
    right: 0;
    background: linear-gradient(to left, #f1f5f9, transparent);
}
.dark .logos-marquee-outer::before {
    background: linear-gradient(to right, #0f172a, transparent);
}
.dark .logos-marquee-outer::after {
    background: linear-gradient(to left, #0f172a, transparent);
}

.logos-marquee-track {
    display: flex;
    align-items: center;   /* centre vertical de tous les items */
    width: max-content;
    animation: logos-scroll 28s linear infinite;
}
.logos-marquee-track:hover { animation-play-state: paused; }

@keyframes logos-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logo-marquee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 2.5rem;
    flex-shrink: 0;
    text-decoration: none;
    /* hauteur fixe pour que tous les items soient identiques */
    height: 6rem;
}
.logo-marquee-item img {
    /* conteneur fixe — image centrée dedans */
    display: block;
    width: 8rem;
    height: 3rem;
    object-fit: contain;
    object-position: center;
    filter: grayscale(20%);
    opacity: 0.8;
    transition: filter 0.3s, opacity 0.3s;
}
.logo-marquee-item:hover img { filter: grayscale(0%); opacity: 1; }
.logo-marquee-item span {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}
