/* ATIL — maquette de démonstration, version haut de gamme
   Base : jetons de la fiche Refero « Metalab » (canevas noir, titre serif ultra-léger à très grande échelle, grotesque discret
   pour le texte, boutons pilule, annotations en marge façon éditorial, aucune couleur décorative), transformés : bleu nuit profond
   et bleu du logo ATIL comme seul accent, polices Newsreader + Manrope, coordonnées de Brignoles en marge, ligne de route
   pour la zone d'intervention. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/newsreader.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300; font-display: swap; src: url("fonts/newsreader-italic.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/manrope-var.woff2") format("woff2"); }

:root {
  /* Colors (Metalab : void / bone / charcoal → bleu nuit / os / ardoise ; accent unique : bleu du logo ATIL) */
  --color-void: #060a11;
  --color-ink: #0c1320;
  --color-slate: #141d2d;
  --color-bone: #f4f5f7;
  --color-chalk: #ffffff;
  --color-blue: #0069cf;
  --color-blue-soft: #5aa2ee;
  --color-text-soft: #aeb9c7;
  --color-text-dim: #7d8a9b;
  --color-ink-soft: #566170;
  --line-dark: rgba(255, 255, 255, 0.16);
  --line-light: rgba(12, 19, 32, 0.16);

  /* Typography */
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-caption: 0.75rem;
  --tracking-caption: 0.16em;
  --text-body: 1.0625rem;
  --text-lead: 1.1875rem;
  --text-heading: clamp(2.2rem, 7vw, 4rem);
  --text-display: clamp(2.7rem, 10.5vw, 6.4rem);
  --leading-display: 1.02;
  --tracking-display: -0.025em;

  /* Spacing & layout */
  --gutter: 20px;
  --section-gap: 96px;
  --page-max-width: 1280px;

  /* Radii : pilules et grands arrondis (Metalab) */
  --radius-pill: 999px;
  --radius-card: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-void); color: var(--color-chalk); font-family: var(--font-body); font-size: var(--text-body); font-weight: 400; line-height: 1.65; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--color-blue-soft); outline-offset: 4px; }
.wrap { width: 100%; max-width: var(--page-max-width); margin: 0 auto; padding: 0 var(--gutter); }

.demo-bar { background: var(--color-chalk); color: var(--color-ink); font-size: var(--text-caption); font-weight: 500; letter-spacing: 0.04em; text-align: center; padding: 8px var(--gutter); }

/* Annotations en marge */
.meta { font-size: var(--text-caption); font-weight: 600; letter-spacing: var(--tracking-caption); text-transform: uppercase; color: var(--color-text-dim); margin: 0; }
.meta b { color: var(--color-blue-soft); font-weight: 600; }
.on-light .meta { color: var(--color-ink-soft); }
.on-light .meta b { color: var(--color-blue); }

/* Boutons pilule */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 30px; border-radius: var(--radius-pill); font-family: var(--font-body); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.02em; text-decoration: none; border: 1px solid transparent; white-space: nowrap; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.btn-blue { background: var(--color-blue); color: var(--color-chalk); }
.btn-blue:hover { background: #1a7fe6; }
.btn-line { border-color: rgba(255, 255, 255, 0.4); color: var(--color-chalk); }
.btn-line:hover { background: var(--color-chalk); color: var(--color-void); border-color: var(--color-chalk); }
.btn-ink { background: var(--color-ink); color: var(--color-chalk); }
.btn-ink:hover { background: var(--color-blue); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(6, 10, 17, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-dark); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; position: relative; }
.brand .tile { width: 56px; height: 56px; border-radius: 50%; background: var(--color-chalk); display: grid; place-items: center; overflow: hidden; flex: none; }
.brand .tile img { width: 52px; height: 52px; }
.brand span.name { display: none; font-size: 0.8125rem; line-height: 1.3; color: var(--color-text-soft); font-weight: 500; max-width: 17ch; }
.head-links { display: none; gap: 26px; }
.head-links a { text-decoration: none; font-size: 0.875rem; font-weight: 500; color: var(--color-text-soft); padding: 8px 0; border-bottom: 1px solid transparent; }
.head-links a:hover { color: var(--color-chalk); border-bottom-color: var(--color-blue-soft); }
.bar .btn { min-height: 46px; padding: 0 22px; font-size: 0.875rem; }

/* Accueil */
.hero { padding: 56px 0 72px; background: radial-gradient(900px 520px at 85% 0%, rgba(0, 105, 207, 0.24), transparent 70%), var(--color-void); }
.hero-grid { display: grid; gap: 44px; }
.hero .meta { margin-bottom: 28px; }
.hero h1 { font-family: var(--font-display); font-weight: 300; font-size: var(--text-display); line-height: var(--leading-display); letter-spacing: var(--tracking-display); margin: 0 0 28px; }
.hero h1 em { font-style: italic; color: var(--color-blue-soft); }
.lead { font-size: var(--text-lead); max-width: 44ch; color: var(--color-text-soft); margin: 0 0 36px; font-weight: 300; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { position: relative; max-width: 480px; justify-self: start; width: 100%; margin: 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-card); }
.hero-photo figcaption { position: absolute; left: 18px; bottom: 18px; background: rgba(6, 10, 17, 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line-dark); border-radius: var(--radius-pill); padding: 8px 16px; font-size: var(--text-caption); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }

/* Chiffres */
.figures { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: var(--color-void); }
.figures ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.figures li { padding: 34px 0; border-bottom: 1px solid var(--line-dark); }
.figures li:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line-dark); }
.figures li:nth-child(even) { padding-left: 20px; }
.figures li:nth-last-child(-n+2) { border-bottom: 0; }
.figures b { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(2.8rem, 11vw, 4.6rem); line-height: 1; letter-spacing: var(--tracking-display); }
.figures span { display: block; font-size: 0.875rem; color: var(--color-text-soft); margin-top: 8px; }

/* Sections */
section, .band { padding-top: var(--section-gap); }
h2 { font-family: var(--font-display); font-weight: 300; font-size: var(--text-heading); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 18px; }
h2 em { font-style: italic; }
.section-head { max-width: 760px; margin: 0 0 44px; }
.section-head .meta { margin-bottom: 20px; }
.section-head p.sub { color: var(--color-text-soft); margin: 0; max-width: 58ch; font-weight: 300; font-size: var(--text-lead); }
.on-light { background: var(--color-bone); color: var(--color-ink); }
.on-light .section-head p.sub { color: var(--color-ink-soft); }
.pad-b { padding-bottom: var(--section-gap); }

/* Services : liste éditoriale */
.services-grid { display: grid; gap: 48px; }
.service-photo { margin: 0; }
.service-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); }
.service-photo figcaption { font-size: 0.8125rem; color: var(--color-ink-soft); margin-top: 12px; }
.services-list { list-style: none; margin: 0; padding: 0; }
.services-list > li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 32px 0; border-top: 1px solid var(--line-light); }
.services-list > li:last-child { border-bottom: 1px solid var(--line-light); }
.services-list .n { font-size: var(--text-caption); font-weight: 700; letter-spacing: 0.12em; color: var(--color-blue); padding-top: 12px; }
.services-list h3 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 10px; }
.services-list p { margin: 0; color: var(--color-ink-soft); max-width: 52ch; }
.tags { grid-column: 2; list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { display: block; padding: 6px 14px; border: 1px solid var(--line-light); border-radius: var(--radius-pill); font-size: 0.8125rem; font-weight: 500; color: var(--color-ink); }

/* Matériel */
.materiel-photo { margin: 0 0 44px; }
.materiel-photo img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-card); }
.fleet { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: f; }
.fleet li { padding: 18px 0; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: baseline; color: var(--color-text-soft); }
.fleet li::before { content: counter(f, decimal-leading-zero); counter-increment: f; font-size: var(--text-caption); font-weight: 700; letter-spacing: 0.1em; color: var(--color-blue-soft); }
.fleet li:last-child { border-bottom: 1px solid var(--line-dark); }

/* Panorama */
.panorama { margin: var(--section-gap) 0 0; position: relative; }
.panorama img { width: 100%; height: 280px; object-fit: cover; object-position: 62% 50%; }
.panorama figcaption { position: absolute; left: var(--gutter); bottom: 18px; background: rgba(6, 10, 17, 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line-dark); border-radius: var(--radius-pill); padding: 8px 16px; }

/* Zone : ligne de route */
.route { margin: 8px 0 28px; }
.route ol { list-style: none; margin: 0; padding: 0; position: relative; }
.route ol::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 1px; background: var(--line-light); }
.route li { position: relative; padding: 0 0 28px 40px; }
.route li:last-child { padding-bottom: 0; }
.route li::before { content: ""; position: absolute; left: 0; top: 7px; width: 15px; height: 15px; border-radius: 50%; background: var(--color-bone); border: 1px solid var(--color-ink-soft); }
.route li.hq::before { background: var(--color-blue); border-color: var(--color-blue); box-shadow: 0 0 0 6px rgba(0, 105, 207, 0.18); }
.route b { font-family: var(--font-display); font-weight: 300; font-size: 1.9rem; line-height: 1.15; letter-spacing: -0.01em; display: block; }
.route small { display: block; font-size: 0.8125rem; color: var(--color-ink-soft); }
.zone-note { color: var(--color-ink-soft); max-width: 54ch; margin: 0; }
.zone-grid { display: grid; gap: 40px; }

/* Engagement */
.co2 { display: grid; gap: 0; }
.co2 article { padding: 28px 0; border-top: 1px solid var(--line-dark); }
.co2 article:last-child { border-bottom: 1px solid var(--line-dark); }
.co2 h3 { font-family: var(--font-display); font-weight: 300; font-size: 1.7rem; line-height: 1.15; margin: 0 0 8px; }
.co2 p { margin: 0; color: var(--color-text-soft); max-width: 40ch; }

/* Histoire */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; gap: 4px; padding: 26px 0; border-top: 1px solid var(--line-light); }
.timeline li:last-child { border-bottom: 1px solid var(--line-light); }
.timeline b { font-family: var(--font-display); font-weight: 300; font-size: 2.1rem; line-height: 1; letter-spacing: -0.015em; color: var(--color-blue); }
.timeline p { margin: 0; color: var(--color-ink); max-width: 62ch; }

/* Devis */
.devis { margin-top: var(--section-gap); padding: var(--section-gap) 0; background: radial-gradient(800px 420px at 12% 100%, rgba(0, 105, 207, 0.34), transparent 70%), var(--color-ink); border-top: 1px solid var(--line-dark); }
.devis .grid2 { display: grid; gap: 40px; }
.needs { list-style: none; margin: 0 0 32px; padding: 0; counter-reset: n; }
.needs li { counter-increment: n; display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line-dark); }
.needs li:last-child { border-bottom: 1px solid var(--line-dark); }
.needs li::before { content: counter(n, decimal-leading-zero); font-size: var(--text-caption); font-weight: 700; letter-spacing: 0.1em; color: var(--color-blue-soft); }
.devis p.small { color: var(--color-text-dim); font-size: 0.875rem; margin: 16px 0 0; }
.devis p.intro { color: var(--color-text-soft); margin: 0; max-width: 52ch; font-weight: 300; font-size: var(--text-lead); }

/* Contact */
.contact { padding-top: var(--section-gap); }
.contact .grid2 { display: grid; gap: 40px; }
address { font-style: normal; font-family: var(--font-display); font-weight: 300; font-size: 1.7rem; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 22px; }
.contact-lines { display: grid; gap: 6px; margin: 0 0 28px; }
.contact-lines a { font-family: var(--font-display); font-weight: 300; font-size: 2.2rem; letter-spacing: -0.02em; text-decoration: none; width: fit-content; line-height: 1.15; border-bottom: 1px solid var(--color-blue); position: relative; }
.contact-lines a.mail { font-family: var(--font-body); font-size: 1.05rem; font-weight: 500; letter-spacing: 0; }
.contact p.about { color: var(--color-text-soft); max-width: 50ch; margin: 0; font-weight: 300; }

/* Pied de page */
.site-footer { background: var(--color-void); border-top: 1px solid var(--line-dark); padding: 44px 0 120px; margin-top: var(--section-gap); }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer .tile { width: 72px; height: 72px; border-radius: 50%; background: var(--color-chalk); display: grid; place-items: center; }
.site-footer .tile img { width: 66px; height: 66px; }
.site-footer p { margin: 0; font-size: 0.9375rem; color: var(--color-text-soft); }
.site-footer .demo-note { font-size: 0.8125rem; color: var(--color-text-dim); max-width: 74ch; }

/* Barre d'action mobile */
.callbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; gap: 8px; padding-bottom: env(safe-area-inset-bottom); }
.callbar a { flex: 1; text-align: center; padding: 16px 8px; text-decoration: none; font-weight: 600; font-size: 0.9375rem; border-radius: var(--radius-pill); }
.callbar a:first-child { background: var(--color-blue); color: var(--color-chalk); }
.callbar a:last-child { background: rgba(255, 255, 255, 0.94); color: var(--color-ink); }

/* Apparition douce (si JavaScript actif) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .figures ul { grid-template-columns: repeat(4, 1fr); }
  .figures li, .figures li:nth-child(odd), .figures li:nth-child(even) { padding: 40px 0 40px 28px; border-bottom: 0; border-right: 0; border-left: 1px solid var(--line-dark); }
  .figures li:first-child { border-left: 0; padding-left: 0; }
  .fleet { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .fleet li:nth-last-child(2) { border-bottom: 1px solid var(--line-dark); }
  .co2 { grid-template-columns: repeat(3, 1fr); column-gap: 40px; }
  .co2 article, .co2 article:last-child { border-bottom: 0; }
  .panorama img { height: 380px; }
  .timeline li { grid-template-columns: 200px 1fr; align-items: baseline; gap: 24px; }
}
@media (min-width: 960px) {
  :root { --gutter: 48px; --section-gap: 132px; }
  .callbar { display: none; }
  .brand span.name { display: block; }
  .head-links { display: flex; }
  .bar { min-height: 88px; }
  html { scroll-padding-top: 100px; }
  .hero { padding: 92px 0 112px; }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; align-items: end; gap: 80px; }
  .hero-photo { justify-self: end; max-width: 470px; }
  .services-grid { grid-template-columns: 0.8fr 1.2fr; gap: 96px; align-items: start; }
  .services-grid .service-photo { position: sticky; top: 130px; }
  .materiel-photo img { aspect-ratio: 21 / 9; }
  .zone-grid { grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
  .devis .grid2 { grid-template-columns: 1fr 1fr; gap: 110px; align-items: start; }
  .contact .grid2 { grid-template-columns: 1fr 1fr; gap: 110px; }
  .panorama img { height: 520px; }
  .site-footer { padding-bottom: 52px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Zones tactiles agrandies */
.contact-lines a::before, .brand::before { content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 44px; transform: translateY(-50%); }
