/* ===== Thème clair (par défaut) ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --panel: #ffffff;
  --line: #dbe3ee;
  --blue: #1d4ed8;
  --blue-hover: #1e40af;
  --accent: #1d4ed8;
  --text: #0b1526;
  --muted: #475569;
  --faint: #64748b;
  --hero-halo: rgba(29, 78, 216, 0.10);
  --shadow: 0 1px 3px rgba(11, 21, 38, 0.06), 0 8px 24px rgba(11, 21, 38, 0.05);
  --nav-bg: rgba(255, 255, 255, 0.92);
}

/* ===== Thème sombre ===== */
[data-theme="dark"] {
  --bg: #0b1526;
  --bg-alt: #0e1b2f;
  --panel: #111f35;
  --line: #1e293b;
  --blue: #1d4ed8;
  --blue-hover: #2563eb;
  --accent: #38bdf8;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --faint: #64748b;
  --hero-halo: rgba(29, 78, 216, 0.25);
  --shadow: none;
  --nav-bg: rgba(11, 21, 38, 0.92);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s, color 0.25s;
}

h1, h2, h3 { font-family: "Archivo", system-ui, sans-serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 600; margin-bottom: 2rem; }
h3 { font-size: 1.1rem; font-weight: 600; }

a { color: var(--blue); text-decoration: none; }
[data-theme="dark"] a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.grad {
  background: linear-gradient(100deg, var(--blue), #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Logos selon le thème ---------- */
.nav-logo img.logo-clair,
.footer img.logo-clair { display: block; }
.nav-logo img.logo-sombre,
.footer img.logo-sombre { display: none; }
[data-theme="dark"] .nav-logo img.logo-clair,
[data-theme="dark"] .footer img.logo-clair { display: none; }
[data-theme="dark"] .nav-logo img.logo-sombre,
[data-theme="dark"] .footer img.logo-sombre { display: block; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 5vw;
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-logo img { height: 52px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.actif { color: var(--text); }
.nav-links a.nav-cta {
  color: #fff;
  background: var(--blue);
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-links a.nav-cta:hover { background: var(--blue-hover); color: #fff; }

.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--blue); color: var(--text); }
.theme-toggle svg { width: 19px; height: 19px; }
.icone-lune { display: block; }
.icone-soleil { display: none; }
[data-theme="dark"] .icone-lune { display: none; }
[data-theme="dark"] .icone-soleil { display: block; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span { width: 24px; height: 2px; background: var(--text); transition: transform 0.25s, opacity 0.25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(4rem, 10vh, 7rem) 5vw;
  text-align: center;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, var(--hero-halo), transparent), var(--bg);
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-photo {
  width: 108px;
  height: 108px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 3px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-sub { color: var(--muted); margin: 1.2rem auto 2rem; max-width: 560px; }
.hero-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  margin-top: 1.4rem;
  color: var(--blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
}
[data-theme="dark"] .hero-badge { color: var(--accent); }

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 1.05rem;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--blue); color: var(--text); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vh, 6rem) 5vw; max-width: 1080px; margin: 0 auto; }
.section-alt { background: var(--bg-alt); max-width: none; }
.section-alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}
[data-theme="dark"] .eyebrow { color: var(--accent); }

/* Services */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--blue); }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card-lien { display: inline-block; margin-top: 0.9rem; font-size: 0.92rem; font-weight: 500; }

/* Bandeau tarifs (accueil) */
.tarifs-teaser {
  margin-top: 2.5rem;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
}
.tarifs-teaser h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.tarifs-teaser p { color: var(--muted); margin-bottom: 1.3rem; }

/* Tarifs (page dédiée) */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.price-group {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow);
}
.price-group h3 { margin-bottom: 0.9rem; color: var(--blue); font-size: 1rem; }
[data-theme="dark"] .price-group h3 { color: var(--accent); }
.price-list { list-style: none; }
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}
.price-list li:last-child { border-bottom: none; }
.price-list strong {
  font-family: "IBM Plex Mono", monospace;
  color: var(--text);
  white-space: nowrap;
  font-weight: 500;
}

.zones { margin-top: 2.5rem; text-align: center; }
.zones h3 { margin-bottom: 1rem; }
.zone-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; max-width: 720px; margin: 0 auto; }
.zone {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.zone strong {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 0.3rem;
}
[data-theme="dark"] .zone strong { color: var(--accent); }
.zone span { color: var(--muted); font-size: 0.88rem; line-height: 1.5; display: block; }
.zones-note { color: var(--faint); font-size: 0.88rem; margin-top: 1.2rem; }

/* Déroulement */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.steps li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  margin-bottom: 0.9rem;
}
.steps h3 { margin-bottom: 0.5rem; font-size: 1.02rem; }
.steps p { color: var(--muted); font-size: 0.93rem; }

/* À propos */
.about { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.about-photo {
  flex-shrink: 0;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 3px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about > div { flex: 1; min-width: 280px; }
.about p { color: var(--muted); max-width: 600px; }
.soon-banner {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.5rem 1rem;
  border: 1px solid #d9a800;
  border-radius: 8px;
  color: #a16207;
  font-size: 0.88rem;
  font-family: "IBM Plex Mono", monospace;
}
[data-theme="dark"] .soon-banner { border-color: #7c5e10; color: #eab308; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; }
#contact-form { display: flex; flex-direction: column; }
#contact-form label { font-size: 0.92rem; color: var(--muted); margin: 0.9rem 0 0.35rem; }
#contact-form label:first-child { margin-top: 0; }
#contact-form input,
#contact-form textarea {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}
#contact-form input:focus,
#contact-form textarea:focus { border-color: var(--blue); outline: none; }
#contact-form button { margin-top: 1.4rem; border: none; cursor: pointer; font-family: inherit; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-status { margin-top: 0.9rem; font-size: 0.92rem; min-height: 1.4em; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #b91c1c; }
[data-theme="dark"] .form-status.ok { color: #4ade80; }
[data-theme="dark"] .form-status.err { color: #f87171; }

.contact-infos p { margin-bottom: 1.2rem; color: var(--muted); font-size: 0.95rem; }
.contact-infos strong { display: block; color: var(--text); font-family: "Archivo", sans-serif; font-size: 0.95rem; margin-bottom: 0.15rem; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 5vw;
  text-align: center;
  background: var(--bg-alt);
}
.footer img { height: 66px; width: auto; margin: 0 auto 1rem; }
.footer p { color: var(--faint); font-size: 0.85rem; }
.footer nav { margin-bottom: 1rem; display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.footer nav a { font-size: 0.9rem; color: var(--muted); }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
  body { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 5vw; width: 100%; }
  .nav-links a.nav-cta { width: auto; margin: 0.6rem 5vw 0; text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Champ facultatif ---------- */
.facultatif { color: var(--faint); font-weight: 400; font-size: 0.86rem; }

/* ---------- Sélecteur de langue ---------- */
.lang-switch {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.lang-switch:hover { border-color: var(--blue); color: var(--text); }
@media (max-width: 820px) {
  .nav-links a.lang-switch { width: auto; margin: 0.6rem 5vw 0; text-align: center; display: inline-block; }
}
