/* WAS TELECOM
   - Couleurs : modifier les variables ci-dessous.
   - Images : remplacer les fichiers dans /images en gardant les mêmes noms ou mettre à jour les src HTML.
   - Textes et coordonnées : modifier directement les blocs HTML des pages concernees.
   - Formulaires : aucune donnée n'est envoyée, la confirmation est gérée dans script.js.
*/
:root {
  --blue-dark: #072f4d;
  --blue-deep: #031d32;
  --blue-light: #75b8ef;
  --blue-soft: #eaf5ff;
  --ink: #102235;
  --muted: #607080;
  --line: #dde8f1;
  --bg: #f6f8fb;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(3, 29, 50, .10);
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 86px 0; }
.section.alt { background: var(--bg); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.eyebrow { color: var(--blue-dark); font-weight: 900; text-transform: uppercase; font-size: .78rem; letter-spacing: .12em; }
h1, h2, h3 { color: var(--blue-deep); line-height: 1.12; margin: 0 0 16px; }
h1 { font-size: clamp(2.35rem, 4vw, 4.7rem); max-width: 940px; }
h2 { font-size: clamp(2rem, 3vw, 3.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: var(--muted); }
.lead { font-size: 1.12rem; max-width: 760px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(7, 47, 77, .14);
  transition: box-shadow .25s ease, padding .25s ease;
}
.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-light));
}
.site-header.is-scrolled { box-shadow: 0 10px 28px rgba(3, 29, 50, .09); }
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: flex;
  align-items: center;
  width: 92px;
  height: 68px;
  padding: 8px;
  background: var(--white);
  border: 1px solid #e1edf6;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(3, 29, 50, .10);
}
.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.28);
}
.brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.nav-links { display: flex; align-items: center; gap: 2px; font-weight: 800; font-size: .9rem; text-transform: uppercase; letter-spacing: .035em; }
.nav-links a { color: #243a50; }
.nav-links a {
  padding: 31px 12px 28px;
  border-bottom: 3px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--blue-dark);
  border-bottom-color: var(--blue-light);
  background: linear-gradient(to bottom, transparent, rgba(117, 184, 239, .09));
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 0;
  color: var(--blue-deep);
}
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: currentColor; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 48px 13px 18px;
  border-radius: 0;
  border: 2px solid transparent;
  font-size: .86rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.btn::after {
  content: ">";
  position: absolute;
  right: 0;
  top: 0;
  width: 36px;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 900;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--blue-dark); color: var(--white); border-color: var(--blue-dark); }
.btn.primary::after { background: var(--blue-light); color: var(--blue-deep); }
.btn.secondary { background: var(--blue-light); color: var(--blue-deep); border-color: var(--blue-light); }
.btn.secondary::after { background: var(--blue-dark); color: var(--white); }
.btn.ghost { border-color: var(--blue-dark); color: var(--blue-deep); background: var(--white); }
.btn.ghost::after { background: var(--blue-dark); color: var(--white); }
.btn.whatsapp { background: #1f9f62; color: var(--white); }
.btn.whatsapp::after { background: #126b40; color: var(--white); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.92) 45%, rgba(234,245,255,.62) 100%), url("images/hero-technicien-fibre.png") center right / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(to top, var(--white), transparent);
}
.hero-content { position: relative; z-index: 1; padding: 70px 0 110px; }
.hero-card {
  max-width: 720px;
  background: transparent;
}
.hero .lead { font-size: 1.22rem; margin-bottom: 28px; color: #40566b; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.proof-item { padding: 11px 14px; border-left: 4px solid var(--blue-light); background: rgba(255,255,255,.9); font-weight: 900; color: var(--blue-deep); box-shadow: 0 10px 20px rgba(3,29,50,.06); }

.grid { display: grid; gap: 22px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white);
  border: 1px solid #d8e3ec;
  border-top: 4px solid var(--blue-dark);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover {
  border-color: #b8d8f1;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card .icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 0; background: var(--blue-dark); color: var(--white); font-weight: 900; margin-bottom: 18px; }
.card-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-weight: 900; color: var(--blue-dark); text-transform: uppercase; font-size: .82rem; letter-spacing: .06em; }
.card-link::after { content: ">"; color: var(--blue-light); }
.service-list { columns: 2; padding-left: 18px; color: var(--muted); }
.service-list li { margin-bottom: 8px; break-inside: avoid; }

.stats { background: var(--blue-deep); color: var(--white); }
.stats h2, .stats p { color: var(--white); }
.stat { padding: 28px; border: 1px solid rgba(255,255,255,.18); border-radius: 0; background: rgba(255,255,255,.06); border-top: 4px solid var(--blue-light); }
.stat strong { display: block; color: var(--blue-light); font-size: clamp(1.75rem, 3vw, 2.8rem); line-height: 1.05; margin-bottom: 12px; }
.stat span { color: rgba(255,255,255,.82); font-weight: 700; }
.reference-panel {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.18);
  border-left: 6px solid var(--blue-light);
  background: rgba(255,255,255,.08);
}
.reference-panel h3 {
  color: var(--white);
  margin-bottom: 8px;
}
.reference-panel p {
  margin: 0;
  color: rgba(255,255,255,.82);
}
.partner-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  min-width: min(100%, 520px);
}
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 94px;
  padding: 14px;
  background: var(--white);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 14px 28px rgba(0,0,0,.12);
}
.partner-logo img {
  display: block;
  width: 100%;
  height: 58px;
  object-fit: contain;
}
.partner-logo.orange img {
  width: 74px;
  height: 74px;
}
.partner-logo.spie img {
  height: 70px;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { padding-left: 34px; position: relative; color: #41566a; }
.check-list li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-light); position: absolute; left: 0; top: .2em; box-shadow: inset 0 0 0 5px var(--blue-soft); }
.feature-panel { background: var(--blue-soft); padding: 34px; border-radius: 0; border: 1px solid #cfe6f9; border-left: 6px solid var(--blue-dark); }

.project-card { overflow: hidden; padding: 0; }
.project-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s ease; }
.project-card:hover img { transform: scale(1.045); }
.project-card .body { padding: 22px; }
.tag { display: inline-flex; color: var(--white); background: var(--blue-dark); border-radius: 0; padding: 6px 10px; font-size: .78rem; font-weight: 900; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; }
.testimonial { border-left: 4px solid var(--blue-light); }
.cta-band { background: linear-gradient(110deg, var(--blue-deep), var(--blue-dark)); color: var(--white); padding: 54px; border-radius: 0; display: flex; justify-content: space-between; align-items: center; gap: 28px; border-left: 8px solid var(--blue-light); }
.cta-band h2, .cta-band p { color: var(--white); }

.page-hero {
  padding: 90px 0 70px;
  background: linear-gradient(110deg, var(--blue-deep), var(--blue-dark) 62%, #76b8ef);
  border-bottom: 6px solid var(--blue-light);
}
.page-hero h1, .page-hero p { color: var(--white); }
.breadcrumbs { color: rgba(255,255,255,.78); font-weight: 700; margin-bottom: 18px; }
.method { counter-reset: step; }
.method .card { position: relative; padding-left: 78px; }
.method .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-light);
  display: grid;
  place-items: center;
  color: var(--blue-deep);
  font-weight: 900;
}

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filter-btn { border: 2px solid var(--blue-dark); background: var(--white); color: var(--blue-deep); border-radius: 0; padding: 11px 16px; cursor: pointer; font-size: .82rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.filter-btn.active { background: var(--blue-dark); color: var(--white); border-color: var(--blue-dark); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field.full { grid-column: 1 / -1; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
label { display: block; font-weight: 800; color: var(--blue-deep); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cddce8;
  border-radius: 0;
  padding: 13px 14px;
  background: var(--white);
  color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.field-help {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}
.form-message {
  display: none;
  margin-top: 18px;
  padding: 16px 18px 16px 22px;
  border-left: 5px solid var(--blue-dark);
  background: #f3f8fc;
  color: var(--ink);
}
.form-message.is-loading,
.form-message.is-success,
.form-message.is-error {
  display: block;
}
.form-message strong {
  display: block;
  color: var(--blue-deep);
  font-size: .92rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 5px;
}
.form-message span {
  display: block;
  color: #506679;
  font-weight: 700;
}
.form-message.is-success { border-left-color: #1f9f62; background: #eefaf4; }
.form-message.is-error { border-left-color: #b42318; background: #fff3f1; }
.form-message.is-error strong { color: #8f1f15; }
.fake-upload { border: 1px dashed #8bbfe7; background: var(--blue-soft); padding: 18px; border-radius: 0; color: var(--muted); }
.map { width: 100%; min-height: 360px; border: 0; border-radius: 0; }

.site-footer { background: #061f35; color: rgba(255,255,255,.78); padding: 58px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h3, .site-footer strong { color: var(--white); }
.site-footer a { color: rgba(255,255,255,.78); display: block; margin-bottom: 8px; }
.site-footer a:hover { color: var(--blue-light); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img {
  width: 82px;
  height: 62px;
  padding: 8px;
  object-fit: contain;
  background: var(--white);
  border-radius: 12px;
  transform: scale(1.18);
}
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; font-size: .92rem; }

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: var(--blue-dark);
  color: var(--white);
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 84px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; border-radius: 6px; }
  .nav-links a:hover { background: var(--blue-soft); }
  .menu-toggle { display: inline-block; }
  .nav-actions .btn { display: none; }
  .grid.three, .grid.four, .split, .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { align-items: flex-start; flex-direction: column; }
  .reference-panel { grid-template-columns: 1fr; }
  .partner-logos { min-width: 0; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 62px 0; }
  .nav-wrap { min-height: 74px; }
  .brand { width: 82px; height: 60px; }
  .nav-links { top: 74px; left: 14px; right: 14px; }
  .hero { min-height: auto; background-position: center; }
  .hero-content { padding: 56px 0 90px; }
  .grid.three, .grid.four, .split, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .service-list { columns: 1; }
  .cta-band { padding: 30px; }
  .page-hero { padding: 70px 0 54px; }
  .reference-panel { padding: 24px; }
  .partner-logos { grid-template-columns: 1fr; }
}
