/* ============================================================
   CGétude - Feuille de styles principale
   Palette métier : Électricité #E30613 · Télécom #009640
                    Éclairage public #F39200 · Gaz #009FE3
   ============================================================ */

:root {
  --red: #E30613;
  --green: #009640;
  --orange: #F39200;
  --blue: #009FE3;
  --ink: #16181D;
  --ink-2: #3D4757;
  --muted: #5A6472;
  --line: #E4E8EE;
  --bg-soft: #F3F5F8;
  --dark: #0B1220;
  --dark-2: #070C16;
  --max: 1200px;
}

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

/* accessibilité : contenu présent pour le SEO mais masqué visuellement */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: 'Mulish', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Barlow Semi Condensed', sans-serif; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: #0086C2; }

::selection { background: var(--blue); color: #fff; }

img { display: block; max-width: 100%; }

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

/* --- quadricolor thread --- */
.thread {
  height: 4px; width: 100%;
  background: linear-gradient(90deg,
    var(--red) 0 25%, var(--green) 25% 50%,
    var(--orange) 50% 75%, var(--blue) 75% 100%);
}
.thread--sm {
  height: 3px; border-radius: 3px;
  background: linear-gradient(90deg,
    var(--red) 25%, var(--green) 25% 50%,
    var(--orange) 50% 75%, var(--blue) 75%);
}

/* --- classes de thème : couleur métier portée par --c --- */
.t-red    { --c: var(--red); }
.t-green  { --c: var(--green); }
.t-orange { --c: var(--orange); }
.t-blue   { --c: var(--blue); }
.thread--gap { margin-bottom: 26px; }
.thread--flush { border-radius: 0; }

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  height: 84px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.header__logo img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-weight: 600; font-size: 14.5px; color: var(--muted);
  padding: 10px 14px; border-radius: 8px; transition: .15s;
}
.nav__link:hover { color: var(--ink); background: var(--bg-soft); }
.nav__sep { width: 1px; height: 26px; background: var(--line); margin: 0 6px; }
.nav__social {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 9px; color: var(--muted); transition: .15s;
}
.nav__social:hover { color: var(--blue); background: var(--bg-soft); }
.btn-phone {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 14.5px; color: #fff; background: var(--red);
  padding: 11px 18px; border-radius: 9px; margin-left: 6px;
  box-shadow: 0 6px 16px rgba(227,6,19,0.22); transition: .15s;
}
.btn-phone:hover { background: #C40410; color: #fff; }

/* --- burger + menu mobile --- */
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; margin-left: 4px; padding: 0 10px;
  background: none; border: 1px solid var(--line); border-radius: 9px; cursor: pointer;
}
.burger span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: .25s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--line); background: #fff;
  padding: 8px 28px 16px; display: flex; flex-direction: column;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__link {
  font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 600; font-size: 20px;
  color: var(--ink); padding: 14px 4px; border-bottom: 1px solid var(--line);
}
.mobile-menu__link:last-child { border-bottom: none; }
.mobile-menu__link:hover { color: var(--red); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; padding: 15px 28px;
  border-radius: 11px; cursor: pointer; border: none; transition: .2s;
}
.btn--primary { color: #fff; background: var(--red); box-shadow: 0 10px 28px rgba(227,6,19,0.3); }
.btn--primary:hover { transform: translateY(-2px); color: #fff; }
.btn--ghost { color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.28); }
.btn--ghost:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* ============ HERO SLIDER ============ */
.hero {
  position: relative; height: 62vh; min-height: 480px; max-height: 680px;
  overflow: hidden; background: var(--dark);
}
.slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.1s ease; pointer-events: none;
}
.slide.is-active { opacity: 1; }
.slide__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.55; transform: scale(1.04);
}
.slide__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,18,32,0.92) 0%, rgba(11,18,32,0.55) 55%, rgba(11,18,32,0.18) 100%);
}
.slide__body {
  position: relative; height: 100%; max-width: var(--max);
  margin: 0 auto; padding: 0 28px 130px;
  display: flex; flex-direction: column; justify-content: center;
}
.slide__inner { max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 12.5px; letter-spacing: 1.4px;
  text-transform: uppercase; color: #fff;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22);
  padding: 8px 16px; border-radius: 100px; margin-bottom: 26px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.slide__title {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700; font-size: clamp(42px,7vw,82px);
  line-height: 0.98; letter-spacing: -0.5px; color: #fff; text-wrap: balance;
}
.slide__sub {
  font-size: clamp(17px,2.2vw,22px); font-weight: 500;
  color: #D3DBE8; line-height: 1.45; margin-top: 22px; max-width: 600px;
}
.hero__overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; pointer-events: none;
}
.hero__overlay-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 28px 72px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.hero__ctas { pointer-events: auto; display: flex; flex-wrap: wrap; gap: 13px; }
.hero__nav { pointer-events: auto; display: flex; align-items: center; gap: 16px; }
.dots { display: flex; align-items: center; gap: 11px; }
.dot-btn {
  border: none; cursor: pointer; padding: 0; height: 5px; width: 10px;
  border-radius: 100px; background: rgba(255,255,255,0.4); transition: all .35s ease;
}
.dot-btn.is-active { width: 30px; background: #fff; }
.arrows { display: flex; align-items: center; gap: 8px; }
.arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3); background: rgba(11,18,32,0.35);
  backdrop-filter: blur(6px); color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: .15s;
}
.arrow:hover { background: rgba(11,18,32,0.65); }

/* ============ 4 MÉTIERS ============ */
.metiers { background: #fff; padding: 26px 0 0; }
.metiers__grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 50px -30px rgba(16,24,40,0.35);
  margin-top: -32px; position: relative; z-index: 5; background: #fff;
}
.metier { padding: 30px 26px; border-right: 1px solid var(--line); border-top: 4px solid var(--c); }
.metier:last-child { border-right: none; }
.metier__icon {
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 50%; margin-bottom: 18px; color: #fff; background: var(--c);
}
.metier h3 { font-weight: 700; font-size: 23px; color: var(--ink); }
.metier p { font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 8px; }

/* ============ VOCATION + STATS ============ */
.vocation { background: #fff; padding: 80px 0 84px; }
.vocation__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.kicker {
  font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px;
  color: var(--c);
}
.section-title {
  font-weight: 700; font-size: clamp(32px,4.6vw,50px);
  line-height: 1.02; letter-spacing: -0.5px; color: var(--ink);
}
.vocation p { font-size: 17px; color: var(--muted); line-height: 1.65; }
.vocation__text h2 { margin-bottom: 22px; }
.vocation__text p + p { margin-top: 16px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px 24px; border-left: 4px solid var(--c);
}
.stat__big { font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700; font-size: 44px; color: var(--ink); line-height: 1; }
.stat__label { font-size: 13.5px; color: var(--muted); margin-top: 10px; line-height: 1.45; }

/* ============ SERVICES ============ */
.services { background: var(--bg-soft); padding: 88px 0; border-top: 1px solid var(--line); }
.services__head { max-width: 640px; margin-bottom: 44px; }
.cards-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.svc-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 32px; border-top: 4px solid var(--c);
}
.svc-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.svc-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: #fff; background: var(--c); }
.svc-card h3 { font-weight: 700; font-size: 27px; color: var(--ink); }
.svc-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.svc-card li { display: flex; gap: 12px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.svc-card li svg { flex-shrink: 0; margin-top: 2px; color: var(--c); }
.plan-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 22px; }
.plan-strip img { width: 100%; height: 200px; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }

/* ============ MOYENS ============ */
.moyens { background: #fff; padding: 88px 0; }
.moyens__head { max-width: 640px; margin-bottom: 44px; }
.moyens__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; }
.humains {
  background: var(--dark); color: #E7ECF3; border-radius: 20px;
  padding: 38px; position: relative; overflow: hidden;
}
.humains__bg {
  position: absolute; top: 0; right: 0; width: 48%; height: 100%;
  object-fit: cover; opacity: 0.16;
  -webkit-mask-image: linear-gradient(to left,#000,transparent);
  mask-image: linear-gradient(to left,#000,transparent);
}
.humains__inner { position: relative; }
.humains h3 { font-weight: 700; font-size: 28px; color: #fff; margin-bottom: 12px; }
.humains > .humains__inner > p { font-size: 15px; color: #B9C4D6; line-height: 1.6; margin-bottom: 24px; max-width: 520px; }
.humains ul { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.humains li { display: flex; gap: 13px; font-size: 14px; color: #CDD6E4; line-height: 1.55; }
.humains li .sq { flex-shrink: 0; margin-top: 6px; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.partner {
  margin-top: 28px; padding: 20px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.partner__title { font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700; font-size: 20px; color: #fff; }
.partner__desc { font-size: 13px; color: #9FADC4; margin-top: 3px; }
.partner__link { font-weight: 700; font-size: 13px; color: var(--dark); background: var(--blue); padding: 10px 18px; border-radius: 9px; white-space: nowrap; }
.partner__link:hover { color: var(--dark); }
.techniques { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 20px; padding: 38px; }
.techniques h3 { font-weight: 700; font-size: 28px; color: var(--ink); margin-bottom: 20px; }
.techniques ul { list-style: none; }
.techniques li { display: flex; align-items: baseline; gap: 14px; font-size: 14px; color: var(--ink-2); padding: 12px 0; border-bottom: 1px solid var(--line); }
.techniques .qty { font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700; font-size: 19px; color: var(--red); min-width: 30px; }

/* ============ AXES ============ */
.axes { background: var(--bg-soft); padding: 84px 0; border-top: 1px solid var(--line); }
.axes__head { max-width: 720px; margin-bottom: 44px; }
.axes__head p { font-size: 16.5px; color: var(--muted); line-height: 1.6; margin-top: 16px; }
.cards-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.axe { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; border-top: 4px solid var(--c); }
.axe__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px; color: #fff; background: var(--c); }
.axe h3 { font-weight: 700; font-size: 24px; color: var(--ink); margin-bottom: 10px; }
.axe p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ============ CONTACT ============ */
.contact { position: relative; padding: 96px 0; overflow: hidden; background: var(--dark); }
.contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.contact__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,18,32,0.75), rgba(11,18,32,0.9)); }
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact h2 { font-weight: 700; font-size: clamp(38px,5.2vw,60px); line-height: 1; letter-spacing: -0.5px; color: #fff; }
.contact__lead { font-size: 18px; color: #C6D0E0; margin-top: 20px; line-height: 1.55; max-width: 440px; }
.contact__ctas { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.btn--mail { color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.24); }
.btn--mail:hover { background: rgba(255,255,255,0.18); color: #fff; }
.plaquette { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14.5px; color: #8FC4FF; margin-top: 22px; }
.plaquette:hover { color: #B9D8FF; }
.contact__card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 20px; padding: 34px; }
.coord { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.coord:last-child { border-bottom: none; }
.coord__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.08); color: #56A8FF; flex-shrink: 0; }
.coord__label { font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: #7C8AA5; font-weight: 700; }
.coord__value { font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 600; font-size: 20px; color: #fff; margin-top: 3px; }

/* --- formulaire de contact --- */
.cform { margin-top: 30px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cfield { display: block; margin-bottom: 14px; }
.cfield__label { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #7C8AA5; font-weight: 700; margin-bottom: 7px; }
.cfield__opt { text-transform: none; letter-spacing: 0; color: #5E6B80; font-weight: 500; }
.cfield input, .cfield textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: #fff;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 11px; padding: 13px 15px; transition: border-color .15s, background .15s;
}
.cfield textarea { resize: vertical; min-height: 96px; }
.cfield input::placeholder, .cfield textarea::placeholder { color: #6B7791; }
.cfield input:focus, .cfield textarea:focus {
  outline: none; border-color: var(--blue); background: rgba(255,255,255,0.09);
}
/* champ piège anti-spam : masqué à l'écran et aux lecteurs */
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-turnstile { margin: 6px 0 18px; }
.cform__submit { width: 100%; justify-content: center; }
.cform__submit[disabled] { opacity: 0.6; cursor: default; transform: none; }
.cform__status { margin-top: 14px; font-size: 14px; line-height: 1.5; min-height: 1px; }
.cform__status.is-ok { color: #6EE7A8; }
.cform__status.is-error { color: #FF9AA0; }

/* ============ FOOTER ============ */
.footer { background: var(--dark-2); color: #8492A8; padding: 44px 0; }
.footer__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer__brand { max-width: 560px; }
.footer__title { font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700; font-size: 24px; color: #fff; letter-spacing: 0.5px; }
.footer p { font-size: 13px; line-height: 1.6; margin-top: 12px; }
.footer__legal { color: #5E6B80; }
.footer__socials { display: flex; gap: 10px; }
.footer__social { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,0.06); color: #B9C4D6; transition: .15s; }
.footer__social:hover { background: var(--blue); color: #fff; }
.link-btn { border: none; background: none; padding: 0; font: inherit; color: #8FC4FF; cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: #B9D8FF; }

/* ============ MODALE MENTIONS LÉGALES ============ */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(7,12,22,0.72); backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal__box { position: relative; width: 100%; max-width: 760px; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,0.6); margin: auto; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 34px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.modal__head h2 { font-weight: 700; font-size: 30px; color: var(--ink); }
.modal__close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-soft); color: var(--muted); cursor: pointer; display: grid; place-items: center; flex-shrink: 0; transition: .15s; }
.modal__close:hover { background: var(--red); color: #fff; border-color: var(--red); }
.modal__body { padding: 30px 34px 40px; max-height: 66vh; overflow-y: auto; }
.legal-sec { margin-bottom: 26px; }
.legal-sec h3 { font-weight: 700; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.legal-sec p { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; margin-bottom: 10px; }
.legal-foot { font-size: 12.5px; color: #8492A8; line-height: 1.6; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  /* bascule en burger dès la tablette */
  .nav__link, .nav__sep { display: none; }
  .burger { display: flex; }
  .vocation__grid, .moyens__grid, .contact__grid { grid-template-columns: 1fr; gap: 32px; }
  .metiers__grid { grid-template-columns: repeat(2,1fr); }
  .metier:nth-child(2) { border-right: none; }
  .cards-2, .cards-3 { grid-template-columns: 1fr; }
  .plan-strip { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .metiers__grid { grid-template-columns: 1fr; }
  .metier { border-right: none; border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr; }
  .cform__row { grid-template-columns: 1fr; }
  .hero__overlay-inner { flex-direction: column; align-items: flex-start; gap: 18px; padding-bottom: 28px; }
  .header__logo img { height: 44px; }
  .nav__social { display: none; }
  .btn-phone { padding: 11px 14px; }
  .mobile-menu { padding-left: 18px; padding-right: 18px; }
}
