/* ==========================================================================
   VIDEO4TECH — feuille de style unique
   Palette : nuit méditerranéenne + lumière ambrée du projecteur
   ========================================================================== */

:root {
  --encre:        #0F1D2E;
  --encre-clair:  #17293F;
  --ardoise:      #2B4460;
  --papier:       #F2F4F3;
  --blanc:        #FFFFFF;
  --pierre:       #DDE3E4;
  --ambre:        #E9A13B;
  --ambre-pale:   #F7D9A8;
  --texte:        #14202E;
  --texte-doux:   #56687A;
  --texte-nuit:   #C3CFDA;

  --serif: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --sans:  'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gouttiere: clamp(1.25rem, 5vw, 4rem);
  --large: 1240px;
  --etroit: 68ch;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
h4 { font-size: 1.0625rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; max-width: var(--etroit); }
a { color: inherit; }

img, svg { max-width: 100%; height: auto; display: block; }

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

/* --------------------------------------------------------- structure --- */

.enveloppe {
  max-width: var(--large);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.bande { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.bande-nuit { background: var(--encre); color: var(--texte-nuit); }
.bande-nuit h1, .bande-nuit h2, .bande-nuit h3 { color: var(--blanc); }
.bande-pierre { background: var(--pierre); }

.mesure { max-width: var(--etroit); }
.chapeau { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--texte-doux); }
.bande-nuit .chapeau { color: var(--texte-nuit); }

.saut-contenu {
  position: absolute; left: -9999px;
  background: var(--ambre); color: var(--encre);
  padding: .75rem 1.25rem; z-index: 200;
}
.saut-contenu:focus { left: 1rem; top: 1rem; }

/* ------------------------------------------------------------ boutons --- */

.bouton {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  padding: .95rem 1.6rem;
  border: 2px solid transparent; border-radius: 3px;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.bouton-plein { background: var(--ambre); color: var(--encre); }
.bouton-plein:hover { background: var(--ambre-pale); }
.bouton-ligne { border-color: currentColor; }
.bouton-ligne:hover { background: var(--ambre); border-color: var(--ambre); color: var(--encre); }

.groupe-boutons { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

/* --------------------------------------------------------- navigation --- */

.entete {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 29, 46, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.entete-interieur {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}
.marque {
  font-family: var(--serif); font-weight: 800; font-size: 1.3rem;
  letter-spacing: -.03em; color: var(--blanc); text-decoration: none;
}
.marque span { color: var(--ambre); }

.nav-liens { display: flex; align-items: center; gap: 1.75rem; }
.nav-liens a {
  color: var(--texte-nuit); text-decoration: none;
  font-size: .95rem; font-weight: 500;
  padding-block: .4rem;
  border-bottom: 2px solid transparent;
}
.nav-liens a:hover, .nav-liens a[aria-current="page"] {
  color: var(--blanc); border-bottom-color: var(--ambre);
}
.nav-tel {
  color: var(--encre) !important; background: var(--ambre);
  padding: .6rem 1.1rem !important; border-radius: 3px;
  border-bottom: none !important; font-weight: 600 !important;
}
.nav-tel:hover { background: var(--ambre-pale); }

.bouton-menu {
  display: none; background: none; border: 0; cursor: pointer;
  color: var(--blanc); padding: .5rem; font-size: 1.5rem; line-height: 1;
}

@media (max-width: 900px) {
  .bouton-menu { display: block; }
  .nav-liens {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--encre-clair);
    border-bottom: 3px solid var(--ambre);
    padding: .5rem var(--gouttiere) 1.5rem;
  }
  .nav-liens.ouvert { display: flex; }
  .nav-liens a { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-tel { margin-top: 1rem; text-align: center; }
}

/* --------------------------------------------------------------- hero --- */

.hero { background: var(--encre); color: var(--texte-nuit); overflow: hidden; }
.hero-grille {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
@media (max-width: 900px) { .hero-grille { grid-template-columns: 1fr; } }

.hero h1 { color: var(--blanc); }
.hero-lieu {
  font-size: .95rem; font-weight: 600; color: var(--ambre);
  margin-bottom: 1.4rem; display: flex; align-items: center; gap: .6rem;
}
.hero-lieu::before {
  content: ""; width: 34px; height: 2px; background: var(--ambre); flex: none;
}
.hero-note { font-size: .9rem; color: #8FA2B4; margin-top: 1.6rem; }

/* vue caméra */
.vue-camera {
  position: relative; border: 1px solid rgba(233, 161, 59, .35);
  border-radius: 4px; overflow: hidden;
  background: linear-gradient(180deg, #16283C 0%, #0C1826 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.vue-camera svg { width: 100%; display: block; }
.vue-bandeau {
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem .8rem; font-size: .78rem; letter-spacing: .04em;
  color: #9FB3C6; border-top: 1px solid rgba(255, 255, 255, .08);
  font-variant-numeric: tabular-nums;
}
.pastille-rec { display: inline-flex; align-items: center; gap: .45rem; color: #E96B5A; }
.pastille-rec::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #E96B5A;
  animation: pulsation 2.4s ease-in-out infinite;
}
@keyframes pulsation { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.cadre-detection { opacity: 0; }
.anime .cadre-detection { animation: revele 1s ease .5s forwards; }
.etiquette-detection { opacity: 0; }
.anime .etiquette-detection { animation: revele .5s ease 1.3s forwards; }
@keyframes revele { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .cadre-detection, .etiquette-detection { opacity: 1; }
}

/* ---------------------------------------------------------- réassurance --- */

.reassurance {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--pierre);
  border-block: 1px solid var(--pierre);
}
.reassurance div { background: var(--papier); padding: 1.6rem var(--gouttiere); }
.reassurance strong { display: block; font-family: var(--serif); font-size: 1.05rem; margin-bottom: .25rem; }
.reassurance p { font-size: .92rem; color: var(--texte-doux); margin: 0; }
@media (max-width: 880px) { .reassurance { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .reassurance { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- domaines --- */

.grille-domaines {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem 3rem; margin-top: 3rem;
}
.domaine { border-top: 3px solid var(--encre); padding-top: 1.25rem; }
.domaine:nth-child(3n+1) { border-top-color: var(--ambre); }
.domaine h3 { margin-bottom: .5rem; }
.domaine p { font-size: .98rem; color: var(--texte-doux); margin-bottom: .9rem; }
.lien-domaine {
  font-weight: 600; font-size: .95rem; color: var(--texte);
  text-decoration: none; border-bottom: 2px solid var(--ambre); padding-bottom: 2px;
}
.lien-domaine:hover { background: var(--ambre); }

/* ---------------------------------------------------------- marques --- */

.grille-marques {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px; background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem;
}
.marque-item { background: var(--encre); padding: 1.4rem 1.25rem; }
.marque-nom {
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
  color: var(--blanc); margin-bottom: .15rem;
}
.marque-role { font-size: .87rem; color: #8FA2B4; }

/* ----------------------------------------------------------- énergie --- */

.duo {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

.liste-coches { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.liste-coches li {
  position: relative; padding-left: 1.9rem; margin-bottom: .85rem;
  max-width: var(--etroit);
}
.liste-coches li::before {
  content: ""; position: absolute; left: 0; top: .55rem;
  width: 11px; height: 11px; background: var(--ambre); border-radius: 2px;
}

/* ------------------------------------------------------------ étapes --- */

.etapes { counter-reset: etape; margin-top: 3rem; display: grid; gap: 0; }
.etape {
  counter-increment: etape;
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.5rem;
  padding: 1.6rem 0; border-top: 1px solid var(--pierre);
}
.etape:last-child { border-bottom: 1px solid var(--pierre); }
.etape::before {
  content: counter(etape, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700;
  color: var(--ambre); line-height: 1;
}
.etape h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.etape p { margin: 0; color: var(--texte-doux); font-size: .98rem; }
@media (max-width: 560px) { .etape { grid-template-columns: 3rem 1fr; gap: 1rem; } }

/* ------------------------------------------------------------- zones --- */

.grille-zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.zone { background: var(--blanc); border-left: 4px solid var(--ambre); padding: 1.5rem 1.6rem; }
.zone h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.zone p { font-size: .95rem; color: var(--texte-doux); margin: 0; }

/* --------------------------------------------------------------- FAQ --- */

.faq { margin-top: 2.5rem; max-width: 860px; }
.faq details { border-top: 1px solid var(--pierre); }
.faq details:last-of-type { border-bottom: 1px solid var(--pierre); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0;
  font-family: var(--serif); font-weight: 600; font-size: 1.08rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%;
  transform: translateY(-50%); font-size: 1.5rem; color: var(--ambre);
  font-family: var(--sans); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 1.15rem; color: var(--texte-doux); font-size: .98rem; }

/* ------------------------------------------------------------- points --- */

.points { margin-top: 3rem; display: grid; gap: 2rem; }
.point { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; }
.point-repere {
  width: 10px; height: 10px; margin-top: .55rem;
  background: var(--ambre); border-radius: 50%;
}
.point h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.point p { margin: 0; color: var(--texte-doux); }

/* ---------------------------------------------------------- formulaire --- */

.formulaire { display: grid; gap: 1.1rem; max-width: 560px; }
.champ { display: grid; gap: .4rem; }
.champ label { font-size: .92rem; font-weight: 600; }
.champ input, .champ select, .champ textarea {
  font-family: var(--sans); font-size: 1rem; padding: .8rem .9rem;
  border: 1px solid #B9C4CC; border-radius: 3px; background: var(--blanc);
  color: var(--texte); width: 100%;
}
.champ textarea { min-height: 140px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--ambre); }
.note-formulaire { font-size: .87rem; color: var(--texte-doux); }

.coordonnees { display: grid; gap: 1.4rem; }
.coordonnee strong { display: block; font-family: var(--serif); font-size: 1.05rem; }
.coordonnee a { color: var(--texte); }

/* ------------------------------------------------------------- footer --- */

.pied { background: var(--encre); color: #8FA2B4; padding-block: 3.5rem 2rem; font-size: .93rem; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 780px) { .pied-grille { grid-template-columns: 1fr; } }
.pied h4 { color: var(--blanc); font-size: .95rem; margin-bottom: .9rem; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: .5rem; }
.pied a { color: #8FA2B4; text-decoration: none; }
.pied a:hover { color: var(--ambre); }
.pied p { max-width: 40ch; }
.pied-bas {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .85rem;
}

/* ------------------------------------------------------- barre mobile --- */

.barre-appel { display: none; }
@media (max-width: 700px) {
  .barre-appel {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; inset-inline: 0; bottom: 0; z-index: 120;
    border-top: 1px solid rgba(0, 0, 0, .15);
  }
  .barre-appel a {
    padding: .95rem; text-align: center; text-decoration: none;
    font-weight: 600; font-size: .98rem;
  }
  .barre-appel .appel { background: var(--ambre); color: var(--encre); }
  .barre-appel .devis { background: var(--encre); color: var(--blanc); }
  body { padding-bottom: 3.5rem; }
}

/* ------------------------------------------------------------ divers --- */

.fil { font-size: .88rem; color: var(--texte-doux); padding-top: 1.5rem; }
.fil a { color: var(--texte-doux); }
.avertissement {
  font-size: .87rem; color: var(--texte-doux); font-style: italic;
  border-left: 3px solid var(--pierre); padding-left: 1rem; margin-top: 2rem;
}
