/* ============================================================
   BYTE-IT TECHNOLOGIE — style.css
   Approche : Mobile-First (min-width pour desktop)
   Palette  : Navy #1F2A44 | Beige #E8DCC8 | Gold #C6A75E
   Typo     : Playfair Display (titres) + Inter (corps)
   ============================================================ */


/* ============================================================
   1. IMPORTS & VARIABLES CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* --- Couleurs --- */
  --navy:        #1F2A44;
  --navy-light:  #2a3a5c;     /* navy légèrement plus clair pour hover */
  --beige:       #E8DCC8;
  --beige-light: #F5EFE4;     /* beige très clair pour alterner les sections */
  --gold:        #C6A75E;
  --gold-light:  #d4b878;     /* gold clair pour hover */
  --white:       #FFFFFF;
  --text-dark:   #1a1a2e;     /* quasi-noir pour le texte principal */
  --text-muted:  #5a6070;     /* gris doux pour texte secondaire */

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

  /* --- Taille de texte (mobile first) --- */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-5xl:  3rem;      /* 48px */

  /* --- Espacements --- */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 5rem;

  /* --- Ombres (effet flottant) --- */
  --shadow-card:   0 8px 32px rgba(31, 42, 68, 0.12);
  --shadow-gold:   0 4px 24px rgba(198, 167, 94, 0.25);
  --shadow-hover:  0 16px 48px rgba(31, 42, 68, 0.20);

  /* --- Rayons de bordure --- */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;

  /* --- Transitions --- */
  --transition-fast:   0.2s ease;
  --transition-normal: 0.4s ease;
  --transition-slow:   0.7s ease;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Réduit les animations si l'utilisateur préfère (accessibilité) */
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: var(--beige);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  /* Texture subtile sur le fond beige */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

/* Respect des préférences système de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* Focus visible pour accessibilité WCAG AA */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ============================================================
   3. COMPOSANTS RÉUTILISABLES
   ============================================================ */

/* --- Conteneur centré --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- Titre de section --- */
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: var(--space-xs);
  line-height: 1.2;
}

/* Ligne dorée décorative sous les titres */
.section-title::after {
  content: '';
  display: block;
  width: 0;                          /* Démarre à 0, animé via JS */
  height: 2px;
  background: var(--gold);
  margin: var(--space-xs) auto 0;
  transition: width 0.8s ease;
}

/* Quand la section devient visible (classe ajoutée par JS) */
.section-title.visible::after {
  width: 60px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--space-xl);
  font-weight: 300;
}

/* --- Bouton principal (CTA) --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gold);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

/* Effet brillance qui traverse le bouton au hover */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 150%;
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* --- Bouton secondaire (contour) --- */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: transparent;
  color: var(--beige);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gold);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

/* --- Carte flottante (style général) --- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* --- Animation d'apparition au scroll --- */
/* Classe de base : élément invisible et légèrement en bas */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Classe ajoutée par JS quand l'élément entre dans le viewport */
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Délais en cascade pour les groupes d'éléments */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Séparateur ligne dorée --- */
.divider-gold {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: var(--space-sm) auto;
}


/* ============================================================
   4. NAVIGATION
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: background var(--transition-normal), backdrop-filter var(--transition-normal), box-shadow var(--transition-normal);
}

/* État transparent au sommet de la page */
.navbar.transparent {
  background: transparent;
}

/* État opaque après scroll — ajouté par JS */
.navbar.scrolled {
  background: rgba(31, 42, 68, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

/* Logo texte */
.navbar__logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 2px;
}

.navbar__logo-main {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.navbar__logo-sub {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--beige);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* Même largeur visuelle que le texte principal via letter-spacing */
}

/* Liens desktop (cachés sur mobile) */
.navbar__links {
  display: none;
}

/* Bouton langue */
.navbar__lang {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(232, 220, 200, 0.6);    /* beige discret */
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border: 1px solid rgba(198, 167, 94, 0.3);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.navbar__lang:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* Hamburger mobile */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  cursor: pointer;
  background: none;
  border: none;
}

.navbar__hamburger span {
  display: block;
  height: 2px;
  background: var(--beige);
  border-radius: 2px;
  transition: all var(--transition-fast);
  transform-origin: center;
}

/* Animation hamburger → X quand menu ouvert */
.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu mobile : panneau latéral */
.navbar__mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--navy);
  padding: 6rem var(--space-lg) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  transition: right var(--transition-normal);
  z-index: 999;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

.navbar__mobile-menu.open {
  right: 0;
}

.navbar__mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--beige);
  font-weight: 600;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(198, 167, 94, 0.2);
  transition: color var(--transition-fast);
}

.navbar__mobile-menu a:hover {
  color: var(--gold);
}

/* Overlay sombre derrière le menu mobile */
.navbar__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.navbar__overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* Desktop : affiche les liens, cache le hamburger */
@media (min-width: 768px) {
  .navbar__links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
  }

  .navbar__links a {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--beige);
    letter-spacing: 0.05em;
    position: relative;
    transition: color var(--transition-fast);
  }

  /* Soulignement doré au hover */
  .navbar__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition-fast);
  }

  .navbar__links a:hover {
    color: var(--gold);
  }

  .navbar__links a:hover::after {
    width: 100%;
  }

  .navbar__hamburger {
    display: none;
  }
}


/* ============================================================
   5. HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;         /* svh = small viewport height, meilleur sur mobile */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  overflow: hidden;
  padding: 8rem var(--space-md) var(--space-2xl);
}

/* Fond géométrique subtil */
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Cercles décoratifs en arrière-plan */
.hero__bg-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(198, 167, 94, 0.15);
}

.hero__bg-circle--1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  animation: rotate-slow 30s linear infinite;
}

.hero__bg-circle--2 {
  width: 600px;
  height: 600px;
  bottom: -200px;
  left: -200px;
  animation: rotate-slow 40s linear infinite reverse;
}

.hero__bg-circle--3 {
  width: 200px;
  height: 200px;
  top: 30%;
  left: 10%;
  animation: pulse-soft 6s ease-in-out infinite;
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50%       { opacity: 0.05; transform: scale(1.1); }
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
}

/* Badge au-dessus du titre */
.hero__badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fade-up 0.8s ease 0.3s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--beige);
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  opacity: 0;
  animation: fade-up 0.8s ease 0.5s forwards;
}

/* Accentuation du mot "BYTE-IT" en gold */
.hero__title span {
  color: var(--gold);
}

.hero__subtitle-line {
  width: 0;
  height: 1px;
  background: var(--gold);
  margin: var(--space-sm) auto;
  animation: expand-line 1s ease 1s forwards;
}

@keyframes expand-line {
  to { width: 80px; }
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: rgba(232, 220, 200, 0.8);
  font-weight: 300;
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fade-up 0.8s ease 0.8s forwards;
}

.hero__cta {
  opacity: 0;
  animation: fade-up 0.8s ease 1.1s forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Flèche de scroll animée */
.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: fade-in 1s ease 2s forwards;
}

@keyframes fade-in {
  to { opacity: 0.6; }
}

.hero__scroll-hint span {
  font-size: var(--text-xs);
  color: rgba(232, 220, 200, 0.6);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
  animation: bounce-down 2s ease infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(5px); }
}

/* Desktop hero */
@media (min-width: 768px) {
  .hero__title {
    font-size: var(--text-5xl);
  }

  .hero__cta {
    flex-direction: row;
    justify-content: center;
  }
}


/* ============================================================
   6. SECTION : NOS RÉALISATIONS (Carousel 3D)
   ============================================================ */

.realisations {
  padding: var(--space-2xl) 0;
  background: var(--beige-light);
  overflow: hidden;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  /* Hauteur fixe pour le stage 3D */
  height: 420px;
  perspective: 1000px;        /* Profondeur 3D */
  margin-top: var(--space-xl);
  /* Autoriser le swipe horizontal tout en gardant le scroll vertical */
  touch-action: pan-y;
  /* Empêche la sélection de texte pendant le glissement */
  user-select: none;
  -webkit-user-select: none;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;  /* Enfants en espace 3D */
  /* La rotation est gérée par JS via transform: rotateY(Xdeg) */
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Chaque carte du carousel */
.carousel-item {
  position: absolute;
  width: 260px;
  height: 360px;
  left: 50%;
  top: 50%;
  /* Centrage — la translation 3D est gérée par JS */
  transform-origin: center center;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy);
  border: 1px solid rgba(198, 167, 94, 0.3);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-normal);
}

/* La carte active (au centre, au premier plan) */
.carousel-item.active {
  box-shadow: 0 20px 60px rgba(198, 167, 94, 0.35);
  border-color: var(--gold);
}

/* Image placeholder (capture d'écran du site) */
.carousel-item__image {
  width: 100%;
  height: 75%;
  object-fit: cover;
  object-position: top;        /* Montre le haut du site */
  background: var(--navy-light);
  /* Style du placeholder si pas d'image */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lien qui englobe l'image — occupe tout l'espace disponible */
.carousel-item__link {
  display: block;
  width: 100%;
  height: 75%;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

/* Overlay "Voir le site →" qui apparaît au hover */
.carousel-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 42, 68, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
  backdrop-filter: blur(2px);
}

.carousel-item__overlay span {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
}

/* Afficher l'overlay au hover sur la carte active */
.carousel-item.active .carousel-item__link:hover .carousel-item__overlay {
  opacity: 1;
}

/* Sur mobile : overlay toujours légèrement visible sur la carte active */
@media (hover: none) {
  .carousel-item.active .carousel-item__overlay {
    opacity: 0.85;
  }
}
  width: 100%;
  height: 75%;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-xs);
}

.carousel-item__placeholder-icon {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(198, 167, 94, 0.4);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item__placeholder-icon svg {
  width: 24px;
  height: 24px;
  stroke: rgba(198, 167, 94, 0.5);
  fill: none;
}

.carousel-item__placeholder span {
  font-size: var(--text-xs);
  color: rgba(198, 167, 94, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Bas de carte : nom du projet */
.carousel-item__info {
  padding: var(--space-sm);
  height: 25%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.carousel-item__name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--beige);
}

.carousel-item__type {
  font-size: var(--text-xs);
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Contrôles du carousel */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-btn:hover {
  background: var(--gold);
  color: var(--navy);
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Points de navigation */
.carousel-dots {
  display: flex;
  gap: var(--space-xs);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(31, 42, 68, 0.25);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* Desktop : carousel plus grand */
@media (min-width: 768px) {
  .carousel-wrapper {
    height: 500px;
  }

  .carousel-item {
    width: 300px;
    height: 420px;
  }
}


/* ============================================================
   7. SECTION : PROCESSUS (4 étapes)
   ============================================================ */

.processus {
  padding: var(--space-2xl) 0;
  background: var(--beige);
}

.processus__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.processus__step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

/* Numéro de l'étape */
.processus__step-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gold);
  background: var(--white);
  box-shadow: var(--shadow-gold);
}

.processus__step-content {
  padding-top: 8px;
}

.processus__step-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.processus__step-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* Méthode de création */
.processus__methode {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--navy);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold);
}

.processus__methode-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.processus__methode-text {
  font-size: var(--text-sm);
  color: rgba(232, 220, 200, 0.85);
  line-height: 1.7;
}

/* Desktop : steps en grille 2 colonnes */
@media (min-width: 768px) {
  .processus__steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}


/* ============================================================
   8. SECTION : PRIX (3 cartes)
   ============================================================ */

.prix {
  padding: var(--space-2xl) 0;
  background: var(--beige-light);
}

.prix__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

/* Carte de prix */
.prix__card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(31, 42, 68, 0.08);
  position: relative;
  overflow: hidden;
  /* Animation flottante douce */
  animation: float-card 5s ease-in-out infinite;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

/* Délais différents pour que les cartes ne bougent pas ensemble */
.prix__card:nth-child(1) { animation-delay: 0s; }
.prix__card:nth-child(2) { animation-delay: 1.5s; }
.prix__card:nth-child(3) { animation-delay: 3s; }

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

.prix__card:hover {
  animation-play-state: paused;   /* Stoppe le flottement au hover */
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

/* Trait doré en haut de la carte */
.prix__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
  transform-origin: left;
}

.prix__card:hover::before {
  transform: scaleX(1);
}

/* Carte Premium : mise en avant */
.prix__card--featured {
  border: 2px solid var(--gold);
  background: var(--navy);
  color: var(--beige);
}

.prix__card--featured::before {
  transform: scaleX(1);   /* Trait doré toujours visible */
}

/* Badge "Populaire" */
.prix__badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: var(--gold);
  color: var(--navy);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.prix__pack-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.prix__card--featured .prix__pack-name {
  color: var(--gold);
}

.prix__pack-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.prix__card--featured .prix__pack-desc {
  color: rgba(232, 220, 200, 0.7);
}

/* Séparateur */
.prix__divider {
  height: 1px;
  background: rgba(31, 42, 68, 0.1);
  margin: var(--space-md) 0;
}

.prix__card--featured .prix__divider {
  background: rgba(198, 167, 94, 0.3);
}

/* Prix affiché */
.prix__amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: var(--space-xs);
}

.prix__currency {
  font-size: var(--text-lg);
  color: var(--gold);
  font-weight: 600;
}

.prix__number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}

.prix__card--featured .prix__number {
  color: var(--beige);
}

.prix__period {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.prix__card--featured .prix__period {
  color: rgba(232, 220, 200, 0.6);
}

.prix__renewal {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.prix__card--featured .prix__renewal {
  color: rgba(232, 220, 200, 0.6);
}

/* Liste des inclusions */
.prix__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.prix__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--text-dark);
  line-height: 1.5;
}

.prix__card--featured .prix__feature {
  color: rgba(232, 220, 200, 0.9);
}

/* Coche dorée */
.prix__feature-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--gold);
  margin-top: 2px;
}

.prix__card .btn-primary {
  width: 100%;
  justify-content: center;
}

/* Note renouvellement globale sous les cartes */
.prix__note {
  text-align: center;
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
}

/* Desktop : 3 colonnes */
@media (min-width: 900px) {
  .prix__grid {
    flex-direction: row;
    align-items: stretch;
  }

  .prix__card {
    flex: 1;
  }

  /* Carte centrale légèrement plus haute */
  .prix__card--featured {
    margin-top: -12px;
    margin-bottom: -12px;
  }
}


/* ============================================================
   9. SECTION : CONTACT
   ============================================================ */

.contact {
  padding: var(--space-2xl) 0;
  background: var(--navy);
}

.contact .section-title {
  color: var(--beige);
}

.contact .section-title::after {
  background: var(--gold);
}

.contact .section-subtitle {
  color: rgba(232, 220, 200, 0.7);
}

/* Carte flottante centrale du formulaire */
.contact__card {
  background: var(--beige-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3), var(--shadow-gold);
  max-width: 700px;
  margin: 0 auto;
}

/* Champs du formulaire */
.form__group {
  margin-bottom: var(--space-md);
}

.form__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 0.875rem var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid rgba(31, 42, 68, 0.15);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}

/* Animation focus : bordure gold */
.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 167, 94, 0.15);
}

.form__textarea {
  min-height: 130px;
  resize: vertical;
}

/* Grille 2 colonnes sur desktop */
.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

@media (min-width: 600px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Infos de contact sous le formulaire */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(31, 42, 68, 0.1);
}

.contact__info-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.contact__info-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__info-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
}

/* Bouton envoi pleine largeur */
.form__submit {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-sm);
}

/* Message de succès (affiché par JS après envoi) */
.form__success {
  display: none;
  text-align: center;
  padding: var(--space-lg);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--navy);
}

.form__success.visible {
  display: block;
}


/* ============================================================
   10. FOOTER
   ============================================================ */

.footer {
  background: #141c2e;        /* navy encore plus foncé */
  padding: var(--space-xl) 0 var(--space-lg);
  /* PAS de flottement — le footer reste ancré */
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(198, 167, 94, 0.2);
}

/* Logo dans le footer */
.footer__logo-main {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.footer__logo-sub {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: rgba(232, 220, 200, 0.6);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(232, 220, 200, 0.6);
  line-height: 1.6;
  max-width: 280px;
}

/* Navigation footer */
.footer__nav-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--beige);
  margin-bottom: var(--space-sm);
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__nav-list a {
  font-size: var(--text-sm);
  color: rgba(232, 220, 200, 0.6);
  transition: color var(--transition-fast);
}

.footer__nav-list a:hover {
  color: var(--gold);
}

/* Bas du footer */
.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  text-align: center;
}

.footer__copy {
  font-size: var(--text-xs);
  color: rgba(232, 220, 200, 0.4);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.footer__legal-links a {
  font-size: var(--text-xs);
  color: rgba(232, 220, 200, 0.4);
  transition: color var(--transition-fast);
}

.footer__legal-links a:hover {
  color: var(--gold);
}

/* Footer desktop : 3 colonnes */
@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}


/* ============================================================
   11. PAGE LEGAL (mentions légales & RGPD)
   ============================================================ */

.legal-page {
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: var(--space-2xl);
  background: var(--beige);
}

.legal-section {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-xl);
}

.legal-section h1,
.legal-section h2 {
  font-family: var(--font-display);
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.legal-section h1 {
  font-size: var(--text-3xl);
  border-bottom: 2px solid var(--gold);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.legal-section h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-lg);
}

.legal-section p,
.legal-section li {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.legal-section ul {
  list-style: disc;
  padding-left: var(--space-lg);
}

.legal-section a {
  color: var(--gold);
  text-decoration: underline;
}


/* ============================================================
   12. UTILITAIRES DIVERS
   ============================================================ */

/* Texte caché visuellement mais lisible par lecteur d'écran (accessibilité) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Section padding standard */
.section-padding {
  padding: var(--space-2xl) 0;
}

/* Texte en gold */
.text-gold { color: var(--gold); }

/* Espacement entre sections */
section + section {
  /* Géré par les paddings individuels */
}
