/* ==========================================================
   DIGIMAT-TECH – feuille de style du site public
   Couleurs reprises du logo : indigo, vert, orange.
   ========================================================== */

:root {
    --primary: #3d22e6;
    --primary-dark: #2a14b8;
    --primary-soft: #eeebff;
    --green: #148a3c;
    --green-soft: #e6f5ec;
    --orange: #f5a52f;
    --navy: #0b1035;
    --navy-2: #151a4d;
    --text: #1d2140;
    --muted: #5f6480;
    --bg: #ffffff;
    --bg-alt: #f5f6fb;
    --border: #e4e6f0;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 8px rgba(17, 20, 60, .06);
    --shadow: 0 12px 32px rgba(17, 20, 60, .10);
    --shadow-lg: 0 24px 60px rgba(17, 20, 60, .18);
    --gradient: linear-gradient(135deg, var(--primary) 0%, #5b3cf5 55%, #7a5cff 100%);
    --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --header-h: 84px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 8px; color: #fff; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
    font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.2;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
    white-space: nowrap;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-lg { padding: 1em 1.8em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 22px rgba(61, 34, 230, .35); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(61, 34, 230, .45); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .5); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; margin-top: 1.5rem; }
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; transform: translateY(-2px); }
.sidebar .btn-ghost { color: var(--primary); border-color: var(--border); background: #fff; margin-top: .6rem; }
.sidebar .btn-ghost:hover { border-color: var(--primary); }

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--navy); color: #c9cbe6; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 1rem; }
.topbar-info { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.topbar a, .topbar span { color: #c9cbe6; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: #fff; }
.topbar .icon { color: var(--orange); }
.topbar-social { display: flex; gap: .8rem; }

/* ---------- En-tête ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); transition: height .3s var(--ease); gap: 1.5rem; }
.site-header.is-scrolled .header-inner { height: 68px; }
.brand img { height: 56px; width: auto; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand img { height: 46px; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
    display: inline-flex; align-items: center; gap: .3em;
    padding: .6em .9em; border-radius: 999px;
    font-family: var(--font-head); font-weight: 600; color: var(--text); font-size: .95rem;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.active { color: var(--primary); background: var(--primary-soft); }
.caret { width: .9em; height: .9em; transition: transform .25s; }
.dropdown-toggle { display: none; }

.dropdown {
    position: absolute; top: calc(100% + 12px); left: 50%;
    transform: translate(-50%, 10px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border);
    padding: 1rem; width: min(680px, 90vw);
}
.dropdown::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-dropdown:hover .caret { transform: rotate(180deg); }
.dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
.dropdown-item { display: flex; align-items: center; gap: .8rem; padding: .65rem .75rem; border-radius: var(--radius-sm); color: var(--text); font-weight: 600; font-size: .92rem; line-height: 1.3; }
.dropdown-item small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.dropdown-item:hover { background: var(--bg-alt); color: var(--primary); }
.dropdown-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; transition: background .2s, color .2s; }
.dropdown-item:hover .dropdown-icon { background: var(--primary); color: #fff; }

.burger { display: none; width: 46px; height: 46px; border: 0; background: var(--primary-soft); border-radius: 12px; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 29px; }
.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero / diaporama ---------- */
.hero { position: relative; height: clamp(560px, 86vh, 820px); background: var(--navy); overflow: hidden; color: #fff; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 1.1s; display: flex; align-items: center; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.12); }
.hero-slide.is-active .hero-bg { animation: kenburns 9s ease-out forwards; }
.hero-slide::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(11, 16, 53, .92) 0%, rgba(11, 16, 53, .72) 45%, rgba(61, 34, 230, .25) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 1200px; padding-bottom: 60px; }
.hero-content > * { max-width: 680px; }
.hero .eyebrow { color: var(--orange); }
.hero .eyebrow::before { background: var(--orange); }
.hero-title { color: #fff; font-size: clamp(2.1rem, 5vw, 3.8rem); margin-bottom: .45em; }
.hero-text { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: #dcdff5; max-width: 600px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-slide .eyebrow, .hero-slide .hero-title, .hero-slide .hero-text, .hero-slide .hero-actions { opacity: 0; transform: translateY(28px); }
.hero-slide.is-active .eyebrow { animation: rise .8s .25s var(--ease) forwards; }
.hero-slide.is-active .hero-title { animation: rise .9s .4s var(--ease) forwards; }
.hero-slide.is-active .hero-text { animation: rise .9s .6s var(--ease) forwards; }
.hero-slide.is-active .hero-actions { animation: rise .9s .8s var(--ease) forwards; }

.hero-controls { position: absolute; left: 0; right: 0; bottom: 110px; z-index: 3; display: flex; justify-content: space-between; align-items: center; }
.hero-dots { display: flex; gap: .6rem; }
.hero-dot { width: 54px; height: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, .25); border-radius: 4px; overflow: hidden; }
.hero-dot span { display: block; height: 100%; width: 0; background: var(--orange); }
.hero-dot.is-active span { animation: progress var(--slide-interval, 6500ms) linear forwards; }
.hero.is-paused .hero-dot.is-active span { animation-play-state: paused; }
.hero-arrows { display: flex; gap: .6rem; }
.hero-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; transition: background .2s, transform .2s; backdrop-filter: blur(6px); }
.hero-arrow:hover { background: #fff; color: var(--navy); transform: scale(1.06); }

@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes progress { from { width: 0; } to { width: 100%; } }

/* ---------- Atouts (sous le hero) ---------- */
.features { position: relative; z-index: 5; margin-top: -70px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.feature { display: flex; gap: 1rem; padding: 1.8rem 1.5rem; border-right: 1px solid var(--border); transition: background .3s; }
.feature:last-child { border-right: 0; }
.feature:hover { background: var(--bg-alt); }
.feature h3 { font-size: 1.02rem; margin-bottom: .3em; }
.feature p { font-size: .9rem; color: var(--muted); margin: 0; }
.feature-icon { display: grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; background: var(--primary-soft); color: var(--primary); transition: transform .4s var(--ease), background .3s, color .3s; }
.feature-icon .icon { width: 26px; height: 26px; }
.feature:hover .feature-icon { background: var(--gradient); color: #fff; transform: rotate(-8deg) scale(1.05); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; text-align: left; gap: 1.5rem; flex-wrap: wrap; }
.section-head-row h2 { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--green); border-radius: 2px; }

/* ---------- Filtres ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.5rem; }
.filter { border: 1px solid var(--border); background: #fff; color: var(--text); padding: .55em 1.2em; border-radius: 999px; font-weight: 600; font-size: .9rem; transition: all .25s var(--ease); }
.filter:hover { border-color: var(--primary); color: var(--primary); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
[data-filter-target] > .is-hidden { display: none !important; }
[data-filter-target] > .is-filtered-in { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Cartes services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.service-card {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.9rem 1.6rem; color: var(--text); overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--gradient); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--primary-soft); color: var(--primary); margin-bottom: 1.2rem; transition: all .4s var(--ease); }
.service-icon .icon { width: 28px; height: 28px; }
.service-card:hover .service-icon { background: var(--gradient); color: #fff; transform: rotate(-6deg); box-shadow: 0 10px 24px rgba(61, 34, 230, .35); }
.service-cat { display: inline-flex; align-items: center; gap: .4em; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: .4rem; }
.service-card h3 { margin-bottom: .5em; }
.service-card p { color: var(--muted); font-size: .94rem; flex-grow: 1; }
.service-link { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--primary); }
.service-link .icon { transition: transform .25s var(--ease); }
.service-card:hover .service-link .icon, .service-link:hover .icon { transform: translateX(4px); }

/* Liste détaillée (page services) */
.services-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.service-row { display: grid; grid-template-columns: 200px 1fr; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.service-row:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.service-row-media { position: relative; overflow: hidden; background: var(--primary-soft); min-height: 200px; }
.service-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); position: absolute; inset: 0; }
.service-row:hover .service-row-media img { transform: scale(1.08); }
.service-row-body { padding: 1.6rem; display: flex; flex-direction: column; }
.service-row-body h2 { font-size: 1.25rem; margin-bottom: .4em; }
.service-row-body h2 a { color: var(--navy); }
.service-row-body h2 a:hover { color: var(--primary); }
.service-row-body p { color: var(--muted); font-size: .94rem; flex-grow: 1; }
.card-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: var(--gradient); color: rgba(255, 255, 255, .9); }
.card-placeholder .icon { width: 56px; height: 56px; }

/* ---------- Bloc texte + image ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.split-media::before { content: ""; position: absolute; inset: auto -18px -18px auto; width: 60%; height: 60%; border-radius: var(--radius); background: var(--gradient); z-index: -1; opacity: .9; }
.media-badge { position: absolute; left: -20px; bottom: 30px; display: flex; align-items: center; gap: .8rem; background: #fff; padding: 1rem 1.3rem; border-radius: var(--radius-sm); box-shadow: var(--shadow); animation: float 5s ease-in-out infinite; }
.media-badge .icon { width: 28px; height: 28px; color: var(--green); }
.media-badge span { line-height: 1.25; color: var(--muted); font-size: .88rem; }
.media-badge strong { display: block; color: var(--navy); font-family: var(--font-head); font-size: 1.05rem; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.split-text p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .7rem; }
.checks li { display: flex; align-items: flex-start; gap: .7rem; font-weight: 500; }
.checks .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--green-soft); color: var(--green); margin-top: 1px; }

/* ---------- Chiffres clés ---------- */
.stats { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #2a1f8f 100%); color: #fff; padding: 70px 0; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(122, 92, 255, .45), transparent 70%); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; position: relative; }
.stat { text-align: center; }
.stat-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--orange); margin-bottom: .8rem; }
.stat-icon .icon { width: 26px; height: 26px; }
.stat-value { display: block; font-family: var(--font-head); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 800; line-height: 1; }
.stat-value::after { content: "+"; color: var(--orange); }
.stat-label { color: #b9bce0; font-size: .95rem; }

/* ---------- Étapes ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--border) 0 10px, transparent 10px 18px); }
.step { position: relative; text-align: center; padding: 0 .5rem; }
.step-num { position: relative; display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); color: var(--primary); font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; margin-bottom: 1.2rem; transition: all .4s var(--ease); }
.step:hover .step-num { background: var(--gradient); color: #fff; border-color: transparent; transform: scale(1.1); box-shadow: 0 10px 26px rgba(61, 34, 230, .35); }
.step p { color: var(--muted); font-size: .94rem; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; margin-bottom: 2.5rem; }
.gallery-item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--border); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption { position: absolute; inset: auto 0 0; padding: 2.5rem 1.2rem 1.1rem; background: linear-gradient(transparent, rgba(11, 16, 53, .9)); color: #fff; font-family: var(--font-head); font-weight: 700; transform: translateY(12px); opacity: .92; transition: transform .35s var(--ease), opacity .35s; }
.gallery-caption small { display: block; color: var(--orange); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.gallery-item:hover .gallery-caption { transform: none; opacity: 1; }

/* ---------- Cartes articles ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--primary-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-body h3 { font-size: 1.12rem; }
.card-body h3 a { color: var(--navy); }
.card-body h3 a:hover { color: var(--primary); }
.card-body p { color: var(--muted); font-size: .93rem; flex-grow: 1; }
.card-meta { display: inline-flex; align-items: center; gap: .4em; font-size: .82rem; color: var(--muted); margin-bottom: .6rem; }

/* ---------- Bandeau d'appel ---------- */
.cta { position: relative; background-size: cover; background-position: center; background-attachment: fixed; color: #fff; padding: 90px 0; }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(42, 20, 184, .94), rgba(11, 16, 53, .88)); }
.cta-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: #d7d9f5; margin: 0; max-width: 560px; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }
.cta .btn-primary:hover { background: var(--orange); color: var(--navy); }

/* ---------- En-tête des pages internes ---------- */
.page-hero { position: relative; padding: 90px 0 80px; color: #fff; background: var(--navy); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--hero-img, none); background-size: cover; background-position: center; opacity: .28; transform: scale(1.05); animation: kenburns 12s ease-out forwards; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(122, 92, 255, .45), transparent 45%), linear-gradient(120deg, rgba(11, 16, 53, .95) 30%, rgba(11, 16, 53, .6)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 820px; margin-bottom: .35em; animation: rise .8s .1s var(--ease) both; }
.page-hero p { color: #d2d5f2; font-size: 1.1rem; max-width: 680px; margin: 0; animation: rise .8s .25s var(--ease) both; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .88rem; color: #aeb2dc; margin-bottom: 1.2rem; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--orange); }

/* ---------- Contenu ---------- */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; align-items: start; }
.prose { font-size: 1.04rem; }
.prose h2 { font-size: 1.55rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5em; }
.prose p, .prose li { color: #3a3f5c; }
.prose ul { padding: 0; list-style: none; margin: 0 0 1.4em; display: grid; gap: .55rem; }
.prose ul li { position: relative; padding-left: 1.8rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 3px; background: var(--gradient); transform: rotate(45deg); }
.prose strong { color: var(--navy); }
.prose-figure { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.prose-figure img { width: 100%; max-height: 460px; object-fit: cover; }
.lead { font-size: 1.2rem; color: var(--navy) !important; font-weight: 500; }
.article-meta { display: inline-flex; align-items: center; gap: .45em; color: var(--muted); font-size: .9rem; }
.inline-cta { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 2.5rem; padding: 1.5rem 1.7rem; border-radius: var(--radius); background: var(--primary-soft); border-left: 4px solid var(--primary); }
.inline-cta strong { display: block; color: var(--navy); font-family: var(--font-head); font-size: 1.1rem; }
.inline-cta span { color: var(--muted); font-size: .95rem; }
.share { display: flex; align-items: center; gap: .6rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font-weight: 600; }
.share a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-alt); color: var(--navy); transition: all .25s; }
.share a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1.5rem; }
.sidebar-box { background: var(--bg-alt); border-radius: var(--radius); padding: 1.6rem; }
.sidebar-box h3 { font-size: 1.1rem; }
.sidebar-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; }
.sidebar-links a { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: var(--radius-sm); color: var(--text); font-weight: 500; font-size: .94rem; transition: all .2s; }
.sidebar-links a:hover { background: #fff; color: var(--primary); padding-left: 1rem; }
.sidebar-links .icon { color: var(--primary); }
.sidebar-contact { background: var(--navy); color: #c9cbe6; }
.sidebar-contact h3 { color: #fff; }

/* ---------- À propos ---------- */
.domains { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.domain { background: #fff; border-radius: var(--radius); padding: 1.7rem; border: 1px solid var(--border); }
.domain h3 { color: var(--green); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.domain ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.domain a { display: flex; align-items: center; gap: .6rem; color: var(--navy); font-weight: 600; padding: .35rem 0; }
.domain a .icon { color: var(--primary); }
.domain a:hover { color: var(--primary); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.value .feature-icon { margin: 0 auto 1rem; width: 64px; height: 64px; }
.value p { color: var(--muted); }

/* ---------- Recherche, pagination, état vide ---------- */
.search-bar { display: flex; align-items: center; gap: .6rem; max-width: 620px; margin: 0 auto 2.5rem; padding: .45rem .45rem .45rem 1.1rem; background: #fff; border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-sm); }
.search-bar .icon { color: var(--muted); }
.search-bar input { flex: 1; border: 0; outline: 0; font: inherit; background: transparent; min-width: 0; }
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 3rem; }
.pagination a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .6rem; border-radius: 12px; border: 1px solid var(--border); color: var(--text); font-weight: 600; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination a.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty-state .icon { width: 56px; height: 56px; color: var(--border); margin-bottom: 1rem; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 380px 1fr; gap: 3rem; align-items: start; }
.contact-info { background: var(--navy); color: #c9cbe6; border-radius: var(--radius); padding: 2.2rem; position: relative; overflow: hidden; }
.contact-info::before { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(122, 92, 255, .5), transparent 70%); }
.contact-info h2 { color: #fff; font-size: 1.5rem; }
.info-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.4rem; position: relative; }
.info-list li { display: flex; gap: 1rem; }
.info-icon { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--orange); }
.info-list strong { display: block; color: #fff; font-family: var(--font-head); }
.info-list a { color: #c9cbe6; }
.info-list a:hover { color: #fff; }
.contact-form-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm); }

.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: .4rem; font-weight: 600; font-size: .9rem; color: var(--navy); }
.form input, .form select, .form textarea {
    width: 100%; font: inherit; font-weight: 400; color: var(--text);
    padding: .85em 1em; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-alt);
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(61, 34, 230, .12); }
.form .has-error input, .form .has-error textarea { border-color: #d93a3a; background: #fff6f6; }
.field-error { color: #c62828; font-weight: 500; font-size: .84rem; }
.form-alert { background: #fdecec; color: #a32020; padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 500; }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; }
.form button[type=submit] { justify-self: start; }
.form button.is-loading { opacity: .7; pointer-events: none; }
.form button.is-loading .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; padding: 2.5rem 1rem; animation: pop .5s var(--ease); }
.form-success .icon { width: 72px; height: 72px; padding: 16px; border-radius: 50%; background: var(--green-soft); color: var(--green); margin-bottom: 1rem; }
.form-success p { font-size: 1.1rem; color: var(--navy); font-weight: 500; }
.map-wrap { line-height: 0; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; filter: grayscale(.3); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #a9acd0; padding-top: 80px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 60px; }
.footer-logo { height: 58px; width: auto; background: #fff; border-radius: 12px; padding: 6px 10px; margin-bottom: 1.2rem; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 1.2rem; position: relative; padding-bottom: .7rem; }
.site-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--orange); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.site-footer a { color: #a9acd0; }
.site-footer a:hover { color: #fff; }
.footer-col ul a { transition: padding .2s, color .2s; }
.footer-col ul a:hover { padding-left: 4px; }
.link-more { display: inline-flex; align-items: center; gap: .3em; color: var(--orange) !important; font-weight: 600; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact .icon { color: var(--orange); margin-top: .2em; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .07); color: #fff; transition: all .25s; }
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 1.3rem 0; font-size: .86rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Boutons flottants ---------- */
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(37, 211, 102, .45); transition: transform .25s; }
.whatsapp-float .icon { width: 30px; height: 30px; }
.whatsapp-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: pulse 2.4s ease-out infinite; }
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(1.7); opacity: 0; } }
.back-to-top { position: fixed; right: 30px; bottom: 96px; z-index: 89; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--primary); }

/* ---------- Visionneuse ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6, 9, 30, .94); display: grid; place-items: center; padding: 60px 20px; opacity: 0; transition: opacity .3s; }
.lightbox.is-open { opacity: 1; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 10px; box-shadow: var(--shadow-lg); animation: pop .4s var(--ease); }
.lightbox figcaption { color: #dfe1f7; margin-top: 1rem; }
.lightbox button { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; transition: background .2s; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Page 404 ---------- */
.error-code { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(6rem, 18vw, 10rem); line-height: 1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center-actions { justify-content: center; }

/* ---------- Animations au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal-left { transform: translateX(-46px); }
.js .reveal-right { transform: translateX(46px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
    .cta { background-attachment: scroll; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature:nth-child(2) { border-right: 0; }
    .feature:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .services-list { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
    :root { --header-h: 72px; }
    .burger { display: block; z-index: 102; }
    .main-nav {
        position: fixed; inset: 0 0 0 auto; width: min(380px, 100%); z-index: 101;
        flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1.5rem;
        background: #fff; padding: calc(var(--header-h) + 20px) 24px 30px; overflow-y: auto;
        transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: var(--shadow-lg);
    }
    .nav-open .main-nav { transform: none; }
    .nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(11, 16, 53, .5); z-index: 99; animation: fade .3s; }
    @keyframes fade { from { opacity: 0; } }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav > ul > li { border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; }
    .main-nav > ul > li > a { flex: 1; padding: 1rem .4rem; border-radius: 0; font-size: 1.05rem; }
    .main-nav > ul > li > a:hover, .main-nav > ul > li > a.active { background: none; }
    .caret { display: none; }
    .dropdown-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: var(--bg-alt); border-radius: 10px; color: var(--navy); transition: transform .3s; }
    .dropdown-toggle[aria-expanded="true"] { transform: rotate(180deg); }
    .dropdown { position: static; transform: none; opacity: 1; visibility: visible; width: 100%; box-shadow: none; border: 0; padding: 0; display: none; }
    .has-dropdown:hover .dropdown { transform: none; }
    .dropdown.is-open { display: block; padding-bottom: .8rem; }
    .dropdown-grid { grid-template-columns: 1fr; }
    .nav-cta { width: 100%; }
    .topbar .hide-sm { display: none; }

    .split, .content-layout, .contact-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
    .steps::before { display: none; }
    .values { grid-template-columns: 1fr; }
    .hero-controls { bottom: 90px; }
    .cta { background-attachment: scroll; }
}

@media (max-width: 640px) {
    .container, .narrow { width: calc(100% - 32px); }
    .topbar-inner { justify-content: center; }
    .topbar-social { display: none; }
    .topbar-info { gap: 1rem; justify-content: center; }
    .brand img { height: 44px; }
    .hero { height: auto; min-height: 640px; }
    .hero-slide { padding: 60px 0 150px; }
    .hero-arrows { display: none; }
    .hero-dot { width: 36px; }
    .features { margin-top: -50px; }
    .features-grid { grid-template-columns: 1fr; }
    .feature { border-right: 0; border-bottom: 1px solid var(--border); }
    .feature:last-child { border-bottom: 0; }
    .service-row { grid-template-columns: 1fr; }
    .service-row-media { min-height: 180px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .media-badge { left: 12px; bottom: 12px; }
    .split-media::before { inset: auto -8px -8px auto; }
    .whatsapp-float { right: 16px; bottom: 16px; }
    .back-to-top { right: 23px; bottom: 86px; }
    .cta-actions .btn { width: 100%; }
}

/* Lien vers l'espace employés (pied de page) */
.footer-bottom-inner { align-items: center; }
.footer-bottom-links { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.footer-staff { display: inline-flex; align-items: center; gap: .45em; padding: .45em 1em; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; color: #fff !important; font-weight: 600; transition: background .25s, border-color .25s; }
.footer-staff .icon { color: var(--orange); }
.footer-staff:hover { background: var(--primary); border-color: var(--primary); }
