/* =========================================
   VARIABLES DE COULEURS (charte du site)
   ========================================= */
:root {
  --bleu-nuit: #0B1B3A;
  --bleu-nuit-clair: #142a52;
  --bleu-nuit-900: #060f24;
  --bleu-electrique: #3E8EF7;
  --bleu-electrique-text: #2f6fd1; /* variante assombrie, lisible en texte sur fond clair */
  --jaune: #FFD400;
  --blanc-casse: #F5F3EE;
  --texte-fonce: #1a1a1a;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 58, 0.06);
  --shadow-md: 0 10px 24px rgba(11, 27, 58, 0.12);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* =========================================
   RESET DE BASE MINIMAL
   ========================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--texte-fonce);
  background: var(--blanc-casse);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Respecte les préférences de mouvement réduit : neutralise toutes les animations/transitions ajoutées */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Focus visible cohérent avec la charte : seul usage d'accent jaune en dehors du logo et du CTA principal */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--jaune);
  outline-offset: 2px;
}

/* =========================================
   BANDEAU DE DÉMONSTRATION (fin et discret)
   ========================================= */
.demo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--bleu-nuit-900);
  color: rgba(245, 243, 238, 0.85);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid rgba(62, 142, 247, 0.25);
}

.demo-banner-icon svg {
  width: 7px;
  height: 7px;
  fill: var(--jaune);
  flex-shrink: 0;
}

/* =========================================
   EN-TÊTE / NAVIGATION
   ========================================= */
.site-header {
  background: rgba(11, 27, 58, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(62, 142, 247, 0.15);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo img {
  height: 32px;
  width: auto;
}

/* Bouton burger : visible seulement sur petit écran */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--blanc-casse);
  border-radius: 2px;
}

/* Navigation repliée par défaut sur mobile */
.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bleu-nuit-clair);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.main-nav.is-open {
  max-height: 400px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.main-nav a {
  color: var(--blanc-casse);
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--jaune);
}

/* CTA de nav en contour bleu électrique plutôt qu'en jaune plein (budget couleur) */
.nav-cta {
  color: var(--blanc-casse) !important;
  background: transparent;
  border: 1px solid var(--bleu-electrique);
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius);
  width: fit-content;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nav-cta:hover {
  color: var(--blanc-casse) !important;
  background: rgba(62, 142, 247, 0.14);
  border-color: var(--bleu-electrique);
}

/* =========================================
   HERO (deux colonnes asymétriques sur ordinateur)
   ========================================= */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 82% 15%, rgba(62, 142, 247, 0.32), transparent 60%),
    linear-gradient(180deg, var(--bleu-nuit) 0%, var(--bleu-nuit-clair) 100%);
  color: var(--blanc-casse);
  padding: 3.25rem 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

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

.hero h1 {
  font-size: clamp(2rem, 1rem + 3.6vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-subtitle {
  max-width: 46ch;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Illustration décorative : exploite la colonne droite sans surcharger visuellement */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.hero-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-svg {
    animation: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--jaune);
  color: var(--bleu-nuit);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--blanc-casse);
  border-color: rgba(245, 243, 238, 0.55);
}

.btn-secondary:hover {
  background: rgba(245, 243, 238, 0.1);
  border-color: var(--blanc-casse);
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover {
    transform: none;
  }
}

/* =========================================
   SECTIONS GÉNÉRALES
   ========================================= */
section {
  padding: clamp(2.75rem, 5vw, 3.5rem) 0;
}

/* Empêche le header sticky de masquer le titre d'une section ciblée par une ancre */
section[id] {
  scroll-margin-top: 5.5rem;
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bleu-electrique-text);
  margin: 0 0 0.5rem;
  text-align: center;
}

section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--bleu-nuit);
  margin: 0 0 1.75rem;
  text-align: center;
}

/* =========================================
   SERVICES
   ========================================= */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid rgba(11, 27, 58, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(62, 142, 247, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
}

.card-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(62, 142, 247, 0.08);
  margin-bottom: 0.75rem;
}

.card-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--bleu-electrique);
  stroke-width: 1.6;
}

.card h3 {
  margin: 0 0 0.5rem;
  color: var(--bleu-nuit);
}

.card p {
  margin: 0;
}

/* =========================================
   ENGAGEMENTS (liste numérotée, rythme différent des cartes Services)
   ========================================= */
.engagements {
  background: var(--bleu-nuit);
  color: var(--blanc-casse);
}

.engagements .eyebrow,
.engagements h2 {
  text-align: left;
}

.engagement-grid {
  display: flex;
  flex-direction: column;
  counter-reset: engagement;
  border-top: 1px solid rgba(245, 243, 238, 0.12);
}

.engagement {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.25rem 1rem;
  align-items: start;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(245, 243, 238, 0.12);
  counter-increment: engagement;
}

.engagement::before {
  content: counter(engagement, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / 3;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bleu-electrique);
}

.engagement h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 0.3rem;
  color: var(--blanc-casse);
}

.engagement p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: #c7cede;
}

/* =========================================
   ZONE D'INTERVENTION
   ========================================= */
.zone-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.zone-list li {
  background: #fff;
  border: 1px solid rgba(11, 27, 58, 0.08);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.zone-list li:hover {
  border-color: rgba(62, 142, 247, 0.5);
  box-shadow: 0 0 0 3px rgba(62, 142, 247, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .zone-list li:hover {
    box-shadow: none;
  }
}

/* =========================================
   FAQ (accordéon natif details/summary, chevron personnalisé)
   ========================================= */
.faq .eyebrow,
.faq h2 {
  text-align: left;
}

.faq-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.faq-heading {
  max-width: 420px;
}

.faq-heading p {
  color: #3a3f4d;
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(11, 27, 58, 0.08);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--bleu-nuit);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-right: 2px solid var(--bleu-electrique);
  border-bottom: 2px solid var(--bleu-electrique);
  transform: rotate(-45deg);
  transition: transform 0.18s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0.75rem 0 0;
}

/* =========================================
   CONTACT (deux colonnes : information à gauche, formulaire à droite)
   ========================================= */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info {
  max-width: 460px;
}

.contact-info .eyebrow,
.contact-info h2 {
  text-align: left;
}

.contact-info h2 {
  margin-bottom: 0.85rem;
}

.contact-info p {
  margin: 0 0 1.25rem;
}

.contact-note {
  background: rgba(62, 142, 247, 0.06);
  border: 1px solid rgba(62, 142, 247, 0.18);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: var(--bleu-nuit);
}

.contact-form-card {
  background: #fff;
  border: 1px solid rgba(11, 27, 58, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  max-width: 480px;
  width: 100%;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-weight: 600;
  color: var(--bleu-nuit);
}

.form-field input {
  height: 52px;
  padding: 0 0.9rem;
}

.form-field input,
.form-field textarea {
  border: 1px solid #c9c5b8;
  border-radius: var(--radius);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--bleu-electrique);
  box-shadow: 0 0 0 3px rgba(62, 142, 247, 0.15);
}

.form-field textarea {
  height: 150px;
  max-height: 220px;
  padding: 0.7rem 0.9rem;
  resize: vertical;
}

.form-feedback {
  min-height: 1.5rem;
  font-weight: 600;
  color: var(--bleu-electrique-text);
}

/* =========================================
   PIED DE PAGE
   ========================================= */
.site-footer {
  background: var(--bleu-nuit);
  color: var(--blanc-casse);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(62, 142, 247, 0.15);
}

.footer-inner {
  text-align: center;
}

.footer-disclaimer {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--blanc-casse);
  background: rgba(62, 142, 247, 0.14);
  border: 1px solid rgba(62, 142, 247, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin: 0 0 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--blanc-casse);
  text-decoration: underline;
}

.footer-fake-contact {
  font-size: 0.85rem;
  color: #b9c0d1;
  margin: 0 0 1.5rem;
}

.footer-note {
  max-width: 60ch;
  margin: 0.75rem auto 0;
  font-size: 0.85rem;
  color: #b9c0d1;
  text-align: left;
}

/* =========================================
   NAVIGATION ACTIVE (mise en avant du lien de la section visible)
   ========================================= */
.main-nav a.is-active {
  color: var(--jaune);
}

/* =========================================
   BREAKPOINTS RESPONSIVE (mobile-first)
   ========================================= */

/* Tablette et plus : navigation horizontale, menu burger masqué */
@media (min-width: 800px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
  }

  .main-nav ul {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 1.75rem;
  }

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

/* Hero, FAQ et Contact : bascule en deux colonnes à partir de 960px */
@media (min-width: 960px) {
  .hero {
    padding: 4.5rem 0;
  }

  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }

  .hero-visual {
    min-height: clamp(360px, 30vw, 480px);
  }

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

  .faq-inner {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
  }

  .contact-inner {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
  }
}

/* Desktop large : grilles plus larges */
@media (min-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
