/* ==========================================================================
   Volt Énergie — Feuille de style publique
   Palette : navy #0F2C4C / orange #F5821F / fond #F7F8FA
   Typo : Poppins (titres) + Inter (texte courant)
   ========================================================================== */

:root {
    --navy-950: #081625;
    --navy-900: #0A1F38;
    --navy-800: #0F2C4C;
    --navy-700: #163A5F;
    --navy-100: #E7ECF2;
    --orange-600: #D96A0F;
    --orange-500: #F5821F;
    --orange-400: #FF9F4D;
    --orange-100: #FFEBD9;
    --ink-900: #16202E;
    --ink-700: #3B4657;
    --ink-500: #5B6472;
    --ink-300: #8A93A2;
    --border: #E4E7EC;
    --surface: #FFFFFF;
    --bg: #F7F8FA;
    --success: #1F9D55;

    --font-display: 'Poppins', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(10, 31, 56, 0.08);
    --shadow-md: 0 8px 24px rgba(10, 31, 56, 0.10);
    --shadow-lg: 0 20px 48px rgba(10, 31, 56, 0.16);
    --container: 1180px;
}

@media (prefers-reduced-motion: no-preference) {
    :root { --transition: 200ms ease; }
}
@media (prefers-reduced-motion: reduce) {
    :root { --transition: 0ms; }
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink-900);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--navy-900);
    line-height: 1.2;
    margin: 0 0 0.5em;
    font-weight: 600;
}
p { margin: 0 0 1em; color: var(--ink-700); }
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
:focus-visible {
    outline: 3px solid var(--orange-500);
    outline-offset: 2px;
}
.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--orange-500); color: #fff;
    padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--dark { background: var(--navy-900); color: #fff; }
.section--alt { background: var(--surface); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-size: 13px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-500);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: ""; width: 22px; height: 2px; background: var(--orange-500); display: inline-block;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 38px); }
.section-head p { font-size: 17px; color: var(--ink-500); }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 26px; border-radius: var(--radius-sm); font-family: var(--font-display);
    font-weight: 600; font-size: 15px; border: 2px solid transparent; cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--orange-500); color: #fff; }
.btn--primary:hover { background: var(--orange-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn--outline { background: transparent; border-color: var(--navy-800); color: var(--navy-800); }
.btn--outline:hover { background: var(--navy-800); color: #fff; }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--navy-900); }
.brand-mark { width: 38px; height: 38px; color: var(--orange-500); flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    padding: 10px 16px; font-weight: 500; font-size: 15px; color: var(--ink-700);
    border-radius: var(--radius-sm); transition: color var(--transition), background var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--navy-900); background: var(--navy-100); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy-900); }
.header-phone svg { width: 18px; height: 18px; color: var(--orange-500); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--navy-900); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
    background: radial-gradient(1100px 500px at 85% -10%, rgba(245,130,31,0.18), transparent 60%), linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
    color: #fff; position: relative; overflow: hidden;
    padding: 100px 0 0;
}
.hero::before {
    content: ""; position: absolute; inset: 0; opacity: 0.14; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; position: relative; }
.hero-copy h1 { color: #fff; font-size: clamp(32px, 4vw, 50px); letter-spacing: -0.01em; }
.hero-copy .lead { color: rgba(255,255,255,0.78); font-size: 18px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
    position: absolute; left: 20px; bottom: 20px; background: rgba(10,31,56,0.85);
    backdrop-filter: blur(6px); color: #fff; padding: 12px 16px; border-radius: var(--radius-md);
    display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
}
.hero-badge svg { width: 20px; height: 20px; color: var(--orange-500); }

/* Quick service strip under hero */
.quick-services {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
    transform: translateY(46px); position: relative; z-index: 5;
}
.quick-service { background: #fff; padding: 28px 22px; transition: background var(--transition); }
.quick-service:hover { background: var(--orange-100); }
.quick-service .icn {
    width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--navy-100);
    display: flex; align-items: center; justify-content: center; color: var(--navy-800); margin-bottom: 14px;
}
.quick-service .icn svg { width: 24px; height: 24px; }
.quick-service h3 { font-size: 16px; margin-bottom: 6px; }
.quick-service p { font-size: 13.5px; color: var(--ink-500); margin: 0; }
.hero-spacer { height: 46px; }

/* ---------- Intro / rich text home ---------- */
.intro-block { max-width: 760px; margin: 0 auto; text-align: center; }
.intro-block .rich-text { font-size: 17px; color: var(--ink-700); }

/* ---------- Services grid (full page) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 30px 24px; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card .icn {
    width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--navy-800); color: var(--orange-400);
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.service-card .icn svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- Timeline (cursus / expériences) ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before {
    content: ""; position: absolute; left: 20px; top: 6px; bottom: 6px; width: 2px;
    background: linear-gradient(var(--orange-500), var(--navy-100));
}
.timeline-item { position: relative; padding-left: 62px; margin-bottom: 36px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
    position: absolute; left: 10px; top: 2px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--orange-500); border: 4px solid var(--bg); box-shadow: 0 0 0 2px var(--orange-500);
}
.timeline-year { display: inline-block; font-family: var(--font-display); font-weight: 700; color: var(--orange-500); font-size: 14px; margin-bottom: 4px; }
.timeline-item h3 { font-size: 18px; margin-bottom: 6px; }
.timeline-item p { margin: 0; font-size: 15px; }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
    background: var(--surface); border-radius: var(--radius-md); padding: 30px; border: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 16px;
}
.testimonial-stars { display: flex; gap: 3px; color: var(--orange-500); }
.testimonial-stars svg { width: 16px; height: 16px; }
.testimonial-card p { color: var(--ink-700); font-size: 15px; margin: 0; flex-grow: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 44px; height: 44px; border-radius: 50%; background: var(--navy-100); color: var(--navy-800);
    display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; flex-shrink: 0;
}
.testimonial-name { font-weight: 600; color: var(--navy-900); font-size: 14.5px; }
.testimonial-role { font-size: 13px; color: var(--ink-500); }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--navy-900), var(--navy-800)); color: #fff; border-radius: var(--radius-lg);
    padding: 50px 48px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; font-size: 26px; }
.cta-band p { color: rgba(255,255,255,0.75); margin: 0; }

/* ---------- Page header (pages internes) ---------- */
.page-header {
    background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
    color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden;
}
.page-header::after {
    content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(245,130,31,0.25), transparent 70%);
}
.page-header .breadcrumb { font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 12px; }
.page-header .breadcrumb a:hover { color: #fff; }
.page-header h1 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.72); max-width: 620px; margin: 0; }

/* ---------- Rich text content ---------- */
.rich-text h2 { font-size: 24px; margin-top: 1.6em; }
.rich-text h3 { font-size: 19px; margin-top: 1.5em; color: var(--navy-800); }
.rich-text p { font-size: 16px; }
.rich-text ul { list-style: none; margin: 0 0 1.2em; padding: 0; }
.rich-text ul li { position: relative; padding-left: 28px; margin-bottom: 10px; font-size: 15.5px; color: var(--ink-700); }
.rich-text ul li::before {
    content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 4px;
    background: var(--orange-100); box-shadow: inset 0 0 0 2px var(--orange-500);
}
.rich-text a { color: var(--orange-600); text-decoration: underline; }
.rich-text strong { color: var(--navy-900); }
.content-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px; }

/* ---------- Réalisations ---------- */
.realisations-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.realisation-card {
    background: var(--surface); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.realisation-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.realisation-media { aspect-ratio: 16/10; overflow: hidden; background: var(--navy-100); }
.realisation-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.realisation-card:hover .realisation-media img { transform: scale(1.05); }
.realisation-body { padding: 22px 24px; }
.realisation-tag {
    display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--orange-600); background: var(--orange-100); padding: 4px 10px; border-radius: 100px; margin-bottom: 10px;
}
.realisation-body h3 { font-size: 18px; margin-bottom: 8px; }
.realisation-body p { font-size: 14.5px; margin: 0; color: var(--ink-500); }

/* ---------- Hobbies ---------- */
.hobby-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.hobby-block:last-child { margin-bottom: 0; }
.hobby-block:nth-child(even) .hobby-media { order: 2; }
.hobby-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-md); }
.hobby-media img { width: 100%; height: 100%; object-fit: cover; }
.hobby-copy .index { font-family: var(--font-display); font-weight: 700; color: var(--orange-500); font-size: 14px; letter-spacing: 0.08em; }
.hobby-copy h2 { font-size: 26px; margin-top: 6px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.contact-info-card {
    background: var(--navy-900); color: #fff; border-radius: var(--radius-lg); padding: 40px; position: sticky; top: 110px;
}
.contact-info-card h3 { color: #fff; font-size: 20px; }
.contact-info-list { display: flex; flex-direction: column; gap: 20px; margin-top: 22px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item .icn {
    width: 40px; height: 40px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.08); color: var(--orange-400);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item .icn svg { width: 20px; height: 20px; }
.contact-info-item strong { display: block; font-size: 14.5px; color: #fff; margin-bottom: 2px; }
.contact-info-item span, .contact-info-item a { font-size: 14px; color: rgba(255,255,255,0.72); white-space: pre-line; }
.contact-social { display: flex; gap: 10px; margin-top: 28px; }
.contact-social a {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center;
    justify-content: center; transition: background var(--transition);
}
.contact-social a:hover { background: var(--orange-500); }
.contact-social svg { width: 17px; height: 17px; }

.contact-form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy-900); margin-bottom: 7px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 14.5px; color: var(--ink-900); background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--orange-500); box-shadow: 0 0 0 4px var(--orange-100);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; margin-top: 32px; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14.5px; margin-bottom: 20px; }
.alert--success { background: #E7F7ED; color: #1B7A41; border: 1px solid #BFE8CE; }
.alert--error { background: #FDEAEA; color: #B3261E; border: 1px solid #F6C6C4; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.68); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.55); max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 14.5px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14.5px; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-col a:hover { color: var(--orange-400); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
    width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.06); display: flex; align-items: center;
    justify-content: center; transition: background var(--transition);
}
.footer-social a:hover { background: var(--orange-500); }
.footer-social svg { width: 15px; height: 15px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between;
    font-size: 13px; color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 560px; }
    .quick-services { grid-template-columns: repeat(2, 1fr); transform: translateY(30px); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .realisations-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .contact-info-card { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
    .main-nav, .header-actions .header-phone { display: none; }
    .nav-toggle { display: inline-flex; }
    .header-actions { gap: 10px; }
    .hero { padding-top: 32px; }
    .hero-spacer { height: 30px; }
    .quick-services { grid-template-columns: 1fr; transform: none; margin-top: 24px; }
    .services-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hobby-block, .hobby-block:nth-child(even) .hobby-media { grid-template-columns: 1fr; order: 0; }
    .hobby-block { grid-template-columns: 1fr; }
    .cta-band { flex-direction: column; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .section { padding: 56px 0; }
}

/* Mobile nav drawer */
.mobile-nav {
    position: fixed; inset: 0; background: var(--navy-950); z-index: 200; padding: 24px;
    transform: translateX(100%); transition: transform 260ms ease; display: flex; flex-direction: column;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.mobile-nav-top .brand { color: #fff; }
.mobile-nav-close { background: none; border: none; color: #fff; cursor: pointer; }
.mobile-nav-close svg { width: 26px; height: 26px; }
.mobile-nav a { display: block; padding: 16px 4px; font-size: 19px; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav .btn { margin-top: 24px; }
