/* ==========================================================
   Fontaine Elec — Noir · Blanc · Vert Forêt
   Palette : #0a0a0a · #ffffff · #f4f5f2 · #2c5534
   Fonts   : Apple system stack (SF Pro)
   ========================================================== */

:root {
  --c-black   : #0a0a0a;
  --c-white   : #ffffff;
  --c-off     : #f4f5f2;
  --c-muted   : #6b7066;
  --c-line    : #d8ddd4;
  --c-green   : #2c5534;
  --c-green-d : #1a3320;
  --c-green-t : rgba(44, 85, 52, .10);

  --f-display : -apple-system, 'SF Pro Display', BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --f-body    : -apple-system, 'SF Pro Text',    BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --w    : min(1160px, 100% - 3rem);
  --ease : cubic-bezier(.4, 0, .2, 1);
  --r    : 3px;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--f-body); background: var(--c-white); color: var(--c-black); font-size: 16px; line-height: 1.65; }
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; }

.site-shell { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

/* ==========================================================
   BOUTONS
   ========================================================== */
.button-primary {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 2em;
  font-family: var(--f-body); font-weight: 600; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase;
  border-radius: var(--r); border: 2px solid var(--c-green);
  background: var(--c-green); color: var(--c-white);
  transition: background .2s var(--ease), border-color .2s var(--ease);
  cursor: pointer; white-space: nowrap;
}
.button-primary:hover { background: var(--c-green-d); border-color: var(--c-green-d); }

.button-secondary {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 2em;
  font-family: var(--f-body); font-weight: 600; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase;
  border-radius: var(--r); border: 2px solid var(--c-black);
  background: transparent; color: var(--c-black);
  transition: background .2s var(--ease), color .2s var(--ease);
  cursor: pointer; white-space: nowrap;
}
.button-secondary:hover { background: var(--c-black); color: var(--c-white); }

/* ==========================================================
   TOPBAR
   ========================================================== */
.topbar {
  position: sticky; top: 0; z-index: 200;
  background: var(--c-black);
  border-bottom: 2px solid var(--c-green);
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding-block: 1rem;
  padding-inline: max(1.5rem, calc((100% - 1160px) / 2 + 1.5rem));
}

.brand { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.brand:hover { opacity: .8; }
.brand-mark {
  width: 38px; height: 38px;
  background: var(--c-green); color: var(--c-white);
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 1.15rem; font-weight: 700;
  border-radius: var(--r);
}
.brand strong { display: block; font-family: var(--f-display); font-size: 1rem; font-weight: 700; color: var(--c-white); line-height: 1; }
.brand small  { display: block; font-size: .6rem; color: rgba(255,255,255,.4); letter-spacing: .08em; text-transform: uppercase; margin-top: .2rem; }

/* ── Hamburger ── */
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: .5rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r); cursor: pointer; flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 100%; height: 1.5px;
  background: var(--c-white);
  transition: transform .25s var(--ease), opacity .2s;
  transform-origin: center;
}
/* croix quand ouvert */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================
   OVERLAY (fond sombre derrière le panneau)
   ========================================================== */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 300;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.nav-overlay.is-visible { opacity: 1; pointer-events: auto; }

/* ==========================================================
   PANNEAU DE NAVIGATION
   ========================================================== */
.nav-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: var(--c-black);
  border-left: 2px solid var(--c-green);
  z-index: 400;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  overflow-y: auto;
}
.nav-panel.is-open { transform: translateX(0); }

/* En-tête du panneau */
.nav-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.nav-panel-label {
  font-size: .65rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.35);
}
.nav-close {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  font-size: 1rem; color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r);
  background: none; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.nav-close:hover { color: var(--c-white); border-color: rgba(255,255,255,.35); }

/* Liens */
.nav-links { flex: 1; padding: .5rem 0; }
.nav-links li { border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.5rem;
  font-family: var(--f-display); font-size: 1.05rem; font-weight: 600;
  color: rgba(255,255,255,.75);
  transition: color .15s, background .15s, padding-left .15s;
}
.nav-links a::after {
  content: '→';
  font-size: .8rem;
  color: rgba(255,255,255,.2);
  transition: color .15s, transform .15s;
}
.nav-links a:hover {
  color: #7dba8a;
  background: rgba(255,255,255,.04);
  padding-left: 2rem;
}
.nav-links a:hover::after { color: #7dba8a; transform: translateX(4px); }

/* Pied du panneau */
.nav-panel-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.nav-panel-footer .button-primary { width: 100%; justify-content: center; }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  background: var(--c-black); color: var(--c-white);
  padding-block: clamp(4rem, 8vw, 7rem);
}
.hero-intro {
  width: var(--w); margin-inline: auto;
  display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem;
}
.rating-badge {
  display: inline-flex; align-items: center; gap: .75rem;
  background: var(--c-green-t); border: 1px solid var(--c-green);
  padding: .4em 1.1em; border-radius: 99px; width: fit-content;
  font-size: .73rem; font-weight: 600; color: #7dba8a; letter-spacing: .04em;
}
.rating-stars span { color: #7dba8a; font-size: .8rem; }

.hero-intro h1 {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700;
  line-height: 1.06; letter-spacing: -.03em; color: var(--c-white); max-width: 20ch;
}
.hero-bottom {
  width: var(--w); margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: stretch;
}
.hero-info-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r); padding: 2.5rem;
  display: flex; flex-direction: column; gap: 2rem;
}
.hero-info-text { font-size: .95rem; color: rgba(255,255,255,.6); line-height: 1.78; max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hero-cta-row { margin-top: 1.5rem; }
.hero .button-secondary { border-color: rgba(255,255,255,.35); color: var(--c-white); }
.hero .button-secondary:hover { background: rgba(255,255,255,.1); border-color: var(--c-white); color: var(--c-white); }

.hero-proof { display: flex; flex-direction: column; gap: 1rem; }
.hero-proof-panel-primary {
  background: var(--c-green-t); border: 1px solid var(--c-green);
  border-radius: var(--r); padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1.25rem;
}
.hero-proof-mark {
  width: 40px; height: 40px; background: var(--c-green); color: var(--c-white);
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 1rem; font-weight: 700;
  border-radius: var(--r); flex-shrink: 0;
}
.hero-proof-kicker { font-size: .63rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7dba8a; margin-bottom: .2rem; }
.hero-proof-value  { font-family: var(--f-display); font-size: .95rem; font-weight: 700; color: var(--c-white); line-height: 1.2; }
.hero-proof-note   { font-size: .7rem; color: rgba(255,255,255,.4); margin-top: .15rem; }

.hero-proof-panel-secondary {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r); padding: 1.25rem 1.5rem;
}
.hero-proof-score { font-family: var(--f-display); font-size: 1rem; font-weight: 700; color: var(--c-white); line-height: 1.2; margin-bottom: .5rem; }
.hero-proof-copy  { font-size: .78rem; color: rgba(255,255,255,.45); line-height: 1.6; margin-bottom: .75rem; }
.hero-proof-list li { font-size: .76rem; color: #7dba8a; padding-left: 1.1em; position: relative; line-height: 1.8; }
.hero-proof-list li::before { content: '✓'; position: absolute; left: 0; font-size: .65rem; }

.hero-visual { position: relative; border-radius: var(--r); overflow: hidden; min-height: 340px; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) brightness(.9); }
.hero-visual-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%); }
.hero-visual-overlay p { font-size: .82rem; color: rgba(255,255,255,.7); margin-bottom: .75rem; }
.hero-visual-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-visual-tags span { font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--c-green); color: #7dba8a; padding: .25em .75em; border-radius: 99px; }

/* ==========================================================
   SECTIONS COMMUNES
   ========================================================== */
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section-heading { width: var(--w); margin-inline: auto; margin-bottom: 3rem; }

.eyebrow {
  font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-muted); display: inline-flex; align-items: center; gap: .6em; margin-bottom: .6rem;
}
.eyebrow::before { content: ''; display: inline-block; width: 18px; height: 1px; background: var(--c-muted); }

h2 { font-family: var(--f-display); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; color: var(--c-black); }
h3 { font-family: var(--f-display); font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--c-black); }

/* ==========================================================
   CARD GRID (services + zones)
   ========================================================== */
.card-grid {
  width: var(--w); margin-inline: auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--c-line); border: 1px solid var(--c-line);
}
.info-card { background: var(--c-white); padding: 2rem 1.75rem; transition: background .2s; }
.info-card:hover { background: var(--c-off); }
.info-card h3 { margin-bottom: .6rem; font-size: 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--c-green); display: inline-block; }
.info-card p  { font-size: .86rem; color: var(--c-muted); line-height: 1.65; margin-top: .6rem; }

/* ==========================================================
   HIGHLIGHT (pourquoi nous)
   ========================================================== */
.section.highlight { background: var(--c-off); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.section.highlight .section-heading,
.section.highlight .feature-grid { width: var(--w); margin-inline: auto; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feature-grid > div { border-top: 3px solid var(--c-line); padding-top: 1.25rem; }
.feature-grid > div:nth-child(1) { border-top-color: var(--c-green); }
.feature-grid > div:nth-child(2) { border-top-color: var(--c-black); }
.feature-grid > div:nth-child(3) { border-top-color: var(--c-green); }
.feature-grid h3 { margin-bottom: .5rem; font-size: .95rem; }
.feature-grid p  { font-size: .84rem; color: var(--c-muted); line-height: 1.65; }

/* ==========================================================
   SPLIT (à propos)
   ========================================================== */
.section.split {
  background: var(--c-black); color: var(--c-white);
  padding-block: clamp(4rem, 8vw, 6.5rem);
  padding-inline: max(1.5rem, calc((100% - 1160px) / 2 + 1.5rem));
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem); align-items: start;
}
.section.split .eyebrow { color: rgba(255,255,255,.38); }
.section.split .eyebrow::before { background: rgba(255,255,255,.38); }
.section.split h2 { color: var(--c-white); margin-block: .75rem 1rem; }
.section.split p  { color: rgba(255,255,255,.55); font-size: .9rem; line-height: 1.75; margin-bottom: .75rem; }

.check-panel { background: var(--c-green); border: 1px solid var(--c-green-d); border-radius: var(--r); padding: 2.25rem 2rem; }
.check-panel h3 { color: var(--c-white); font-size: 1rem; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid rgba(255,255,255,.2); }
.check-list { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.15); }
.check-list li { font-size: .86rem; color: rgba(255,255,255,.82); padding: .75rem 0 .75rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.12); position: relative; line-height: 1.5; }
.check-list li::before { content: '→'; position: absolute; left: 0; color: rgba(255,255,255,.4); }

/* ==========================================================
   TÉMOIGNAGES
   ========================================================== */
.section.testimonials .section-heading,
.section.testimonials .quote-grid { width: var(--w); margin-inline: auto; }

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
blockquote { background: var(--c-white); padding: 2rem 1.75rem; border-top: 3px solid var(--c-green); transition: background .2s; }
blockquote:nth-child(2) { border-top-color: var(--c-black); }
blockquote:hover { background: var(--c-off); }
blockquote p    { font-size: .9rem; color: var(--c-black); line-height: 1.72; font-style: italic; margin-bottom: .75rem; }
blockquote cite { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); font-style: normal; }

/* ==========================================================
   CONTACT BAND
   ========================================================== */
.section.contact-band {
  background: var(--c-green); color: var(--c-white);
  padding-block: clamp(4rem, 8vw, 6.5rem);
  padding-inline: max(1.5rem, calc((100% - 1160px) / 2 + 1.5rem));
  display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center;
}
.section.contact-band .eyebrow { color: rgba(255,255,255,.5); }
.section.contact-band .eyebrow::before { background: rgba(255,255,255,.5); }
.section.contact-band h2 { color: var(--c-white); margin-block: .5rem .75rem; }
.section.contact-band p  { color: rgba(255,255,255,.7); font-size: .9rem; max-width: 42ch; }
.section.contact-band .button-primary  { background: var(--c-white); border-color: var(--c-white); color: var(--c-green); }
.section.contact-band .button-primary:hover { background: var(--c-off); border-color: var(--c-off); }
.section.contact-band .button-secondary { background: transparent; border-color: rgba(255,255,255,.4); color: var(--c-white); }
.section.contact-band .button-secondary:hover { background: rgba(255,255,255,.1); border-color: var(--c-white); }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--c-black); border-top: 2px solid var(--c-green);
  padding-block: 2.5rem;
  padding-inline: max(1.5rem, calc((100% - 1160px) / 2 + 1.5rem));
  display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start;
}
.footer strong { display: block; font-family: var(--f-display); font-size: .95rem; font-weight: 700; color: var(--c-white); margin-bottom: .4rem; }
.footer p { font-size: .82rem; color: rgba(255,255,255,.4); line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: .45rem; align-items: flex-end; }
.footer-links a { font-size: .78rem; color: rgba(255,255,255,.45); transition: color .15s; }
.footer-links a:hover { color: #7dba8a; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
  .hero-bottom          { grid-template-columns: 1fr; }
  .hero-visual          { display: none; }
  .hero-intro h1        { max-width: unset; }
  .card-grid            { grid-template-columns: 1fr; }
  .feature-grid         { grid-template-columns: 1fr; }
  .section.split        { grid-template-columns: 1fr; }
  .quote-grid           { grid-template-columns: 1fr; }
  .section.contact-band { grid-template-columns: 1fr; }
  .footer               { grid-template-columns: 1fr; }
  .footer-links         { align-items: flex-start; }
}

@media (max-width: 600px) {
  .hero-info-card { padding: 1.5rem; }
  .cta-row        { flex-direction: column; align-items: flex-start; }
  .section.contact-band .cta-row { flex-direction: column; }
}

/* ==========================================================
   FOCUS
   ========================================================== */
:focus-visible { outline: 2px solid var(--c-green); outline-offset: 3px; }