/* =========================================================
   Ferrara Performance — feuille de styles partagée
   Palette sombre premium, accent orange, typographie bold.
   ========================================================= */

/* --- Variables globales (couleurs, espacements, ombres) --- */
:root {
  --bg: #0b0d12;
  --bg-soft: #12151c;
  --bg-card: #181c25;
  --line: #262b37;
  --text: #f3f5f9;
  --text-muted: #9aa3b6;
  --accent: #ff6b1f;
  --accent-soft: #ffb088;
  --max-w: 1180px;
  --radius: 14px;
  --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

/* --- Conteneur principal réutilisable --- */
.container {
  width: min(var(--max-w), 92vw);
  margin: 0 auto;
}

/* --- Typographie --- */
h1, h2, h3, h4 {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.7rem;
}
.lead { font-size: 1.1rem; color: var(--text-muted); max-width: 60ch; }

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn.primary { background: var(--accent); color: #0b0d12; }
.btn.primary:hover { transform: translateY(-2px); background: #ff8344; color: #0b0d12; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.large { padding: 1.05rem 2rem; font-size: 1rem; }

/* --- En-tête / navigation principale --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
}
.logo {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.logo span {
  color: var(--accent);
  margin-left: 0.15em;
}
.main-nav {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}
.main-nav a { font-weight: 600; font-size: 0.95rem; color: var(--text-muted); }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.cta {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #0b0d12;
}
.main-nav a.cta:hover { background: #ff8344; }

/* Bouton burger mobile */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

/* --- Section héro --- */
.hero {
  padding: clamp(3rem, 9vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 107, 31, 0.18), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(255, 107, 31, 0.08), transparent 50%),
    var(--bg);
}
.hero .container { display: grid; gap: 3rem; }
.hero-content { max-width: 760px; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.8rem; font-weight: 800; }
.hero-stats span { color: var(--text-muted); font-size: 0.9rem; }

/* --- En-tête de section --- */
.section-head { max-width: 760px; margin-bottom: 2.5rem; }

/* Espacement vertical des sections */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

/* --- Cartes de services --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem 1.5rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card h3 { color: var(--accent-soft); }
.card p { color: var(--text-muted); margin: 0.5rem 0 1rem; }
.card a { font-weight: 600; color: var(--accent); }

/* --- Témoignages --- */
.testimonials { background: var(--bg-soft); }
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
blockquote {
  background: var(--bg-card);
  margin: 0;
  padding: 1.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  position: relative;
}
blockquote::before {
  content: "“";
  position: absolute;
  top: -10px;
  left: 18px;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--accent);
  line-height: 1;
}
blockquote p { color: var(--text); font-size: 1rem; margin: 0 0 1rem; }
blockquote cite { color: var(--text-muted); font-style: normal; font-weight: 600; }

/* --- Bandeau d'appel à l'action --- */
.cta-band {
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 107, 31, 0.12), rgba(255, 107, 31, 0.04));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band p { color: var(--text-muted); margin-bottom: 1.4rem; }

/* --- Pied de page --- */
.site-footer {
  background: var(--bg-soft);
  padding: 3rem 0 1.6rem;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2rem;
}
.footer-grid h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 0.8rem; }
.footer-grid a { display: block; padding: 0.2rem 0; color: var(--text-muted); }
.footer-grid a:hover { color: var(--text); }
.footer-grid p { color: var(--text-muted); margin: 0.3rem 0; }
.copyright { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin: 2.5rem 0 0; }

/* --- Pages internes : héro compact --- */
.page-hero {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.page-hero h1 { margin-bottom: 0.6rem; }
.page-hero p { color: var(--text-muted); max-width: 60ch; }

/* --- Page À propos --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-grid img { border-radius: var(--radius); }
.about-text p { color: var(--text-muted); }
.values { display: grid; gap: 0.9rem; margin-top: 1.5rem; }
.values li {
  list-style: none;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.values strong { color: var(--text); }
.values p { margin: 0.3rem 0 0; color: var(--text-muted); font-size: 0.95rem; }
ul { padding: 0; margin: 0; }

/* --- Page Services : tarification --- */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.plan {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--accent); transform: scale(1.02); }
.plan.featured::before {
  content: "Le plus choisi";
  display: inline-block;
  background: var(--accent);
  color: #0b0d12;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.plan h3 { font-size: 1.3rem; }
.plan .price { font-size: 2.2rem; font-weight: 800; margin: 0.5rem 0 1rem; }
.plan .price small { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }
.plan ul { display: grid; gap: 0.55rem; margin-bottom: 1.5rem; }
.plan li {
  list-style: none;
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}
.plan .btn { margin-top: auto; }

/* --- Formulaire de contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}
form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1rem;
}
.field { display: grid; gap: 0.4rem; }
label { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
input, textarea, select {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font: inherit;
  transition: border-color 0.2s var(--ease);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}
textarea { resize: vertical; min-height: 130px; }
.contact-info { display: grid; gap: 1.2rem; }
.contact-info .info-block { background: var(--bg-soft); padding: 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); }
.contact-info h4 { margin: 0 0 0.4rem; color: var(--accent); }
.contact-info p, .contact-info a { color: var(--text-muted); margin: 0.2rem 0; }
.form-status { font-size: 0.9rem; min-height: 1.2em; color: var(--accent-soft); }

/* --- Animation d'apparition au scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive : tablette et mobile --- */
@media (max-width: 860px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .plan.featured { transform: none; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1rem 1.2rem 1.5rem;
    gap: 0.4rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 0.7rem 0; }
  .main-nav a.cta { text-align: center; }
  .hero-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
