/* =========================================
   VARIABLES & CHARTE GRAPHIQUE
========================================= */
:root {
    --bleu-canard: #00536a;
    --orange-chaud: #fc4202;
    --bleu-fonce: #023840; 
    
    --bg-light: #f8f9fb;
    --text-main: #334155;
    --text-light: #e2e8f0;
    --white: #ffffff;
    --border-strong: rgba(2, 56, 64, 0.28);
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition: all 0.3s ease-in-out;
}

/* =========================================
   RESET & BASE
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { 
    scroll-behavior: smooth; 
    font-display: swap;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.highlight { color: var(--orange-chaud); }

.text-center { text-align: center; }

.badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--orange-chaud);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: transparent;
    border: 0;
    padding: 0;
    border-radius: 0;
}

.badge::before,
.badge::after {
    content: '';
    flex: 1;
    height: 1px;
    max-width: 200px;
    background: linear-gradient(to right, transparent, var(--orange-chaud), transparent);
    opacity: 0.5;
}

/* =========================================
   BOUTONS
========================================= */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--orange-chaud);
    color: var(--white);
    border: 2px solid var(--orange-chaud);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--orange-chaud);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--bleu-fonce);
}

/* =========================================
   NAVIGATION (HEADER)
========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
}

.nav-container a, .logo img { height: 100%; }

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-menu li {
    display: flex;
}

.nav-menu li a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    color: var(--bleu-canard);
}

.nav-menu li a:hover { color: var(--orange-chaud); }

.nav-menu li a.btn-primary { color: var(--white); }
.nav-menu li a.btn-primary:hover { color: var(--orange-chaud); }

/* Hamburger (Mobile) */
.hamburger { display: none; cursor: pointer; }
.bar {
    display: block; width: 25px; height: 3px; margin: 5px auto;
    transition: all 0.3s ease-in-out; background-color: var(--bleu-canard);
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-color: var(--bleu-fonce);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(252, 66, 2, 0.2) 0%, rgba(0, 83, 106, 0.3) 40%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero .subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
}

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

/* =========================================
   SECTION EXPERTISES
========================================= */
.section-expertises {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--bleu-fonce);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-main);
    font-size: 1.1rem;
}

.grid-expertises {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card-expertise {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card-expertise::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--orange-chaud);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card-expertise:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(2, 56, 64, 0.1);
}

.card-expertise:hover::before { transform: scaleX(1); }

.icon-box {
    width: 60px; height: 60px;
    background: rgba(0, 83, 106, 0.05);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 25px;
    color: var(--bleu-canard);
}

.icon-box svg { width: 30px; height: 30px; }

.card-expertise h3 {
    color: var(--bleu-fonce);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card-expertise p { color: #64748b; font-size: 0.95rem; }

/* =========================================
   SECTION DIGITALISATION
========================================= */
.section-digital {
    padding: 60px 0 60px;
    background-color: var(--white);
}

.digital-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.digital-content h2 {
    font-size: 2.5rem; color: var(--bleu-fonce); margin-bottom: 25px;
}

.digital-content p {
    font-size: 1.1rem; margin-bottom: 30px; color: var(--text-main);
}

.check-list { list-style: none; }
.check-list li {
    display: flex; align-items: flex-start; gap: 15px;
    margin-bottom: 25px;
}
.check-list li svg {
    width: 24px; height: 24px; color: var(--orange-chaud); flex-shrink: 0; margin-top: 3px;
}
.check-list li strong { display: block; color: var(--bleu-fonce); font-size: 1.1rem; margin-bottom: 5px; }
.check-list li span { color: #64748b; font-size: 0.95rem; }

.digital-visual {
    display: flex; flex-direction: column; gap: 20px;
    background: var(--bg-light);
    padding: 40px; border-radius: 20px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}

.tech-card {
    background: var(--white);
    padding: 20px; border-radius: 10px;
    display: flex; align-items: center; gap: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--bleu-canard);
    transition: var(--transition);
}
.tech-card:hover { transform: translateX(10px); border-left-color: var(--orange-chaud); }
.tech-card svg { width: 30px; height: 30px; }
.tech-card h4 { color: var(--bleu-fonce); font-size: 1.1rem; margin: 0; }

/* =========================================
   SECTION METHODOLOGIE
========================================= */
.section-methodology {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.step {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(252, 66, 2, 0.2); 
    margin-bottom: -5px;
}

.step h4 { color: var(--bleu-fonce); margin-bottom: 10px; font-size: 1.2rem; position: relative; z-index: 2;}
.step p { color: #64748b; font-size: 0.95rem; }

/* =========================================
   SECTION A PROPOS
========================================= */
.section-about {
    padding: 60px 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 { font-size: 2.5rem; color: var(--bleu-fonce); margin-bottom: 25px; }
.about-content p { font-size: 1.1rem; margin-bottom: 20px; color: var(--text-main); }

.about-list { list-style: none; margin-top: 30px;}
.about-list li {
    display: flex; align-items: center; gap: 15px; margin-bottom: 15px;
    font-weight: 500; color: var(--bleu-fonce);
}
.about-list li svg { width: 24px; height: 24px; color: var(--orange-chaud); }

.image-placeholder {
    width: 100%; 
    height: 500px;
    background-image: url('../images/about.avif');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    position: relative; 
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(2, 56, 64, 0.2);
}

.image-placeholder::after {
    content: ''; position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(252, 66, 2, 0.25) 0%, transparent 50%);
    pointer-events: none;
}

/* =========================================
   SECTION CONTACT (CARTES FLOTTANTES)
========================================= */
.section-contact-floating {
    padding-top: 80px;
    background-color: var(--bg-light);
    position: relative;
    padding-bottom: 60px; 
}

.map-banner {
    position: relative;
    width: 100%;
    height: 450px;
    margin-top: 20px;
}

.map-banner iframe {
    width: 100%;
    height: 100%;
    display: block;
    filter: grayscale(20%) contrast(1.1); 
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 10;
    margin-top: -50px; 
}

.contact-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 54, 69, 0.08); 
    text-align: center;
    border-top: 4px solid var(--orange-chaud);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 50px rgba(0, 54, 69, 0.12);
    border-top-color: var(--orange-chaud);
}

.icon-circle {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 83, 106, 0.05); 
    color: var(--bleu-canard);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.icon-circle svg {
    width: 32px;
    height: 32px;
}

.contact-card:hover .icon-circle {
    background-color: var(--orange-chaud);
    color: var(--white);
    transform: scale(1.1);
}

.contact-card h4 { color: var(--bleu-fonce); font-size: 1.3rem; margin-bottom: 15px; }
.contact-card p { color: var(--text-main); font-size: 1rem; line-height: 1.5; }

.highlight-contact {
    display: block;
    color: var(--bleu-canard);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    transition: var(--transition);
}

a.highlight-contact:hover { color: var(--orange-chaud); }
.small-text { font-size: 0.85rem !important; color: #94a3b8 !important; }

/* =========================================
   FOOTER
========================================= */
.main-footer {
    background-color: var(--bleu-fonce);
    color: var(--text-light);
    padding: 60px 0 20px;
    border-top: 2px solid var(--orange-chaud);
}

.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 40px;
}

.footer-logo { height: auto; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-brand p { color: #94a3b8; max-width: 400px; margin-bottom: 30px; }

.social-links { display: flex; gap: 15px; }
.social-icon {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background-color: rgba(255,255,255,0.05); color: var(--white);
    border: 1px solid rgba(255,255,255,0.1);
}
.social-icon:hover {
    background-color: var(--orange-chaud); border-color: var(--orange-chaud); transform: translateY(-3px);
}

.footer-column h3 { color: var(--white); margin-bottom: 25px; font-size: 1.3rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: #94a3b8; transition: color 0.3s ease, padding-left 0.3s ease; }
.footer-links a:hover { color: var(--orange-chaud); padding-left: 5px; }

.footer-bottom {
    text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); 
    display: flex; align-items: center; justify-content: space-between;
    padding-inline: 10%; color:rgb(148, 163, 184); font-size: 0.9rem;
}

/* =========================================
   PAGES LÉGALES
========================================= */
.legal-hero {
    padding: 130px 0 50px;
    background: linear-gradient(135deg, var(--bleu-fonce) 0%, var(--bleu-canard) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.legal-hero::before {
    content: ''; position: absolute; top: -50%; right: -10%;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(252, 66, 2, 0.18) 0%, transparent 70%);
    pointer-events: none;
}
.legal-hero h1 { color: var(--white); margin-bottom: 14px; font-size: 2.6rem; position: relative; }
.legal-hero p { color: var(--text-light); max-width: 720px; margin: 0 auto; position: relative; }

.legal-hero-meta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    padding: 6px 16px 6px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.legal-hero-meta-icon {
    width: 16px;
    height: 16px;
    color: var(--orange-chaud);
    flex-shrink: 0;
}
.legal-hero-meta-label {
    color: var(--text-light);
    opacity: 0.8;
    letter-spacing: 0.2px;
}
.legal-hero-meta-date {
    color: var(--white);
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 8px;
    background: var(--bleu-fonce);
    border: 1px solid var(--bleu-fonce);
    font-size: 0.75rem;
    white-space: nowrap;
}

.legal-content { padding: 30px 0; background-color: var(--white); }
.legal-content .container { max-width: 1200px; }
.legal-content article > :first-child { margin-top: 0; }

.legal-meta {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(2, 56, 64, 0.07);
    color: var(--bleu-fonce);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 30px;
}

.legal-content h2 {
    margin-top: 50px; margin-bottom: 16px;
    font-size: 1.6rem; color: var(--bleu-fonce);
    border-bottom: 2px solid rgba(252, 66, 2, 0.15);
    padding-bottom: 10px;
}
.legal-content h3 {
    margin-top: 28px; margin-bottom: 12px;
    font-size: 1.15rem; color: var(--bleu-canard);
}
.legal-content p { margin-bottom: 16px; line-height: 1.8; color: var(--text-main); }
.legal-content p:last-child { margin-bottom: 0;}
.legal-content ul, .legal-content ol { margin: 0 0 20px 0; padding-left: 22px; color: var(--text-main); }
.legal-content li { margin-bottom: 10px; line-height: 1.75; }
.legal-content a {
    color: var(--orange-chaud);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.legal-content a:hover { border-bottom-color: var(--orange-chaud); }
.legal-content strong { color: var(--bleu-fonce); font-weight: 600; }

.legal-info-block {
    background-color: #f8fafc;
    border-left: 3px solid var(--orange-chaud);
    padding: 20px 24px;
    border-radius: 4px;
    margin: 20px 0 24px;
}
.legal-info-block p { margin-bottom: 8px; }
.legal-info-block p:last-child { margin-bottom: 0; }
.legal-info-block strong { display: inline-block; }

.legal-placeholder {
    display: inline-block;
    padding: 1px 8px;
    background-color: rgba(252, 66, 2, 0.1);
    color: var(--orange-chaud);
    border-radius: 3px;
    font-size: 0.92em;
    font-style: italic;
}

.legal-toc {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 40px;
}
.legal-toc h3 { margin-top: 0; margin-bottom: 14px; color: var(--bleu-fonce); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.legal-toc ol { margin: 0; padding-left: 20px; }
.legal-toc li { margin-bottom: 6px; line-height: 1.5; }
.legal-toc a { color: var(--text-main); border-bottom: none; }
.legal-toc a:hover { color: var(--orange-chaud); }

@media (max-width: 768px) {
    .legal-hero { padding: 130px 0 50px; }
    .legal-hero h1 { font-size: 2rem; }
    .legal-hero-meta {
        margin-top: 20px;
        padding: 5px 12px 5px 12px;
        gap: 8px;
        font-size: 0.78rem;
    }
    .legal-hero-meta-icon { width: 14px; height: 14px; }
    .legal-hero-meta-date { font-size: 0.75rem; padding: 3px 10px; }
    .legal-content h2 { font-size: 1.35rem; }
    .legal-info-block strong { display: block; min-width: 0; margin-bottom: 2px; }
    .footer-bottom { display: block; }
    .footer-bottom-links { margin-top: 12px; }
}

/* =========================================
   COOKIE CONSENT - BANNIÈRE
========================================= */
.cookie-banner {
    position: fixed;
    bottom: 20px; left: 20px; right: 20px;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(2, 56, 64, 0.18);
    border-left: 4px solid var(--orange-chaud);
    padding: 22px 28px;
    z-index: 9998;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner-text h4 { color: var(--bleu-fonce); font-size: 1.05rem; margin-bottom: 6px; }
.cookie-banner-text p {
    color: var(--text-main); font-size: 0.92rem; line-height: 1.55; margin: 0;
}
.cookie-banner-text a {
    color: var(--orange-chaud); border-bottom: 1px solid currentColor;
}
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; align-items: center; }

.cookie-btn {
    padding: 10px 18px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}
.cookie-btn-primary {
    background: var(--orange-chaud); color: var(--white); border-color: var(--orange-chaud);
}
.cookie-btn-primary:hover { background: transparent; color: var(--orange-chaud); }
.cookie-btn-ghost {
    background: transparent; color: var(--bleu-fonce); border-color: rgba(2, 56, 64, 0.2);
}
.cookie-btn-ghost:hover { border-color: var(--bleu-fonce); background: rgba(2, 56, 64, 0.04); }
.cookie-btn-link {
    background: transparent; color: var(--bleu-canard); border: none;
    padding: 10px 8px; text-decoration: underline; font-weight: 500;
}
.cookie-btn-link:hover { color: var(--orange-chaud); }

/* COOKIE CONSENT - MODALE PRÉFÉRENCES */
.cookie-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(2, 56, 64, 0.55);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center; justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cookie-modal-overlay.show { display: flex; opacity: 1; }
.cookie-modal {
    background: var(--white);
    border-radius: 14px;
    max-width: 580px; width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    display: flex; flex-direction: column;
}
.cookie-modal-overlay.show .cookie-modal { transform: scale(1); }
.cookie-modal-header {
    padding: 22px 28px 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex; justify-content: space-between; align-items: center;
}
.cookie-modal-header h3 { color: var(--bleu-fonce); font-size: 1.25rem; margin: 0; }
.cookie-modal-close {
    background: none; border: none; cursor: pointer;
    color: var(--text-main); padding: 6px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px;
}
.cookie-modal-close:hover { color: var(--orange-chaud); background: rgba(0,0,0,0.04); }
.cookie-modal-body { padding: 22px 28px; overflow-y: auto; flex: 1; }
.cookie-modal-body > p {
    color: var(--text-main); font-size: 0.92rem; line-height: 1.6; margin-bottom: 22px;
}
.cookie-category {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 12px;
}
.cookie-category-header {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.cookie-category-header strong { color: var(--bleu-fonce); font-size: 0.98rem; }
.cookie-category-always {
    font-size: 0.75rem; color: var(--bleu-canard); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.cookie-category p { color: #64748b; font-size: 0.85rem; line-height: 1.55; margin: 8px 0 0; }

.cookie-toggle { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-toggle-slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #cbd5e1;
    border-radius: 24px;
    transition: 0.3s;
}
.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: 0.3s;
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--orange-chaud); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(18px); }
.cookie-toggle input:focus-visible + .cookie-toggle-slider { outline: 2px solid var(--orange-chaud); outline-offset: 2px; }

.cookie-modal-footer {
    padding: 18px 28px 22px;
    border-top: 1px solid #e2e8f0;
    display: flex; gap: 10px; justify-content: flex-end;
}

/* Lien "Gérer les cookies" en bas de footer */
.footer-bottom-links {
    display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
}
.footer-bottom-links button,
.footer-bottom-links a {
    background: none; border: none; padding: 0;
    color: #94a3b8; font-size: 0.85rem;
    cursor: pointer; font-family: var(--font-body);
    transition: color 0.2s ease;
}
.footer-bottom-links button { font-size: 0.75rem; text-decoration: underline;}
.footer-bottom-links button:hover,
.footer-bottom-links a:hover { color: var(--orange-chaud); }

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 0; left: 0; right: 0;
        border-radius: 12px 12px 0 0;
        padding: 18px 20px;
        grid-template-columns: 1fr;
        gap: 14px;
        border-left: unset;
    }
    .cookie-banner-actions { flex-wrap: wrap; }
    .cookie-banner-actions .cookie-btn-primary,
    .cookie-banner-actions .cookie-btn-ghost { flex: 1; min-width: 120px; text-align: center; }
    .cookie-banner-actions .cookie-btn-link { flex-basis: 100%; order: -1; text-align: left; padding-left: 0; }
    .cookie-modal-footer { flex-direction: column-reverse; }
    .cookie-modal-footer .cookie-btn { width: 100%; text-align: center; }
}

/* =========================================
   BOUTON SCROLL TO TOP
========================================= */
#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--orange-chaud);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

#scrollToTopBtn svg { width: 24px; height: 24px; }

#scrollToTopBtn.show {
    opacity: 0.5;
    visibility: visible;
    transform: translateY(0);
}

#scrollToTopBtn:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 1024px) {
    .grid-expertises { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .hero { height: auto; }
    .hero h1 { font-size: 3rem; }
    .digital-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-brand { grid-column: 1 / -1; }
    
    .contact-cards-grid {
        grid-template-columns: 1fr; 
        margin-top: 30px;
    }
    .map-banner { height: 350px; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu {
        position: fixed; left: -100%; top: 80px; gap: 0; flex-direction: column;
        background-color: var(--white); width: 100%; text-align: center; transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active { left: 0; }
    .nav-menu li { margin: 20px 0; }
    
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .section-header h2 { font-size: 2rem; }
    .grid-expertises { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }

    .badge { gap: 10px; letter-spacing: 1px; }
    .badge::before, .badge::after { max-width: 70px; }
    
    #scrollToTopBtn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* =========================================
   ANIMATIONS & DYNAMISME VISUEL (OPTIMISÉ)
========================================= */

/* Reveal animation (safe GPU) */
.reveal {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    backface-visibility: hidden;
    will-change: transform, opacity;
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1),
                transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Delays (OK) */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


/* =========================================
   FLOAT ANIMATION (GPU OPTIMIZED)
========================================= */

@keyframes float {
    0%   { transform: translate3d(0, 0px, 0); }
    50%  { transform: translate3d(0, -10px, 0); }
    100% { transform: translate3d(0, 0px, 0); }
}

.tech-card {
    animation: float 6s ease-in-out infinite;
    will-change: transform;
    backface-visibility: hidden;
}

.tech-card:nth-child(1) { animation-delay: 0s; }
.tech-card:nth-child(2) { animation-delay: -2s; }
.tech-card:nth-child(3) { animation-delay: -4s; }


/* =========================================
   GLOW ANIMATION (SAFE VERSION)
========================================= */

@keyframes pulse-glow {
    0% {
        transform: translate3d(-50%, -50%, 0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate3d(-50%, -50%, 0) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translate3d(-50%, -50%, 0) scale(1);
        opacity: 0.8;
    }
}

.hero-glow-orb {
    animation: pulse-glow 8s infinite ease-in-out;
    will-change: transform, opacity;
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%; left: -60%; width: 20%; height: 200%;
    background: rgba(255,255,255,0.3);
    transform: skewX(-45deg);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 120%;
}