/* ==========================================================================
   CIMSG-SARL — feuille de style du site public
   Charte : bleu marine + bleu du logo, accent orange « bauxite ».
   ========================================================================== */

:root {
    /* Couleurs du logo CIMSG-SARL */
    --azure: #0483ef;      /* bleu du disque */
    --blue: #197ac7;       /* bleu profond (ombre du disque) — contraste AA sur blanc */
    --sky-2: #c3f0fd;      /* bleu ciel (reflets) */
    --charcoal: #4e4e50;   /* gris anthracite du globe */
    --silver: #878689;     /* gris argent du globe */
    /* Nuances dérivées des couleurs du logo */
    --navy: #0d3c66;       /* bleu du logo, foncé : fonds sombres */
    --navy-2: #135a96;
    --blue-600: #13629f;
    --sky: #e7f5fe;
    --accent: var(--azure);
    --accent-600: var(--blue);
    --ink: #142233;
    --muted: #5b6b7d;
    --line: #e3e9f0;
    --bg: #ffffff;
    --bg-soft: #f4f7fb;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 8px rgba(13, 60, 102, .06);
    --shadow: 0 10px 30px rgba(13, 60, 102, .08);
    --shadow-lg: 0 24px 60px rgba(13, 60, 102, .16);
    --font-head: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --header-h: 84px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--navy); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-600); }
img { max-width: 100%; }
::selection { background: var(--blue); color: #fff; }
.text-muted { color: var(--muted) !important; }
.text-accent { color: var(--accent) !important; }
.bg-soft { background: var(--bg-soft); }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
@media (max-width: 767.98px) { .section { padding: 64px 0; } .section-sm { padding: 48px 0; } }

/* ---------- Boutons ---------- */
.btn { font-weight: 600; border-radius: 999px; padding: .75rem 1.5rem; transition: all .2s; display: inline-flex; align-items: center; gap: .5rem; justify-content: center; }
.btn-lg { padding: .95rem 1.9rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1rem; font-size: .875rem; }
.btn-brand { background: var(--blue); color: #fff; border: 2px solid var(--blue); }
.btn-brand:hover, .btn-brand:focus { background: var(--blue-600); border-color: var(--blue-600); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(25, 122, 199, .3); }
.btn-accent { background: linear-gradient(135deg, var(--azure), var(--blue)); color: #fff; border: 2px solid transparent; }
.btn-accent:hover, .btn-accent:focus { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(4, 131, 239, .35); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-outline-brand { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline-brand:hover { background: var(--blue); color: #fff; }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .78); font-size: .85rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; }
.topbar a { color: rgba(255, 255, 255, .78); }
.topbar a:hover { color: #fff; }
.topbar-info { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar-info i { color: var(--sky-2); margin-right: .4rem; }
.topbar-social { display: flex; gap: .9rem; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.site-header .navbar { min-height: var(--header-h); padding: 0; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--navy); }
.brand img { height: 52px; width: auto; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--navy); letter-spacing: -.02em; }
.brand-tagline { font-size: .78rem; color: var(--muted); font-style: italic; }
.site-nav .nav-link { font-weight: 600; color: var(--ink); padding: .5rem 1rem !important; position: relative; }
.site-nav .nav-link::after { content: ''; position: absolute; left: 1rem; right: 1rem; bottom: .15rem; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--blue); }
.site-nav .nav-link.active::after, .site-nav .nav-link:hover::after { transform: scaleX(1); }
.navbar-toggler { border: 0; padding: .5rem; font-size: 1.4rem; color: var(--navy); box-shadow: none !important; }
@media (max-width: 991.98px) {
    .site-nav { padding: 1rem 0 1.5rem; border-top: 1px solid var(--line); }
    .site-nav .nav-link::after { display: none; }
    .site-nav .btn { margin-top: .75rem; width: 100%; }
    .brand img { height: 44px; }
}

/* ---------- Bandeau d'accueil ---------- */
.hero { position: relative; color: #fff; background: var(--navy) center/cover no-repeat; min-height: min(86vh, 760px); display: flex; align-items: center; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(7, 38, 66, .94) 0%, rgba(7, 38, 66, .82) 42%, rgba(7, 38, 66, .35) 100%); }
.hero .container { padding-top: 96px; padding-bottom: 140px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; max-width: 760px; margin-bottom: 1.25rem; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .85); max-width: 620px; margin-bottom: 2rem; }
.hero-domains { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.hero-domains span { font-size: .8rem; font-weight: 600; letter-spacing: .02em; padding: .35rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-stats { position: relative; z-index: 2; margin-top: -72px; }
.hero-stats-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.hero-stat { padding: 1.75rem 1.5rem; display: flex; align-items: center; gap: 1rem; border-right: 1px solid var(--line); }
.hero-stat:last-child { border-right: 0; }
.hero-stat-icon { flex: 0 0 52px; height: 52px; border-radius: 12px; background: var(--sky); color: var(--blue); display: grid; place-items: center; font-size: 1.3rem; }
.hero-stat strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--navy); line-height: 1.1; }
.hero-stat span { font-size: .88rem; color: var(--muted); }
@media (max-width: 991.98px) { .hero-stats-card { grid-template-columns: repeat(2, 1fr); } .hero-stat:nth-child(2) { border-right: 0; } .hero-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 575.98px) { .hero .container { padding-top: 64px; padding-bottom: 112px; } .hero-stat { padding: 1.1rem; flex-direction: column; align-items: flex-start; gap: .6rem; } .hero-stat strong { font-size: 1.3rem; } }

/* ---------- En-tête des pages intérieures ---------- */
.page-hero { position: relative; background: var(--navy) center/cover no-repeat; color: #fff; padding: 88px 0 72px; isolation: isolate; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(7, 38, 66, .95), rgba(7, 38, 66, .75)); }
.page-hero::after { content: ''; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(195, 240, 253, .12); z-index: -1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: .75rem; }
.page-hero p { color: rgba(255, 255, 255, .8); font-size: 1.1rem; max-width: 640px; margin: 0; }
.breadcrumb-site { display: flex; gap: .5rem; font-size: .88rem; margin-bottom: 1rem; color: rgba(255, 255, 255, .65); list-style: none; padding: 0; }
.breadcrumb-site a { color: rgba(255, 255, 255, .85); }
.breadcrumb-site a:hover { color: #fff; }
.breadcrumb-site li + li::before { content: '/'; margin-right: .5rem; opacity: .5; }

/* ---------- Titres de section ---------- */
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .85rem; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--azure); }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-bottom: 1rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 3rem; }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Cartes génériques ---------- */
.card-x { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card-x:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-x-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--sky), #dbe7f4); overflow: hidden; }
.card-x-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card-x:hover .card-x-media img { transform: scale(1.05); }
.card-x-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--blue); font-size: 2.5rem; opacity: .35; }
.card-x-badge { position: absolute; top: 14px; left: 14px; z-index: 1; background: rgba(255, 255, 255, .95); color: var(--navy); font-size: .75rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.card-x-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-x-meta { font-size: .82rem; color: var(--muted); margin-bottom: .5rem; display: flex; align-items: center; gap: .4rem; }
.card-x-title { font-size: 1.15rem; margin-bottom: .6rem; }
.card-x-text { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-x-body .link-arrow { margin-top: auto; }
.card-x.is-clickable { cursor: pointer; }
.card-x.is-clickable:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- Domaines (accueil, sans services publiés) ---------- */
.domain-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.5rem; height: 100%; transition: all .25s; }
.domain-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-4px); }
.domain-card i { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--sky); color: var(--blue); font-size: 1.4rem; margin-bottom: 1.1rem; transition: all .25s; }
.domain-card:hover i { background: var(--blue); color: #fff; }
.domain-card h3 { font-size: 1.1rem; margin: 0; }

/* ---------- Présentation (accueil) ---------- */
.about-visual { position: relative; padding: 0 0 2rem 2rem; }
.about-visual img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-visual::before { content: ''; position: absolute; left: 0; bottom: 0; width: 60%; height: 70%; border-radius: var(--radius); background: repeating-linear-gradient(45deg, rgba(4, 131, 239, .18) 0 2px, transparent 2px 12px); z-index: -1; }
.about-badge { position: absolute; right: -12px; bottom: 0; background: var(--navy); color: #fff; padding: 1.25rem 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 240px; }
.about-badge strong { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.about-badge span { font-size: .85rem; color: rgba(255, 255, 255, .75); }
@media (max-width: 991.98px) { .about-visual { padding-left: 1rem; margin-bottom: 2rem; } .about-badge { right: 8px; } }

.why-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2rem; }
.why-item { display: flex; gap: .9rem; }
.why-item i { flex: 0 0 42px; height: 42px; border-radius: 10px; background: var(--sky); color: var(--azure); display: grid; place-items: center; }
.why-item h3 { font-size: 1rem; margin-bottom: .25rem; }
.why-item p { font-size: .92rem; color: var(--muted); margin: 0; }
@media (max-width: 575.98px) { .why-list { grid-template-columns: 1fr; } }

/* ---------- Partenaires ---------- */
.partners-track { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners-row { display: flex; gap: 1.25rem; width: max-content; animation: partners-scroll 40s linear infinite; }
.partners-track:hover .partners-row { animation-play-state: paused; }
.partners-grid { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; }
.partner-logo { flex: 0 0 auto; width: 190px; height: 104px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); display: grid; place-items: center; padding: 1rem 1.25rem; transition: all .25s; }
.partner-logo img { max-height: 100%; max-width: 100%; object-fit: contain; transition: transform .25s; }
.partner-name { font-family: var(--font-head); font-weight: 700; color: var(--navy); text-align: center; line-height: 1.25; font-size: .95rem; }
.partner-logo:hover { box-shadow: var(--shadow); border-color: transparent; }
.partner-logo:hover img { transform: scale(1.04); }
@keyframes partners-scroll { to { transform: translateX(calc(-50% - .625rem)); } }
@media (prefers-reduced-motion: reduce) { .partners-row { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .partners-row [aria-hidden="true"] { display: none; } }

/* ---------- Bandeau d'appel à l'action ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, var(--blue-600) 100%); color: #fff; border-radius: calc(var(--radius) * 1.5); padding: 3.5rem; isolation: isolate; }
.cta-band::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 48px solid rgba(195, 240, 253, .18); z-index: -1; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .6rem; }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0; font-size: 1.05rem; }
@media (max-width: 575.98px) { .cta-band { padding: 2.25rem 1.5rem; } }

/* ---------- À propos ---------- */
.mv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.25rem; height: 100%; position: relative; overflow: hidden; }
.mv-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--blue); }
.mv-card.is-accent::before { background: var(--silver); }
.mv-card .mv-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; background: var(--sky); color: var(--blue); margin-bottom: 1.25rem; }
.mv-card.is-accent .mv-icon { background: #efeff0; color: var(--charcoal); }
.mv-card h2 { font-size: 1.5rem; margin-bottom: .9rem; }
.mv-card p { color: var(--muted); margin: 0; white-space: pre-line; }

.value-card { text-align: center; padding: 2.25rem 1.5rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); height: 100%; transition: all .25s; }
.value-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.value-icon { width: 68px; height: 68px; margin: 0 auto 1.25rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: linear-gradient(135deg, var(--blue), var(--navy-2)); color: #fff; box-shadow: 0 10px 24px rgba(25, 122, 199, .3); }
.value-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.value-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Cartes de l'équipe : hauteur identique (nom et poste sur une ligne, présentation sur 3 lignes) */
.team-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; height: 100%; text-align: center; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.team-cover { height: 84px; flex: 0 0 auto; background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%); }
.team-avatar { width: 96px; height: 96px; margin: -48px auto 0; border-radius: 50%; border: 4px solid #fff; box-shadow: var(--shadow-sm); background: linear-gradient(135deg, var(--navy-2), var(--blue)); display: grid; place-items: center; overflow: hidden; position: relative; flex: 0 0 auto; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.team-avatar span { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: #fff; letter-spacing: .02em; }
.team-avatar.is-large { width: 120px; height: 120px; margin-top: -60px; }
.team-avatar.is-large span { font-size: 2.4rem; }
.team-body { padding: 1rem 1.5rem 1.5rem; display: flex; flex-direction: column; align-items: center; flex: 1; }
.team-body h3 { font-size: 1.1rem; margin-bottom: .15rem; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-role { color: var(--blue); font-weight: 600; font-size: .9rem; margin-bottom: .75rem; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-bio { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-bottom: 1.25rem; height: 4.8em; /* 3 lignes */ display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.team-more { margin-top: auto; }

.team-modal .modal-content { border: 0; border-radius: var(--radius); overflow: hidden; }
.team-modal .team-cover { height: 96px; }
.team-modal .team-role { white-space: normal; }
.team-modal .btn-close { position: absolute; top: 12px; right: 12px; z-index: 2; background-color: #fff; border-radius: 50%; padding: .6rem; opacity: .95; }
.team-modal-bio { color: #2c3a4b; text-align: left; white-space: pre-line; overflow-wrap: anywhere; margin: 0; }

/* ---------- Filtres ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.filter-bar.justify-content-center { justify-content: center; }
.filter-btn { border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: .9rem; padding: .5rem 1.1rem; border-radius: 999px; transition: all .2s; }
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
[data-filter-item].is-hidden { display: none !important; }

/* ---------- Détail d'une activité ---------- */
.detail-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-soft); }
.detail-media img { width: 100%; max-height: 620px; object-fit: cover; display: block; }
.detail-aside { background: var(--bg-soft); border-radius: var(--radius); padding: 2rem; position: sticky; top: calc(var(--header-h) + 24px); }
.detail-aside dl { margin: 0 0 1.5rem; }
.detail-aside dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.detail-aside dd { font-weight: 600; color: var(--navy); margin-bottom: 1rem; }
.prose { font-size: 1.05rem; color: #2c3a4b; white-space: pre-line; }

/* ---------- Fenêtre projet ---------- */
.project-modal .modal-content { border: 0; border-radius: var(--radius); overflow: hidden; }
.project-modal-media { background: var(--navy); }
.project-modal-media img { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.project-modal .btn-close { position: absolute; top: 14px; right: 14px; z-index: 2; background-color: #fff; border-radius: 50%; padding: .7rem; opacity: .95; box-shadow: var(--shadow-sm); }

/* ---------- Contact ---------- */
.contact-card { display: flex; gap: 1rem; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); height: 100%; }
.contact-card i { flex: 0 0 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--sky); color: var(--blue); font-size: 1.15rem; }
.contact-card h3 { font-size: 1rem; margin-bottom: .3rem; }
.contact-card p, .contact-card a { margin: 0; color: var(--muted); font-size: .95rem; word-break: break-word; }
.contact-card a:hover { color: var(--blue); }
.form-card { background: #fff; border-radius: calc(var(--radius) * 1.25); box-shadow: var(--shadow-lg); padding: 2.5rem; }
@media (max-width: 575.98px) { .form-card { padding: 1.5rem; } }
.form-label { font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: .4rem; }
.form-control, .form-select { border-radius: var(--radius-sm); border: 1px solid #d5dee8; padding: .8rem 1rem; background: var(--bg-soft); font-size: .97rem; transition: all .2s; }
.form-control:focus, .form-select:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(25, 122, 199, .14); }
.form-control.is-invalid { background-color: #fff8f7; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.map-frame iframe { width: 100%; height: 420px; border: 0; }
.alert-site { border: 0; border-radius: var(--radius-sm); display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.25rem; }
.alert-site.alert-success { background: #e8f6ee; color: #146c3c; }
.alert-site.alert-danger { background: #fdecec; color: #a12622; }

/* ---------- États vides ---------- */
.empty-state { text-align: center; padding: 3.5rem 1.5rem; background: var(--bg-soft); border-radius: var(--radius); border: 1px dashed #cdd8e4; color: var(--muted); }
.empty-state i { font-size: 2.2rem; color: var(--blue); opacity: .5; margin-bottom: 1rem; display: block; }

/* ---------- Pied de page ---------- */
.site-footer { background: #072a4a; color: rgba(255, 255, 255, .7); padding-top: 80px; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1.25rem; }
.site-footer a { color: rgba(255, 255, 255, .7); }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; }
.footer-brand img { height: 48px; border-radius: 8px; background: #fff; padding: 2px; }
.footer-brand strong { font-family: var(--font-head); color: #fff; font-size: 1.2rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-links i { font-size: .7rem; color: var(--sky-2); margin-right: .5rem; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.footer-contact li { display: flex; gap: .75rem; }
.footer-contact i { color: var(--sky-2); margin-top: .3rem; width: 16px; text-align: center; }
.social-links { display: flex; gap: .5rem; margin-top: 1.25rem; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: all .2s; }
.social-links a:hover { background: var(--azure); color: #fff; transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 56px; padding: 1.5rem 0; font-size: .85rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Boutons flottants ---------- */
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 1020; width: 46px; height: 46px; 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(10px); transition: all .25s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--blue); }
.whatsapp-float { position: fixed; left: 22px; bottom: 22px; z-index: 1020; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 10px 24px rgba(37, 211, 102, .4); transition: transform .2s; }
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }

/* ---------- Page 404 ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-code { font-family: var(--font-head); font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--azure), var(--silver)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Apparition au défilement ---------- */
/* Uniquement si le JavaScript est actif (classe .js posée dans <head>) : sans JS, tout reste visible. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
