/* GENOR - Agence Web - Feuille de style principale */

:root {
    /* Palette */
    --bg: #0b0d17;
    --bg-soft: #11142a;
    --surface: #ffffff;
    --surface-soft: #f7f8fc;
    --border: #e5e7f0;
    --text: #0f172a;
    --text-soft: #475569;
    --text-muted: #64748b;
    --primary: #6366f1;
    --primary-2: #8b5cf6;
    --accent: #06b6d4;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-soft: linear-gradient(135deg, rgba(99,102,241,0.10) 0%, rgba(139,92,246,0.10) 50%, rgba(6,182,212,0.10) 100%);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 60px rgba(99, 102, 241, 0.18);
    --radius: 14px;
    --radius-lg: 22px;
    --max-width: 1200px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-2); }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(229, 231, 240, 0.6);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.logo:hover { color: var(--primary); }

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    color: var(--text-soft);
    font-size: 14.5px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
    background: var(--surface-soft);
}

.nav-cta {
    margin-left: 8px;
}

.nav-phone a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: 14.5px;
    padding: 8px 12px !important;
    border-radius: 8px;
    background: var(--gradient-soft);
    border: 1px solid rgba(99,102,241,0.18);
    transition: all var(--transition);
}
.nav-phone a:hover {
    color: #fff !important;
    background: var(--gradient);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99,102,241,0.28);
}
.nav-phone svg { width: 14px; height: 14px; flex-shrink: 0; }

/* FLOATING WHATSAPP BUTTON */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 6px 20px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s;
    text-decoration: none;
    animation: whatsappPulse 2.6s ease-in-out infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 30px rgba(37,211,102,0.55), 0 4px 12px rgba(0,0,0,0.15);
    background: #1ebe5a;
    animation: none;
}
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.5); }
    70% { box-shadow: 0 6px 20px rgba(37,211,102,0.45), 0 0 0 16px rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float { animation: none; }
    .page-hero { animation: none; }
}

/* PHONE CTA BANNER (service pages) */
.phone-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 50px 30px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #0b0d17 0%, #1e1b4b 100%);
    color: #fff;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
}
.phone-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(40% 60% at 0% 50%, rgba(99,102,241,0.32) 0%, transparent 70%),
        radial-gradient(40% 60% at 100% 50%, rgba(236,72,153,0.22) 0%, transparent 70%);
    pointer-events: none;
}
.phone-cta > * { position: relative; }
.phone-cta h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.phone-cta p { color: rgba(255,255,255,0.85); margin-bottom: 6px; max-width: 540px; }
.phone-cta .phone-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: 12px;
    background: #fff;
    color: var(--primary);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 8px 22px rgba(99,102,241,0.35);
}
.phone-cta .phone-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(99,102,241,0.5);
    color: var(--primary-2);
}
.phone-cta .phone-link svg { width: 22px; height: 22px; }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--text);
    align-items: center;
    justify-content: center;
}

.nav-toggle svg { width: 24px; height: 24px; }

/* MEGA-MENU services (from scratch) */
.nav-services { position: relative; }

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 760px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 24px;
    z-index: 110;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.nav-services:hover > .mega-menu,
.nav-services:focus-within > .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.mega-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #111;
    transition: background 0.2s, transform 0.2s;
    min-width: 0;
}
.mega-item:hover {
    background: #f5f3ff;
    color: #111;
}
.mega-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 10px rgba(99,102,241,0.25);
}
.mega-icon svg { width: 20px; height: 20px; }
.mega-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.mega-title {
    font-weight: 600;
    font-size: 14.5px;
    color: #111;
    line-height: 1.25;
}
.mega-subtitle {
    font-size: 13px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    text-decoration: none;
    line-height: 1;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.32);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.42);
    color: #fff;
}

.btn-ghost {
    background: rgba(255,255,255,0.6);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg { padding: 16px 32px; font-size: 16px; }

/* HERO ACCUEIL */
.hero {
    position: relative;
    padding: 110px 24px 100px;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(60% 50% at 20% 20%, rgba(99,102,241,0.18) 0%, transparent 60%),
        radial-gradient(60% 50% at 80% 30%, rgba(6,182,212,0.16) 0%, transparent 60%),
        radial-gradient(70% 60% at 50% 100%, rgba(139,92,246,0.18) 0%, transparent 60%),
        #fafbff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(99,102,241,0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(99,102,241,0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
    pointer-events: none;
}

.hero-inner { position: relative; max-width: 920px; margin: 0 auto; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,0.18); }

.hero h1 {
    font-size: clamp(34px, 5.5vw, 64px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
    color: var(--text);
}

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

.hero p.lead {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-soft);
    max-width: 720px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 28px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.hero-stats .stat strong {
    display: block;
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 6px;
}
.hero-stats .stat span { color: var(--text-soft); font-size: 14px; }

/* PAGE HERO (interieur) - degrade beau et moderne */
.page-hero {
    position: relative;
    padding: 110px 24px 90px;
    text-align: center;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 28%, #6d28d9 62%, #db2777 100%);
    background-size: 200% 200%;
    animation: pageHeroShift 18s ease-in-out infinite;
    border-bottom: 0;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(60% 50% at 20% 25%, rgba(99,102,241,0.55) 0%, transparent 60%),
        radial-gradient(50% 45% at 80% 75%, rgba(236,72,153,0.45) 0%, transparent 65%),
        radial-gradient(40% 40% at 50% 100%, rgba(6,182,212,0.35) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 10%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 75%);
    pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 {
    font-size: clamp(32px, 4.4vw, 52px);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 6px 28px rgba(0,0,0,0.28);
}
.page-hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.92);
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.6;
}
@keyframes pageHeroShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: 0.5; }
.page-hero .breadcrumb { color: rgba(255,255,255,0.75); }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.92); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb .sep { opacity: 0.6; }

/* HERO 2-COL avec photo (interior pages) */
.page-hero.with-photo { text-align: left; }
.page-hero.with-photo .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}
.page-hero.with-photo .hero-grid > * { position: relative; z-index: 1; }
.page-hero.with-photo h1 { text-shadow: 0 6px 28px rgba(0,0,0,0.28); }
.page-hero.with-photo p { margin: 0; max-width: 540px; }
.page-hero.with-photo .breadcrumb { margin-bottom: 22px; }

.hero-photo {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.35), 0 8px 20px rgba(0,0,0,0.2);
    aspect-ratio: 4 / 3;
    background: rgba(255,255,255,0.05);
    transform: rotate(0deg);
}
.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.hero-photo:hover img { transform: scale(1.04); }
.hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.18) 0%, transparent 50%, rgba(219,39,119,0.18) 100%);
    pointer-events: none;
}

/* HERO ACCUEIL avec photo */
.hero.with-photo { text-align: left; padding-top: 90px; padding-bottom: 80px; }
.hero.with-photo .hero-inner { max-width: var(--max-width); }
.hero.with-photo .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}
.hero.with-photo .hero-grid > * { position: relative; }
.hero.with-photo h1 { margin-bottom: 18px; }
.hero.with-photo p.lead { margin: 0 0 28px 0; max-width: 540px; }
.hero.with-photo .hero-actions { justify-content: flex-start; }
.hero.with-photo .hero-stats { margin-top: 44px; grid-column: 1 / -1; }
.hero.with-photo .hero-photo {
    aspect-ratio: 5 / 4;
    box-shadow: 0 30px 60px rgba(99,102,241,0.25), 0 12px 28px rgba(15,23,42,0.18);
}

/* SECTION photo (page-hero sections style "split") */
.section-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.section-split .section-photo {
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 5 / 4;
    box-shadow: var(--shadow-lg);
}
.section-split .section-photo img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.section-split:hover .section-photo img { transform: scale(1.03); }
.section-split h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 14px; letter-spacing: -0.02em; line-height: 1.15; }
.section-split p { color: var(--text-soft); font-size: 17px; margin-bottom: 14px; }

@media (max-width: 980px) {
    .page-hero.with-photo .hero-grid,
    .hero.with-photo .hero-grid,
    .section-split {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .page-hero.with-photo,
    .hero.with-photo { text-align: left; }
    .hero.with-photo p.lead { max-width: none; }
    .page-hero.with-photo p { max-width: none; }
    .hero-photo, .section-split .section-photo { aspect-ratio: 16 / 10; }
}

/* SECTIONS */
section { padding: 90px 0; }
section.alt { background: var(--surface-soft); }

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
}
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 14px;
}
.section-head p {
    color: var(--text-soft);
    font-size: 17px;
}

/* GRID CARDS */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    position: relative;
    padding: 32px 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-soft);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}
.card:hover {
    transform: translateY(-6px);
    border-color: rgba(99,102,241,0.4);
    box-shadow: var(--shadow-lg);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; }

.card-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--gradient);
    color: #fff;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(99,102,241,0.28);
    font-size: 22px;
    font-weight: 700;
}
.card-icon svg { width: 26px; height: 26px; }
.card:hover .card-icon { transform: rotate(-4deg) scale(1.05); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); }

.card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.card p { color: var(--text-soft); font-size: 15.5px; }
.card a.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
}
.card a.read-more:hover { color: var(--primary-2); gap: 10px; }

/* PROCESS STEPS */
.steps {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.step {
    background: #fff;
    border: 1px solid var(--border);
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    position: relative;
    transition: transform var(--transition), border-color var(--transition);
}
.step:hover { transform: translateY(-4px); border-color: rgba(99,102,241,0.4); }
.step::before {
    counter-increment: step;
    content: "0" counter(step);
    display: block;
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 14px;
    letter-spacing: -0.04em;
}
.step h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: 14.5px; }

/* CONTENT BLOCKS (article) */
.content-block { max-width: 820px; margin: 0 auto; }
.content-block h2 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 48px 0 18px;
    line-height: 1.2;
}
.content-block h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--text);
}
.content-block p { margin-bottom: 18px; color: var(--text-soft); font-size: 17px; }
.content-block ul, .content-block ol { margin: 0 0 22px 24px; color: var(--text-soft); }
.content-block li { margin-bottom: 8px; font-size: 17px; }
.content-block li strong { color: var(--text); }
.content-block .lead {
    font-size: 20px;
    color: var(--text);
    margin-bottom: 28px;
    line-height: 1.55;
    font-weight: 500;
}

/* TABLE */
.table-wrap { overflow-x: auto; margin: 24px 0 32px; }
table.compare {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
table.compare th, table.compare td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}
table.compare th {
    background: var(--surface-soft);
    font-weight: 700;
    color: var(--text);
}
table.compare tr:last-child td { border-bottom: 0; }
table.compare td:first-child { font-weight: 600; color: var(--text); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: border-color var(--transition), box-shadow var(--transition);
    overflow: hidden;
}
.faq details[open] { border-color: rgba(99,102,241,0.4); box-shadow: var(--shadow); }
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-size: 22px;
    color: var(--primary);
    transition: transform var(--transition);
}
.faq details[open] summary::after { content: "−"; }
.faq .faq-answer {
    padding: 0 22px 20px;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.7;
}
.faq .faq-answer p { margin-bottom: 12px; }

/* CTA BANNER */
.cta-banner {
    position: relative;
    padding: 80px 24px;
    text-align: center;
    border-radius: var(--radius-lg);
    background: var(--gradient);
    color: #fff;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}
.cta-banner p {
    color: rgba(255,255,255,0.92);
    margin-bottom: 28px;
    font-size: 17px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}
.cta-banner .btn-ghost {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border-color: rgba(255,255,255,0.35);
    backdrop-filter: blur(8px);
}
.cta-banner .btn-ghost:hover { background: #fff; color: var(--primary); }
.cta-banner .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }
.cta-banner .btn-primary:hover { background: rgba(255,255,255,0.92); color: var(--primary-2); }

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: start;
}
.contact-info h3 { font-size: 22px; font-weight: 800; margin-bottom: 22px; letter-spacing: -0.01em; }
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}
.contact-info-item .icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--gradient);
    color: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}
.contact-info-item .icon svg { width: 18px; height: 18px; }
.contact-info-item strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.contact-info-item span, .contact-info-item a { color: var(--text-soft); font-size: 15px; }
.contact-info-item a:hover { color: var(--primary); }

.contact-form {
    background: #fff;
    padding: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.form-rgpd { margin: 8px 0 22px; }
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-soft);
    cursor: pointer;
    line-height: 1.55;
    font-weight: 400 !important;
    margin: 0 !important;
}
.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}
.checkbox-label:hover { color: var(--text); }

/* FOOTER */
.site-footer {
    background: #0b0d17;
    color: rgba(255,255,255,0.72);
    padding: 70px 24px 30px;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 50px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.footer-col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}
.footer-col p, .footer-col li { font-size: 14.5px; line-height: 1.75; }
.footer-col ul { list-style: none; }
.footer-col a { color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: #fff; }
.footer-col .footer-logo {
    display: flex; align-items: center; gap: 10px; color: #fff;
    font-weight: 800; font-size: 22px; margin-bottom: 14px;
}
.footer-col .footer-logo .logo-mark { box-shadow: none; }
.footer-bottom {
    max-width: var(--max-width);
    margin: 50px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}

/* SERVICE PAGE LAYOUT */
.service-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 50px;
    align-items: start;
}
.service-aside {
    position: sticky;
    top: 100px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
}
.service-aside h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 14px;
    font-weight: 700;
}
.service-aside ul { list-style: none; margin: 0 0 22px 0; padding: 0; }
.service-aside li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.service-aside li:last-child { border-bottom: 0; }
.service-aside li a {
    color: var(--text-soft);
    font-size: 14.5px;
    display: block;
    transition: color var(--transition), padding-left var(--transition);
}
.service-aside li a:hover { color: var(--primary); padding-left: 4px; }
.service-aside li.current a { color: var(--primary); font-weight: 600; }

/* PILLS */
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.pill {
    padding: 6px 12px;
    background: var(--gradient-soft);
    border: 1px solid rgba(99,102,241,0.18);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

/* ANIMATIONS - reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* FLOAT animation for hero shapes */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* RESPONSIVE */
@media (max-width: 980px) {
    .grid, .grid.cols-2, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 22px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .contact-grid, .service-layout { grid-template-columns: 1fr; }
    .service-aside { position: static; }
    .form-row { grid-template-columns: 1fr; }
    section { padding: 64px 0; }
    .hero { padding: 80px 24px 70px; }
}

@media (max-width: 860px) {
    .nav-phone { display: none; }
}

/* Desktop intermediaire : mega-menu ancre a droite pour eviter overflow */
@media (min-width: 769px) and (max-width: 1100px) {
    .mega-menu {
        left: auto;
        right: 0;
        transform: translateY(8px);
    }
    .nav-services:hover > .mega-menu,
    .nav-services:focus-within > .mega-menu {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
        padding: 12px 18px 18px;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav li { border-bottom: 1px solid var(--border); }
    .main-nav li:last-child { border-bottom: 0; }
    .main-nav a { padding: 14px 8px; border-radius: 0; }
    .nav-cta { margin: 12px 0 0 8px; align-self: flex-start; }
    .nav-phone { display: list-item; }
    .nav-phone a { background: transparent; border: 0; padding: 14px 8px !important; }
    .whatsapp-float { bottom: 16px; right: 16px; width: 52px; height: 52px; }
    .whatsapp-float svg { width: 26px; height: 26px; }
    .phone-cta { padding: 36px 22px; }
    .phone-cta .phone-link { font-size: 18px; padding: 14px 22px; }
    .page-hero { padding: 70px 22px 60px; }
    /* MEGA-MENU mobile : panneau full-width sous le burger */
    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none !important;
        width: 100%;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        padding: 4px 0 12px 0;
        z-index: auto;
    }
    .mega-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .mega-item { padding: 10px 6px; }
    .mega-item:hover { background: var(--surface-soft); }
    .mega-icon { width: 34px; height: 34px; border-radius: 8px; }
    .mega-icon svg { width: 17px; height: 17px; }
    .mega-title { font-size: 14px; }
    .mega-subtitle { font-size: 12.5px; }
    .nav-toggle { display: inline-flex; }
    .header-inner { position: relative; }
    .grid, .grid.cols-2, .grid.cols-4 { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .contact-form { padding: 24px; }
    body { font-size: 16px; }
}
