/* ============================================================
   style.css — Page "Coming Soon" premium
   ------------------------------------------------------------
   Sommaire :
     1. Variables (palette, typographie, rayons, ombres)
     2. Reset & base
     3. Arrière-plan décoratif
     4. Header
     5. Hero (texte + CTA)
     6. Illustration SVG
     7. Section contact (grille)
     8. Réseaux sociaux
     9. Footer
    10. Animations d'entrée
    11. Accessibilité
    12. Responsive (desktop / tablette / mobile)
   ============================================================ */

/* ──────────────────────────────────────────────────────────
   1. VARIABLES — à personnaliser facilement
   ────────────────────────────────────────────────────────── */
:root {
  /* Palette — vert Anett (identité réelle de la marque) */
  --navy:           #14241a;   /* texte foncé / footer — quasi-noir verdâtre */
  --navy-700:       #1c3324;
  --sky:            #6a9640;   /* vert profond — accents, liens, illustration */
  --sky-soft:       #eef6e6;   /* vert très pâle — fonds de blocs            */
  --white:          #ffffff;
  --mist:           #f7f9fb;   /* gris très clair — fond général             */
  --line:           #e3e8ee;   /* bordures discrètes                        */
  --text-muted:     #5b6677;   /* texte secondaire                          */

  /* Touche d'accent — vert Anett, utilisé sur le bouton principal */
  --warm:           #88b754;
  --warm-700:       #6a9640;

  /* Typographie */
  --font-display:   'Poppins', 'Inter', system-ui, sans-serif;
  --font-body:      'Inter', system-ui, sans-serif;

  /* Rayons & ombres — coins doux, ombres légères */
  --r-sm:           10px;
  --r-md:           16px;
  --r-lg:           24px;
  --shadow-sm:      0 2px 10px rgba(11, 37, 69, 0.05);
  --shadow-md:      0 12px 32px rgba(11, 37, 69, 0.08);
  --shadow-cta:     0 10px 24px rgba(106, 150, 64, 0.26);

  /* Rythme */
  --container:      1180px;
  --ease:           cubic-bezier(.22, .8, .26, 1);
}

/* ──────────────────────────────────────────────────────────
   2. RESET & BASE
   ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
}

/* Texte réservé aux lecteurs d'écran (titres de section silencieux) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Focus clavier toujours visible — accessibilité */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ──────────────────────────────────────────────────────────
   3. ARRIÈRE-PLAN DÉCORATIF
   Halo très doux, purement esthétique, n'altère pas le contraste
   du texte qui repose sur des fonds pleins.
   ────────────────────────────────────────────────────────── */
.bg-halo {
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38vw 38vw at 10% 0%, rgba(106, 150, 64, 0.10), transparent 60%),
    radial-gradient(30vw 30vw at 95% 30%, rgba(242, 184, 96, 0.10), transparent 60%);
  filter: blur(60px);
}

/* ──────────────────────────────────────────────────────────
   4. HEADER
   ────────────────────────────────────────────────────────── */
.site-header {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Cadre du logo réel (image fournie par la marque) */
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.header-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky);
  background: var(--sky-soft);
  padding: 7px 14px;
  border-radius: 999px;
}

/* ──────────────────────────────────────────────────────────
   5. HERO
   Grille deux colonnes (texte / illustration) sur desktop,
   empilée sur mobile.
   ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 2;
  padding: 64px 32px 40px;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero-text { max-width: 560px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--sky);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}

.hero h1 span { color: var(--sky); }

.hero-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 36px;
}

/* Bouton d'appel à l'action — seule touche chaude de la page */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--warm);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 16px 28px;
  border-radius: 999px;
  box-shadow: var(--shadow-cta);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s ease;
}

.btn-cta-icon { transition: transform 0.25s var(--ease); }

.btn-cta:hover {
  background: var(--warm-700);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(106, 150, 64, 0.32);
}

.btn-cta:hover .btn-cta-icon { transform: translateX(3px); }

.btn-cta:active { transform: translateY(0); }

/* ──────────────────────────────────────────────────────────
   6. ILLUSTRATION SVG
   Composition abstraite : courbe de progression, nœuds,
   formes douces en arrière-plan — sobre, sans clipart.
   ────────────────────────────────────────────────────────── */
.hero-illustration {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.blob {
  fill: var(--sky-soft);
  opacity: 0.9;
}
.blob-b { fill: rgba(242, 184, 96, 0.12); }

.grid-lines line {
  stroke: var(--line);
  stroke-width: 1;
}

.progress-path {
  stroke: var(--sky);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  animation: draw-path 1.8s 0.5s var(--ease) forwards;
}

.node {
  fill: var(--white);
  stroke: var(--sky);
  stroke-width: 2.5;
  opacity: 0;
  animation: pop-in 0.5s var(--ease) forwards;
}
.node-1 { animation-delay: 0.6s; }
.node-2 { animation-delay: 1.0s; }
.node-3 { animation-delay: 1.4s; }
.node-4 {
  fill: var(--warm);
  stroke: var(--warm);
  animation-delay: 1.8s;
}
.node-4::after { content: ''; }

/* Pastille finale qui respire doucement, en continu */
.node-4 { animation: pop-in 0.5s var(--ease) 1.8s forwards, breathe 3s ease-in-out 2.4s infinite; }

.float-square {
  fill: var(--white);
  stroke: var(--line);
  stroke-width: 1.4;
  animation: float-y 6s ease-in-out infinite;
}
.sq-1 { animation-delay: 0s; }
.sq-2 { animation-delay: -2s; }
.sq-3 { animation-delay: -4s; }

@keyframes draw-path { to { stroke-dashoffset: 0; } }

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.4); transform-origin: center; }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* ──────────────────────────────────────────────────────────
   7. SECTION CONTACT
   Grille CSS — 3 cartes, ombres légères, coins arrondis
   ────────────────────────────────────────────────────────── */
.contact-section {
  position: relative;
  z-index: 2;
  padding: 24px 32px 64px;
}

.contact-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease;
}

a.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sky);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--sky-soft);
  color: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease;
}

a.contact-card:hover .contact-icon {
  background: var(--navy);
  color: var(--white);
}

.contact-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-value {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--navy);
  word-break: break-word;
}

/* ──────────────────────────────────────────────────────────
   8. RÉSEAUX SOCIAUX
   ────────────────────────────────────────────────────────── */
.social-section {
  position: relative;
  z-index: 2;
  padding: 0 32px 72px;
  display: flex;
  justify-content: center;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.social-icon:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-3px) scale(1.05);
}

/* ──────────────────────────────────────────────────────────
   9. FOOTER
   ────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  padding: 26px 32px;
  font-size: 13.5px;
}

/* ──────────────────────────────────────────────────────────
   10. ANIMATIONS D'ENTRÉE
   Pilotées par data-animate / data-delay (voir script.js) —
   fade discret + léger déplacement, jamais agressif.
   ────────────────────────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  will-change: transform, opacity;
}

[data-animate="fade-up"]   { transform: translateY(16px); }
[data-animate="fade-down"] { transform: translateY(-12px); }
[data-animate="fade-in"]   { transform: none; }

[data-animate].in-view {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-animate][data-delay="1"].in-view { transition-delay: 0.05s; }
[data-animate][data-delay="2"].in-view { transition-delay: 0.18s; }
[data-animate][data-delay="3"].in-view { transition-delay: 0.30s; }
[data-animate][data-delay="4"].in-view { transition-delay: 0.42s; }

/* ──────────────────────────────────────────────────────────
   11. ACCESSIBILITÉ — mouvement réduit
   ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .progress-path,
  .node,
  .float-square {
    animation: none !important;
    stroke-dashoffset: 0;
    opacity: 1;
  }

  .btn-cta:hover,
  .social-icon:hover,
  a.contact-card:hover {
    transform: none;
  }
}

/* ──────────────────────────────────────────────────────────
   12. RESPONSIVE
   ────────────────────────────────────────────────────────── */

/* Tablette (≤ 1024px) : illustration réduite, hero resserré */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .hero-text { max-width: 620px; margin: 0 auto; }

  .eyebrow { justify-content: center; }

  .hero-subtitle { margin-left: auto; margin-right: auto; }

  .hero-illustration { max-width: 380px; }

  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile (≤ 640px) */
@media (max-width: 640px) {
  .header-inner { padding: 16px 20px; }
  .brand-name { font-size: 15px; }
  .header-tag { font-size: 10.5px; padding: 6px 11px; }

  .hero { padding: 40px 20px 24px; }
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 15.5px; }

  .btn-cta { width: 100%; justify-content: center; padding: 15px 24px; }

  .hero-illustration { max-width: 280px; }

  .contact-section { padding: 16px 20px 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 14px; }

  .social-section { padding: 0 20px 56px; }

  .site-footer { padding: 22px 20px; font-size: 13px; }
}

/* Très petits écrans (≤ 360px) */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.75rem; }
}
