:root {
    --brand: #FB7F0A;
    --brand-dark: #E86200;
    --navy: #003878;
    --navy-light: #009DEA;
    --sky: #009DEA;
    --text-muted: #6c757d;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    background: #ffffff;
    color: #333;
}

.hero {
    padding: 4rem 0;
    background: linear-gradient(180deg, #f0f4f8 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* Réseau électrique animé en fond (circuit-bg) : le contenu reste au-dessus */
.hero > .circuit-bg {
    z-index: 0;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero-prelaunch {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-services {
    padding: 0;
    background: linear-gradient(180deg, #f0f4f8 0%, #ffffff 100%);
}

.logo-mark,
.logo-mark-sm,
.logo-mark-lg {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-mark {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,56,120,0.25);
}

.logo-mark-sm {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,56,120,0.25);
}

.logo-mark-lg {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,56,120,0.25);
}

.logo-mark img,
.logo-mark-sm img,
.logo-mark-lg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.service-icon-sm {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1) !important;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.btn-cta {
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    border: 0;
    color: var(--navy);
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,56,120,0.25);
    color: var(--navy);
}

footer small { color: var(--text-muted); }

/* Anti-spam : inversion du texte à l'affichage (source illisible par les robots) */
.obfuscate {
    unicode-bidi: bidi-override;
    direction: rtl;
}

/* Coordonnées chiffrées (téléphone, e-mail) : héritent de la couleur du pied
   de page ; le lien réel tel:/mailto: est construit par main.js */
.contact-crypt {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 2px;
}
.contact-crypt:hover {
    text-decoration-color: #FB7F0A;
}

/* Alerte orange (charte) — utilisée sur la page de connexion admin :
   fond orange #FB7F0A, texte navy pour un contraste ~5:1 */
.alert-brand {
    background: #FB7F0A !important;
    border: 1px solid #E86200 !important;
    color: #003878 !important;
}
.alert-brand .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

@media (max-width: 768px) {
    .hero-prelaunch { min-height: auto; padding: 2rem 0; }
    .logo-mark-lg { width: 72px; height: 72px; font-size: 28px; }
}

/* Charte NetRAlec — dérivée du logo (navy #003878, sky #009DEA, orange #FB7F0A) */
/* Navbar : fond navy pour la lisibilité du texte blanc, bande sky en accent (écho au swoosh du logo) */
.navbar-brand-bg {
    background: #003878 !important;
    border-bottom: 3px solid #009DEA;
}
.navbar-brand-bg .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
}
.navbar-brand-bg .nav-link:hover,
.navbar-brand-bg .nav-link:focus {
    color: #ffffff !important;
}
.navbar-brand-bg small {
    color: rgba(255, 255, 255, 0.75) !important;
}
/* Bloc marque (logo + nom + tagline) : styles de base extraits des styles inline
   pour permettre les animations au survol (voir section ANIMATIONS ci-dessous) */
.navbar-brand-name {
    font-weight: 700;
    color: #FB7F0A;
}
.navbar-brand-tagline {
    display: block;
    color: rgba(255, 255, 255, 0.75);
}
/* Lien Dashboard visible uniquement pour l'admin connecté (accent orange) */
.navbar-brand-bg .nav-link-admin {
    color: #FB7F0A !important;
    font-weight: 600;
}
.navbar-brand-bg .nav-link-admin:hover,
.navbar-brand-bg .nav-link-admin:focus {
    color: #ffffff !important;
}
.footer-brand { background: #003878 !important; }
/* sky/orange portent du texte navy (comme la bande du logo) pour un contraste ~5:1 */
.sky-badge { background: #009DEA !important; color: #003878 !important; }
.brand-badge { background: #FB7F0A !important; color: #003878 !important; }
.brand-btn { background: #FB7F0A !important; border-color: #FB7F0A !important; color: #003878 !important; }
.brand-btn:hover, .brand-btn:focus { background: #E86200 !important; border-color: #E86200 !important; color: #003878 !important; }
.sky-btn { background: #009DEA !important; border-color: #009DEA !important; color: #003878 !important; }
.sky-btn:hover, .sky-btn:focus { background: #0072C8 !important; border-color: #0072C8 !important; color: #ffffff !important; }
.navy-btn { background: #003878 !important; border-color: #003878 !important; color: #ffffff !important; }
.navy-btn:hover, .navy-btn:focus { background: #1b5fa8 !important; border-color: #1b5fa8 !important; color: #ffffff !important; }
.outline-navy-btn { border-color: #003878 !important; color: #003878 !important; }
.outline-navy-btn:hover, .outline-navy-btn:focus { background: #003878 !important; color: #ffffff !important; }
.outline-brand-btn { border-color: #FB7F0A !important; color: #003878 !important; }
.outline-brand-btn:hover, .outline-brand-btn:focus { background: #FB7F0A !important; color: #003878 !important; }
.outline-sky-btn { border-color: #009DEA !important; color: #0072C8 !important; }
.outline-sky-btn:hover, .outline-sky-btn:focus { background: #009DEA !important; color: #003878 !important; }
/* Pastille navy = socle lisible pour la tagline orange (5:1), duo du logo */
.brand-tagline {
    display: inline-block;
    background: #003878;
    color: #FB7F0A;
    font-weight: 700;
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(0, 56, 120, 0.25);
}
/* Icônes de services colorées par domaine, comme dans le logo :
   électricité=orange (éclair), maison/navy (monogramme), réseaux=sky (swoosh) */
.service-icon-sky { background: linear-gradient(135deg, #009DEA, #0072C8) !important; }
.service-icon-navy { background: linear-gradient(135deg, #1b5fa8, #003878) !important; }
/* Soulignement d'accent sky pour les titres de section */
.section-accent-sky {
    border-bottom: 3px solid #009DEA !important;
    display: inline-block;
    padding-bottom: 0.3rem;
}

/* ==========================================================================
   ANIMATIONS & EFFETS VISUELS (charte navy/sky/orange)
   Thèmes : électricité, domotique, informatique/réseaux.
   Désactivées avec prefers-reduced-motion (grosse majorité des effets).
   ========================================================================== */

/* --- ÉLECTRICITÉ : halo "sous tension" autour du logo (hero des 2 templates) --- */
.logo-mark-lg {
    animation: halo-breathe 4.5s ease-in-out infinite;
}

@keyframes halo-breathe {
    0%, 100% { box-shadow: 0 8px 32px rgba(0,56,120,0.25); }
    50% {
        box-shadow:
            0 10px 44px rgba(0,56,120,0.35),
            0 0 0 6px rgba(0,157,234,0.10),
            0 0 26px rgba(251,127,10,0.18);
    }
}

/* --- ÉLECTRICITÉ : ligne de courant qui circule (navbar + titres de section) --- */
.navbar-brand-bg { position: relative; }

.navbar-brand-bg::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg,
        rgba(0,157,234,0) 0%,
        #009DEA 30%,
        #FB7F0A 50%,
        #009DEA 70%,
        rgba(0,157,234,0) 100%);
    background-size: 200% 100%;
    animation: energy-flow 4s linear infinite;
}

.section-accent-sky { position: relative; }

.section-accent-sky::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #009DEA, #FB7F0A, #009DEA);
    background-size: 200% 100%;
    animation: energy-flow 3.5s linear infinite;
}

@keyframes energy-flow {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

/* --- ÉLECTRICITÉ : éclair qui traverse les boutons principaux au survol --- */
.brand-btn, .sky-btn, .navy-btn, .btn-cta,
.outline-navy-btn, .outline-brand-btn, .outline-sky-btn {
    position: relative;
    overflow: hidden;
}

.brand-btn::after, .sky-btn::after, .navy-btn::after, .btn-cta::after,
.outline-navy-btn::after, .outline-brand-btn::after, .outline-sky-btn::after {
    content: '';
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -60%;
    width: 45%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-22deg);
    transition: left 0.55s ease;
    pointer-events: none;
}

.brand-btn:hover::after, .sky-btn:hover::after, .navy-btn:hover::after, .btn-cta:hover::after,
.outline-navy-btn:hover::after, .outline-brand-btn:hover::after, .outline-sky-btn:hover::after {
    left: 125%;
}

/* --- ÉLECTRICITÉ : icônes "voyants" qui s'allument au survol des cartes --- */
.service-icon, .service-icon-sm {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover .service-icon,
.service-card:hover .service-icon-sm,
.card:hover .service-icon {
    animation: icon-power 0.7s ease;
    box-shadow: 0 0 0 6px rgba(0,157,234,0.15), 0 0 18px rgba(0,157,234,0.40);
}

@keyframes icon-power {
    0%   { transform: scale(0.9); }
    60%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* --- DOMOTIQUE : badge "pré-production" avec voyant clignotant (prelaunch) --- */
.dot-pulse {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: #ffffff;
    vertical-align: middle;
    animation: dot-pulse 2s ease-out infinite;
}

@keyframes dot-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(232,98,0,0.55); }
    70%  { box-shadow: 0 0 0 10px rgba(232,98,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(232,98,0,0); }
}

/* --- ÉLECTRICITÉ : le badge pré-lancement vibre comme un câble sous tension ---
   Sans interaction : court éclat électrique (halo orange + pulsation) toutes
   les 7 s, léger retard initial pour laisser l'apparition (.reveal) se finir.
   Seules scale/box-shadow sont animées pour ne pas écraser transform de .reveal */
.electric-pulse {
    animation: electric-buzz 7s ease-in-out 1.5s infinite;
}

@keyframes electric-buzz {
    0%, 35%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(251,127,10,0); }
    4%  { transform: scale(1.035); box-shadow: 0 0 18px rgba(251,127,10,0.65), 0 0 0 6px rgba(251,127,10,0.18); }
    8%  { transform: scale(1.015); box-shadow: 0 0 10px rgba(251,127,10,0.35); }
    12% { transform: scale(1.028); box-shadow: 0 0 22px rgba(251,127,10,0.55); }
    16% { transform: scale(1.01);  box-shadow: 0 0 8px rgba(251,127,10,0.30); }
    20% { transform: scale(1);     box-shadow: 0 0 0 rgba(251,127,10,0); }
}

/* --- INFORMATIQUE : curseur "terminal" clignotant (prelaunch) --- */
.term-cursor {
    color: #FB7F0A;
    font-weight: 700;
    animation: cursor-blink 1.1s step-end infinite;
}

@keyframes cursor-blink { 50% { opacity: 0; } }

/* --- INFORMATIQUE/RÉSEAUX : grille de nœuds animée dans le hero --- */
.hero-prelaunch, .hero-services {
    position: relative;
    overflow: hidden;
}

.circuit-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.45;
    z-index: 0;
}

.hero-prelaunch > .container,
.hero-services > .container {
    position: relative;
    z-index: 1;
}

.circuit-path {
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: path-draw 9s linear infinite;
}

@keyframes path-draw {
    0%   { stroke-dashoffset: 900; }
    60%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -900; }
}

.circuit-node {
    animation: node-blink 3.2s ease-in-out infinite;
}

@keyframes node-blink {
    0%, 100% { opacity: 0.25; }
    50%      { opacity: 1; }
}

/* --- INFORMATIQUE : ondes radar sur la carte "Zone d'intervention" --- */
.radar-card { position: relative; overflow: hidden; }

.radar-card::before,
.radar-card::after {
    content: '';
    position: absolute;
    left: 22px;
    top: 22px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(0,157,234,0.55);
    opacity: 0;
    animation: radar-ping 3.5s ease-out infinite;
    pointer-events: none;
}

.radar-card::after { animation-delay: 1.75s; }

@keyframes radar-ping {
    0%   { transform: scale(0.3); opacity: 0.8; }
    100% { transform: scale(5); opacity: 0; }
}

/* --- DOMOTIQUE : apparition en cascade au scroll (révélée par main.js) --- */
html.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

html.js .reveal.visible {
    opacity: 1;
    transform: none;
}

/* --- ÉLECTRICITÉ : la marque "s'électrise" au survol (logo + nom + tagline) --- */
.logo-mark, .logo-mark-sm {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Éclair qui balaie le logo au passage du curseur */
.logo-mark::before, .logo-mark-sm::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -130%;
    width: 70%;
    background: linear-gradient(105deg, transparent, rgba(0,157,234,0.5), transparent);
    transform: skewX(-22deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

.navbar-brand:hover .logo-mark,
.navbar-brand:hover .logo-mark-sm {
    transform: rotate(-3deg) scale(1.06);
    box-shadow:
        0 0 0 5px rgba(0,157,234,0.20),
        0 0 24px rgba(0,157,234,0.45),
        0 6px 20px rgba(0,56,120,0.35);
}

.navbar-brand:hover .logo-mark::before,
.navbar-brand:hover .logo-mark-sm::before {
    left: 150%;
}

.navbar-brand .navbar-brand-name,
.navbar-brand .navbar-brand-tagline {
    transition: color 0.3s ease, text-shadow 0.3s ease, letter-spacing 0.3s ease;
}

/* Nom : chatoiement lumineux (orange -> or) quand on survole le bloc marque */
.navbar-brand:hover .navbar-brand-name {
    letter-spacing: 0.5px;
    background: linear-gradient(90deg,
        #FB7F0A 0%, #FFDEB0 40%, #FB7F0A 50%, #FFDEB0 60%, #FB7F0A 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer 1.6s linear infinite;
}

@keyframes text-shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

/* Tagline : passe au orange lumineux avec halo
   !important requis : .navbar-brand-bg small impose sa couleur en priorité */
.navbar-brand:hover .navbar-brand-tagline {
    color: #FB7F0A !important;
    letter-spacing: 0.4px;
    text-shadow: 0 0 10px rgba(251,127,10,0.5);
}

/* --- ÉLECTRICITÉ : le pied de page "s'allume" au survol --- */
.footer-brand a {
    position: relative;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

/* Soulignement "courant" : se déroule au survol puis circule en continu */
.footer-brand a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #009DEA, #FB7F0A, #009DEA);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.footer-brand a:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(0,157,234,0.55);
}

.footer-brand a:hover::after {
    transform: scaleX(1);
    animation: energy-flow 1.4s linear infinite;
}

/* Coordonnées chiffrées : pas de double soulignement, halo orange */
.footer-brand a.contact-crypt:hover {
    text-decoration-line: none;
    text-shadow: 0 0 12px rgba(251,127,10,0.55);
}

.footer-brand strong,
.footer-brand small {
    transition: color 0.25s ease, letter-spacing 0.25s ease, text-shadow 0.25s ease;
}

.footer-brand strong:hover {
    color: #FB7F0A;
    letter-spacing: 0.4px;
    text-shadow: 0 0 14px rgba(251,127,10,0.5);
}

.footer-brand small:hover {
    color: rgba(255,255,255,0.9);
    text-shadow: 0 0 10px rgba(0,157,234,0.35);
}

.footer-brand .col-md-4 > p:hover {
    color: rgba(255,255,255,0.95);
    text-shadow: 0 0 12px rgba(0,157,234,0.35);
}

/* --- ÉLECTRICITÉ : onde de courant qui traverse les textes du pied de page ---
   Les lignes s'illuminent en cascade (haut vers bas) : la couleur de base est
   conservée, un éclat sky→orange->crème balaie le texte comme un courant.
   Repli propre : sans support background-clip:text, le texte reste normal. */
.footer-flow {
    background: linear-gradient(90deg,
        rgba(255,255,255,0.75) 0%,
        rgba(255,255,255,0.75) 30%,
        #009DEA 45%,
        #FB7F0A 50%,
        #FFEDD6 52%,
        #FB7F0A 54%,
        #009DEA 58%,
        rgba(255,255,255,0.75) 70%,
        rgba(255,255,255,0.75) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: footer-flow 9s ease-in-out infinite;
}

@keyframes footer-flow {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

/* Cascade : chaque ligne démarre décalée pour propager l'onde vers le bas */
.footer-flow-2 { animation-delay: 1.1s; }
.footer-flow-3 { animation-delay: 2.2s; }
.footer-flow-4 { animation-delay: 3.3s; }

/* Au survol, on coupe l'onde et on fige les textes en blanc lumineux */
.footer-flow:hover,
.footer-flow:focus {
    background-image: none;
    -webkit-text-fill-color: rgba(255,255,255,0.96);
    color: rgba(255,255,255,0.96);
    animation: none;
    text-shadow: 0 0 12px rgba(0,157,234,0.4);
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .footer-flow {
        background-image: none;
        -webkit-text-fill-color: initial;
        animation: none;
    }
}

/* --- INFORMATIQUE/RÉSEAUX : radar au survol des liens de navigation ---
   Deux ondes circulaires sky partent du centre du lien tant qu'il est
   survolé (scan radar), en écho au thème réseaux de l'entreprise. */
.navbar-nav .nav-link {
    position: relative;
}

.navbar-nav .nav-link::before,
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    margin-top: -4px;
    border-radius: 50%;
    border: 2px solid rgba(0,157,234,0.75);
    opacity: 0;
    pointer-events: none;
}

.navbar-nav .nav-link:hover::before {
    animation: nav-radar 1.3s ease-out infinite;
}

.navbar-nav .nav-link:hover::after {
    animation: nav-radar 1.3s ease-out 0.65s infinite;
}

@keyframes nav-radar {
    0%   { transform: scale(0.4); opacity: 0.9; }
    100% { transform: scale(2.6); opacity: 0; }
}

/* --- Badges de certification --- */
.badge-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 .25rem .5rem rgba(0, 0, 0, .06);
}
.badge-item {
    display: inline-flex;
    align-items: center;
    transition: transform .3s ease;
}
.badge-item img {
    max-height: 60px;
    width: auto;
    opacity: .75;
    filter: grayscale(1);
    transition: opacity .3s ease, filter .3s ease;
}
.badge-item:hover img {
    opacity: 1;
    filter: grayscale(0);
}
.badge-item:hover {
    transform: translateY(-2px);
}
.badge-fallback {
    display: inline-block;
    padding: .4rem .9rem;
    border: 2px solid #009DEA;
    border-radius: 999px;
    color: #003878;
    font-size: .9rem;
    font-weight: 700;
    background: #fff;
}
.badge-preview {
    display: inline-block;
    padding: .5rem 1rem;
    border: 1px dashed #c5cdd8;
    border-radius: 10px;
    background: #fff;
}
.badge-preview img {
    max-height: 52px;
    width: auto;
    filter: grayscale(1);
    opacity: .85;
}

/* --- Portfolio : vignettes admin --- */
.portfolio-thumb {
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}
.portfolio-thumb:hover,
.portfolio-thumb:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .12) !important;
    outline: none;
}
.portfolio-thumb-img {
    height: 130px;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    background: #eef2f7;
}
.portfolio-thumb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.portfolio-thumb-caption {
    display: block;
    max-height: 2.6em;
    overflow: hidden;
}

/* --- Modale photos (portfolio public + admin) --- */
.pm-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.pm-modal.pm-open {
    display: flex;
}
.pm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .82);
}
.pm-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(1200px, 95vw);
    max-height: 94vh;
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    padding: 1rem 1.2rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.pm-counter {
    text-align: center;
    font-size: .9rem;
    font-weight: 700;
    color: #003878;
    margin: .35rem 0 .6rem;
}
.pm-slides {
    position: relative;
}
.pm-slide {
    display: none;
}
.pm-slide.pm-active {
    display: block;
}
.pm-figure {
    margin: 0;
    text-align: center;
}
.pm-figure img {
    display: block;
    max-width: 100%;
    max-height: 68vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
}
.pm-figure figcaption {
    margin-top: .6rem;
    color: #003878;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.4;
}
.pm-btn {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background: #FB7F0A;
    color: #003878;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .45);
    transition: background .2s ease, transform .2s ease, opacity .2s ease;
}
.pm-btn:hover,
.pm-btn:focus-visible {
    background: #E86200;
    transform: scale(1.08);
    outline: none;
}
.pm-btn[disabled] {
    opacity: .35;
    cursor: default;
    transform: none;
}
.pm-prev {
    left: 1rem;
    top: 46%;
    transform: translateY(-50%);
}
.pm-prev:hover,
.pm-prev:focus-visible {
    transform: translateY(-50%) scale(1.08);
}
.pm-next {
    right: 1rem;
    top: 46%;
    transform: translateY(-50%);
}
.pm-next:hover,
.pm-next:focus-visible {
    transform: translateY(-50%) scale(1.08);
}
.pm-close {
    top: .75rem;
    right: .75rem;
    width: 46px;
    height: 46px;
    background: #003878;
    color: #fff;
    font-size: 1.5rem;
}
.pm-close:hover,
.pm-close:focus-visible {
    background: #1b5fa8;
    color: #fff;
}
.pm-dialog-admin .pm-figure img {
    max-height: 44vh;
}
.pm-actions {
    margin-top: .8rem;
    padding-top: .8rem;
    border-top: 1px dashed #c5cdd8;
}
@media (max-width: 640px) {
    .pm-btn { width: 48px; height: 48px; font-size: 1.6rem; }
    .pm-prev { left: .5rem; }
    .pm-next { right: .5rem; }
    .pm-close { top: .5rem; right: .5rem; }
}

/* --- Visionneuse publique : photos affichées à taille uniforme --- */
/* (le cadre de l'image ne change plus de dimensions d'une photo à l'autre) */
#pmPublic .pm-figure img,
#pmPortrait .pm-figure img {
    display: block;
    width: 100%;
    height: min(60vh, 560px);
    max-height: none;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 12px;
}
#pmPublic .pm-figure figcaption,
#pmPortrait .pm-figure figcaption {
    margin-top: .5rem;
    min-height: 2.6em;
    color: #003878;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.4;
}

/* --- Portrait admin : vignette --- */
.portrait-admin-thumb {
    max-height: 220px;
    overflow: hidden;
    border-radius: 12px;
    background: #eef2f7;
}
.portrait-admin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Témoignages clients --- */
.testimonial-card {
    border-left: 4px solid #009DEA;
}
.testimonial-quote {
    font-size: 2.2rem;
    line-height: 1;
    color: #009DEA;
    font-weight: 800;
}
.testimonial-date {
    font-size: .82rem;
    color: #6b7a8c;
    font-weight: 600;
}
.testimonial-text {
    color: #2b3a4a;
    line-height: 1.65;
}
.testimonial-author {
    font-weight: 700;
    color: #003878;
}

/* --- Accessibilité : désactivation complète des animations --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    html.js .reveal {
        opacity: 1;
        transform: none;
    }
}

/* --- Cartes de services cliquables (template de production) --- */
.svc-trigger {
    width: 100%;
    padding: 0;
    text-align: left;
    background: #fff;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.svc-trigger:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 2px;
}
.svc-more {
    color: var(--brand);
    transition: color 0.2s ease;
}
.svc-trigger:hover .svc-more,
.svc-trigger:focus-visible .svc-more {
    color: var(--brand-dark);
}

/* --- Modale « Nos services » --- */
.svc-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.svc-modal.svc-open {
    display: flex;
}
.svc-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .82);
}
.svc-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.svc-close {
    position: absolute;
    top: .5rem;
    right: .6rem;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #003878;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}
.svc-close:hover {
    background: rgba(0, 56, 120, .08);
}
.svc-close:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 2px;
}
.svc-content {
    position: relative;
}
.svc-panel {
    display: none;
}
.svc-panel.svc-active {
    display: block;
}
.svc-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid rgba(0, 56, 120, .12);
}
.svc-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.svc-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #003878;
}
.svc-close + .svc-content {
    padding-top: .6rem;
}
.svc-body {
    padding: 1.2rem 1.4rem;
}
.svc-lead {
    margin: 0 0 1rem;
    color: #333;
    font-size: .98rem;
    line-height: 1.55;
}
.svc-list {
    margin: 0 0 1rem;
    padding-left: 0;
    list-style: none;
}
.svc-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: .55rem;
    line-height: 1.5;
    color: #444;
    font-size: .95rem;
}
.svc-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .45em;
    width: .6em;
    height: .6em;
    border-radius: 50%;
    background: var(--brand);
}
.svc-method {
    margin: 0 0 1.1rem;
    padding: .9rem 1rem;
    border-left: 4px solid var(--brand);
    background: #f0f4f8;
    border-radius: 0 10px 10px 0;
    color: #003878;
    font-size: .92rem;
    line-height: 1.55;
}
.svc-method strong {
    color: #003878;
}
.svc-cta {
    padding: 1rem 1.4rem 1.2rem;
    background: linear-gradient(135deg, #f8f9fa, #eef2f7);
    border-top: 1px solid rgba(0, 56, 120, .12);
    border-radius: 0 0 16px 16px;
    text-align: center;
}
.svc-cta-label {
    display: block;
    font-weight: 700;
    color: #003878;
    margin-bottom: .7rem;
}
.svc-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: center;
}
.svc-cta-note {
    display: block;
    margin-top: .7rem;
    font-size: .85rem;
    color: #6c757d;
}
