/* ==========================================================================
   CODEVAULT74 — Feuille de style principale
   ========================================================================== */

/* --- Variables & Configuration de base --- */
:root {
  --accent: #F36C21;
  --ink: #eef2ff;
  --muted: #a7b0c6;
  --bg: #0f1115;
  --card: #151923;
  --border: #2a2f3a;
  --soft: #101520;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  font-size: 16px;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px);
}

.small {
  font-size: 14px;
  color: var(--muted);
}

/* --- Classe utilitaire --- */
.no-break { white-space: nowrap; }

/* --- En-tête & Hero --- */
header {
  /* Le layout précis est géré par les media queries ci-dessous */
  margin-bottom: 24px;
}

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

.logo {
  height: 60px;
  width: auto;
}

.brand h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: .4px;
}

header nav {
  display: flex;
  gap: 10px;
}

.cta-btn,
.ghost-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid;
  text-align: center;
}

.cta-btn {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.ghost-btn {
  color: var(--ink);
  border-color: var(--border);
  background: transparent;
}

.hero {
  background: linear-gradient(180deg, rgba(243, 108, 33, .08), transparent);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(24px, 5vw, 40px);
  margin-top: 6px;
  text-align: center;
}

.hero h2 {
  margin: .2rem 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

.hero p {
  color: var(--muted);
  max-width: 720px;
  margin: 1rem auto;
}

.badges {
  margin-top: 16px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  margin: 4px;
}

/* --- Titres de Section --- */
.sect-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0 24px;
}

.sect-title h2 {
  margin: 0;
  font-size: 28px;
  white-space: nowrap;
}

.sep {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* --- Cadres & Cartes Interactives --- */
.benefit,
.svc,
.card,
.pack,
.q {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.benefit:hover,
.svc:hover,
.card:hover,
.pack:hover,
.q:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 108, 33, 0.5);
  box-shadow: 0 0 20px rgba(243, 108, 33, 0.15);
}

/* --- Section: Avantages --- */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.benefit {
  background: var(--soft);
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.benefit h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--accent);
}

.benefit p {
  margin: 0;
  color: var(--muted);
}

/* --- Section: Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.svc {
  background: var(--card);
}

.svc h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.svc p {
  color: var(--muted);
  margin: .25rem 0 .5rem;
  font-size: 15px;
}

.svc ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  text-align: left;
  font-size: 14px;
}

/* --- Bloc vedette pleine largeur --- */
.svc-wide {
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: 0 0 25px rgba(243, 108, 33, 0.15);
}

.svc-wide h3 {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 8px;
}

.svc-wide p {
  color: var(--muted);
  font-size: 16px;
  max-width: 720px;
  margin: 0 auto 12px;
}

.svc-wide ul {
  display: inline-block;
  text-align: left;
  margin: 8px auto 16px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
}

/* --- Section: Tarifs --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.card h3::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 8px;
}

ul.clean {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 15px;
}

.item:last-child {
  border-bottom: 0;
}

.label {
  color: var(--muted);
}

.price {
  white-space: nowrap;
  font-weight: 700;
  color: var(--ink);
}

/* --- Section: Packs & FAQ --- */
.packs-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.pack {
  background: var(--soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pack h4 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--accent);
}

.pack p {
  margin: 6px 0;
  color: var(--muted);
  flex-grow: 1;
}

.price-pack {
  margin-top: 12px;
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
}

.q h4 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--accent);
}

.q p {
  margin: 0;
  color: var(--muted);
}

.travel-note {
  text-align: center;
  margin: 24px auto 0;
  max-width: 600px;
}

/* --- CTA & Pied de page --- */
.cta-block {
  margin-top: 48px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 32px;
  background: var(--soft);
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.cta-block strong {
  font-size: 20px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

footer {
  margin-top: 48px;
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--ink);
  text-decoration: underline;
}

/* --- Page About --- */
.about-section {
  margin-top: 48px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.about-text h3 {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 12px;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.about-text ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--muted);
  margin-bottom: 24px;
}

.about-photo img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 0 20px rgba(243, 108, 33, 0.1);
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-photo {
    order: -1;
    margin-bottom: 24px;
  }
}

/* --- Effets de survol --- */
.cta-btn:hover {
  background: #e95a0c;
  border-color: #e95a0c;
  transform: translateY(-2px);
}

.ghost-btn:hover {
  background: var(--border);
  color: #fff;
}

footer a:hover {
  color: var(--accent);
}

/* === Header responsive canonique (unique) === */

/* Desktop ≥ 801px : grille 2 colonnes (logo | nav), nav poussée à droite */
@media (min-width: 801px) {
  header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
  }
  header nav {
    justify-self: end;
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
    width: auto;
  }
}

/* Mobile ≤ 800px : empilement propre (Option A) */
@media (max-width: 800px) {
  header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  header nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  header nav a {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    min-height: 44px; /* cible tactile confortable */
  }
  .logo { height: 48px; }
}

/* Accessibilité : focus visible */
header nav a:focus-visible,
.cta-btn:focus-visible,
.ghost-btn:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 3px;
}

/* --- Patch ciblé INDEX uniquement, sans changer le HTML ---
   On cible la page qui contient #services (ton index).
   Ça verrouille la nav à droite en desktop, sans impacter mobile. */
@media (min-width: 801px) {
  body:has(#services) header {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    align-items: center !important;
    gap: 16px !important;
  }
  body:has(#services) header nav {
    justify-self: end !important;
    display: flex !important;
    gap: 10px !important;
    white-space: nowrap !important;
    width: auto !important;
  }
.hero p {
  max-width: 48ch;
  margin-inline: auto;
  line-height: 1.5;
  text-wrap: balance;
}
