/* ==========================================================================
   Pluquet Franck — Électricité Générale
   Page d'attente (site en construction) — autonome, sans dépendance externe
   ========================================================================== */

@font-face {
  font-family: 'Optima Display';
  src: url('assets/optima-bold.cf228153.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --noir:       #0b0b0b;
  --vert:       #86c117;
  --vert-clair: #a4e02c;
  --blanc:      #ffffff;
  --doux:       rgba(255, 255, 255, .72);
  --discret:    rgba(255, 255, 255, .45);
  --bord:       rgba(255, 255, 255, .16);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { height: 100%; }

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--doux);
  background: var(--noir);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: 'Optima Display', 'Optima', 'Palatino Linotype', Georgia, serif;
  font-weight: 700;
  color: var(--blanc);
  line-height: 1.1;
  letter-spacing: -.01em;
}

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

::selection { background: var(--vert); color: var(--noir); }

:focus-visible { outline: 3px solid var(--vert); outline-offset: 4px; border-radius: 6px; }

/* --------------------------------------------------------------- Décor --- */
.fond {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('assets/fond.jpg') center / cover no-repeat;
  transform: scale(1.06);
  animation: derive 26s ease-in-out infinite alternate;
}

.fond::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 12%, rgba(11, 11, 11, .55), rgba(11, 11, 11, .93) 62%, #0b0b0b 100%),
    linear-gradient(to bottom, rgba(11, 11, 11, .8), rgba(11, 11, 11, .75));
}

/* halo vert qui respire */
.halo {
  position: fixed;
  z-index: -1;
  left: 50%;
  top: 22%;
  width: min(720px, 120vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(134, 193, 23, .22), rgba(134, 193, 23, .05) 45%, transparent 68%);
  animation: souffle 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes derive {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.2%, -1.6%, 0); }
}

@keyframes souffle {
  0%, 100% { opacity: .65; transform: translate(-50%, -50%) scale(.94); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.06); }
}

/* ------------------------------------------------------------ Structure --- */
.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2.5rem, 7vw, 4.5rem) 1.25rem;
  max-width: 780px;
  margin-inline: auto;
}

/* apparition en cascade */
.monte { animation: monte .9s cubic-bezier(.22, .61, .36, 1) backwards; }
.d1 { animation-delay: .05s } .d2 { animation-delay: .18s } .d3 { animation-delay: .31s }
.d4 { animation-delay: .44s } .d5 { animation-delay: .57s } .d6 { animation-delay: .70s }
.d7 { animation-delay: .83s }

@keyframes monte {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- Logo --- */
.logo {
  width: min(420px, 82vw);
  height: auto;
  margin-bottom: clamp(1.75rem, 5vw, 2.75rem);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .55));
}

/* --------------------------------------------------------------- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 1.1rem .5rem .6rem;
  margin-bottom: 1.6rem;
  border: 1px solid var(--bord);
  border-radius: 100px;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
  color: var(--blanc);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.badge .pastille {
  position: relative;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--vert);
  color: var(--noir);
  flex: none;
}
.badge .pastille::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--vert);
  animation: onde 2.4s ease-out infinite;
}
@keyframes onde {
  0%   { opacity: .55; transform: scale(1); }
  70%  { opacity: 0;   transform: scale(2.1); }
  100% { opacity: 0;   transform: scale(2.1); }
}

/* --------------------------------------------------------------- Titre --- */
h1 {
  font-size: clamp(2.2rem, 7vw, 4rem);
  margin-bottom: 1.1rem;
  text-wrap: balance;
}
h1 .vert { color: var(--vert); }

.chapo {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  max-width: 54ch;
  margin: 0 auto 2.2rem;
}

/* ---------------------------------------------------- Barre de progrès --- */
.chantier {
  width: min(420px, 100%);
  margin: 0 auto 2.4rem;
}
.chantier__piste {
  height: 5px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}
.chantier__jauge {
  display: block;
  height: 100%;
  width: 45%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--vert), var(--vert-clair));
  box-shadow: 0 0 18px rgba(134, 193, 23, .65);
  animation: avance 2.6s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes avance {
  0%   { transform: translateX(-105%); }
  100% { transform: translateX(230%); }
}
.chantier__libelle {
  margin-top: .7rem;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--discret);
}

/* ---------------------------------------------------------- Prestations --- */
.prestations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  list-style: none;
  margin-bottom: 2.6rem;
}
.prestations li {
  padding: .45rem 1rem;
  border: 1px solid var(--bord);
  border-radius: 100px;
  font-size: .87rem;
  color: var(--doux);
  transition: border-color .25s ease, color .25s ease, transform .25s ease;
}
.prestations li:hover {
  border-color: var(--vert);
  color: var(--blanc);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------- Contact --- */
.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .8rem;
  margin-bottom: 2.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.8rem;
  border-radius: 100px;
  border: 2px solid transparent;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn--vert {
  background: var(--vert);
  color: var(--noir);
  box-shadow: 0 14px 34px rgba(134, 193, 23, .34);
}
.btn--vert:hover { background: var(--vert-clair); transform: translateY(-2px); }

.btn--contour {
  border-color: var(--bord);
  color: var(--blanc);
  font-size: .95rem;
  font-weight: 600;
}
.btn--contour:hover { border-color: var(--blanc); background: rgba(255, 255, 255, .08); transform: translateY(-2px); }

.btn svg { flex: none; }

/* ----------------------------------------------------------------- Infos --- */
.infos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1.8rem;
  font-size: .88rem;
  color: var(--discret);
}
.infos span { display: inline-flex; align-items: center; gap: .45rem; }
.infos svg { color: var(--vert); flex: none; }

/* ------------------------------------------------------------------ Pied --- */
.pied {
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  font-size: .76rem;
  color: rgba(255, 255, 255, .32);
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.pied p { margin: 0; }

/* ------------------------------------------------------------ Responsive --- */
@media (max-width: 575.98px) {
  .contact { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .infos { flex-direction: column; gap: .5rem; }
}

/* ------------------------------------------------------- Mouvement réduit --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;      /* délais compris : rien ne reste masqué */
    transition-duration: .001ms !important;
  }
  .monte { opacity: 1; transform: none; }
  .fond { transform: scale(1.06); }
  .halo { opacity: .8; }
  .chantier__jauge { transform: none; width: 55%; }
}
