/* Anemos Technologies — feuille de style du site 2026
   Concept : « deux portes ». Les toitures vivent en lumière (blanc de toiture, ciel),
   les drones en bandes nuit (le bleu-noir des vidéos techniques Anemos, un orange signal).
   Détail propre au sujet : la « plaque signalétique » (caractéristiques en chiffres et unités). */

@font-face { font-family: "Barlow"; src: url("../fonts/barlow-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Couleurs */
  --paper: #f4f6f7;        /* blanc de toiture, légèrement froid */
  --paper-2: #e7ecef;
  --ink: #132130;
  --muted: #54636f;
  --line: #ccd6dc;
  --blue: #0095d6;         /* bleu du logo Anemos */
  --blue-deep: #00679f;    /* liens et textes sur fond clair */
  --night: #0c1722;        /* bandes « drones » */
  --night-2: #13222f;
  --night-line: #26384a;
  --night-ink: #e4ebf0;
  --night-muted: #97a8b6;
  --signal: #e2913f;       /* orange des vidéos techniques */
  --teal: #72bccd;
  /* Typographie */
  --display: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --text: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --step-4: clamp(2.4rem, 1.5rem + 3.8vw, 4.25rem);
  /* Mise en page */
  --wrap: 75rem;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.2; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 16px; }

/* Bandes et conteneur */
.band { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.band--tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.band--alt { background: var(--paper-2); }
.band--night { background: var(--night); color: var(--night-ink); }
.band--night a { color: var(--teal); }
.band--night a:hover { color: var(--night-ink); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.stack { display: grid; gap: 1.25rem; }
.stack-lg { display: grid; gap: 2.5rem; }
.lead { font-size: var(--step-1); line-height: 1.45; max-width: 40rem; }
.prose { max-width: 40rem; display: grid; gap: 1rem; }
.muted { color: var(--muted); }
.band--night .muted { color: var(--night-muted); }

/* Étiquette de section (encode la section réelle) */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.band--night .eyebrow { color: var(--signal); }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 500;
  padding: 0.5rem 0.75rem; border-radius: 4px;
}
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--blue-deep); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.nav .lang { font-family: var(--mono); font-size: 0.8rem; border: 1px solid var(--line); margin-left: 0.5rem; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: 4px; }
.menu summary::-webkit-details-marker { display: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu[open] .menu-panel {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 14rem;
    background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
    display: grid; padding: 0.5rem; box-shadow: 0 12px 30px rgb(19 33 48 / 0.12);
  }
  .menu-panel a { color: var(--ink); text-decoration: none; padding: 0.65rem 0.75rem; font-weight: 500; }
}

/* Accueil : deux portes */
.doors { display: grid; grid-template-columns: 1fr 1fr; }
.door {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(26rem, 60vh, 38rem); overflow: hidden; text-decoration: none; isolation: isolate;
}
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s ease; }
.door::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.door--roof { color: var(--ink); }
.door--roof::after { background: linear-gradient(180deg, rgb(244 246 247 / 0) 10%, rgb(244 246 247 / 0.86) 45%, rgb(244 246 247 / 0.96) 70%); }
.door--drone { color: var(--night-ink); background: var(--night); }
.door--drone::after { background: linear-gradient(180deg, rgb(12 23 34 / 0) 10%, rgb(12 23 34 / 0.8) 45%, rgb(12 23 34 / 0.95) 70%); }
.door:hover img { transform: scale(1.03); }
.door-body { padding: 2rem clamp(1.25rem, 3vw, 3rem); display: grid; gap: 0.75rem; max-width: 34rem; }
.door .eyebrow { color: inherit; opacity: 0.8; }
.door h2 { font-size: var(--step-3); }
.door p { font-size: var(--step-0); }
.door .cta { justify-self: start; }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } .door { min-height: 24rem; } }

.thesis { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
@media (max-width: 860px) { .thesis { grid-template-columns: 1fr; } }

/* Boutons */
.cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; text-decoration: none;
  padding: 0.75rem 1.1rem; border-radius: 4px;
  background: var(--ink); color: var(--paper);
}
.cta:hover { background: var(--blue-deep); color: var(--paper); }
.cta--light { background: var(--paper); color: var(--ink); }
.cta--light:hover { background: var(--teal); color: var(--night); }
.cta--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.cta--ghost:hover { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.band--night .cta { background: var(--night-ink); color: var(--night); }
.band--night .cta:hover { background: var(--teal); color: var(--night); }
.band--night .cta--ghost { background: transparent; color: var(--night-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Héros de section */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero .stack { align-content: center; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.hero-media { margin: 0; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.full-media { margin: 0; }
.full-media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 0.5rem; }
.band--night figcaption { color: var(--night-muted); }

/* Plaque signalétique */
.plate {
  border: 1px solid var(--line); border-radius: 3px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  background: var(--paper);
}
.plate > div { padding: 1rem 1.1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; display: grid; gap: 0.25rem; align-content: start; }
.plate dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.plate dd { margin: 0; font-size: var(--step-2); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plate dd small { font-size: var(--step--1); font-weight: 500; color: var(--muted); display: block; margin-top: 0.2rem; line-height: 1.3; }
.plate-note { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-top: 0.6rem; }
.band--night .plate { background: var(--night-2); border-color: var(--night-line); }
.band--night .plate > div { border-color: var(--night-line); }
.band--night .plate dt, .band--night .plate dd small, .band--night .plate-note { color: var(--night-muted); }
.band--night .plate dd { color: var(--night-ink); }
.band--alt .plate { background: var(--paper); }

/* Grilles de contenu */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.offer { display: grid; gap: 0.6rem; padding-top: 1.1rem; border-top: 2px solid var(--ink); align-content: start; }
.band--night .offer { border-top-color: var(--night-ink); }
.offer .tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-deep); }
.band--night .offer .tag { color: var(--signal); }
.offer .price { font-family: var(--mono); font-size: 0.85rem; color: var(--ink); background: var(--paper-2); padding: 0.4rem 0.6rem; border-radius: 3px; justify-self: start; }
.band--alt .offer .price { background: var(--paper); }
.offer ul, .prose ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.split--media { align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Méthode (séquence réelle) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 0.4rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--mono); font-size: 0.85rem; color: var(--blue-deep); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Encadré « limites » */
.limits { border: 1px solid var(--ink); padding: 1.5rem; display: grid; gap: 0.75rem; max-width: 46rem; }
.limits ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; }

/* Références */
.refs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.refs li { padding: 1.1rem 1.25rem 1.1rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.2rem; }
.refs strong { font-size: var(--step-1); font-weight: 600; }
.refs span { color: var(--muted); font-size: var(--step--1); }

/* Comparaison (chiffres à l'échelle) */
.compare { display: grid; gap: 0.9rem; max-width: 40rem; }
.bar { display: grid; grid-template-columns: 11rem minmax(0, 1fr) 4.5rem; gap: 0.75rem; align-items: center; font-variant-numeric: tabular-nums; }
.bar span:first-child { font-size: var(--step--1); }
.bar .track { display: block; height: 0.7rem; background: var(--night-2); border-radius: 2px; overflow: hidden; }
.bar .fill { display: block; height: 100%; background: var(--teal); }
.bar .fill--hot { background: var(--signal); }
.bar span:last-child { font-family: var(--mono); font-size: 0.85rem; text-align: right; }
@media (max-width: 520px) { .bar { grid-template-columns: 1fr 4.5rem; } .bar .track { grid-column: 1 / -1; grid-row: 2; } }

/* Bloc ECDI */
.ecdi { display: grid; gap: 1rem; padding: 1.5rem; background: #ffffff; color: #1c2a36; border-radius: 3px; }
.ecdi-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; }
.ecdi-logos img { height: 64px; width: auto; }
.ecdi p { font-size: var(--step--1); max-width: 52rem; }

/* Contact */
.contact-lines { display: grid; gap: 0.4rem; font-size: var(--step-1); }
.contact-lines a { text-decoration: none; font-weight: 600; }
.contact-lines .mono { font-family: var(--mono); font-size: 0.95rem; }

/* Pied de page */
.site-footer { background: var(--ink); color: #c9d4dc; padding-block: 3rem 2rem; font-size: var(--step--1); }
.site-footer a { color: #ffffff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { font-size: 0.78rem; font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #8fa3b3; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer-logo { height: 52px; width: auto; background: #ffffff; padding: 6px 10px; border-radius: 3px; margin-bottom: 1rem; }
.footer-legal { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid #2c3d4d; color: #8fa3b3; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.plain-media { margin: 0; }
.plain-media img, .plain-media video { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 2px; }
.plain-media video { aspect-ratio: 16 / 9; background: var(--night); cursor: pointer; }

/* Formulaire de contact */
.form { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label, .field legend { font-size: var(--step--1); font-weight: 600; }
.field .req { color: var(--blue-deep); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 3px; padding: 0.65rem 0.75rem; width: 100%; max-width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem; align-items: start; font-size: var(--step--1); color: var(--muted); }
.check input { margin-top: 0.2rem; width: 1.05rem; height: 1.05rem; }
.captcha { display: grid; grid-template-columns: minmax(0, 1fr) 7rem; gap: 0.75rem; align-items: end; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .cta { border: 0; cursor: pointer; font: inherit; font-weight: 600; justify-self: start; }
.form .cta[disabled] { opacity: 0.55; cursor: wait; }
.form-status { font-size: var(--step--1); margin: 0; }
.form-status.ok { color: #1d6b3a; font-weight: 600; }
.form-status.err { color: #a33a1c; }
.hints { display: grid; gap: 1.5rem; }
.hints .offer ul { font-size: var(--step--1); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; max-width: 52rem; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 1rem 0; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--blue-deep); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 2px; }
.faq details p { margin: 0 0 1.1rem; max-width: 65ch; }

/* ---------- Calendrier ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
.timeline li { display: grid; gap: 0.35rem; align-content: start; padding-top: 0.9rem; border-top: 2px solid var(--line); }
.timeline li.done { border-top-color: var(--blue); }
.timeline .when { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-deep); }
.timeline h3 { font-size: 1.02rem; margin: 0; }
.timeline p { margin: 0; font-size: 0.95rem; }
.timeline .state { justify-self: start; font-family: var(--mono); font-size: 0.72rem; padding: 0.15rem 0.45rem; border-radius: 2px; background: var(--paper-2); color: var(--ink); }
.timeline li.done .state { background: var(--blue-deep); color: #fff; }
@media (max-width: 960px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }
.full-media video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--night); border-radius: 2px; cursor: pointer; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.gallery figure { margin: 0; display: grid; gap: 0.4rem; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.gallery figcaption { font-size: 0.85rem; color: var(--muted, #5b6b78); }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; } }
.timeline--history { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 960px) { .timeline--history { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 520px) { .timeline--history { grid-template-columns: 1fr 1fr; } }
.offer .cta { justify-self: start; margin-top: 0.4rem; }
.press li { gap: 0.3rem; align-content: start; }
.press a { font-weight: 600; text-decoration-thickness: 1px; }
.hints .offer h2.h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }

/* ---------- Schéma rotor et tableau comparatif ---------- */
.diagram { margin: 0; display: grid; gap: 0.5rem; justify-items: center; }
.rotor-svg { width: 100%; max-width: 420px; height: auto; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--step--1); background: var(--paper); }
.cmp-table th, .cmp-table td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp-table thead th { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
.cmp-table tbody th { font-weight: 600; color: var(--ink); }
.cmp-table td:nth-child(2), .cmp-table thead th:nth-child(2) { background: color-mix(in srgb, var(--blue) 10%, var(--paper)); font-weight: 600; color: var(--ink); }

/* ANDURANCE en bref */
.facts { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; }
.facts > div { background: var(--paper); padding: 1.1rem 1.2rem; display: grid; gap: 0.4rem; align-content: start; min-width: 0; }
.facts dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; line-height: 1.5; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .facts { grid-template-columns: repeat(3, 1fr); } }
