/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1A2B4A;
    line-height: 1.6;
    background: #FAFAF7;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ========== VARIABLES : Palette Bérard Conseils (cohérence berardconseils.fr) ========== */
:root {
    --bleu-nuit: #0F1B2E;
    --bleu-nuit-clair: #1A2B4A;
    --bleu-acier: #2E4172;
    --bleu-electric: #3DA5F5;
    --bleu-electric-clair: #5DB8FF;
    --accent: #3DA5F5;
    --accent-fonce: #1E88E5;
    --blanc: #FAFAF7;
    --gris-clair: #F0EDE6;
    --gris-texte: #5A6478;
    --shadow: 0 4px 24px rgba(15, 27, 46, 0.08);
    --shadow-hover: 0 8px 32px rgba(15, 27, 46, 0.15);
}

/* ========== LAYOUT ========== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--bleu-nuit);
}

h2 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 16px;
}

h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1rem; margin-bottom: 12px; }

.accent { color: var(--accent); }

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--gris-texte);
    max-width: 640px;
    margin: 0 auto 48px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(61, 165, 245, 0.3);
}
.btn-primary:hover { background: var(--accent-fonce); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(61, 165, 245, 0.4); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-fonce); }
.btn-large { padding: 18px 36px; font-size: 1.0625rem; }

/* ========== HEADER ========== */
.header {
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
    width: 36px; height: 36px;
    background: #1F3D6E;
    color: white;
    border-radius: 8px;
    display: grid; place-items: center;
    font-weight: 800;
    font-size: 1.2rem;
}
.logo-text { font-size: 1.05rem; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.logo-text strong { font-weight: 800; }
.logo-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: var(--accent);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
}

.nav { display: flex; gap: 28px; }
.nav a {
    font-size: 0.94rem;
    color: var(--gris-texte);
    font-weight: 500;
    transition: color 0.2s;
}
.nav a:hover { color: var(--bleu-nuit); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.phone-link { font-weight: 600; font-size: 0.9rem; color: var(--bleu-nuit); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 4px; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--bleu-nuit); transition: all 0.3s; }

/* ========== HERO ========== */
.hero {
    background: linear-gradient(135deg, #0F1B2E 0%, #1A2B4A 60%, #2E4172 100%);
    color: white;
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 30%, rgba(61, 165, 245, 0.22), transparent 55%),
        radial-gradient(circle at 15% 75%, rgba(61, 165, 245, 0.12), transparent 50%),
        linear-gradient(105deg, transparent 30%, rgba(93, 184, 255, 0.06) 50%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, transparent 49.5%, rgba(61, 165, 245, 0.07) 50%, transparent 50.5%),
        linear-gradient(60deg, transparent 49.5%, rgba(61, 165, 245, 0.05) 50%, transparent 50.5%);
    background-size: 120px 100%, 80px 100%;
    pointer-events: none;
    opacity: 0.6;
}
.hero-content { max-width: 820px; position: relative; z-index: 1; }
.hero-eyebrow {
    color: var(--bleu-electric);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.hero h1 {
    color: white;
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 28px;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 680px;
}
.hero-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.link-secondary {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
}
.link-secondary:hover { color: white; border-color: white; }

/* ========== CONSTAT ========== */
.constat { background: var(--blanc); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 56px 0 48px;
}
.stat-card {
    background: white;
    padding: 40px 28px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
}
.stat-divider, .stat-unit {
    font-size: 1.75rem;
    color: var(--gris-texte);
    font-weight: 600;
}
.stat-card p { color: var(--gris-texte); font-size: 0.98rem; }
.stat-card p em { font-size: 0.9rem; display: block; margin-top: 8px; }

.constat-transition {
    text-align: center;
    font-size: 1.125rem;
    color: var(--gris-texte);
    max-width: 680px;
    margin: 0 auto;
    padding-top: 24px;
}
.sources-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gris-texte);
    opacity: 0.7;
    margin-top: 32px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.sources-note a {
    color: var(--bleu-electric);
    text-decoration: underline;
}

/* ========== AUDIT (équivalent diagnostic) ========== */
.audit { background: var(--gris-clair); }
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}
.benefit-card {
    background: white;
    padding: 36px 28px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
}
.benefit-icon {
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(61, 165, 245, 0.35);
}
.benefit-card p { color: var(--gris-texte); }

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

/* ========== POUR QUI ========== */
.pour-qui { background: var(--blanc); }
.metiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 48px 0 32px;
}
.metier {
    background: white;
    padding: 20px 24px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    color: var(--bleu-nuit);
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.metier:hover { transform: translateY(-2px); }
.metier span { font-size: 1.5rem; display: block; margin-bottom: 4px; }

.pour-qui-note {
    text-align: center;
    color: var(--gris-texte);
    max-width: 720px;
    margin: 0 auto;
}

/* ========== METHODE ========== */
.methode { background: var(--gris-clair); }
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 56px 0 40px;
}
.step {
    background: white;
    padding: 36px 28px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    position: relative;
}
.step-number {
    position: absolute;
    top: -20px;
    left: 28px;
    width: 48px; height: 48px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(61, 165, 245, 0.4);
}
.step h3 { margin-top: 12px; }
.step p { color: var(--gris-texte); }

.comment-note { text-align: center; color: var(--gris-texte); font-size: 0.95rem; max-width: 720px; margin: 0 auto; }

/* ========== QUI JE SUIS ========== */
.qui-je-suis { background: var(--blanc); }
.profil {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 56px;
    margin-top: 48px;
    align-items: start;
}
.photo-jp {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow);
    object-fit: cover;
    aspect-ratio: 4/5;
}
.profil-text h3 { font-size: 1.75rem; margin-bottom: 4px; }
.profil-role {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 24px;
    font-size: 0.95rem;
}
.profil-text p { margin-bottom: 16px; color: var(--gris-texte); }
.profil-text blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--gris-clair);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--bleu-nuit);
}
.profil-contact { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 24px; }
.profil-link {
    color: var(--bleu-nuit);
    font-weight: 600;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.2s;
}
.profil-link:hover { border-bottom-color: var(--accent); }

/* ========== FAQ ========== */
.faq { background: var(--gris-clair); }
.faq-list { max-width: 820px; margin: 48px auto 0; }
.faq-item {
    background: white;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.faq-item summary {
    padding: 24px 28px;
    cursor: pointer;
    font-weight: 600;
    color: var(--bleu-nuit);
    list-style: none;
    position: relative;
    padding-right: 60px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 400;
    transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
    padding: 0 28px 24px;
    color: var(--gris-texte);
}

/* ========== CTA FINAL ========== */
.cta-final {
    background: linear-gradient(135deg, #1A2B4A 0%, #2E4172 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(61, 165, 245, 0.18), transparent 60%);
    pointer-events: none;
}
.cta-final .container { position: relative; z-index: 1; }
.cta-final h2 {
    color: white;
    margin-bottom: 16px;
}
.cta-final p { font-size: 1.125rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 40px; }
.cta-final-actions { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.or-call { font-size: 1rem; color: rgba(255, 255, 255, 0.85); }
.or-call a { color: white; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }

/* ========== FOOTER ========== */
.footer {
    background: #0F1A2E;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
.footer-col h4 { color: white; margin-bottom: 16px; }
.footer-col p { font-size: 0.9rem; line-height: 1.8; }
.footer-col a { color: rgba(255, 255, 255, 0.8); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    h2 { font-size: 1.75rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1.125rem; }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .nav.open { display: flex; }
    .header-actions .phone-link { display: none; }
    .menu-toggle { display: flex; }

    .stats-grid, .benefits-grid, .steps, .metiers-grid {
        grid-template-columns: 1fr;
    }
    .metiers-grid { grid-template-columns: repeat(2, 1fr); }

    .profil { grid-template-columns: 1fr; gap: 32px; }
    .photo-jp { max-width: 280px; margin: 0 auto; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    section { padding: 60px 0; }
    .hero { padding: 70px 0; }
}

@media (max-width: 500px) {
    .hero h1 { font-size: 1.875rem; }
    .stat-number { font-size: 3rem; }
    .header-actions .btn { padding: 10px 18px; font-size: 0.85rem; }
    .logo-text { display: none; }
    .container { padding: 0 16px; }
}
