/* ===== Polices auto-hébergées (Inter variable, 300-800) ===== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('fonts/inter-variable-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('fonts/inter-variable-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== Variables ===== */
:root {
    --green: #B2EC4B;
    --green-dark: #8cbd35;
    --green-glow: rgba(178, 236, 75, 0.3);
    --dark: #0d1b2a;
    --dark-2: #162436;
    --text: #2c3e50;
    --text-light: #64748b;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
}

/* ===== Icônes SVG inline ===== */
.icon-svg { display: block; flex-shrink: 0; }
.icon-inline { display: inline-block; vertical-align: -2px; margin-right: 4px; }
.trust-icon .icon-svg { width: 17px; height: 17px; color: var(--green-dark); }
.service-icon .icon-svg { width: 26px; height: 26px; color: var(--green-dark); }
.why-feature-icon .icon-svg { width: 21px; height: 21px; color: var(--green); }
.cd-icon .icon-svg { width: 19px; height: 19px; color: var(--green-dark); }
.zone-title .icon-svg { width: 15px; height: 15px; }
.pc-icon { width: 17px; height: 17px; color: var(--green); }
.float-btn-icon.icon-svg { width: 16px; height: 16px; }
.entry-banner-icon .icon-svg { width: 27px; height: 27px; color: var(--green); }

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--dark); }
.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--green-glow);
}
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.25); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.75);
    border: 2px solid transparent;
    padding: 0.875rem 1.25rem;
}
.btn-ghost::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(178,236,75,0.18);
    animation: ghostPulse 2.4s ease-in-out infinite;
}
.btn-ghost:hover { color: var(--green); transform: translateY(-2px); }
@keyframes ghostPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(178,236,75,0.18); }
    50%      { box-shadow: 0 0 0 7px rgba(178,236,75,0.05); }
}
@media (prefers-reduced-motion: reduce) {
    .btn-ghost::before { animation: none; }
}

/* ===== Header ===== */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0 5%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(13, 27, 42, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: all 0.3s ease;
}
.logo img { height: 40px; width: auto; }
.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--white);
}
.logo-text span { color: var(--green); }
nav { display: flex; align-items: center; gap: 0.5rem; }
nav ul { display: flex; gap: 0.125rem; margin-right: 1.25rem; }
nav a {
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
    transition: all 0.2s;
}
nav a:hover { color: var(--green); background: rgba(178,236,75,0.08); }

/* Mobile menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    background: none;
    border: none;
}
.menu-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--white); border-radius: 2px;
    transition: all 0.3s;
}

/* ===== Hero ===== */
#accueil {
    position: relative;
    min-height: 100vh;
    background: var(--dark);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 5% 80px;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 75% 65% at 70% 50%, rgba(178,236,75,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 55% 75% at 5% 85%, rgba(0,112,205,0.07) 0%, transparent 50%);
}
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 64px 64px;
}
.hero-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 5rem;
    align-items: center;
}
.hero-text { color: var(--white); }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(178,236,75,0.1);
    border: 1px solid rgba(178,236,75,0.22);
    color: var(--green);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.775rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}
.hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: blink 2s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}
.hero-text h1 { margin-bottom: 1.25rem; }
.hero-text h1 span { color: var(--green); }
.hero-text > p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.75;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero side cards */
.hero-cards { display: flex; flex-direction: column; gap: 1rem; }
.hero-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(8px);
    transition: all 0.25s;
}
.hero-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(178,236,75,0.2); }
.hero-card-accent { border-left: 3px solid var(--green); }
.hero-card-blue { border-left: 3px solid #60a5fa; }
.hero-card-purple { border-left: 3px solid #a78bfa; }
.hc-label {
    font-size: 0.725rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(255,255,255,0.38);
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.hc-value { font-size: 1.6rem; font-weight: 800; color: var(--white); line-height: 1; }
.hc-desc { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-top: 0.25rem; }

/* ===== Trust bar ===== */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 1.25rem 5%; overflow: hidden; }
.trust-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-light);
    font-size: 0.835rem;
    font-weight: 500;
}
.trust-icon {
    width: 32px; height: 32px;
    background: rgba(140,189,53,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ===== Section base ===== */
.section { padding: 5.5rem 5%; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-dark);
    margin-bottom: 0.75rem;
}
.section-header h2 { color: var(--dark); margin-bottom: 0.875rem; }
.section-header p { color: var(--text-light); max-width: 540px; margin: 0 auto; font-size: 1rem; line-height: 1.75; }

/* ===== Services ===== */
#services { background: var(--bg-light); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--green-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.service-card:hover { border-color: transparent; box-shadow: var(--shadow-xl); transform: translateY(-5px); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
    width: 54px; height: 54px;
    background: linear-gradient(135deg, rgba(178,236,75,0.14), rgba(178,236,75,0.04));
    border: 1px solid rgba(178,236,75,0.18);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}
.service-card h3 { color: var(--dark); margin-bottom: 0.75rem; }
.service-card > p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.7; }
.service-list { display: flex; flex-direction: column; gap: 0.5rem; }
.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.5;
}
.service-list li::before {
    content: '';
    width: 16px; height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238cbd35'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== Pourquoi G-Secure ===== */
#pourquoi { background: var(--white); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.why-label { display: block; margin-bottom: 0.75rem; }
.why-intro { color: var(--dark); margin-bottom: 1rem; }
.why-sub { color: var(--text-light); font-size: 0.95rem; line-height: 1.75; margin-bottom: 2.5rem; }
.why-features { display: flex; flex-direction: column; gap: 1.75rem; }
.why-feature { display: flex; gap: 1.125rem; align-items: flex-start; }
.why-feature-icon {
    width: 44px; height: 44px;
    background: var(--dark);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.why-feature-text h4 { font-size: 0.975rem; font-weight: 600; color: var(--dark); margin-bottom: 0.3rem; }
.why-feature-text p { font-size: 0.875rem; color: var(--text-light); line-height: 1.65; }

/* Right panel */
.why-panel { background: var(--dark); border-radius: var(--radius-lg); padding: 2.5rem; color: var(--white); }
.panel-title {
    font-size: 0.725rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.38);
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.zone-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 1.375rem;
    margin-bottom: 1.25rem;
}
.zone-title { font-size: 0.925rem; font-weight: 600; color: var(--green); margin-bottom: 1rem; }
.zone-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.zone-tag {
    background: rgba(178,236,75,0.08);
    border: 1px solid rgba(178,236,75,0.15);
    color: rgba(255,255,255,0.65);
    padding: 0.275rem 0.7rem;
    border-radius: 100px;
    font-size: 0.775rem;
}
.panel-contacts { display: flex; flex-direction: column; gap: 0.875rem; }
.panel-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}
.panel-contact-item span:first-child { font-size: 1.1rem; }

/* ===== Contact ===== */
#contact { background: var(--bg-light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3.5rem; align-items: start; }
.contact-info-label { display: block; margin-bottom: 0.75rem; }
.contact-info h2 { color: var(--dark); margin-bottom: 1rem; }
.contact-info > p { color: var(--text-light); font-size: 0.95rem; line-height: 1.75; margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 0.875rem; }
.cd-icon {
    width: 40px; height: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.cd-text strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.15rem;
}
.cd-text span { font-size: 0.875rem; color: var(--text); }

/* Form */
.form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-md);
}
.form-card h3 { color: var(--dark); font-size: 1.05rem; margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.875rem;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green-dark);
    box-shadow: 0 0 0 3px rgba(140,189,53,0.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-stack { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.btn-submit { width: 100%; justify-content: center; padding: 1rem; font-size: 0.95rem; }
.form-confirmation {
    display: none;
    align-items: center;
    gap: 0.875rem;
    background: rgba(140, 189, 53, 0.1);
    border: 1.5px solid rgba(140, 189, 53, 0.35);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
}
.form-confirmation.visible { display: flex; }
/* Honeypot : retiré du flux et invisible, mais accessible aux bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.form-error {
    display: none;
    align-items: center;
    gap: 0.875rem;
    background: rgba(229, 62, 62, 0.08);
    border: 1.5px solid rgba(229, 62, 62, 0.35);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
}
.form-error.visible { display: flex; }
.error-badge {
    width: 36px; height: 36px;
    background: #e53e3e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
}
.form-error .confirm-text a { color: #e53e3e; }
.confirm-icon {
    width: 36px; height: 36px;
    background: var(--green-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1.1rem;
}
.confirm-text strong { display: block; font-size: 0.9rem; color: var(--dark); font-weight: 600; }
.confirm-text span { font-size: 0.8rem; color: var(--text-light); }
.confirm-text a { color: var(--green-dark); text-decoration: underline; }
.link-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--green-dark);
    text-decoration: underline;
    cursor: pointer;
}
.form-group input.field-error,
.form-group select.field-error,
.form-group textarea.field-error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.12);
}
.error-msg { font-size: 0.75rem; color: #e53e3e; font-weight: 500; margin-top: 0.1rem; display: none; }
.field-error ~ .error-msg,
.error-msg.visible { display: block; }

/* Links */
a[href^="mailto"] { color: var(--green-dark); font-weight: 500; transition: color 0.2s; }
a[href^="mailto"]:hover { color: var(--dark); }
.panel-contact-item a[href^="mailto"],
.panel-contact-item a[href^="tel"] { color: rgba(255,255,255,0.7); }
.panel-contact-item a[href^="mailto"]:hover,
.panel-contact-item a[href^="tel"]:hover { color: var(--green); }
a[href^="tel"] { color: var(--green-dark); font-weight: 500; transition: color 0.2s; }
a[href^="tel"]:hover { color: var(--dark); }

/* ===== Footer ===== */
footer { background: var(--dark); }
.footer-main {
    padding: 4rem 5% 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.75fr 1fr 1fr;
    gap: 3rem;
}
.footer-brand img { height: 34px; margin-bottom: 1rem; }
.footer-logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 1rem;
    display: inline-block;
}
.footer-logo-text span { color: var(--green); }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.4); line-height: 1.7; max-width: 270px; }
.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.125rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.85rem; color: rgba(255,255,255,0.38); transition: color 0.2s; }
.footer-col a:hover { color: var(--green); }
.footer-link-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    font-family: var(--font);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.38);
    transition: color 0.2s;
}
.footer-link-btn:hover { color: var(--green); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
    .hero-cards { display: grid; grid-template-columns: repeat(3, 1fr); }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .news-grid { grid-template-columns: 1fr 1fr; }
    .why-grid { grid-template-columns: 1fr; gap: 3rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .menu-toggle { display: flex; }
    nav ul {
        display: none;
        position: fixed;
        top: 72px; left: 0; right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 1.25rem 5%;
        gap: 0.25rem;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        z-index: 999;
    }
    nav ul.open { display: flex; }
    nav ul a { font-size: 1rem; padding: 0.625rem 0.875rem; }
    nav .btn { display: none; }
    .nav-cta-mobile { display: block; padding: 0.75rem 0 0.25rem; }
    .nav-cta-mobile .btn { display: flex; width: 100%; justify-content: center; }
}
@media (min-width: 901px) {
    .nav-cta-mobile { display: none; }
}
@media (max-width: 768px) {
    #accueil { padding: 100px 5% 60px; }
    .hero-cards { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .trust-bar-inner { gap: 1.25rem; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.5rem; }
    .trust-item { flex-shrink: 0; }
    .hero-badge { font-size: 0.65rem; }
}
@media (max-width: 380px) {
    #accueil { padding: 88px 4% 48px; }
    .section { padding: 3.5rem 4%; }
    .btn { padding: 0.75rem 1.25rem; font-size: 0.85rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .form-card { padding: 1.5rem; }
}

/* ===== Dark mode ===== */
[data-theme="dark"] {
    --white: #162436;
    --bg-light: #0d1b2a;
    --text: #e2e8f0;
    --text-light: #94a3b8;
    --border: rgba(255,255,255,0.08);
}
[data-theme="dark"] body { background: var(--bg-light); }
/* Hero et footer plus profonds que le contenu pour conserver la hiérarchie visuelle */
[data-theme="dark"] #accueil { background: #060d16; }
[data-theme="dark"] footer { background: #060d16; }
[data-theme="dark"] .trust-bar { background: #162436; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .trust-item { color: #94a3b8; }
[data-theme="dark"] .service-card { background: #1a2d3f; }
[data-theme="dark"] .service-card h3 { color: #e2e8f0; }
[data-theme="dark"] .service-list li { color: #cbd5e1; }
[data-theme="dark"] .why-feature-text h4 { color: #e2e8f0; }
[data-theme="dark"] .section-header h2,
[data-theme="dark"] .why-intro { color: #e2e8f0; }
[data-theme="dark"] .faq-item { background: #1a2d3f; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .faq-item.open { border-color: rgba(140,189,53,0.3); }
[data-theme="dark"] .faq-question { color: #e2e8f0; }
[data-theme="dark"] .faq-question:hover { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .faq-answer-inner { border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .contact-info h2 { color: #e2e8f0; }
[data-theme="dark"] .cd-icon { background: #1a2d3f; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .cd-text span,
[data-theme="dark"] .cd-text strong { color: #94a3b8; }
[data-theme="dark"] .form-card { background: #162436; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .form-card h3 { color: #e2e8f0; }
[data-theme="dark"] .form-group label { color: #cbd5e1; }
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea { background: #0d1b2a; border-color: rgba(255,255,255,0.1); color: #e2e8f0; }
[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder { color: #4a6080; }
[data-theme="dark"] .form-group select option { background: #162436; }
[data-theme="dark"] .form-confirmation { background: rgba(140,189,53,0.08); }
[data-theme="dark"] .form-error { background: rgba(229,62,62,0.12); }
[data-theme="dark"] .form-error .confirm-text strong { color: #fca5a5; }
[data-theme="dark"] .form-error .confirm-text a { color: #fca5a5; }
[data-theme="dark"] .confirm-text strong { color: #e2e8f0; }
[data-theme="dark"] .confirm-text a,
[data-theme="dark"] .link-btn { color: var(--green); }
[data-theme="dark"] a[href^="tel"] { color: var(--green); }
[data-theme="dark"] a[href^="tel"]:hover { color: var(--green-dark); }
[data-theme="dark"] a[href^="mailto"] { color: var(--green); }
[data-theme="dark"] a[href^="mailto"]:hover { color: var(--green-dark); }

/* Hero & nav : toujours sur fond sombre, textes forcés en blanc */
[data-theme="dark"] .hero-text,
[data-theme="dark"] .hc-value,
[data-theme="dark"] .logo-text,
[data-theme="dark"] .footer-logo-text { color: #ffffff; }
[data-theme="dark"] .btn-outline { color: #ffffff; border-color: rgba(255,255,255,0.25); }
[data-theme="dark"] .btn-outline:hover { border-color: var(--green); color: var(--green); }
[data-theme="dark"] .hero-text > p { color: rgba(255,255,255,0.6); }
[data-theme="dark"] .hero-badge { color: var(--green); }
[data-theme="dark"] .hero-text h1 { color: #ffffff; }
[data-theme="dark"] .hero-text h1 span { color: var(--green); }

/* Bouton toggle theme */
.theme-toggle {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    margin-right: 0.75rem;
    flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,0.14); border-color: rgba(178,236,75,0.3); }
.theme-toggle svg { width: 16px; height: 16px; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.theme-toggle:hover svg { color: var(--green); }
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* ===== Animations fade-in ===== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in[data-delay="1"] { transition-delay: 0.1s; }
.fade-in[data-delay="2"] { transition-delay: 0.2s; }
.fade-in[data-delay="3"] { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
    .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ===== Actualités ===== */
#actualites { background: var(--bg-light); }
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.news-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.875rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}
.news-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--green), var(--green-dark));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s ease;
}
.news-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}
.news-card:hover::before { transform: scaleY(1); }
.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.news-tag {
    display: inline-block;
    background: rgba(178,236,75,0.12);
    color: var(--green-dark);
    border: 1px solid rgba(140,189,53,0.2);
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.news-meta time {
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 500;
}
.news-card h3 {
    color: var(--dark);
    font-size: 1.075rem;
    line-height: 1.35;
    margin-bottom: 0.875rem;
}
.news-excerpt {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}
.news-link {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--green-dark);
    cursor: pointer;
    align-self: flex-start;
    transition: gap 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.news-link:hover { color: var(--dark); gap: 0.6rem; }
.news-footnote {
    text-align: center;
    font-size: 0.825rem;
    color: var(--text-light);
    margin-top: 1rem;
}
.news-footnote a { color: var(--green-dark); font-weight: 600; }
.news-footnote a:hover { color: var(--dark); }

/* Modale article (plus large pour le texte long) */
.modal-box-article { max-width: 760px; }
.article-meta {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
}
.article-meta time {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}
.article-lead {
    font-size: 0.975rem !important;
    color: var(--text) !important;
    line-height: 1.7 !important;
    font-weight: 500;
}
.article-cta-line {
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    text-align: center;
}
.article-cta-line a {
    color: var(--green-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.article-cta-line a:hover { color: var(--dark); }

/* Dark mode actualités */
[data-theme="dark"] .news-card { background: #1a2d3f; }
[data-theme="dark"] .news-card h3 { color: #e2e8f0; }
[data-theme="dark"] .news-tag { background: rgba(178,236,75,0.1); color: var(--green); border-color: rgba(178,236,75,0.18); }
[data-theme="dark"] .news-link { color: var(--green); }
[data-theme="dark"] .news-link:hover { color: #ffffff; }
[data-theme="dark"] .article-lead { color: #e2e8f0 !important; }
[data-theme="dark"] .article-meta { border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .article-cta-line { border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .article-cta-line a,
[data-theme="dark"] .news-footnote a { color: var(--green); }
[data-theme="dark"] .article-cta-line a:hover,
[data-theme="dark"] .news-footnote a:hover { color: #ffffff; }

/* ===== FAQ ===== */
#faq { background: var(--bg-light); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item.open { border-color: rgba(140,189,53,0.4); }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}
.faq-question:hover { background: var(--bg-light); }
.faq-chevron { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-light); transition: transform 0.3s ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--green-dark); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner {
    padding: 1rem 1.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.75;
    border-top: 1px solid var(--border);
}

/* ===== Boutons flottants mobile ===== */
.float-actions {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.25rem;
    flex-direction: column;
    gap: 0.625rem;
    z-index: 900;
}
.float-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.125rem;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.float-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.float-btn-call { background: var(--dark); color: var(--white); }
.float-btn-icon { font-size: 1rem; }
@media (max-width: 768px) {
    .float-actions { display: flex; }
}

/* ===== Modales ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    padding: 1.5rem;
    overflow-y: auto;
    align-items: flex-start;
    justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 680px;
    margin: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.25);
    animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 1.15rem; color: var(--dark); margin: 0; }
.modal-close {
    width: 32px; height: 32px;
    background: none;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: var(--bg-light); color: var(--dark); }
.modal-body {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-height: 70vh;
    overflow-y: auto;
}
.modal-body h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--green-dark);
    margin-bottom: 0.25rem;
}
.modal-body p { font-size: 0.9rem; color: var(--text-light); line-height: 1.75; }
.modal-body ul {
    padding-left: 1.25rem;
    list-style: disc;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.modal-body ul li { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }
.modal-body code {
    background: var(--bg-light);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--green-dark);
}

/* Dark mode modales */
[data-theme="dark"] .modal-box { background: #162436; }
[data-theme="dark"] .modal-header { border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .modal-header h2 { color: #e2e8f0; }
[data-theme="dark"] .modal-close:hover { background: rgba(255,255,255,0.06); color: #e2e8f0; }
[data-theme="dark"] .modal-body code { background: rgba(255,255,255,0.06); }

/* ===== Lazy loading ===== */
img[loading="lazy"] { opacity: 0; transition: opacity 0.3s ease; }
img[loading="lazy"].loaded { opacity: 1; }

/* ===== Bandeau d'entrée ===== */
.entry-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 2rem));
    z-index: 1500;
    width: calc(100% - 3rem);
    max-width: 700px;
    background: var(--dark);
    border: 1px solid rgba(178,236,75,0.25);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.35);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-wrap: wrap;
}
.entry-banner.visible { transform: translateX(-50%) translateY(0); }
.entry-banner-icon { font-size: 1.75rem; flex-shrink: 0; }
.entry-banner-text { flex: 1; min-width: 200px; }
.entry-banner-text strong { display: block; color: #ffffff; font-size: 0.95rem; margin-bottom: 0.2rem; }
.entry-banner-text span { color: rgba(255,255,255,0.55); font-size: 0.825rem; }
.entry-banner-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.entry-banner-cta {
    background: var(--green);
    color: var(--dark);
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: var(--font);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}
.entry-banner-cta:hover { background: var(--green-dark); transform: translateY(-1px); }
.entry-banner-close {
    width: 28px; height: 28px;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.entry-banner-close:hover { background: rgba(255,255,255,0.15); color: #fff; }
@media (max-width: 768px) {
    .entry-banner { bottom: 6rem; padding: 1rem 1.25rem; }
    .entry-banner.visible { transform: translateX(-50%) translateY(0); }
}
