/* ================================================================== */
/*  PEZZOTTA ÉLECTRICITÉ & SERVICES — v5                               */
/*  Direction : sombre, sobre, haut de gamme. Composition, pas d'effets */
/* ================================================================== */
:root {
    --bg:            #0C1118;
    --bg-alt:        #111823;
    --surface:       #18212D;
    --blue:          #246BFD;
    --blue-soft:     #4D8DFF;
    --white:         #FFFFFF;
    --muted:         #AAB4C0;
    --muted-dim:     #78828F;
    --line:          rgba(255,255,255,0.10);

    --font-display:  "Manrope", ui-sans-serif, system-ui, sans-serif;
    --font-body:     "Inter", ui-sans-serif, system-ui, sans-serif;

    --max:           1240px;
    --gutter:        clamp(20px, 4vw, 56px);
    --section-y:     clamp(72px, 8vw, 128px);
}

/* ------------------------------------------------------------------ */
/*  Reset                                                              */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    color: var(--white);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 3px; }

/* ------------------------------------------------------------------ */
/*  Utilities                                                          */
/* ------------------------------------------------------------------ */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }

.label {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--blue-soft);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--white);
}
h1 { font-size: clamp(38px, 5vw, 64px); }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
h3 { font-size: clamp(19px, 1.8vw, 22px); font-weight: 700; }

p { color: var(--muted); }

/* ------------------------------------------------------------------ */
/*  Buttons                                                             */
/* ------------------------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 26px; border-radius: 6px;
    font-family: var(--font-display); font-size: 15px; font-weight: 600;
    transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
    border: 1px solid transparent; white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #1a56d6; }
.btn-white { background: var(--white); color: #0C1118; }
.btn-white:hover { background: #E4E9F0; }
.btn-line { background: transparent; color: var(--white); border-color: rgba(255,255,255,.24); }
.btn-line:hover { border-color: var(--white); background: rgba(255,255,255,.04); }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ------------------------------------------------------------------ */
/*  Header                                                              */
/* ------------------------------------------------------------------ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: linear-gradient(180deg, rgba(12,17,24,.55) 0%, transparent 100%);
    transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(12,17,24,0.92);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 82px; }

.logo { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--white); line-height: 1.25; }
.logo small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12.5px; color: var(--muted); }

.primary-nav { display: flex; align-items: center; gap: 40px; }
.primary-nav ul { display: flex; list-style: none; gap: 30px; align-items: center; }
.primary-nav a { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s ease; }
.primary-nav a:hover { color: var(--white); }

.header-cta { padding: 11px 18px; background: var(--blue); color: var(--white); border-radius: 6px; font-family: var(--font-display); font-size: 13.5px; font-weight: 600; transition: background .22s ease; }
.header-cta:hover { background: #1a56d6; }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; position: relative; z-index: 110; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--white); position: relative; transition: transform .3s ease, background .3s ease; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--white); transition: transform .3s ease, top .3s ease; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after  { top: 0; transform: rotate(-45deg); }

/* ------------------------------------------------------------------ */
/*  HERO                                                                */
/* ------------------------------------------------------------------ */
.hero { position: relative; padding: clamp(130px, 14vw, 176px) 0 clamp(56px, 6vw, 88px); background: var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 5vw, 80px); align-items: center; }

.hero-kicker { font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: var(--blue-soft); margin-bottom: 20px; letter-spacing: 0.02em; }
.hero-title { margin-bottom: 26px; }
.hero-sub { font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); max-width: 480px; margin-bottom: 40px; line-height: 1.6; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

.hero-contact-line { display: flex; flex-wrap: wrap; gap: 20px; font-family: var(--font-display); font-size: 14.5px; color: var(--muted); margin-bottom: 56px; }
.hero-contact-line a { color: var(--muted); transition: color .2s ease; }
.hero-contact-line a:hover { color: var(--white); }

.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 40px; padding-top: 32px; border-top: 1px solid var(--line); font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--muted); }

.hero-photo { aspect-ratio: 3/4; overflow: hidden; background: var(--surface); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.02); }

/* ------------------------------------------------------------------ */
/*  INTRO                                                               */
/* ------------------------------------------------------------------ */
.intro { background: var(--bg-alt); }
.intro-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.intro-title { margin: 18px 0 24px; }
.intro-text p { font-size: 17px; color: var(--muted); max-width: 460px; line-height: 1.65; }
.intro-photo { aspect-ratio: 4/3; overflow: hidden; }
.intro-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------ */
/*  SERVICES — grille simple, sans icônes                               */
/* ------------------------------------------------------------------ */
.services { background: var(--bg); }
.services-head { max-width: 560px; margin-bottom: clamp(44px, 5vw, 72px); }
.services-head h2 { margin: 16px 0 14px; }
.services-head p { font-size: 17px; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service {
    padding: 34px 32px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background .25s ease;
}
.service:hover { background: var(--surface); }
.service h3 { margin-bottom: 10px; transition: color .22s ease; }
.service:hover h3 { color: var(--blue-soft); }
.service p { font-size: 14.5px; line-height: 1.6; }
.service .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--blue-soft); opacity: 0; transform: translateX(-4px); transition: opacity .22s ease, transform .22s ease; }
.service:hover .go { opacity: 1; transform: none; }
.service .go svg { width: 13px; height: 13px; }

/* ------------------------------------------------------------------ */
/*  DÉPANNAGE — bleu, simple, fort                                      */
/* ------------------------------------------------------------------ */
.depannage { background: linear-gradient(155deg, var(--blue) 0%, #1a4fc4 100%); color: var(--white); }
.depannage-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.depannage-title { color: var(--white); margin-bottom: 18px; }
.depannage p.lead { color: rgba(255,255,255,.9); font-size: 17px; max-width: 460px; margin-bottom: 8px; }
.depannage p.lead2 { color: rgba(255,255,255,.75); font-size: 15.5px; max-width: 440px; }

.depannage-call { text-align: left; }
.depannage-call .lbl { font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.depannage-call .num { font-family: var(--font-display); font-size: clamp(34px, 4.4vw, 52px); font-weight: 700; letter-spacing: -0.02em; color: var(--white); display: block; margin-bottom: 24px; }

/* ------------------------------------------------------------------ */
/*  GALLERY — portfolio                                                 */
/* ------------------------------------------------------------------ */
.gallery { background: var(--bg); }
.gallery-head { margin-bottom: clamp(44px, 5vw, 72px); max-width: 560px; }
.gallery-head h2 { margin-top: 16px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.gallery-grid > a:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item { position: relative; overflow: hidden; aspect-ratio: 1/1; display: block; }
.gallery-grid > a:first-child .gallery-item { aspect-ratio: 1/1; height: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,.84,.4,1); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 18px 20px;
    background: linear-gradient(0deg, rgba(12,17,24,.85) 0%, transparent 60%);
    color: rgba(255,255,255,.9);
    font-family: var(--font-display); font-size: 13.5px; font-weight: 500;
    opacity: 0; transform: translateY(6px);
    transition: opacity .25s ease, transform .25s ease;
}
.gallery-item:hover .gallery-cap { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/*  À PROPOS                                                            */
/* ------------------------------------------------------------------ */
.about { background: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-photo { aspect-ratio: 4/5; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-title { margin: 4px 0 22px; }
.about-text p { font-size: 16.5px; max-width: 460px; margin-bottom: 14px; line-height: 1.65; }

.about-qualities { margin-top: 40px; display: flex; flex-direction: column; }
.about-quality { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.about-quality:last-child { border-bottom: 1px solid var(--line); }
.about-quality .q-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--white); }
.about-quality p { font-size: 14.5px; margin: 0; }

/* ------------------------------------------------------------------ */
/*  AUDIENCES                                                           */
/* ------------------------------------------------------------------ */
.audiences { background: var(--bg); }
.audiences-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.audience { position: relative; aspect-ratio: 4/5; overflow: hidden; display: flex; align-items: flex-end; }
.audience img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,.84,.4,1); }
.audience:hover img { transform: scale(1.04); }
.audience::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,17,24,.82) 0%, rgba(12,17,24,.15) 55%, rgba(12,17,24,.05) 100%); }
.audience-content { position: relative; z-index: 1; padding: clamp(24px, 3vw, 40px); }
.audience-content h3 { color: var(--white); margin-bottom: 10px; }
.audience-content p { color: rgba(255,255,255,.78); font-size: 14.5px; max-width: 300px; }

/* ------------------------------------------------------------------ */
/*  ZONE                                                                */
/* ------------------------------------------------------------------ */
.zone { background: var(--bg-alt); }
.zone-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.zone-title { margin: 16px 0 20px; }
.zone p.desc { font-size: 16.5px; max-width: 420px; margin-bottom: 32px; }
.zone-cities { columns: 2; column-gap: 32px; font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--white); line-height: 2.1; }
.zone-cities .dim { color: var(--muted-dim); }

.zone-map-wrap svg { width: 100%; height: auto; }

/* ------------------------------------------------------------------ */
/*  FAQ                                                                 */
/* ------------------------------------------------------------------ */
.faq { background: var(--bg); }
.faq-head { margin-bottom: clamp(40px, 5vw, 64px); }
.faq-head h2 { margin-top: 16px; }
.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 2px; text-align: left; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--white); }
.faq-question .plus { width: 20px; height: 20px; flex-shrink: 0; position: relative; }
.faq-question .plus::before, .faq-question .plus::after { content: ""; position: absolute; background: var(--blue-soft); }
.faq-question .plus::before { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.faq-question .plus::after  { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.faq-item.open .faq-question .plus::before { transform: translateX(-50%) rotate(90deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer p { padding: 0 2px 26px; font-size: 15.5px; max-width: 620px; line-height: 1.65; }

/* ------------------------------------------------------------------ */
/*  CONTACT                                                             */
/* ------------------------------------------------------------------ */
.contact { background: #080C11; }
.contact-inner { max-width: 640px; }
.contact-title { margin: 14px 0 18px; }
.contact-lead { font-size: 17px; max-width: 480px; margin-bottom: 40px; }
.contact-phone { font-family: var(--font-display); font-size: clamp(36px, 5.4vw, 58px); font-weight: 700; letter-spacing: -0.02em; color: var(--white); display: block; margin-bottom: 10px; transition: color .2s ease; }
.contact-phone:hover { color: var(--blue-soft); }
.contact-email { font-family: var(--font-display); font-size: 16px; color: var(--muted); display: inline-block; margin-bottom: 36px; transition: color .2s ease; }
.contact-email:hover { color: var(--white); }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 60px; }

.contact-form { max-width: 640px; padding-top: 40px; border-top: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
    background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
    padding: 12px 14px; color: var(--white); font-size: 15px; transition: border-color .2s ease; outline: none; width: 100%;
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue-soft); }
.form-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23AAB4C0' stroke-width='1.4' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 10px; padding-right: 34px;
}
.form-field select option { background: var(--surface); color: var(--white); }
.form-submit { margin-top: 20px; }
.form-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 16px; min-height: 18px; }
.form-note.error { color: #FF9B8A; }
.form-note.success { color: #7FE0A8; }

/* ------------------------------------------------------------------ */
/*  Footer                                                              */
/* ------------------------------------------------------------------ */
.site-footer { background: #080C11; border-top: 1px solid var(--line); padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; align-items: start; margin-bottom: 40px; }
.footer-brand { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--white); }
.footer-brand small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-family: var(--font-display); font-size: 13.5px; color: var(--muted); transition: color .2s ease; }
.footer-nav a:hover { color: var(--white); }
.footer-contact { text-align: right; font-family: var(--font-display); font-size: 13.5px; }
.footer-contact a { display: block; color: var(--muted); margin-bottom: 6px; transition: color .2s ease; }
.footer-contact a:hover { color: var(--white); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted-dim); font-family: var(--font-display); }

/* ------------------------------------------------------------------ */
/*  Floating call button (mobile)                                      */
/* ------------------------------------------------------------------ */
.floating-call {
    position: fixed; right: 20px; bottom: 20px; z-index: 90;
    background: var(--blue); color: var(--white);
    padding: 14px 22px; border-radius: 8px;
    font-family: var(--font-display); font-size: 14px; font-weight: 600;
    display: none; align-items: center; gap: 10px;
    box-shadow: 0 10px 28px rgba(36,107,253,.35);
}
.floating-call svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ */
/*  Reveal — apparition douce uniquement                                */
/* ------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------ */
/*  Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 1024px) {
    .hero-grid, .intro-grid, .depannage-grid, .about-grid, .zone-grid { grid-template-columns: 1fr; }
    .hero-photo, .intro-photo, .about-photo { max-width: 480px; }
    .depannage-call { margin-top: 8px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid > a:first-child { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/9; }
    .gallery-grid > a:first-child .gallery-item { aspect-ratio: 16/9; }
    .zone-cities { columns: 1; }
}

@media (max-width: 720px) {
    .primary-nav {
        position: fixed; top: 0; right: 0; width: min(88vw, 380px); height: 100dvh;
        background: var(--bg-alt); flex-direction: column; align-items: stretch; justify-content: flex-start;
        padding: 100px 32px 40px; transform: translateX(100%);
        transition: transform .4s cubic-bezier(.6,0,.4,1); gap: 0; border-left: 1px solid var(--line);
    }
    .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .primary-nav li { border-bottom: 1px solid var(--line); }
    .primary-nav a { display: block; padding: 20px 0; font-size: 18px; color: var(--white); }
    .header-cta { margin-top: 28px; text-align: center; }
    .nav-open .primary-nav { transform: translateX(0); }
    .nav-toggle { display: inline-flex; }
    .header-inner > .header-cta { display: none; }

    .services-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-grid > a:first-child { grid-column: span 1; aspect-ratio: 4/3; }
    .audiences-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-contact { text-align: left; }
    .form-row { grid-template-columns: 1fr; }

    .floating-call { display: inline-flex; }
    body.has-floating .contact { padding-bottom: calc(var(--section-y) + 40px); }

    .hero-ctas { flex-direction: column; align-items: stretch; }
    .hero-ctas .btn { justify-content: center; }
}
