/* ============================================
   RENOV ELEC 29 — Feuille de style principale
   ============================================ */

/* Variables */
:root {
    --bleu-fonce: #101010;
    --bleu-clair: #28a4cf;
    --bleu-dark: #136a8a;
    --jaune: #dc4f1f;
    --jaune-clair: #f07040;
    --gris-clair: #f5f7fb;
    --gris-moyen: #d7dde8;
    --texte-sombre: #111111;
    --blanc: #ffffff;
    --ombre: rgba(16, 16, 16, 0.14);
    --easing: cubic-bezier(.22,.9,.36,1);
    --radius-card: 20px;
    --radius-pill: 999px;
}

/* Reset & base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

html, body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    color: var(--texte-sombre);
    background: radial-gradient(circle at top left, rgba(40, 164, 207, 0.10), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #eff4fb 100%);
    line-height: 1.7;
}

img { display: block; max-width: 100%; }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

header {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    padding: 0 2.5rem;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(40, 164, 207, 0.14);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(16, 16, 16, 0.06);
    transition: box-shadow 0.3s var(--easing), background-color 0.3s var(--easing);
}

.logo-link {
    display: flex;
    align-items: center;
    height: 52px;
    flex-shrink: 0;
    transition: transform 0.3s var(--easing), opacity 0.3s var(--easing);
}
.logo-link:hover { transform: scale(1.03); opacity: 0.9; }
.logo-img { height: 100%; width: auto; }

/* Zone géographique */
.header-zone {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--bleu-clair);
    background: rgba(40, 164, 207, 0.07);
    padding: 0.35rem 0.85rem 0.35rem 0.65rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(40, 164, 207, 0.16);
    white-space: nowrap;
    margin-left: 0.5rem;
    flex-shrink: 0;
}
.header-zone .location-link {
    color: var(--bleu-clair);
    text-decoration: none;
    transition: color 0.2s;
}
.header-zone .location-link:hover { color: var(--jaune); }
.map-icon { stroke: var(--jaune); width: 15px; height: 15px; flex-shrink: 0; }

/* Navigation links */
nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

nav a {
    text-decoration: none;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    position: relative;
    transition: color 220ms var(--easing), background-color 220ms var(--easing), transform 220ms var(--easing);
}

nav a:not(.nav-cta):hover {
    color: var(--bleu-dark);
    background-color: rgba(40, 164, 207, 0.10);
    transform: translateY(-1px);
}

/* Lien actif */
.nav-active {
    color: var(--jaune) !important;
    background-color: rgba(220, 79, 31, 0.08) !important;
}

.nav-active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2.5px;
    background: var(--jaune);
    border-radius: 999px;
}

/* Bouton CTA nav */
.nav-cta {
    background: linear-gradient(135deg, var(--jaune) 0%, #e8612e 100%);
    color: var(--blanc) !important;
    padding: 0.6rem 1.3rem;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(220, 79, 31, 0.30);
    margin-left: 0.5rem;
    transition: transform 220ms var(--easing), box-shadow 220ms var(--easing), filter 220ms !important;
}

.nav-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(220, 79, 31, 0.36) !important;
    filter: brightness(1.06);
    background-color: transparent !important;
}

/* Hamburger mobile */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    border: none;
    background: none;
    border-radius: 8px;
    transition: background 0.2s;
}
.nav-hamburger:hover { background: rgba(40,164,207,0.1); }
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--texte-sombre);
    border-radius: 2px;
    transition: transform 0.3s var(--easing), opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================
   HERO PRINCIPAL
   ============================================ */

.hero {
    background: radial-gradient(ellipse at top right, rgba(220, 79, 31, 0.18), transparent 40%),
        linear-gradient(140deg, var(--bleu-clair) 0%, var(--bleu-dark) 100%);
    color: var(--blanc);
    padding: 7rem 2rem 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 22%, rgba(255,255,255,0.13), transparent 22%),
        radial-gradient(circle at 82% 72%, rgba(255,255,255,0.07), transparent 18%);
    pointer-events: none;
}

/* Subtil motif géométrique */
.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(to bottom right, transparent 49%, var(--gris-clair) 50%);
    pointer-events: none;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
}

.hero-logo-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 32px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    backdrop-filter: blur(8px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: transform 0.4s var(--easing), box-shadow 0.4s var(--easing);
}
.hero-logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 70px rgba(0,0,0,0.18);
}

.hero-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.hero-logo-img { max-height: 380px; width: auto; }

.hero-text { text-align: left; }

.hero-text h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-text p {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 560px;
    margin-bottom: 2.25rem;
    line-height: 1.75;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ============================================
   BOUTONS
   ============================================ */

.bouton-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--blanc);
    color: var(--bleu-fonce);
    padding: 0.9rem 2rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.97rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 12px 28px rgba(16, 16, 16, 0.15);
    transition: transform 250ms var(--easing), box-shadow 250ms var(--easing), background 250ms;
}

.bouton-action:hover {
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(16, 16, 16, 0.2);
}

.bouton-secondaire {
    background-color: rgba(255, 255, 255, 0.14);
    color: var(--blanc);
    border: 1px solid rgba(255, 255, 255, 0.30);
    box-shadow: none;
}

.bouton-secondaire:hover {
    background-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
}

/* ============================================
   SERVICES
   ============================================ */

.services {
    background-color: var(--gris-clair);
    padding: 6rem 2rem 5rem;
    text-align: center;
}

.services h2 {
    color: var(--bleu-fonce);
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
}

.services > p,
.services .section-lead {
    max-width: 680px;
    margin: 0 auto 3rem;
    color: #55667a;
    font-size: 1.05rem;
}

.grille-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto 2.5rem;
}

.carte-service {
    background: var(--blanc);
    border-radius: var(--radius-card);
    padding: 1.75rem 1.6rem;
    box-shadow: 0 8px 28px rgba(16,16,16,0.07);
    border: 1px solid rgba(16,16,16,0.04);
    border-top: 3px solid var(--jaune);
    text-align: left;
    transition: transform 280ms var(--easing), box-shadow 280ms var(--easing);
    will-change: transform;
}

.carte-service:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(16, 16, 16, 0.11);
}

.carte-service h3 {
    color: var(--bleu-dark);
    margin-bottom: 0.85rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.carte-service p {
    color: #566575;
    line-height: 1.75;
    font-size: 0.97rem;
    margin: 0;
}

/* Liste liens services */
.services-links-list {
    max-width: 1100px;
    margin: 0.5rem auto 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
    padding: 0 0.5rem;
}

.services-links-list a {
    background: var(--blanc);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 14px rgba(16,16,16,0.08);
    border: 1px solid rgba(16,16,16,0.05);
    transition: background 200ms, color 200ms, transform 200ms var(--easing), box-shadow 200ms;
}

.services-links-list a:hover {
    background: var(--bleu-clair);
    color: var(--blanc);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40,164,207,0.22);
}

.services-links-list .label-short { display: none; }

/* Section badge / label */
.section-badge {
    display: inline-block;
    background: rgba(220, 79, 31, 0.10);
    color: var(--jaune);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
    border: 1px solid rgba(220, 79, 31, 0.18);
}

/* ============================================
   SECTION CONTACT / DEVIS
   ============================================ */

.contact {
    background-color: #111f2f;
    color: var(--blanc);
    padding: 5rem 2rem;
    text-align: center;
}

.contact h2 {
    color: var(--jaune);
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    margin-bottom: 0.75rem;
    font-weight: 800;
}

.contact p {
    margin: 0 auto 2rem;
    max-width: 680px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
}

.info-contact {
    display: grid;
    gap: 1rem;
    justify-items: center;
    max-width: 820px;
    margin: 0 auto;
}

.info-contact p {
    background: rgba(255, 255, 255, 0.07);
    padding: 1rem 1.5rem;
    border-radius: 14px;
    width: min(100%, 400px);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 1rem;
    color: rgba(255,255,255,0.88);
    margin: 0;
}

/* ============================================
   SECTION QUOTE (FORMULAIRE DEVIS)
   ============================================ */

.quote-section {
    background: radial-gradient(circle at top right, rgba(220, 79, 31, 0.14), transparent 30%),
        linear-gradient(135deg, #28a4cf, #136a8a);
    padding: 80px 20px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.quote-container {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.quote-header {
    text-align: center;
    margin-bottom: 44px;
}

.quote-header h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.quote-header p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.quote-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.form-info {
    background: rgba(40, 164, 207, 0.08);
    border-left: 4px solid var(--bleu-clair);
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 28px;
    color: #1a4a6e;
    font-size: 0.93rem;
    line-height: 1.6;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 22px;
}

.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }

label {
    color: #1a2b3c;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    padding: 12px 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.97rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    background: #f8fafc;
    color: var(--texte-sombre);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--bleu-clair);
    background: white;
    box-shadow: 0 0 0 3px rgba(40, 164, 207, 0.12);
}

textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Inter', sans-serif;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border-radius: 9px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.checkbox-item:hover {
    border-color: var(--bleu-clair);
    background: rgba(40,164,207,0.04);
}

.checkbox-item input[type="checkbox"] {
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: var(--bleu-dark);
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    color: #334155;
}

.form-actions {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    margin-top: 30px;
}

.btn-reset {
    background: #f1f5f9;
    color: #64748b;
    padding: 13px 24px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Inter', sans-serif;
}

.btn-reset:hover {
    background: #e8eef5;
    border-color: #cbd5e1;
    color: #334155;
}

.btn-submit {
    background: linear-gradient(135deg, #003366 0%, #004d80 100%);
    color: white;
    padding: 13px 28px;
    border: none;
    border-radius: 10px;
    font-size: 0.97rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 6px 18px rgba(0, 51, 102, 0.28);
    transition: transform 0.25s var(--easing), box-shadow 0.25s var(--easing), filter 0.25s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 51, 102, 0.35);
    filter: brightness(1.08);
}

/* ============================================
   PIED DE PAGE
   ============================================ */

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
}

footer {
    background-color: #0d1b2a;
    color: rgba(255, 255, 255, 0.65);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-column h3 {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-column p,
.footer-column a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    line-height: 2;
    transition: color 0.2s;
    display: block;
}

.footer-column a:hover { color: var(--bleu-clair); }

.footer-column ul { list-style: none; }

.footer-bottom {
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.38);
}

/* Fallback pour les footers simples (index, experience) */
footer > p {
    text-align: center;
    padding: 1.5rem 2rem;
    font-size: 0.88rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-content { animation: fadeInUp 0.7s var(--easing) both; }
.services { animation: fadeInUp 0.7s 0.1s var(--easing) both; }

/* ============================================
   PAGES INTERNES — Hero simplifié
   ============================================ */

.page-hero {
    background: radial-gradient(ellipse at top right, rgba(220,79,31,0.15), transparent 40%),
        linear-gradient(140deg, var(--bleu-clair) 0%, var(--bleu-dark) 100%);
    color: var(--blanc);
    padding: 5rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom right, transparent 49%, var(--gris-clair) 50%);
    pointer-events: none;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
}

.page-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.86);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    header {
        padding: 0 1.5rem;
        height: 64px;
        flex-wrap: nowrap;
    }

    /* ON INSÈRE LE BADGE ICI POUR LES MOBILES */
   .header-zone {
        display: flex !important;   /* Le !important va écraser le display:none du bas */
        margin-left: auto;         
        margin-right: 1rem;        
        font-size: 0.82rem;        
        padding: 0.3rem 0.7rem;    
    }

    .nav-hamburger { display: flex; }

    /* Sécurité pour les téléphones très étroits (ex: iPhone SE) */
    @media (max-width: 380px) {
        .header-zone .map-icon {
            display: none;         /* Cache le petit picto rouge si l'écran est minuscule */
        }
        .header-zone {
            margin-right: 0.5rem;
            padding: 0.25rem 0.5rem;
        }
    }

    nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 1rem 1.25rem 1.5rem;
        border-bottom: 1px solid rgba(40,164,207,0.12);
        box-shadow: 0 12px 40px rgba(0,0,0,0.10);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s var(--easing), opacity 0.3s var(--easing);
    }

    nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    nav a {
        padding: 0.75rem 1rem;
        border-radius: 12px;
        font-size: 1rem;
    }

    .nav-cta {
        text-align: center;
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .header-zone { display: none; }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-logo-card {
        min-height: auto;
        max-width: 340px;
        margin: 0 auto;
    }

    .hero-text { text-align: center; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-cta-group { justify-content: center; }
}

@media (max-width: 600px) {
    .hero { padding: 5rem 1.5rem 4rem; }

    .form-grid { grid-template-columns: 1fr; }

    .form-actions { grid-template-columns: 1fr; }

    .quote-form { padding: 24px 18px; }

    .services-links-list .label-full { display: none; }
    .services-links-list .label-short { display: inline; }

    .checkbox-group { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   SERVICES PAGE
   ============================================ */

.services-detail {
    padding: 4.5rem 2rem;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.services-detail-card {
    background: var(--blanc);
    border: 1px solid rgba(16,16,16,0.05);
    border-radius: var(--radius-card);
    padding: 1.6rem;
    box-shadow: 0 10px 30px rgba(16,16,16,0.07);
    transition: transform 300ms var(--easing), box-shadow 300ms var(--easing);
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.services-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(16,16,16,0.10);
}

.service-card-icon {
    min-width: 52px;
    min-height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(40,164,207,0.14), rgba(220,79,31,0.10));
    color: var(--jaune);
    font-size: 1.45rem;
}

.service-card-info h3 {
    margin-bottom: 0.6rem;
    color: var(--bleu-fonce);
    font-size: 1.1rem;
    font-weight: 700;
}

.service-card-info p {
    margin: 0;
    color: #566575;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   TIMELINE (EXPERIENCE PAGE)
   ============================================ */

.timeline { position: relative; padding: 10px 0; }

.timeline-item {
    margin-bottom: 36px;
    padding-left: 44px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 18px;
    height: 18px;
    background: var(--bleu-clair);
    border-radius: 50%;
    border: 3px solid var(--blanc);
    box-shadow: 0 0 0 2px rgba(40,164,207,0.25);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 28px;
    width: 2px;
    height: calc(100% + 8px);
    background: linear-gradient(to bottom, rgba(40,164,207,0.3), rgba(40,164,207,0.05));
}

.timeline-item:last-child::after { display: none; }

.timeline-item h3 {
    margin-top: 0;
    color: #0f3f68;
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.timeline-item .periode {
    display: inline-block;
    color: var(--blanc);
    background: var(--bleu-clair);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.65rem;
}

.timeline-item p {
    color: #566575;
    margin: 0;
    line-height: 1.7;
    font-size: 0.97rem;
}

.section-experience,
.section-formation {
    margin-bottom: 60px;
}

.section-experience h2,
.section-formation h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 2px solid rgba(40,164,207,0.2);
    padding-bottom: 16px;
    margin-bottom: 40px;
    color: #0f3f68;
    font-size: 1.6rem;
    font-weight: 800;
}

/* ============================================
   GALLERY PAGE
   ============================================ */

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.gallery-item {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(16,16,16,0.09);
    border: 1px solid rgba(16,16,16,0.04);
    transition: transform 0.3s var(--easing), box-shadow 0.3s var(--easing);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 44px rgba(16,16,16,0.14);
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 270px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--easing);
    cursor: pointer;
    background: #eef2f7;
}

.gallery-item:hover .gallery-image { transform: scale(1.04); }

/* Overlay au hover */
.gallery-image-wrapper::after {
    content: '🔍';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(19, 106, 138, 0.45);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

/* On utilise un pseudo sur l'item plutot */
.gallery-item:hover .gallery-image-wrapper::after { opacity: 1; }

.gallery-content {
    padding: 18px 20px 20px;
}

.gallery-title {
    color: #0f3f68;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
}

.gallery-description {
    color: #8898aa;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background-color: rgba(8, 16, 26, 0.96);
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.25s ease;
}

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

.lightbox-content {
    position: relative;
    max-width: 92%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.lightbox-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.lightbox-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

.lightbox-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    font-size: 1.4rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s, transform 0.2s;
}

.lightbox-nav-button:hover {
    background: rgba(255,255,255,0.28);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

.lightbox-info {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.10);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    text-align: center;
    max-width: 560px;
    backdrop-filter: blur(10px);
}

.lightbox-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: rgba(255,255,255,0.95);
}

.lightbox-description {
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.65);
}

.lightbox-close {
    position: fixed;
    top: 22px;
    right: 26px;
    color: rgba(255,255,255,0.8);
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255,255,255,0.10);
    border: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, transform 0.25s var(--easing), color 0.2s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.20);
    transform: rotate(90deg);
    color: white;
}

@media (max-width: 600px) {
    .lightbox-prev { left: 4px; }
    .lightbox-next { right: 4px; }
    .lightbox-nav-button { width: 40px; height: 40px; font-size: 1.1rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-image-wrapper { height: 220px; }
}
.bouton-action,
.btn-submit,
.btn-reset,
nav a {
    transition: all 0.3s ease;
}

.bouton-action:hover,
.btn-submit:hover,
nav a:hover {
    transform: translateY(-3px);
}/* ============================================
   SERVICES PAGE 
   ============================================ */

/* Le conteneur principal reste un bloc simple pour empiler les groupes */
.services-detail {
    max-width: 1400px;
    margin: 0 auto;
    padding: 70px 20px;
    display: block; /* Force l'empilement vertical des sections */
}

/* Chaque groupe devient la grille de ses propres cartes */
.services-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 70px;
}

/* Le titre du groupe s'étale sur toute la largeur de sa grille */
.services-group .group-title {
    grid-column: 1 / -1;
    color: #003366;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid #28a4cf;
    display: inline-block;
    justify-self: start; /* Évite que la bordure s'étire inutilement à l'infini */
}

/* Style unifié et propre pour les cartes de service */
.services-detail-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-card, 16px);
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 4px 15px rgba(16, 16, 16, 0.05);
    transition: transform 0.3s var(--easing, ease), box-shadow 0.3s var(--easing, ease);
}

.services-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}

/* Icônes des cartes */
.service-card-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(40, 164, 207, 0.1), #28a4cf);
    color: white;
}

/* Contenu textuel des cartes */
.service-card-info h3 {
    color: #003366;
    font-size: 1.15rem;
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 700;
}

.service-card-info p {
    color: #566575;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* Hero de la page prestations */
.services-hero {
    padding: 110px 20px;
    background: linear-gradient(135deg, #003366, #005792);
    color: white;
    text-align: center;
}

.services-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 20px;
    font-weight: 800;
}

.services-hero p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Version Mobile / Tablette */
@media (max-width: 768px) {
    .services-group {
        grid-template-columns: 1fr;
    }

    .services-detail-card {
        padding: 18px;
    }

    .services-hero h1 {
        font-size: 2.2rem;
    }
}
.services-summary {
    padding: 70px 20px 50px;
    text-align: center;
}

.services-summary-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.services-summary .lead {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Grille des 3 piliers */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.pillar-item {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(40, 164, 207, 0.12);
    padding: 20px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.pillar-icon {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.pillar-item strong {
    display: block;
    color: #003366;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.pillar-item p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}
/* ============================================
   SECTION RÉFÉRENCES (MINIMALISTE & SOBRE)
   ============================================ */
.partners-section {
    padding: 5rem 2rem;
    text-align: center;
    background-color: #f8fafc; /* Fond gris très léger pour détacher proprement la section */
}

.partners-container {
    max-width: 1100px;
    margin: 0 auto;
}

.partners-section h2 {
    color: var(--bleu-fonce);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.partners-section .section-lead {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 3rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

/* Un seul encadré fin et discret */
.partner-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Au survol : aucun mouvement, juste un changement de couleur de la bordure */
.partner-card:hover {
    border-color: var(--bleu-clair);
    box-shadow: 0 4px 12px rgba(40, 164, 207, 0.05);
}

.partner-card h3 {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.partner-location {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Rendu mobile */
@media (max-width: 600px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .partners-section {
        padding: 3.5rem 1.15rem;
    }
    .partner-card {
        padding: 1.5rem 0.5rem;
    }
}/* ===================== */
/* SECTION RÉFÉRENCES - Version Améliorée & Cohérente */
/* ===================== */
.partners-section {
    padding: 90px 20px;
    background: #f8fafc;
    text-align: center;
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
}

.partners-section h2 {
    color: #003366;
    font-size: 2.4rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.section-lead {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.partner-card {
    background: white;
    border-radius: 16px;
    padding: 35px 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    text-align: center;
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.15);
    border-color: #28a4cf;
}

.partner-logo {
    width: 160px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 22px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo {
    transform: scale(1.08);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.partner-card h3 {
    color: #003366;
    margin: 0 0 8px 0;
    font-size: 1.35em;
}

.partner-location {
    color: #777;
    font-size: 0.95em;
    margin-bottom: 12px;
}

.partner-type {
    color: #28a4cf;
    font-size: 0.95em;
    font-weight: 500;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .partners-section {
        padding: 70px 15px;
    }
    .partner-card {
        padding: 28px 20px;
    }
    .partner-logo {
        width: 140px;
        height: 80px;
    }
}/* ===================== */
/* Section Références    */
/* ===================== */
.partners-section {
    background: #f8f9fa;
    padding: 90px 20px;
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.partners-section h2 {
    color: #003366;
    font-size: 2.4em;
    margin-bottom: 12px;
}

.section-lead {
    color: #555;
    font-size: 1.15em;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.partner-card {
    background: white;
    border-radius: 16px;
    padding: 35px 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    text-align: center;
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.15);
    border-color: #003366;
}

.partner-logo-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #003366, #28a4cf);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 6px 15px rgba(0, 51, 102, 0.2);
}

.partner-card h3 {
    color: #003366;
    margin: 0 0 8px 0;
    font-size: 1.35em;
}

.partner-location {
    display: inline-block;
    color: #777;
    font-size: 0.95em;
    margin-bottom: 12px;
}

.partner-type {
    color: #28a4cf;
    font-size: 0.95em;
    font-weight: 500;
    margin-top: auto;
}

/* Version mobile */
@media (max-width: 768px) {
    .partners-section {
        padding: 70px 15px;
    }
    
    .partner-card {
        padding: 30px 20px;
    }
}.partner-logo {
    width: 120px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.partner-card:hover .partner-logo {
    transform: scale(1.08);
}

.partner-logo-placeholder {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #003366, #28a4cf);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 6px 15px rgba(0, 51, 102, 0.2);
}/* Suppression du soulignement sur les cartes références */
.partner-card,
.partner-card h3,
.partner-card .partner-location,
.partner-card .partner-type {
    text-decoration: none !important;
}

.partner-card h3 {
    color: #003366;
    margin: 0 0 8px 0;
    font-size: 1.35em;
    font-weight: 700;
}

/* Style du lien au survol (optionnel mais recommandé) */
.partner-card:hover h3 {
    color: #28a4cf;
    text-decoration: none;
}/* ====================== ZONES D'INTERVENTION ====================== */
.zones-hero {
    background: linear-gradient(rgba(0,51,102,0.8), rgba(0,51,102,0.8)), url('images/hero-map.jpg') center/cover;
    padding: 160px 20px 120px;
    text-align: center;
    color: white;
}

.map-section { padding: 80px 20px; background: #f8f9fa; }
.map-container { max-width: 1200px; margin: 40px auto; box-shadow: 0 15px 40px rgba(0,0,0,0.15); }

.zones-list, .advantages, .cta-final { padding: 80px 20px; }

.zones-grid, .advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto;
}

.zone-card, .adv-item {
    background: white;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
}

.zone-card h3, .adv-item h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.cta-final {
    background: linear-gradient(135deg, var(--primary), var(--light-blue));
    color: white;
    text-align: center;
}

.cta-buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.bouton-secondaire {
    background: white;
    color: var(--primary);
    border: 2px solid white;
}

/* Responsive */
@media (max-width: 768px) {
    .cta-buttons { flex-direction: column; align-items: center; }
}/* ====================== ZONES D'INTERVENTION ====================== */

.zones-hero {
    background: linear-gradient(rgba(0,51,102,0.85), rgba(0,51,102,0.85)), url('images/hero-map.jpg') center/cover no-repeat;
    padding: 160px 20px 100px;
    text-align: center;
    color: white;
}

.map-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.map-container {
    max-width: 1200px;
    margin: 40px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.zones-list, .advantages {
    padding: 80px 20px;
    background: white;
}

.zones-grid, .advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto;
}

.zone-card, .adv-item {
    background: white;
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid #eee;
}

.zone-card h3, .adv-item h3 {
    color: #003366;
    margin-bottom: 15px;
}

/* ====================== CTA FINAL (CORRIGÉ) ====================== */
.cta-final {
    background: linear-gradient(135deg, #003366, #136a8a);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.cta-final h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: white;
}

.cta-final p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .bouton-action {
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
}

.cta-buttons .bouton-secondaire {
    background: rgba(255,255,255,0.15);
    border: 2px solid white;
    color: white;
}

.cta-buttons .bouton-secondaire:hover {
    background: white;
    color: #003366;
}

/* Responsive */
@media (max-width: 768px) {
    .cta-final h2 { font-size: 2rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons .bouton-action { width: 100%; max-width: 320px; }
}/* ===================== */
/* QR CODE AMÉLIORÉ      */
/* ===================== */
.footer-qr-section {
    background: linear-gradient(135deg, #0f1c2e, #1a2a42);
    padding: 50px 20px 40px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-qr-container {
    max-width: 300px;
    margin: 0 auto;
}

.qr-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.qr-code {
    width: 180px;
    height: 180px;
    border: 10px solid #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35),
                inset 0 0 0 8px rgba(255,255,255,0.9);
    transition: transform 0.4s ease;
    margin: 15px auto;
    display: block;
}

.qr-link:hover .qr-code {
    transform: scale(1.08) rotate(2deg);
}

.qr-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .qr-code {
        width: 160px;
        height: 160px;
    }
    
    .footer-qr-section {
        padding: 40px 20px 30px;
    }
}