.text-navy {
    color: var(--navy);
}

:root {
    --navy: #003366;
    --navy-light: #004080;
    --accent-orange: #FF7F50;
    --accent-cyan: #00d4ff;
    --white: #ffffff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-300: #cbd5e1;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
}

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

html {
    overflow-x: clip;
    max-width: 100%;
}

body {
    font-family: 'Barlow', sans-serif;
    background-color: var(--slate-50);
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

/* Centrage global des conteneurs */
.container {
    width: 100%;
    max-width: 1280px;
    /* Standard Tailwind xl breakpoint */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Sécurisation de la largeur des sections */
section,
.nav-container,
footer {
    width: 100%;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: var(--navy);
}

h1 {
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h2 {
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

h3 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

p {
    line-height: 1.6;
}

.blueprint-bg h1,
.blueprint-bg h2,
.blueprint-bg h3,
.blueprint-bg h4,
.bg-navy h1,
.bg-navy h2,
.bg-navy h3,
.bg-navy h4,
.bg-slate-800 h1,
.bg-slate-800 h2,
.bg-slate-800 h3,
.bg-slate-800 h4,
.bg-slate-900 h1,
.bg-slate-900 h2,
.bg-slate-900 h3,
.bg-slate-900 h4 {
    color: #ffffff;
}

#canvas-bg {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: #f8fafc;
}

.bg-white p,
.bg-slate-50 p,
.bg-slate-100 p {
    color: #475569;
}

.bg-slate-800 p,
.bg-slate-900 p,
.bg-navy p,
.blueprint-bg p {
    color: #cbd5e1;
}


.bg-navy {
    background-color: var(--navy);
}

.bg-orange-500 {
    background-color: var(--accent-orange);
}

.cert-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 51, 102, 0.1);
    background: white;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.nav-container {
    background: rgba(0, 51, 102, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 4.5rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.125rem;
    line-height: 1;
}

.nav-baseline {
    display: block;
    margin: 0;
    color: #00d4ff;
    font-style: italic;
    font-weight: 300;
    font-size: 0.625rem;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
}

/* De 768 à 1099 px, les liens et les boutons occupent déjà toute la barre. */
@media (min-width: 768px) and (max-width: 1099px) {
    .nav-baseline {
        display: none;
    }
}

.nav-inner .nav-link {
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-logo {
    height: 2.75rem;
    width: auto;
    max-height: 2.75rem;
    object-fit: contain;
    display: block;
}

@media (min-width: 768px) {
    .nav-inner {
        min-height: 4.75rem;
    }

    .nav-logo {
        height: 3.25rem;
        max-height: 3.25rem;
    }
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: 4.25rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    line-height: 1.25;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .hero-cta {
        width: auto;
        flex: 1 1 0;
        min-width: 0;
        max-width: 22rem;
        font-size: 1.25rem;
    }
}

.btn-primary {
    background: var(--accent-orange);
    border-radius: 0.75rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(255, 127, 80, 0.22);
}

.btn-primary:hover {
    background: #ff8d63;
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 127, 80, 0.32);
}

.btn-primary:active {
    transform: translateY(0);
    filter: brightness(0.96);
    box-shadow: 0 4px 10px rgba(255, 127, 80, 0.2);
}

/* Tailwind n'a pas de couleur "navy" : sans cette règle, le texte reste blanc sur fond blanc au survol. */
.hover\:text-navy:hover {
    color: var(--navy);
}

.blueprint-bg {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    position: relative;
}

.blueprint-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.diaspora-services-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-top: 2px solid var(--accent-orange);
    border-bottom: 2px solid var(--accent-orange);
    padding: 4rem 0 !important;
    position: relative;
}

@media (min-width: 768px) {
    .diaspora-services-section {
        padding: 5rem 0 !important;
    }
}

.diaspora-services-section .blueprint-overlay {
    opacity: 0.35;
}

.diaspora-services-title {
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .diaspora-services-title {
        font-size: 2.75rem;
    }
}

.diaspora-services-title span {
    color: var(--accent-orange);
}

.diaspora-services-subtitle {
    color: #94a3b8 !important;
    font-size: 1.05rem;
    line-height: 1.6;
}

.diaspora-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .diaspora-services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .diaspora-service-card--featured {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .diaspora-services-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .diaspora-service-card--featured {
        grid-column: span 2;
    }
}

.diaspora-service-card {
    position: relative;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.82);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

@media (min-width: 768px) {
    .diaspora-service-card {
        padding: 2rem;
    }
}

.diaspora-service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.12) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: 2;
}

.diaspora-service-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-orange);
    box-shadow: 0 0 24px rgba(255, 127, 80, 0.28), 0 25px 50px -12px rgba(0, 0, 0, 0.55);
}

.diaspora-service-card:hover::after {
    transform: translateX(120%);
}

.diaspora-service-card > * {
    position: relative;
    z-index: 1;
}

.diaspora-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.875rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.diaspora-icon-orange {
    background: rgba(255, 127, 80, 0.2);
    border: 1px solid rgba(255, 127, 80, 0.3);
}

.diaspora-icon-cyan {
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.diaspora-service-card h3 {
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.diaspora-card-situation,
.diaspora-card-action {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
}

.diaspora-card-situation {
    color: #ffffff;
}

.diaspora-card-action {
    color: var(--accent-orange);
}

.diaspora-card-rule {
    width: 32px;
    height: 2px;
    background: var(--accent-orange);
    margin-bottom: 1rem;
}

.diaspora-service-card p {
    color: #cbd5e1 !important;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========== ACCUEIL — PREUVE RAPIDE ========== */
.home-proof {
    background: #0a1628;
    padding: 3rem 0 !important;
}

.home-proof-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

.home-proof-item {
    text-align: center;
    width: 100%;
}

.home-proof-value {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 900;
    font-size: 2.75rem;
    line-height: 1;
    color: #FF7F50;
    display: block;
    margin-bottom: 0.6rem;
}

.home-proof-label {
    color: #ffffff !important;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin: 0;
}

@media (min-width: 768px) {
    .home-proof-grid {
        flex-direction: row;
        justify-content: center;
        gap: 0;
    }

    .home-proof-item {
        width: auto;
        flex: 1;
        padding: 0 2.5rem;
        border-right: 1px solid rgba(255, 255, 255, 0.12);
    }

    .home-proof-item:last-child {
        border-right: none;
    }

    .home-proof-value {
        font-size: 3.25rem;
    }
}

/* ========== ACCUEIL — DEUX SERVICES PHARES ========== */
.home-flagship {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 5rem 0 !important;
}

.home-flagship-title,
.home-why-title {
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .home-flagship-title,
    .home-why-title {
        font-size: 2.75rem;
    }
}

.home-section-rule {
    width: 64px;
    height: 3px;
    background: var(--accent-orange);
    margin: 0 auto 3rem;
    border-radius: 999px;
}

.home-flagship-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .home-flagship-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.home-flagship-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #0f172a;
    border-radius: 1.25rem;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-flagship-card--orange {
    border: 2px solid var(--accent-orange);
}

.home-flagship-card--cyan {
    border: 2px solid var(--accent-cyan);
}

.home-flagship-card:hover {
    transform: translateY(-6px);
}

.home-flagship-card--orange:hover {
    box-shadow: 0 0 28px rgba(255, 127, 80, 0.28), 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.home-flagship-card--cyan:hover {
    box-shadow: 0 0 28px rgba(0, 212, 255, 0.28), 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.home-flagship-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.25rem;
    line-height: 1;
}

.home-flagship-icon--orange {
    background: rgba(255, 127, 80, 0.18);
    border: 1px solid rgba(255, 127, 80, 0.4);
}

.home-flagship-icon--cyan {
    background: rgba(0, 212, 255, 0.18);
    border: 1px solid rgba(0, 212, 255, 0.4);
}

.home-flagship-card h3 {
    color: #ffffff;
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
}

.home-flagship-kicker {
    color: var(--accent-orange) !important;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.home-flagship-card--cyan .home-flagship-kicker {
    color: var(--accent-cyan) !important;
}

.home-flagship-card p {
    color: #cbd5e1 !important;
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.home-flagship-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    border-radius: 0.6rem;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    align-self: flex-start;
}

.home-flagship-btn-solid {
    background: var(--accent-orange);
    color: #ffffff;
}

.home-flagship-btn-solid:hover {
    background: #e66a3e;
    transform: translateY(-2px);
}

.home-flagship-btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid var(--accent-orange);
}

.home-flagship-btn-outline:hover {
    background: var(--accent-orange);
    color: #ffffff;
}

/* ========== ACCUEIL — POURQUOI CACIBAT ========== */
.home-why {
    background: #0f172a;
    padding: 5rem 0 !important;
}

.home-why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .home-why-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.home-why-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.home-why-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-orange);
    box-shadow: 0 0 22px rgba(255, 127, 80, 0.22), 0 20px 40px rgba(0, 0, 0, 0.35);
}

.home-why-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.home-why-icon--orange {
    background: linear-gradient(135deg, #FF7F50, #e66a3e);
}

.home-why-icon--cyan {
    background: linear-gradient(135deg, #00d4ff, #0891b2);
}

.home-why-card h3 {
    color: #ffffff;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.home-why-card p {
    color: #cbd5e1 !important;
    font-size: 1rem;
    line-height: 1.65;
}

/* ========== ACCUEIL — APERÇU RÉALISATIONS ========== */
.home-works {
    background: #f8fafc;
    padding: 5rem 0 !important;
}

.home-works-title,
.home-testimonials-title {
    color: var(--navy);
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .home-works-title,
    .home-testimonials-title {
        font-size: 2.75rem;
    }
}

.home-works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .home-works-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.home-works-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-works-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.home-works-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.home-works-card h3 {
    color: var(--navy);
    font-size: 1.2rem;
    padding: 1.1rem 1.25rem 0.25rem;
}

.home-works-card p {
    color: #64748b !important;
    font-size: 0.9rem;
    padding: 0 1.25rem 1.25rem;
}

.home-works-cta {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

/* ========== ACCUEIL — TÉMOIGNAGES ========== */
.home-testimonials {
    background: #eef4f8;
    padding: 5rem 0 !important;
}

.home-testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .home-testimonials-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

#page-apropos .promoter-cartouche h3,
#page-apropos .promoter-cartouche p {
    color: var(--navy) !important;
    opacity: 1;
}

#page-apropos .promoter-cartouche p {
    font-size: 1rem;
}

.apropos-hero-text {
    max-width: 52rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: #e2e8f0;
    font-size: 1.125rem;
    line-height: 1.7;
}

.apropos-equipe,
.apropos-partenaires,
.apropos-gerant {
    padding: 4.5rem 0;
}

.apropos-equipe {
    background: #f8fafc;
}

.apropos-equipe h2,
.apropos-partenaires h2,
.apropos-gerant h2 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    text-align: center;
    margin: 0 0 0.5rem;
}

.apropos-equipe h2 {
    color: #003366;
}

.apropos-equipe-sous,
.apropos-partenaires p,
.apropos-gerant-copy p {
    line-height: 1.7;
}

.apropos-equipe-sous {
    text-align: center;
    color: #475569;
    max-width: 40rem;
    margin: 0 auto 2rem;
}

.apropos-equipe-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.team-card-dark {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
    background: #1e293b;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card-dark:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.team-photo-rect {
    width: 240px;
    height: 300px;
    min-width: 240px;
    border-radius: 1rem;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
    background: #0f172a;
    flex-shrink: 0;
}

.team-photo-rect img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.team-info-dark {
    flex: 1;
    min-width: 0;
    text-align: left;
    padding-top: 0.5rem;
}

.team-name-dark {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.team-role-dark {
    font-size: 1rem;
    font-weight: 700;
    color: #FF7F50;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1.5rem;
}

.team-bio-dark {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin: 0;
    text-align: justify;
    text-justify: inter-word;
}

.team-card-dark .apropos-manque {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #fdba74;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.team-placeholder-dark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #0f172a;
    color: #00d4ff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 3rem;
}

@media (max-width: 768px) {
    .team-card-dark {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .team-card-dark:hover {
        transform: none;
    }

    .team-photo-rect {
        width: 200px;
        height: 250px;
        min-width: 200px;
    }

    .team-info-dark {
        text-align: center;
    }

    .team-bio-dark {
        text-align: left;
    }
}

.apropos-card {
    background: #ffffff;
    border: 1px solid rgba(0, 51, 102, 0.12);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.apropos-card--attente {
    border-style: dashed;
    border-color: #d97706;
}

.apropos-photo,
.apropos-avatar {
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.apropos-photo {
    object-fit: cover;
    object-position: center 25%;
    border-radius: 50%;
    border: 3px solid #003366;
}

.apropos-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #003366;
    color: #00d4ff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
}

.apropos-card h3 {
    color: #003366;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.apropos-poste {
    color: #ff7f50;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
}

.apropos-bio {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

.apropos-partenaires {
    background: #003366;
    color: #e2e8f0;
}

.apropos-partenaires h2,
.apropos-gerant h2 {
    color: #ffffff;
}

.apropos-partenaires p {
    max-width: 46rem;
    margin: 0 auto;
    text-align: justify;
    font-size: 1.125rem;
}

.apropos-gerant {
    background: #0f172a;
}

.apropos-gerant-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .apropos-gerant-layout {
        grid-template-columns: 16rem 1fr;
    }
}

.apropos-gerant-photo {
    width: 100%;
    max-width: 16rem;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 50%;
    border: 3px solid #ff7f50;
    margin: 0 auto;
    display: block;
}

.apropos-modal-photo {
    object-fit: cover;
    object-position: center 25%;
}

.apropos-gerant-copy p {
    color: #e2e8f0;
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

.apropos-manque {
    display: inline-block;
    margin-top: 0.75rem;
    color: #b45309;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-certs {
    background: #ffffff;
    padding: 4.5rem 0;
}

.home-certs h2,
.formation-card h4,
.canal-feature h2 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

.home-certs h2 {
    color: #003366;
    text-align: center;
    font-size: 2rem;
    margin: 0 0 0.5rem;
}

.home-certs-sous {
    max-width: 46rem;
    margin: 0 auto 2rem;
    text-align: center;
    color: #475569;
    line-height: 1.6;
}

.iso-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 769px) {
    .iso-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.iso-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.iso-card:nth-child(1) {
    border-top: 4px solid #0056b3;
}

.iso-card:nth-child(2) {
    border-top: 4px solid #198754;
}

.iso-card:nth-child(3) {
    border-top: 4px solid #28a745;
}

.iso-card img {
    max-width: 180px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.iso-card p {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
}

.iso-card p span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
    display: block;
    margin-top: 0.25rem;
}

.home-certs-grid,
.formation-grid,
.canal-defis {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.home-cert-card,
.formation-card,
.canal-defi {
    height: 100%;
    min-width: 0;
}

.home-cert-card {
    background: #f8fafc;
    border: 1px solid rgba(0, 51, 102, 0.12);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
}

.home-cert-card img {
    display: block;
    width: 100%;
    height: 11rem;
    object-fit: contain;
    background: #ffffff;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.home-cert-card h3 {
    color: #003366;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    margin: 0 0 0.35rem;
}

.home-cert-card p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.formation-card {
    background: #ffffff;
    border: 1px solid rgba(0, 51, 102, 0.12);
    border-top: 4px solid #ff7f50;
    border-radius: 0.9rem;
    padding: 1.25rem;
}

.formation-card h4 {
    color: #0f172a;
    font-size: 1.15rem;
    line-height: 1.35;
    margin: 0;
}

.canal-feature {
    background: #ffffff;
    border: 1px solid rgba(0, 51, 102, 0.12);
    border-radius: 1.25rem;
    padding: 2rem 1.25rem;
    margin: 0 0 2.5rem;
    text-align: center;
}

.canal-feature-logo,
.canal-logo-lg {
    display: block;
    height: 4.5rem;
    width: auto;
    max-width: 16rem;
    object-fit: contain;
    margin: 0 auto 1rem;
}

.canal-feature h2 {
    color: #003366;
    font-size: 1.8rem;
    line-height: 1.2;
    margin: 0 0 0.4rem;
}

.canal-feature-sous {
    color: #ff7f50;
    font-weight: 700;
    margin: 0 0 1.25rem;
}

.canal-deux-projets {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: 28rem;
    margin: 0 auto 1.5rem;
    padding: 1.1rem 1.25rem;
    border: 2px solid #003366;
    border-radius: 1rem;
    background: #f8fafc;
}

.canal-deux-projets img {
    height: 3.25rem;
    width: auto;
    max-width: 12rem;
    object-fit: contain;
}

.canal-deux-projets p {
    margin: 0;
    color: #003366;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.3;
    text-align: center;
}

.canal-feature-texte,
.canal-feature-resultat,
.canal-defi p {
    color: #334155;
    line-height: 1.65;
    text-align: left;
}

.canal-feature-texte,
.canal-feature-resultat {
    max-width: 52rem;
    margin: 0 auto 1.5rem;
}

.canal-defi {
    background: #f8fafc;
    border-radius: 0.9rem;
    padding: 1rem 1.1rem;
    text-align: left;
}

.canal-defi-kicker {
    color: #003366;
    font-weight: 700;
    margin: 0 0 0.4rem;
}

.canal-defi p:last-child {
    margin: 0;
}

.canal-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 0.5rem 0 1.25rem;
}

.canal-logo-sm {
    height: 2.5rem;
    width: auto;
    max-width: 8rem;
    object-fit: contain;
}

.canal-logo-manquant {
    min-width: 8rem;
    min-height: 2.5rem;
    padding: 0.4rem 0.7rem;
    border: 1px dashed #d97706;
    border-radius: 0.4rem;
    color: #b45309;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.canal-feature-lien {
    color: #ff7f50;
    font-weight: 700;
}

@media (min-width: 768px) {
    .canal-defis {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .home-certs-grid,
    .formation-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.home-clients {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.home-client {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.home-client:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.client-logo {
    max-height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

/* Le fichier ROSAM est un carré avec de larges marges blanches : on n'affiche que l'écusson. */
.client-logo[src$="logo-rosam-school.jpg"] {
    object-view-box: inset(26% 17% 26% 20%);
    height: 52px;
    width: auto;
    max-height: 52px;
}

@media (max-width: 640px) {
    .client-logo {
        max-height: 40px;
        max-width: 140px;
    }

    .client-logo[src$="logo-rosam-school.jpg"] {
        height: 42px;
        max-height: 42px;
    }
}

.home-clients-more {
    color: #64748b !important;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin: 2.5rem 0 0;
}

.home-testimonial-card {
    background: #ffffff;
    border: 1px solid rgba(0, 51, 102, 0.08);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.home-testimonial-avatar {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.1rem;
}

.home-testimonial-avatar--orange {
    background: var(--accent-orange);
}

.home-testimonial-avatar--cyan {
    background: var(--accent-cyan);
    color: #0f172a;
}

.home-testimonial-quote {
    font-family: 'Rajdhani', sans-serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #334155 !important;
    line-height: 1.55;
    margin-bottom: 1.1rem;
}

.home-testimonial-name {
    color: var(--navy);
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

.home-testimonial-place {
    color: #94a3b8 !important;
    font-size: 0.85rem;
    margin: 0.2rem 0 0.75rem;
}

.home-testimonial-stars {
    color: var(--accent-orange);
    letter-spacing: 0.12em;
    font-size: 0.95rem;
}


/* ========== PAGE DEVIS EXPRESS ========== */
.dexp-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 4rem 0 !important;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .dexp-hero {
        padding: 5rem 0 !important;
    }
}

.dexp-hero .blueprint-overlay {
    opacity: 0.35;
}

.dexp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 127, 80, 0.18);
    border: 1px solid rgba(255, 127, 80, 0.35);
    color: #ffd4c2;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    margin-bottom: 1.25rem;
}

.dexp-hero-title {
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .dexp-hero-title {
        font-size: 3rem;
    }
}

.dexp-hero-title span {
    color: var(--accent-orange);
}

.dexp-hero-sub {
    color: #cbd5e1;
    font-size: 1.15rem;
    line-height: 1.65;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1.75rem;
}

.dexp-why,
.dexp-parcours {
    background: #0f172a;
    padding: 4.5rem 0 !important;
}

.dexp-why-title,
.dexp-parcours-title,
.dexp-cta-title {
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .dexp-why-title,
    .dexp-parcours-title,
    .dexp-cta-title {
        font-size: 2rem;
    }
}

.dexp-parcours-sub {
    color: #cbd5e1;
    text-align: center;
    font-size: 1.05rem;
    max-width: 40rem;
    margin: 0 auto 2.5rem;
}

.dexp-why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .dexp-why-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .dexp-why-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

.dexp-why-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.15rem;
    padding: 1.5rem;
}

.dexp-why-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.dexp-why-icon--orange {
    background: rgba(255, 127, 80, 0.18);
    border: 1px solid rgba(255, 127, 80, 0.35);
}

.dexp-why-icon--cyan {
    background: rgba(0, 212, 255, 0.18);
    border: 1px solid rgba(0, 212, 255, 0.35);
}

.dexp-why-card h3 {
    color: #ffffff;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.dexp-why-card p {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}

.dexp-path-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .dexp-path-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.dexp-path-card {
    display: block;
    width: 100%;
    text-align: left;
    background: #0f172a;
    border-radius: 1.25rem;
    padding: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    font-family: inherit;
}

.dexp-path-card--orange {
    border: 2px solid var(--accent-orange);
}

.dexp-path-card--cyan {
    border: 2px solid var(--accent-cyan);
}

.dexp-path-card:hover {
    transform: translateY(-6px);
}

.dexp-path-card--orange:hover {
    box-shadow: 0 0 28px rgba(255, 127, 80, 0.28), 0 24px 48px rgba(0, 0, 0, 0.4);
}

.dexp-path-card--cyan:hover {
    box-shadow: 0 0 28px rgba(0, 212, 255, 0.28), 0 24px 48px rgba(0, 0, 0, 0.4);
}

.dexp-path-emoji {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.15rem;
}

.dexp-path-card--orange .dexp-path-emoji {
    background: rgba(255, 127, 80, 0.18);
    border: 1px solid rgba(255, 127, 80, 0.35);
}

.dexp-path-card--cyan .dexp-path-emoji {
    background: rgba(0, 212, 255, 0.18);
    border: 1px solid rgba(0, 212, 255, 0.35);
}

.dexp-path-card h3 {
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.dexp-path-card p {
    color: #cbd5e1;
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0 0 1.35rem;
}

.dexp-path-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.25rem;
    border-radius: 0.7rem;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dexp-path-btn-solid {
    background: var(--accent-orange);
    color: #ffffff;
}

.dexp-path-btn-outline {
    background: transparent;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
}

.dexp-pledge {
    background: #1e293b;
    border: 2px solid var(--accent-orange);
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    text-align: center;
    margin: 0 auto 2.5rem;
    max-width: 48rem;
}

@media (min-width: 768px) {
    .dexp-pledge {
        padding: 2.5rem 2.5rem;
    }
}

.dexp-pledge-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.dexp-pledge h3 {
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.dexp-pledge p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.dexp-cta {
    background: linear-gradient(135deg, #003366 0%, #1e4a8c 100%);
    padding: 4.5rem 0 !important;
    text-align: center;
}

.dexp-cta-sub {
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 36rem;
    margin: 0 auto 1.75rem;
}

.dexp-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-orange);
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 2.25rem;
    border-radius: 0.75rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.dexp-cta-btn:hover {
    background: #e66a3e;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(255, 127, 80, 0.35);
    color: #ffffff;
}

/* ========== PAGE SERVICES ========== */
.svc-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 4rem 0 !important;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .svc-hero {
        padding: 5rem 0 !important;
    }
}

.svc-hero .blueprint-overlay {
    opacity: 0.35;
}

.svc-hero-title {
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .svc-hero-title {
        font-size: 3rem;
    }
}

.svc-hero-sub {
    color: #cbd5e1;
    font-size: 1.15rem;
    line-height: 1.65;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.svc-body {
    background: #0f172a;
    padding: 5rem 0 !important;
}

.svc-body p,
.svc-hero p {
    color: #cbd5e1;
}

.svc-highlight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .svc-highlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .svc-highlight-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .svc-highlight-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .svc-highlight-card:last-child {
        grid-column: auto;
    }
}

.svc-highlight-card {
    background: #0f172a;
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin-bottom: 0;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 768px) {
    .svc-highlight-card {
        padding: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .svc-highlight-card {
        padding: 1.35rem 1.25rem;
    }
}

.svc-highlight-card--orange {
    border: 2px solid var(--accent-orange);
}

.svc-highlight-card--cyan {
    border: 2px solid var(--accent-cyan);
}

.svc-highlight-card:hover {
    transform: translateY(-6px);
}

.svc-highlight-card--orange:hover {
    box-shadow: 0 0 28px rgba(255, 127, 80, 0.28), 0 24px 48px rgba(0, 0, 0, 0.4);
}

.svc-highlight-card--cyan:hover {
    box-shadow: 0 0 28px rgba(0, 212, 255, 0.28), 0 24px 48px rgba(0, 0, 0, 0.4);
}

.svc-highlight-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.25rem;
    line-height: 1;
}

.svc-highlight-icon--orange {
    background: rgba(255, 127, 80, 0.18);
    border: 1px solid rgba(255, 127, 80, 0.4);
}

.svc-highlight-icon--cyan {
    background: rgba(0, 212, 255, 0.18);
    border: 1px solid rgba(0, 212, 255, 0.4);
}

.svc-highlight-card h2,
.svc-btp-title {
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

.svc-highlight-card h2 {
    font-size: 1.45rem;
    margin-bottom: 0.4rem;
    line-height: 1.25;
}

@media (min-width: 1024px) {
    .svc-highlight-card h2 {
        font-size: 1.35rem;
    }
}

.svc-highlight-card .svc-highlight-kicker {
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.svc-highlight-card--cyan .svc-highlight-kicker {
    color: var(--accent-cyan);
}

.svc-highlight-card > p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.svc-highlight-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.svc-highlight-list li {
    color: #cbd5e1;
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 0.55rem;
}

.svc-highlight-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.svc-highlight-card .svc-btn {
    width: 100%;
}

.svc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    border-radius: 0.6rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    text-align: center;
}

.svc-btn-solid {
    background: var(--accent-orange);
    color: #ffffff;
}

.svc-btn-solid:hover {
    background: #e66a3e;
    transform: translateY(-2px);
    color: #ffffff;
}

.svc-btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid var(--accent-orange);
}

.svc-btn-outline:hover {
    background: var(--accent-orange);
    color: #ffffff;
}

.svc-btn-outline-cyan {
    background: transparent;
    color: #ffffff;
    border: 2px solid var(--accent-cyan);
}

.svc-btn-outline-cyan:hover {
    background: var(--accent-cyan);
    color: #0f172a;
}

.svc-howto {
    background: #1e293b;
    padding: 4.5rem 1rem !important;
    margin: 2.5rem 0 0;
    scroll-margin-top: 6rem;
}

.svc-howto-title {
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.6rem;
}

.svc-howto-sub {
    color: #cbd5e1;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 36rem;
    margin: 0 auto 2.5rem;
}

.svc-howto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

.svc-howto-arrow {
    display: none;
    color: var(--accent-orange);
    font-size: 2rem;
    font-weight: 700;
    align-self: center;
    text-align: center;
}

@media (min-width: 900px) {
    .svc-howto-grid {
        grid-template-columns: 1fr auto 1fr auto 1fr;
        gap: 0.75rem;
    }

    .svc-howto-arrow {
        display: block;
    }
}

.svc-howto-step {
    position: relative;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 2rem 1.75rem 1.75rem;
    overflow: hidden;
}

.svc-howto-num {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1;
    color: var(--accent-orange);
    opacity: 0.35;
    margin-bottom: 0.85rem;
}

.svc-howto-step h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
}

.svc-howto-step p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

/* ========== PAGE TECHNICIENS ========== */
.tech-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 4rem 0 !important;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .tech-hero {
        padding: 5rem 0 !important;
    }
}

.tech-hero .blueprint-overlay {
    opacity: 0.35;
}

.tech-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 127, 80, 0.18);
    border: 1px solid rgba(255, 127, 80, 0.35);
    color: #ffd4c2;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    margin-bottom: 1.25rem;
}

.tech-hero-title {
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .tech-hero-title {
        font-size: 3rem;
    }
}

.tech-hero-title span {
    color: var(--accent-orange);
}

.tech-hero-sub {
    color: #cbd5e1;
    font-size: 1.15rem;
    line-height: 1.65;
    max-width: 700px;
    margin: 0 auto;
}

.tech-select,
.tech-metiers {
    background: #0f172a;
    padding: 5rem 0 !important;
}

.tech-section-title {
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .tech-section-title {
        font-size: 2rem;
    }
}

.tech-section-sub {
    color: #cbd5e1;
    text-align: center;
    font-size: 1.05rem;
    margin: 0 auto 2.5rem;
    max-width: 40rem;
}

.tech-select-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .tech-select-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .tech-select-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

.tech-select-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.15rem;
    padding: 1.5rem;
}

.tech-select-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.tech-select-icon--orange {
    background: rgba(255, 127, 80, 0.18);
    border: 1px solid rgba(255, 127, 80, 0.35);
}

.tech-select-icon--cyan {
    background: rgba(0, 212, 255, 0.18);
    border: 1px solid rgba(0, 212, 255, 0.35);
}

.tech-select-card h3 {
    color: #ffffff;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.tech-select-card p {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}

.tech-metier-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tech-metier-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-orange);
    box-shadow: 0 0 22px rgba(255, 127, 80, 0.22);
}

.tech-metier-card span:first-of-type {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
}

.tech-after {
    background: #0f172a;
    padding: 0 0 5rem !important;
}

.tech-litige {
    background: #1e293b;
    border: 2px solid var(--accent-orange);
    border-radius: 1.25rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.tech-litige-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: rgba(255, 127, 80, 0.18);
    border: 1px solid rgba(255, 127, 80, 0.4);
    margin-bottom: 1rem;
}

.tech-litige h2,
.tech-fees h3 {
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tech-litige h2 {
    font-size: 1.5rem;
}

.tech-litige p,
.tech-fees p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 0.75rem;
}

.tech-fees {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 2rem;
}

.tech-fees em {
    color: var(--accent-orange);
    font-style: normal;
    font-weight: 700;
}

.tech-fees ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0 0 1rem;
    color: #e2e8f0;
    line-height: 1.7;
}

.tech-fees li {
    margin-bottom: 0.35rem;
}

.tech-fees strong {
    color: #ffffff;
}

#page-techniciens .tech-fees .tech-fees-alert {
    color: #fcd34d !important;
    font-weight: 700;
}

.svc-btp-title {
    font-size: 2rem;
    text-align: center;
    margin: 3rem 0 0.75rem;
}

.svc-btp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .svc-btp-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.svc-btp-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.svc-btp-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-orange);
    box-shadow: 0 0 22px rgba(255, 127, 80, 0.22), 0 20px 40px rgba(0, 0, 0, 0.35);
}

.svc-btp-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.15rem;
}

.svc-btp-icon--orange {
    background: rgba(255, 127, 80, 0.18);
    border: 1px solid rgba(255, 127, 80, 0.35);
    color: var(--accent-orange);
}

.svc-btp-icon--cyan {
    background: rgba(0, 212, 255, 0.18);
    border: 1px solid rgba(0, 212, 255, 0.35);
    color: var(--accent-cyan);
}

.svc-btp-card h3 {
    color: #ffffff;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.svc-btp-card p,
.svc-btp-card li {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.65;
}

.svc-btp-card ul {
    margin-top: 1rem;
    padding: 0;
    list-style: none;
}

.svc-btp-card li {
    margin-bottom: 0.45rem;
    padding-left: 1.25rem;
    position: relative;
}

.svc-btp-card li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-size: 0.75rem;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: pageFadeIn 0.3s ease-out;
}

.page.page-leave {
    display: block;
    animation: pageFadeOut 0.2s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pageFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-child {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.active .reveal-child {
    opacity: 1;
    transform: translateY(0);
}

/* ========== COUCHE PREMIUM ========== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.font-bold::after {
    width: 100%;
}

.home-proof-card,
.home-flagship-card,
.home-why-card,
.home-works-card,
.home-testimonial-card,
.svc-highlight-card,
.svc-btp-card,
.dexp-why-card,
.tech-select-card,
.tech-metier-card,
.diaspora-service-card,
.glass-card {
    border-radius: 1rem;
}

.home-works-card,
.home-flagship-card {
    overflow: hidden;
}

.home-works-card img,
.home-flagship-card img,
#page-galerie img,
#page-realisations .project-card img {
    transition: transform 0.45s ease;
}

.home-works-card:hover img,
.home-flagship-card:hover img,
#page-galerie a:hover img,
#page-realisations .project-card:hover img {
    transform: scale(1.05);
}

.dexp-path-btn,
.home-flagship-btn,
.svc-btn,
.dexp-cta-btn {
    border-radius: 0.75rem;
    transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.dexp-path-btn:hover,
.home-flagship-btn:hover,
.svc-btn:hover,
.dexp-cta-btn:hover {
    transform: translateY(-2px);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
    border-radius: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: var(--accent-orange) !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06), 0 0 0 3px rgba(255, 127, 80, 0.18);
    outline: none;
}

input:user-invalid,
textarea:user-invalid,
select:user-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 3px;
}

.btn-primary.is-loading,
button.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

.btn-primary.is-loading::after,
button.is-loading::after {
    content: '';
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 999px;
    animation: cacibatSpin 0.7s linear infinite;
}

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

button.is-success {
    background: #059669 !important;
}

#cacibat-toast {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translate(-50%, -120%);
    z-index: 2000;
    min-width: 280px;
    max-width: min(92vw, 28rem);
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid rgba(255, 127, 80, 0.4);
    border-radius: 0.75rem;
    padding: 0.85rem 1.1rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
    font-size: 0.9rem;
    line-height: 1.45;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#cacibat-toast.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

#cacibat-toast.is-error {
    border-color: #ef4444;
}

#cacibat-toast.is-success {
    border-color: #10b981;
}

.bg-slate-900 .border-t,
.bg-navy .border-t,
footer.footer .border-t {
    border-color: #334155;
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-child,
    .page.active,
    .page.page-leave {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.mobile-menu {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    transform: none;
    background: transparent;
    box-shadow: none;
    z-index: 200;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    display: block;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(16rem, 86vw);
    max-width: 100%;
    background: linear-gradient(to bottom, #0f172a, #1e293b);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    visibility: visible;
    pointer-events: auto;
    background: rgba(2, 6, 23, 0.45);
}

.mobile-menu.active .mobile-menu-panel {
    transform: translateX(0);
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .whatsapp-label {
        display: none;
    }

    .blueprint-bg .absolute.w-96 {
        display: none;
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #20b858;
}

.whatsapp-float {
    right: 16px;
}

.whatsapp-float .whatsapp-label,
.whatsapp-label {
    position: absolute;
    bottom: 85px;
    left: auto;
    right: 0;
    transform: none;
    white-space: nowrap;
    background-color: white;
    color: #0f172a;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 1;
    /* Toujours visible comme un titre */
    pointer-events: none;
}

.cacibat-noscript {
    position: relative;
    z-index: 10001;
    background: #0f172a;
    color: #fff;
    text-align: center;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    line-height: 1.45;
    font-weight: 600;
}

@media (max-width: 480px) {
    body {
        padding-bottom: 6.75rem;
    }

    footer.footer {
        padding-bottom: 5.5rem;
    }

    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 14px;
        right: 12px;
        font-size: 28px;
    }

    .whatsapp-float svg {
        width: 1.55rem;
        height: 1.55rem;
    }

    .whatsapp-label {
        bottom: 66px;
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}

/* --- CACIBAT EN CHIFFRES CORRECTIONS --- */

/* 1. DESCRIPTIONS LISIBLES */
.stat-description {
    color: rgba(255, 255, 255, 0.90) !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-top: 12px !important;
}

/* 2. LABELS VISIBLES */
.stat-label {
    color: #60a5fa !important;
    /* Bleu clair */
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    letter-spacing: 2px !important;
}

/* 3. CARTE "0 LITIGE" EN ÉVIDENCE */
.stat-card:nth-child(1) {
    border: 2px solid #ff6b35 !important;
    background-color: rgba(255, 107, 53, 0.08) !important;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3) !important;
    /* Glow orange subtil */
}

/* --- ANIMATIONS STATISTIQUES --- */

/* État par défaut pour animation fluide */
.stat-card {
    transition: all 0.3s ease !important;
    will-change: transform, box-shadow;
    /* Optimisation perf */
}

.stat-number {
    transition: transform 0.3s ease !important;
    display: inline-block;
    /* Requis pour scale */
}

/* 1. AU SURVOL DE LA CARTE */
.stat-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3) !important;
    background-color: rgba(30, 41, 59, 0.6) !important;
    /* Légèrement plus clair que bg-slate-800/40 */
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* 2. AU SURVOL DU CHIFFRE (via parent ou direct) */
.stat-card:hover .stat-number {
    transform: scale(1.05) !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    /* 1. LAYOUT */
    .stats-grid,
    .stat-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* 2. TYPOGRAPHIE */
    .stat-number {
        font-size: 3.5rem !important;
    }

    .stat-label {
        font-size: 1rem !important;
    }

    .stat-description {
        font-size: 0.9rem !important;
    }

    /* 3. ESPACEMENT */
    .stat-card {
        padding: 30px 20px !important;
    }

    .stats-section {
        padding: 60px 15px !important;
    }
}

/* ================================================
   CORRECTION LISIBILITÉ MODALE "MESSAGE DU PROMOTEUR"
   ================================================ */

/* 1. CONTENEUR PRINCIPAL DU MESSAGE */
#promoterModalScroll .space-y-6 {
    max-width: 700px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 40px !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* 2. TEXTE PRINCIPAL (PARAGRAPHES) - BLANC HAUTE VISIBILITÉ */
#promoterModalScroll .space-y-6 p {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    font-weight: 400 !important;
    margin-bottom: 20px !important;
}

/* 3. TEXTE EN EMPHASE (MOTS IMPORTANTS EN ORANGE) */
#promoterModalScroll .space-y-6 p .text-orange-400,
#promoterModalScroll .space-y-6 p strong.text-orange-400,
#promoterModalScroll .space-y-6 p span.text-orange-400 {
    color: #ff6b35 !important;
    font-weight: 600 !important;
}

/* 4. TEXTE EN EMPHASE (MOTS EN BLANC) */
#promoterModalScroll .space-y-6 p .text-white,
#promoterModalScroll .space-y-6 p strong.text-white {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* 5. TEXTE EN EMPHASE (MOTS EN CYAN) */
#promoterModalScroll .space-y-6 p .text-cyan-400,
#promoterModalScroll .space-y-6 p strong.text-cyan-400 {
    color: #00d4ff !important;
    font-weight: 600 !important;
}

/* 6. RESPONSIVE MOBILE */
@media (max-width: 768px) {

    /* Conteneur moins de padding sur mobile */
    #promoterModalScroll .space-y-6 {
        padding: 25px !important;
    }

    /* Texte légèrement plus petit et line-height ajusté */
    #promoterModalScroll .space-y-6 p {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* ================================================
   CORRECTION LISIBILITÉ OVERLAYS SURVOL (TOUTES SECTIONS)
   ================================================ */

/* 1. OVERLAY GÉNÉRAL - Transition d'opacité douce */
.absolute.inset-0[class*="bg-navy"],
.absolute.inset-0[class*="bg-gradient"] {
    transition: opacity 0.3s ease-in-out !important;
}

/* 2. TITRES (H3) DANS OVERLAYS - Blanc pur */
.absolute.inset-0 h3,
.absolute.inset-0[class*="bg-navy"] h3,
.absolute.inset-0[class*="bg-gradient"] h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    transition: opacity 0.3s ease-in-out !important;
}

/* 3. DESCRIPTIONS (P) DANS OVERLAYS - Blanc cassé lisible */
.absolute.inset-0 p,
.absolute.inset-0[class*="bg-navy"] p,
.absolute.inset-0[class*="bg-gradient"] p {
    color: #f1f5f9 !important;
    /* text-slate-100 */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
    transition: opacity 0.3s ease-in-out !important;
}

/* 4. SPANS DANS OVERLAYS - Blanc pur */
.absolute.inset-0 span,
.absolute.inset-0[class*="bg-navy"] span,
.absolute.inset-0[class*="bg-gradient"] span {
    color: #ffffff !important;
    transition: opacity 0.3s ease-in-out !important;
}

/* 5. CAS SPÉCIFIQUE: Conteneurs de texte dans overlays de certificats */
.absolute.inset-0 .text-white,
.absolute.inset-0 .text-center {
    color: #ffffff !important;
}

/* 6. CAS SPÉCIFIQUE: Section Galerie */
#page-galerie .absolute.inset-0 p {
    color: #ffffff !important;
    font-weight: 500 !important;
}

/* 7. CAS SPÉCIFIQUE: Section Nos Réalisations - Overlays de projets */
#page-realisations .absolute.inset-0 h3 {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
}

#page-realisations .absolute.inset-0 p {
    color: #f1f5f9 !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
}

/* ================================================
   CORRECTION GLOBALE CONTRASTE : FONDS SOMBRES
   ================================================ */

/* RÈGLE GÉNÉRALE : Tout fond sombre = texte clair
   Cette section maintient le contraste sur les fonds sombres.
*/

/* 1. FOOTER (bg-slate-900) - Textes et liens */
footer.footer p,
footer.footer .text-slate-400,
footer.footer .text-slate-300,
footer.footer .text-slate-500 {
    color: #cbd5e1 !important;
    /* slate-300 */
}

footer.footer a {
    color: #94a3b8 !important;
    /* slate-400 */
}

footer.footer a:hover {
    color: #ff7f50 !important;
    /* orange hover */
}

footer.footer {
    border-top: 2px solid var(--accent-orange);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 0;
}

.footer-logo {
    display: block;
    height: 3.25rem;
    width: auto;
    max-width: 9rem;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.footer-brand-name {
    margin-top: 0;
    margin-bottom: 0.25rem;
    line-height: 1.1;
}

.footer-description {
    margin-top: 0;
}

footer.footer .footer-legal-rccm {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    opacity: 0.6;
}

/* 2. SECTION "NOS SERVICES" - Cartes avec hover sombre */
.glass-card p,
.glass-card li {
    color: #cbd5e1 !important;
    /* text-slate-300 déjà présent mais forcé */
}

.glass-card h3,
.glass-card h4 {
    color: #ffffff !important;
}

/* Au survol, quand bg passe à slate-900/80 */
.glass-card:hover p,
.glass-card:hover li {
    color: #e2e8f0 !important;
    /* Plus clair au survol */
}

/* 3. HERO SECTIONS (bg-navy, blueprint-bg) */
.blueprint-bg p,
.hero-grid p,
section[class*="bg-navy"] p,
section[class*="bg-slate-900"] p {
    color: #e2e8f0 !important;
    /* slate-200 */
}

.blueprint-bg h1,
.blueprint-bg h2,
.blueprint-bg h3,
.hero-grid h1,
.hero-grid h2,
.hero-grid h3 {
    color: #ffffff !important;
}

/* 4. SECTIONS AVEC FOND SOMBRE GÉNÉRAL */
.bg-slate-800 p,
.bg-slate-900 p,
.bg-navy p,
[class*="bg-slate-800"] p,
[class*="bg-slate-900"] p {
    color: #cbd5e1 !important;
    /* slate-300 */
}

.bg-slate-800 h1,
.bg-slate-800 h2,
.bg-slate-800 h3,
.bg-slate-800 h4,
.bg-slate-900 h1,
.bg-slate-900 h2,
.bg-slate-900 h3,
.bg-slate-900 h4,
.bg-navy h1,
.bg-navy h2,
.bg-navy h3,
.bg-navy h4 {
    color: #ffffff !important;
}

/* 5. CARTES AVEC FOND SOMBRE (hover states) */
.group:hover p,
[class*="hover:bg-slate-900"]:hover p,
[class*="hover:bg-navy"]:hover p {
    color: #e2e8f0 !important;
}

/* 6. GALERIE - Déjà traité mais on renforce */
#page-galerie .absolute.inset-0 p {
    color: #ffffff !important;
    font-weight: 500 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* 7. WHATSAPP FLOAT LABEL */
.whatsapp-label {
    color: #0f172a !important;
    /* Fond blanc, texte foncé OK */
}

/* 8. MODAL LIGHTBOX */
#lightbox-modal p {
    color: #ffffff !important;
}

/* 9. CAS SPÉCIFIQUES : Sections avec gradient sombre */
[class*="bg-gradient-to-b"][class*="slate-800"] p,
[class*="bg-gradient-to-b"][class*="slate-900"] p,
[class*="bg-gradient-to-br"][class*="slate-800"] p,
[class*="bg-gradient-to-br"][class*="slate-900"] p {
    color: #cbd5e1 !important;
}

/* 10. FONDS CLAIRS : corps de texte slate-600, pas de navy saturé */
.bg-white p,
.bg-slate-50 p,
.bg-slate-100 p,
[class*="bg-orange-50"] p,
[class*="bg-cyan-50"] p,
[class*="bg-gradient-to-br from-orange-50"] p {
    color: #475569;
}

#page-services .svc-hero-sub,
#page-services .svc-hero p,
#page-services .svc-body p:not(.svc-highlight-kicker),
#page-services .svc-highlight-list li,
#page-techniciens p.tech-hero-sub,
#page-techniciens p.tech-section-sub,
#page-techniciens .tech-select-card p,
#page-techniciens .tech-litige p,
#page-techniciens .tech-fees p {
    color: #e2e8f0 !important;
}
#page-services .svc-highlight-card .svc-highlight-kicker {
    color: var(--accent-orange) !important;
}
#page-services .svc-highlight-card--cyan .svc-highlight-kicker {
    color: var(--accent-cyan) !important;
}
#page-catalogue .dexp-hero-sub,
#page-catalogue .dexp-why-card p,
#page-catalogue .dexp-parcours-sub,
#page-catalogue .dexp-path-card p,
#page-catalogue .dexp-pledge p,
#page-catalogue .dexp-cta-sub {
    color: #e2e8f0 !important;
}


/* 11. RESPONSIVE : Assurer le contraste sur mobile aussi */
@media (max-width: 768px) {

    footer.footer p,
    .glass-card p,
    .bg-slate-900 p,
    .bg-navy p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
}

/* 12. CAS SPÉCIFIQUE : Section "Perspectives et Études 2026" dans Nos Réalisations */
#page-realisations .bg-slate-800 h3 {
    color: #ff7f50 !important;
    /* orange-400 */
}

#page-realisations .bg-slate-800 p {
    color: #cbd5e1 !important;
    /* slate-300 */
    font-size: 1.125rem !important;
    line-height: 1.75 !important;
}

/* Renforcement général pour tous les conteneurs bg-slate-800 */
div.bg-slate-800 p,
section.bg-slate-800 p {
    color: #cbd5e1 !important;
}

div.bg-slate-800 h3,
section.bg-slate-800 h3 {
    color: #ffffff !important;
}

/* 13. CAS SPÉCIFIQUE : Page Galerie - Titre "Galerie" invisible */
/* La section hero-grid n'a pas de fond sombre, donc le texte blanc est invisible */
#page-galerie .hero-grid h1 {
    color: #003366 !important;
    /* Bleu navy pour "Galerie" */
}

/* Le span avec gradient garde sa couleur (text-transparent avec bg-clip-text) */
#page-galerie .hero-grid h1 span.text-transparent {
    color: transparent !important;
    /* Force transparent pour que le gradient fonctionne */
}

/* Exception : si hero-grid a un fond sombre ailleurs, revenir au blanc */
.hero-grid.bg-navy h1,
.hero-grid.bg-slate-900 h1,
.hero-grid.blueprint-bg h1 {
    color: #ffffff !important;
}

/* ================================================
   GALERIE FIREBASE — FILTRES
================================================ */
.galerie-filtre-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.22s ease;
    white-space: nowrap;
}

.galerie-filtre-btn:hover {
    border-color: #FF7F50;
    color: #FF7F50;
    background: #fff7f4;
    transform: translateY(-1px);
}

.galerie-filtre-btn.actif {
    background: linear-gradient(135deg, #FF7F50, #e55a2b);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 127, 80, 0.35);
    transform: translateY(-1px);
}

.galerie-filtre-btn .filtre-count {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50px;
    padding: 1px 7px;
    font-size: 0.72rem;
}

.galerie-filtre-btn.actif .filtre-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Animation entrée des cartes */
@keyframes carteEntree {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.firebase-photo-card {
    animation: carteEntree 0.4s ease forwards;
}

/* ================================================
   LIGHTBOX PREMIUM FIREBASE
================================================ */
#lb-firebase {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#lb-firebase.ouvert {
    visibility: visible;
    opacity: 1;
}

#lb-firebase-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 20, 0.93);
    backdrop-filter: blur(10px);
}

#lb-firebase-panel {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    max-width: min(90vw, 1000px);
    max-height: 92vh;
    width: 100%;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
    transform: scale(0.93) translateY(12px);
    transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.3s ease;
    opacity: 0;
}

#lb-firebase.ouvert #lb-firebase-panel {
    transform: scale(1) translateY(0);
    opacity: 1;
}

#lb-firebase-img-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #080e1a;
    overflow: hidden;
}

#lb-firebase-img {
    max-width: 100%;
    max-height: 68vh;
    object-fit: contain;
    display: block;
    transition: opacity 0.25s ease;
}

#lb-firebase-img.chargement {
    opacity: 0.2;
}

#lb-firebase-footer {
    padding: 16px 24px;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
}

#lb-firebase-titre {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#lb-firebase-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.lb-nav-btn:hover {
    background: #FF7F50;
    border-color: #FF7F50;
    color: white;
}

.lb-nav-btn:disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
}

#lb-firebase-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

#lb-firebase-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg);
}

#lb-firebase-compteur {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 20;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.72rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #94a3b8;
    backdrop-filter: blur(4px);
}

#lb-firebase-badge-cat {
    padding: 3px 10px;
    border-radius: 50px;
    background: #FF7F50;
    color: white;
    font-size: 0.68rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Lightbox */
#lightbox-galerie {
  backdrop-filter: blur(10px);
}

#lightbox-galerie img {
  user-select: none;
  -webkit-user-drag: none;
}

/* ============================================================
   FILIGRANE CACIBAT SUR LES PHOTOS DE LA GALERIE
   ============================================================ */
.galerie-statique-item {
  position: relative;
}

.galerie-statique-item::after {
  content: "CACIBAT";
  position: absolute;
  bottom: 8px;
  right: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 2px;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  z-index: 3;
  user-select: none;
}

/* Filigrane aussi sur la galerie dynamique Firebase */
#ma-galerie .galerie-skeleton {
  position: relative;
}

#ma-galerie > div:not(.galerie-skeleton) {
  position: relative;
}

#ma-galerie > div:not(.galerie-skeleton)::after {
  content: "CACIBAT";
  position: absolute;
  bottom: 8px;
  right: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 2px;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  z-index: 3;
  user-select: none;
}

.galerie-statique-item .absolute.inset-0 p,
#ma-galerie .firebase-photo-card .absolute.inset-0 p {
  max-width: calc(100% - 3.75rem);
}

/* Page Réalisations — catégories, cartes, pop-up */
#page-realisations .real-synthese {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0 0 2.5rem;
  letter-spacing: 0.01em;
}

#page-realisations h1 span {
  color: transparent !important;
}

.real-categorie {
  margin: 0 0 3rem;
}

.real-categorie h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0 0 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid #FF7F50;
}

.real-grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .real-grille {
    grid-template-columns: repeat(3, 1fr);
  }
}

.real-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  color: inherit;
  font: inherit;
  box-shadow: 0 8px 24px rgba(0, 51, 102, 0.06);
}

.real-card:hover,
.real-card:focus-visible {
  border-color: #FF7F50;
  outline: 2px solid #FF7F50;
  outline-offset: 2px;
}

.real-card-visuel {
  position: relative;
  display: block;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #e2e8f0;
}

.real-card-visuel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 768px) {
  .real-card-visuel {
    height: 200px;
  }
}

.real-card-label {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  background: rgba(0, 51, 102, 0.9);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
}

.real-card-corps {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.1rem 1.15rem;
}

.real-card-titre {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.real-card-meta {
  color: #FF7F50;
  font-size: 0.9rem;
  font-weight: 700;
}

.real-card-desc {
  margin: 0.35rem 0 0;
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.45;
}

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

.real-modal[hidden] {
  display: none !important;
}

.real-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.real-modal-fond {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
}

.real-modal-boite {
  position: relative;
  z-index: 1;
  width: min(40rem, 100%);
  max-height: min(90vh, 48rem);
  overflow: auto;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.85rem;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.real-modal-boite img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
}

.real-modal-legende {
  margin: 0.55rem 0 0;
  color: #64748b;
  font-size: 0.85rem;
}

.real-modal-boite h3 {
  margin: 0 0 0.2rem;
  padding-right: 5.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.7rem;
  color: #ffffff;
}

#real-modal-lieu-ligne {
  margin: 0 0 0.9rem;
  color: #e2e8f0;
  font-size: 0.95rem;
}

#real-modal-lieu-ligne span:first-child {
  margin-right: 0.45rem;
  color: #FF7F50;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.real-bloc {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 0.6rem;
}

.real-bloc h4 {
  margin: 0 0 0.35rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.real-bloc p {
  margin: 0;
  line-height: 1.5;
}

.real-bloc-neutre {
  background: #334155;
}

.real-bloc-neutre h4,
.real-bloc-neutre p {
  color: #ffffff;
}

.real-bloc-icone {
  margin-right: 0.15rem;
}

.real-bloc-resultat {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
}

.real-bloc-resultat h4,
.real-bloc-resultat p {
  color: #34d399;
}

.real-modal-fermer {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  border: 0;
  background: #FF7F50;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  border-radius: 0.35rem;
  cursor: pointer;
}

#page-realisations .prose,
#page-realisations .prose li,
#page-realisations .prose strong,
#page-realisations .prose span {
  color: #cbd5e1;
}

#page-realisations .canal-feature h2 {
  color: #003366 !important;
}

#page-realisations .canal-feature-texte,
#page-realisations .canal-feature-resultat,
#page-realisations .canal-defi p {
  color: #334155 !important;
}

#page-realisations .canal-feature-sous {
  color: #ff7f50 !important;
}

#page-realisations .canal-deux-projets p {
  color: #003366 !important;
}

#page-realisations .canal-defi-kicker {
  color: #003366 !important;
}

#page-realisations .real-invitation h3 {
  color: #003366 !important;
}

#page-realisations .real-invitation p {
  color: #475569 !important;
}


#page-realisations .bg-slate-800 h3 {
  color: #fb923c !important;
}

/* ── Barre de filtres réalisations ── */
.real-filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn-realisations {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 1.1rem;
  border-radius: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.filter-btn-realisations:hover {
  border-color: #FF7F50;
  color: #FF7F50;
  transform: translateY(-1px);
}

.filter-btn-realisations.active {
  background: #FF7F50;
  border-color: #FF7F50;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 127, 80, 0.4);
}

/* ── Carte placeholder "Projet à venir" ── */
.real-card--placeholder {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: rgba(30, 41, 59, 0.5);
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: default;
  pointer-events: none;
  opacity: 0.7;
}

.real-card--placeholder .real-card-visuel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 127, 80, 0.06);
}

.real-card--placeholder .real-placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.4;
}

.real-card--placeholder .real-card-titre {
  color: #94a3b8;
  font-style: italic;
}

.real-card--placeholder .real-card-meta {
  color: #64748b;
  font-style: italic;
}

