/* ==========================================================================
   Drone Dream · feuille de style
   Direction : nuit étoilée, sobre et aérée (d'après le dossier Les Ulis).
   Accents : les 4 couleurs du logo (orange, bleu, vert, magenta), l'orange
   étant l'accent principal. Seuls les mots « les étoiles » du titre
   principal gardent le dégradé cyan → violet → rose d'origine.
   Les rubriques alternent deux tons de nuit ; le ciel étoilé n'apparaît
   qu'en clôture (devis), le hero ayant une vidéo de fond.
   ========================================================================== */

:root {
  --bg: #070817;       /* ton principal */
  --bg-alt: #0f1129;   /* rubriques alternées */
  --bg-deep: #04050d;  /* pied de page */

  --text: #f3f2f8;     /* titres, éléments actifs */
  --text-2: #b3b1c7;   /* textes courants */
  --text-3: #8a88a2;   /* libellés, seconde moitié des titres */
  --text-4: #5f5e78;   /* éléments inactifs */

  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --surface: rgba(255, 255, 255, .025);
  --surface-2: rgba(255, 255, 255, .045);

  /* Couleurs exactes du logo, dans l'ordre de l'icône (haut, droite, bas, gauche) */
  --orange: #ffb533;
  --blue: #0097cc;
  --green: #a0cc4c;
  --magenta: #dd1965;
  /* Dégradé cyan → violet → rose, réservé aux mots « les étoiles » du titre principal
     (volontairement différent des couleurs du logo : choix du client) */
  --grad: linear-gradient(90deg, #7fd6f5 0%, #8d9cf4 38%, #b07ff0 68%, #e070c4 100%);

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(80px, 9vw, 128px);

  --stars: url("../img/stars-large.svg") 0 0 / 560px 560px, url("../img/stars-small.svg") 0 0 / 320px 320px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { background: var(--bg); }

body.menu-open,
body.modal-open { overflow: hidden; }

img, video, canvas, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

input, select, textarea, button { font-family: inherit; }

::selection { background: var(--orange); color: var(--bg); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

[hidden] { display: none !important; }

.page { min-height: 100vh; overflow: hidden; }

.container {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--bg);
  font-weight: 500;
}
.skip-link:focus { top: 16px; }

/* Affichage desktop / mobile (bascule à 720px) */
@media (max-width: 719.98px) {
  .desk-only { display: none !important; }
}
@media (min-width: 720px) {
  .mob-only { display: none !important; }
}

/* ---------- Typographie commune ---------- */

.eyebrow {
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--orange);
}

.h2 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--text);
  text-wrap: balance;
}
/* La partie grise passe à la ligne d'un bloc plutôt que d'être coupée */
.h2 .soft { display: inline-block; color: var(--text-3); }

.lead {
  max-width: 520px;
  margin: 22px 0 0;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-2);
}
.lead a {
  white-space: nowrap;
  color: var(--text);
  font-weight: 400;
  border-bottom: 1px solid var(--line-2);
  transition: border-color .2s;
}
.lead a:hover { border-color: var(--text); }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Chaque rubrique est un bloc ; une sur deux prend le ton alterné */
.section { padding: var(--section-y) 0; }
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { max-width: 640px; margin-bottom: clamp(48px, 6vw, 80px); }

/* ---------- Vidéos YouTube en fond (hero, bandeau « woaw. ») ---------- */

/* Apparaît en fondu par-dessus l'image fixe quand main.js l'y autorise (durée du
   fondu = FADE_MS dans main.js) ; non cliquable. L'iframe est dimensionnée par
   main.js pour couvrir tout le bloc. */
.bg-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.bg-video.is-playing { opacity: 1; }
.bg-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 0;
  transform: translate(-50%, -50%);
}

/* ---------- Boutons et liens ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-primary { background: #fff; color: var(--bg); }
.btn-primary:hover { background: #e6e4f2; }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .4); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ==========================================================================
   En-tête
   ========================================================================== */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding-top: 28px;
}

.header-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; }
/* Logo complet (icône + lettrage) : assets/img/logo.png, fond transparent */
.brand-logo { width: auto; height: 44px; flex-shrink: 0; }
.footer .brand-logo { height: 52px; }
@media (max-width: 719.98px) {
  .brand-logo { height: 40px; }
  .footer .brand-logo { height: 46px; }
}

.nav-links { display: flex; gap: 40px; font-size: 14px; }
.nav-links a { color: var(--text-2); transition: color .2s; }
.nav-links a:hover { color: var(--text); }

.burger {
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.burger span {
  width: 22px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .25s;
}
.burger[aria-expanded="true"] { gap: 0; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 19;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px var(--gutter) 40px;
  background: rgba(7, 8, 23, .97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .num {
  width: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--orange);
}
.mobile-menu .label {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.025em;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
  /* Ciel étoilé : visible seulement si l'image et la vidéo ne chargent pas */
  background: var(--stars);
}

/* Image fixe sous la vidéo de fond (voir .bg-video), agrandie de 15 % comme
   la vidéo pour que les deux aient exactement le même cadrage */
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
}

/* Voile sombre : texte lisible à gauche, vidéo bien visible à droite */
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 23, .55) 0%, rgba(7, 8, 23, 0) 22%, rgba(7, 8, 23, 0) 78%, rgba(7, 8, 23, .6) 100%),
    linear-gradient(90deg, rgba(7, 8, 23, .88) 0%, rgba(7, 8, 23, .62) 42%, rgba(7, 8, 23, .15) 100%);
}

.hero-inner { position: relative; }
.hero-content { max-width: 580px; }

.hero h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 470px;
  margin: 30px 0 0;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-2);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: 44px;
}

/* Sous 1024px : texte en bas, la vidéo reste visible au-dessus */
@media (max-width: 1023.98px) {
  .hero { align-items: flex-end; padding: 340px 0 72px; }
  .hero-shade {
    background: linear-gradient(180deg, rgba(7, 8, 23, .5) 0%, rgba(7, 8, 23, .1) 25%, rgba(7, 8, 23, .55) 48%, rgba(7, 8, 23, .92) 72%, rgba(7, 8, 23, .96) 100%);
  }
}
@media (max-width: 719.98px) {
  .hero { padding-top: 240px; padding-bottom: 56px; }   /* le titre, le texte et les 3 liens tiennent dans le premier écran */
  .hero-lead { font-size: 16.5px; }
}

/* ==========================================================================
   Intro + chiffres
   ========================================================================== */

.statement {
  max-width: 940px;
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -.015em;
  color: var(--text-3);
  text-wrap: pretty;
}
.statement strong { font-weight: 500; color: var(--text); }

.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: clamp(64px, 8vw, 104px) 0 0;
  padding: 0;
  list-style: none;
}
.figures li { --c: var(--text); padding-top: 28px; border-top: 2px solid var(--c); }
.figures strong {
  display: block;
  font-weight: 600;
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1;
  letter-spacing: -.03em;
  white-space: nowrap;
  color: var(--c);
}
/* Une couleur du logo par chiffre */
.figures li:nth-child(1) { --c: var(--orange); }
.figures li:nth-child(2) { --c: var(--blue); }
.figures li:nth-child(3) { --c: var(--magenta); }
.figures span {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
}

@media (max-width: 719.98px) {
  .figures { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* ==========================================================================
   Pour qui on s'envole
   ========================================================================== */

/* Quatre cartes (comme les pages « Storyboard » du dossier) :
   4 colonnes dès 1200px, 2 en dessous, carrousel sur mobile */
.aud-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1199.98px) {
  .aud-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.aud-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .3s;
}
.aud-card:hover { border-color: var(--line-2); }

.aud-media { overflow: hidden; aspect-ratio: 4 / 5; background: #0c0d20; }
.aud-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.8);
  transition: transform .8s ease;
}
.aud-card:hover .aud-media img { transform: scale(1.04); }

.aud-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 28px;
}

.aud-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
}
.aud-label span { margin-right: 6px; color: var(--c); }

.aud-card h3 { margin: 0 0 10px; font-size: 21px; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }

.aud-text { margin: 0; font-size: 14.5px; font-weight: 300; line-height: 1.65; color: var(--text-2); }

.aud-ideas {
  margin: 16px 0 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-3);
}

/* Bas de carte : bandeau plein aux couleurs du logo (orange, bleu, vert, magenta),
   toujours aligné en bas ; texte foncé, sauf sur le magenta où le blanc est plus lisible */
.aud-card:nth-child(1) { --c: var(--orange); }
.aud-card:nth-child(2) { --c: var(--blue); }
.aud-card:nth-child(3) { --c: var(--green); }
.aud-card:nth-child(4) { --c: var(--magenta); }

.aud-card .link-arrow {
  justify-content: space-between;
  margin: auto -24px -28px;
  padding: 18px 20px 18px 24px;
  background: var(--c);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: filter .2s;
}
.aud-card .link-arrow:hover { filter: brightness(1.08); }
.aud-card:nth-child(4) .link-arrow { color: #fff; }

@media (max-width: 1199.98px) {
  .aud-media { aspect-ratio: 3 / 2; }
}
@media (max-width: 719.98px) {
  .aud-cards {
    display: flex;
    gap: 12px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .aud-cards::-webkit-scrollbar { display: none; }
  .aud-card { flex: 0 0 82%; scroll-snap-align: start; }
  .aud-media { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Bandeau « woaw. »
   ========================================================================== */

.woaw {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--gutter);
  overflow: hidden;
}
/* Image d'attente et vidéo, légèrement adoucies pour rester dans l'ambiance nuit */
.woaw > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);   /* même cadrage que la vidéo */
}
.woaw > img,
.woaw-video { filter: saturate(.7) brightness(.9); }
.woaw-shade {
  position: absolute;
  inset: 0;
  /* Bords nets : le bandeau se lit comme une rubrique à part */
  background: linear-gradient(180deg, rgba(7, 8, 23, .7) 0%, rgba(7, 8, 23, .45) 35%, rgba(7, 8, 23, .45) 65%, rgba(7, 8, 23, .7) 100%);
}
.woaw-inner { position: relative; }
.woaw-word {
  font-weight: 700;
  font-size: clamp(80px, 15vw, 220px);
  line-height: .9;
  letter-spacing: -.05em;
}
.woaw p { margin: 22px 0 0; font-size: 17px; font-weight: 300; color: var(--text-2); }

/* ==========================================================================
   Sécurité
   ========================================================================== */

/* Deux colonnes : titre à gauche, les 3 garanties en liste à droite */
.safety-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.safety-grid .section-head { margin-bottom: 0; }
@media (max-width: 899.98px) {
  .safety-grid { grid-template-columns: minmax(0, 1fr); }
}

.safety-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.safety-list li {
  --c: var(--orange);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
/* Une couleur du logo par garantie, comme les chiffres clés */
.safety-list li:nth-child(1) { --c: var(--orange); }
.safety-list li:nth-child(2) { --c: var(--blue); }
.safety-list li:nth-child(3) { --c: var(--green); }
.safety-num {
  padding-top: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--c);
}
.safety-list h3 { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--c); }
.safety-list p { margin: 0; font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--text-2); }

/* Frise du dossier : une ligne, des points lumineux, aux 4 couleurs du logo */
.process { margin-top: clamp(80px, 10vw, 128px); }
.process-label {
  margin: 0 0 36px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-3);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline li { --c: var(--magenta); position: relative; padding-top: 44px; }
.timeline li:nth-child(1) { --c: var(--orange); }
.timeline li:nth-child(2) { --c: var(--blue); }
.timeline li:nth-child(3) { --c: var(--green); }

/* Segment de ligne jusqu'au point suivant, dans la couleur de l'étape */
.timeline li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: calc(100% + 32px);
  height: 1.5px;
  background: var(--c);
  opacity: .55;
}
.timeline li:last-child::before { width: 100%; }

.timeline .dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 16px 2px color-mix(in srgb, var(--c) 55%, transparent);
}
/* Le jour J : point plus grand */
.timeline li:last-child .dot { top: -4px; width: 25px; height: 25px; }

.step-n { font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--c); }
.timeline h3 { margin: 10px 0 8px; font-size: 19px; font-weight: 600; }
.timeline li:last-child h3 { color: var(--c); }
.timeline p { margin: 0; font-size: 14.5px; font-weight: 300; line-height: 1.7; color: var(--text-2); }

/* Sous 900px : frise verticale */
@media (max-width: 899.98px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .timeline li { padding: 0 0 36px 44px; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before { top: 8px; left: 8px; width: 1.5px; height: 100%; }
  .timeline li:last-child::before { display: none; }
  .timeline .dot { top: 0; left: 0; }
  .timeline li:last-child .dot { top: -4px; left: -4px; }
  .timeline h3 { margin-top: 8px; }
}

/* ==========================================================================
   Offres
   ========================================================================== */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 999.98px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; gap: 28px; }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 36px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.plan.is-featured {
  border-color: rgba(255, 181, 51, .55);
  box-shadow: 0 30px 80px -40px rgba(255, 181, 51, .3);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--orange);
  color: #17130a;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.plan-name { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.plan-desc { margin: 8px 0 0; font-size: 14.5px; font-weight: 300; line-height: 1.6; color: var(--text-2); }

.plan-price-block { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.plan-pre {
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
}
.plan-price {
  margin-top: 10px;
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
}
.plan.is-featured .plan-price { color: var(--orange); }
.plan-drones { margin-top: 12px; font-size: 14px; color: var(--text-2); }

.plan-cta { margin: 32px 0; }

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plan-features li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-2);
}
.plan-features li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: .6em;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--text-4);
}
.plan.is-featured .plan-features li::before { background: var(--orange); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.faq-grid .section-head { margin-bottom: 0; }
@media (max-width: 899.98px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
}

.faq-list { border-top: 1px solid var(--line); }
.faq-item { --c: var(--orange); border-bottom: 1px solid var(--line); transition: border-color .3s; }
/* Les quatre couleurs du logo en alternance ; la question ouverte prend la sienne */
.faq-item:nth-child(4n + 2) { --c: var(--blue); }
.faq-item:nth-child(4n + 3) { --c: var(--green); }
.faq-item:nth-child(4n) { --c: var(--magenta); }
.faq-item[open] { border-bottom-color: var(--c); }

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }

.faq-sign {
  position: relative;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  border-color: color-mix(in srgb, var(--c) 45%, transparent);
  transition: border-color .2s;
}
.faq-sign::before,
.faq-sign::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  margin: -.75px 0 0 -5px;
  background: var(--c);
  transition: transform .25s;
}
.faq-sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-sign::after { transform: rotate(0deg); }
.faq-item summary:hover .faq-sign,
.faq-item[open] .faq-sign { border-color: var(--c); }

.faq-item p {
  margin: 0;
  padding: 0 56px 28px 0;
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-2);
}

/* ==========================================================================
   Devis
   ========================================================================== */

/* Clôture : retour du ciel étoilé, comme la dernière page du dossier */
.devis { position: relative; background: var(--stars); }
.devis::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 45% 55% at 80% 50%, rgba(46, 58, 160, .22), transparent 70%);
  pointer-events: none;
}

.devis-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 899.98px) {
  .devis-grid { grid-template-columns: minmax(0, 1fr); }
}

.devis-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.devis-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-2);
}
.devis-points li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.devis-mail {
  margin: 36px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-2);
}
.devis-mail a {
  white-space: nowrap;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--line-2);
  transition: border-color .2s;
}
.devis-mail a:hover { border-color: var(--text); }

.devis-form {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 24px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}
.field--full { grid-column: 1 / -1; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font-size: 15px;
  transition: background .2s, border-color .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .45);
}
.field input[type="date"] { padding-top: 13px; padding-bottom: 13px; color-scheme: dark; }
.field textarea { resize: vertical; }
.field textarea::placeholder { color: var(--text-4); }

.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23b3b1c7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.field select option { background: #12132a; color: #fff; }

.field.is-invalid input { border-color: #ff9fb0; }

/* Champ anti-spam invisible */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-error {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13.5px;
  color: #ffb4c0;
}

.devis-submit {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 17px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, opacity .2s;
}
.devis-submit:hover { background: #e6e4f2; }
.devis-submit[disabled] { opacity: .6; cursor: progress; }

.devis-thanks {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: clamp(28px, 3vw, 44px);
  border-radius: 24px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
}
.devis-thanks:focus { outline: none; }
.devis-thanks strong { font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.devis-thanks p { margin: 0; font-size: 16px; font-weight: 300; line-height: 1.7; color: var(--text-2); }

/* ==========================================================================
   Pied de page
   ========================================================================== */

/* Marge du bas : laisse la place au bouton « revenir en haut » sous les liens
   légaux, quelle que soit la largeur d'écran */
.footer {
  padding: clamp(72px, 9vw, 112px) 0 84px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) {
  .footer { padding-bottom: 96px; }
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px 40px;
}
/* Tablette : marque sur sa propre ligne, puis 3 colonnes */
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
/* Grand écran : marque + 3 colonnes sur une seule ligne */
@media (min-width: 1080px) {
  .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; }
}

.footer-brand { min-width: 0; }
.footer-brand p {
  max-width: 320px;
  margin: 24px 0 28px;
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-2);
}

.socials { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  transition: color .2s, border-color .2s;
}
.socials a:hover { color: var(--text); border-color: rgba(255, 255, 255, .4); }

.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; font-weight: 300; }
.footer-col h2 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer-col a, .footer-col span { color: var(--text-2); }
.footer-col a { align-self: flex-start; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-col .footer-mail { color: var(--text); font-weight: 500; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-3);
}
.footer-legal { display: flex; gap: 20px; }
.footer-credit { white-space: nowrap; }
.footer-bottom a { transition: color .2s; }
.footer-bottom a:hover { color: var(--text); }

/* ==========================================================================
   Vidéo de présentation : liens (4 emplacements) et fenêtre
   ========================================================================== */

.video-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
/* Bouton lecture rond, anneau aux 4 couleurs du logo (comme le bouton « haut de page ») */
.video-link-icon {
  position: relative;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 17, 41, .85);
  transition: transform .25s;
}
.video-link-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 50%;
  background: conic-gradient(from -45deg, var(--orange) 0 25%, var(--blue) 25% 50%, var(--green) 50% 75%, var(--magenta) 75% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.video-link-icon svg { width: 20px; height: 20px; margin-left: 2px; }
.video-link:hover .video-link-icon { transform: scale(1.08); }
.video-link-time { margin-left: 4px; font-size: 13px; color: var(--text-3); }

.video-link--head { margin-top: 30px; }
.video-link--devis { margin-top: 32px; }

/* Mobile : bouton plus compact, pour que « Voir la vidéo » et « Voir les offres »
   tiennent sur la même ligne en haut de page */
@media (max-width: 719.98px) {
  .video-link { gap: 11px; }
  .video-link-icon { width: 42px; height: 42px; }
  .video-link-icon svg { width: 17px; height: 17px; }
  .hero-ctas { gap: 20px 24px; }
}

/* Fenêtre : la boîte de dialogue couvre tout l'écran, la vidéo est centrée ;
   un clic à côté de la vidéo la ferme (voir main.js) */
.video-modal {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}
.video-modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: video-modal-in .35s ease;
}
.video-modal::backdrop {
  background: rgba(4, 5, 13, .9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
/* Vidéo verticale (9:16) : aussi grande que possible sans déborder */
.video-modal video {
  display: block;
  width: min(92vw, calc(86vh * 9 / 16));
  width: min(92vw, calc(86dvh * 9 / 16));
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, .8);
}
.video-modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1;
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(15, 17, 41, .85);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s;
}
.video-modal-close:hover { border-color: rgba(255, 255, 255, .5); }
.video-modal-close svg { width: 22px; height: 22px; }

@keyframes video-modal-in {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Bouton « revenir en haut »
   ========================================================================== */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 15;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 17, 41, .88);
  color: var(--text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: rgba(26, 29, 64, .95); }

/* Anneau en quatre quartiers nets, placés comme sur l'icône du logo */
.to-top::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 50%;
  background: conic-gradient(from -45deg, var(--orange) 0 25%, var(--blue) 25% 50%, var(--green) 50% 75%, var(--magenta) 75% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.to-top svg { width: 20px; height: 20px; transition: transform .2s; }
.to-top:hover svg { transform: translateY(-2px); }

@media (max-width: 719.98px) {
  .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}

/* ==========================================================================
   Mobile (< 720px) : version allégée
   ========================================================================== */

@media (max-width: 719.98px) {
  .plan { padding: 36px 28px; }
  .plan:not(.is-featured) .plan-features li:nth-child(n + 4) { display: none; }

  .faq-item:nth-child(n + 5) { display: none; }
  .faq-item p { padding-right: 0; }

  .devis-form { grid-template-columns: minmax(0, 1fr); }
  /* 16px évite le zoom automatique d'iOS sur les champs */
  .field input, .field select, .field textarea { font-size: 16px; }
}

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  .video-modal[open] { animation: none; }
  html { scroll-behavior: auto; }
  .aud-media img { transition: none; transform: none !important; }
}
