:root {
  /* Charte ADDELEC (logo) */
  --navy: #133d2c;      /* vert foncé du nom ADDELEC */
  --navy-2: #1f5a3f;
  --green: #8cc63f;     /* vert clair des feuilles */
  --green-dark: #3f8f37;
  --blue: #2d9ae0;      /* éclair du logo */
  --text: #1e293b;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(19, 61, 44, 0.08);
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.logo img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; background: #fff; }
.logo .name { display: flex; flex-direction: column; line-height: 1.1; }
.logo .name b { font-weight: 800; font-size: 1.35rem; letter-spacing: .5px; }
.logo .name small { font-size: .68rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--green-dark); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 500; color: var(--navy); transition: color .2s; }
.nav a:not(.btn):hover, .nav a.active:not(.btn) { color: var(--green-dark); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; border: 2px solid transparent; cursor: pointer;
  transition: all .2s; font-size: 1rem;
}
.btn-primary { background: var(--green); color: var(--navy); }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(140, 198, 63, 0.25), transparent 50%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 110px 0 120px;
}
.hero .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero .tag {
  display: inline-block; background: rgba(140, 198, 63, 0.15); color: var(--green);
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); line-height: 1.15; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p { font-size: 1.15rem; color: #cbd5e1; margin-bottom: 32px; max-width: 560px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual svg { width: 100%; max-width: 420px; margin: 0 auto; }

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 70px 0;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 10px; }
.page-hero p { color: #cbd5e1; max-width: 640px; }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .eyebrow { color: var(--green-dark); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: 1.5px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--navy); margin: 8px 0 14px; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; background: rgba(140, 198, 63, 0.12);
  display: grid; place-items: center; margin-bottom: 18px; color: var(--green-dark);
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.2rem; }
.card p { color: var(--muted); }
.card ul { margin-top: 14px; list-style: none; }
.card ul li { padding-left: 24px; position: relative; margin-bottom: 6px; color: var(--text); }
.card ul li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 7px;
  border-left: 2px solid var(--green-dark); border-bottom: 2px solid var(--green-dark);
  transform: rotate(-45deg);
}

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 60px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--green); font-weight: 800; display: grid; place-items: center;
}
.step h3 { color: var(--navy); margin-bottom: 8px; }
.step p { color: var(--muted); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { color: var(--navy); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.split p { color: var(--muted); margin-bottom: 16px; }
.split .visual {
  border-radius: var(--radius); min-height: 340px;
  background: linear-gradient(135deg, var(--navy-2), var(--green-dark));
  display: grid; place-items: center; color: #fff;
}
.split .visual svg { width: 45%; opacity: .9; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--navy); padding: 64px 0; text-align: center;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 12px; }
.cta-band p { margin-bottom: 26px; font-size: 1.1rem; }

/* Projects */
.project { padding: 0; overflow: hidden; }
.project .thumb {
  height: 190px; background: linear-gradient(135deg, var(--navy-2), var(--green-dark));
  display: grid; place-items: center; color: rgba(255,255,255,.85);
}
.project .thumb svg { width: 60px; height: 60px; }
.project .body { padding: 24px; }
.project .meta { font-size: .85rem; color: var(--green-dark); font-weight: 600; margin-bottom: 6px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 12px;
}
.faq summary { font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.4rem; color: var(--green-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.info-item .icon { flex-shrink: 0; }
.info-item h4 { color: var(--navy); }
.info-item p { color: var(--muted); }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 6px; }
form input, form select, form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; margin-bottom: 18px; background: #fff;
}
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--green); border-color: transparent; }
form textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.form-success { display: none; background: rgba(140,198,63,.12); color: var(--green-dark); padding: 14px; border-radius: 8px; margin-top: 14px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #94a3b8; padding: 60px 0 24px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: var(--green); }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero .container, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px;
    border-bottom: 1px solid var(--border); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 12px; text-align: center; }
  .grid-2, .grid-3, .grid-4, form .row, .site-footer .cols { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 72px 0 80px; }
}

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

.info-item .icon {
  width: 48px; height: 48px; border-radius: 12px; background: rgba(140, 198, 63, 0.12);
  display: grid; place-items: center; color: var(--green-dark);
}
.info-item .icon svg { width: 22px; height: 22px; }

/* ---------- Composants ADDELEC ---------- */
.hero-visual img { border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -60px; position: relative; z-index: 2; }
.stat { background: #fff; border-radius: var(--radius); padding: 24px 18px; text-align: center; box-shadow: var(--shadow); border-top: 4px solid var(--green); }
.stat strong { display: block; font-size: 2rem; color: var(--navy); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }
.stats-note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 14px; }

.badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 3px 10px; border-radius: 999px; background: rgba(140,198,63,.18); color: var(--green-dark); margin-bottom: 10px; }
.badge-blue { background: rgba(45,154,224,.14); color: #1b6fa8; }
.badge-orange { background: rgba(230,145,40,.16); color: #b8660f; }

.ceo { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.ceo img { border-radius: 18px; box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; }
.ceo blockquote { font-size: 1.1rem; color: var(--text); }
.ceo blockquote p { margin-bottom: 14px; }
.ceo cite { display: block; font-style: italic; font-weight: 700; color: var(--green-dark); margin-top: 8px; }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.member { text-align: center; }
.member img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 4px solid rgba(140,198,63,.4); }
.member h3 { color: var(--navy); font-size: 1.1rem; }
.member .role { color: var(--green-dark); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.member a { display: block; color: var(--muted); font-size: .92rem; }
.member a:hover { color: var(--green-dark); }

.agencies { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.agencies img { border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.agency-list { list-style: none; }
.agency-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.agency-list .num { width: 34px; height: 34px; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.agency-list .num.dev { background: #e69128; }
.agency-list strong { color: var(--navy); }
.agency-list span { color: var(--muted); font-size: .9rem; display: block; }

.coverage { display: grid; gap: 14px; }
.coverage .zone { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.coverage .time { flex-shrink: 0; min-width: 120px; text-align: center; padding: 6px 10px; border-radius: 8px; color: #fff; font-weight: 700; font-size: .85rem; }

.clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.clients .client-logo { flex: 0 0 calc((100% - 48px) / 4); min-width: 0; text-align: center; }
.client-logo {
  height: 110px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px;
  transition: box-shadow .2s, transform .2s;
}
.client-logo:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.client-logo img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.client-logo:hover img { filter: none; opacity: 1; }
.client-logo span { font-weight: 800; font-size: 1.35rem; color: var(--navy); letter-spacing: .3px; }
.client-logo small { font-size: .75rem; color: var(--muted); text-align: center; }

.wide-visual { border-radius: 18px; box-shadow: var(--shadow); }

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .ceo, .agencies { grid-template-columns: 1fr; }
  .ceo img { max-width: 320px; }
  .team { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; margin-top: -40px; }
  .team { grid-template-columns: 1fr; }
  .clients .client-logo { flex-basis: calc((100% - 16px) / 2); padding: 12px; }
  .client-logo span { font-size: 1.1rem; }
  .coverage .zone { flex-direction: column; align-items: flex-start; }
  .logo .name small { display: none; }
}
a.client-logo:hover span { color: var(--green-dark); }
a.client-logo:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ---------- Réalisations ---------- */
.project-feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.project-feature img { border-radius: 18px; box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.project-feature h2 { color: var(--navy); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 6px; }
.project-feature .meta { color: var(--green-dark); font-weight: 600; margin-bottom: 14px; }
.project-feature p { color: var(--muted); }
.facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.facts li { background: var(--bg-alt); border-radius: var(--radius); padding: 14px; text-align: center; }
.facts strong { display: block; font-size: 1.4rem; color: var(--navy); }
.facts span { font-size: .82rem; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 16px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); margin: 0; background: var(--navy); }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.big { grid-column: span 2; grid-row: span 2; }
.gallery-item a, .gallery-item img { display: block; width: 100%; height: 100%; }
.gallery-item img { object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-size: .85rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); pointer-events: none;
}

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 20, 14, .92); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox button { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; }

@media (max-width: 960px) {
  .project-feature { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-item.wide, .gallery-item.big { grid-column: auto; }
  .gallery-item.tall, .gallery-item.big { grid-row: span 2; }
}

/* ---------- Mentions légales ---------- */
.legal { max-width: 820px; }
.legal h2 { color: var(--navy); font-size: 1.25rem; margin: 32px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--text); margin-bottom: 12px; }
.legal a { color: var(--green-dark); text-decoration: underline; }
