/* ============================================
   Kairos — Landing page POC IA/Data
   Palette : navy profond + crème, accents or & terracotta (thème sombre élégant)
   ============================================ */

:root {
  /* Palette Grèce antique — marbre, bleu égéen, terre cuite, or/bronze */
  --sand: #F2ECDF;          /* marbre / parchemin — fond principal */
  --sand-2: #E9E0CE;        /* pierre claire — fond alterné */
  --surface: #FBF8F1;       /* ivoire — cards */
  --surface-2: #F4EEE0;     /* hover cards */
  --navy-deep: #123A56;     /* bleu égéen profond — sections sombres (cta, footer) */
  --santorin: #1C5279;      /* bleu égéen — accent & section méthode */
  --cream: #FBF8F1;         /* ivoire — texte/éléments sur fonds foncés */
  --forest: #1C5279;        /* accent général = bleu égéen */
  --forest-soft: #15405E;
  --lavender: #1C5279;      /* accent secondaire = égéen */
  --lavender-soft: rgba(28, 82, 121, 0.12);  /* fond accent bleu subtil */
  --accent: #BFC0C2;        /* argent français (PPU18-05) — boutons */
  --accent-dark: #A6A8AB;   /* argent plus foncé — hover bouton */
  --anthracite: #3F4650;    /* gris anthracite — accents texte (numéros, labels, étoiles) */
  --clay: #BC4A2D;          /* terre cuite — mots importants */
  --ink: #221C14;           /* noir-figure / charbon — texte principal */
  --ink-soft: #5C5444;      /* texte secondaire */
  --ink-muted: #8C8270;     /* texte discret */
  --line: #DDD2BE;          /* bordures pierre */
  --line-soft: #EBE3D3;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(34, 28, 20, 0.05), 0 1px 3px rgba(34, 28, 20, 0.06);
  --shadow: 0 4px 14px rgba(34, 28, 20, 0.08), 0 2px 5px rgba(34, 28, 20, 0.05);
  --shadow-lg: 0 24px 48px rgba(34, 28, 20, 0.12), 0 8px 18px rgba(34, 28, 20, 0.08);

  --container: 1200px;
  --gap: 24px;

  --font-serif: 'Cinzel', 'Times New Roman', serif;       /* inscriptions gréco-romaines */
  --font-sans: 'EB Garamond', Georgia, 'Times New Roman', serif;  /* corps classique */

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============== SKIP LINK (a11y) ============== */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  background: var(--forest);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--lavender);
  outline-offset: 2px;
}

/* ============== RESET ============== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea { font-family: inherit; font-size: inherit; }

/* ============== LAYOUT ============== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

/* ============== TYPOGRAPHY ============== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
em { font-style: italic; color: var(--clay); }

.eyebrow,
.section-kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 16px;
  padding: 6px 12px;
  background: var(--lavender-soft);
  border-radius: 100px;
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-title { margin-bottom: 16px; }
.section-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.section-disclaimer {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-style: italic;
  margin-top: 8px;
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);
  border: 1px solid rgba(34, 28, 20, 0.10);
  box-shadow: 0 4px 12px rgba(63, 70, 80, 0.20);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(63, 70, 80, 0.42);
}
.btn-ghost {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
}
.btn-ghost:hover {
  background: var(--forest);
  color: var(--cream);
}
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-lg { padding: 18px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.header-cta { padding: 15px 32px; font-size: 1.05rem; font-weight: 700; }

/* ============== HEADER ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(34, 28, 20, 0.05);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled {
  background: rgba(251, 248, 241, 0.97);
  box-shadow: 0 4px 18px rgba(34, 28, 20, 0.09);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
}
.brand-mark { display: flex; }
.nav-desktop {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.nav-desktop a {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  transition: color var(--transition);
  position: relative;
}
.nav-desktop a:hover { color: var(--forest); }
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background: var(--forest);
  transition: width var(--transition);
}
.nav-desktop a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  background: var(--sand);
  border-top: 1px solid var(--line);
}
.nav-mobile a {
  padding: 14px 0;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
}
.nav-mobile a:last-child { border-bottom: none; margin-top: 8px; }
.nav-mobile.open { display: flex; }

@media (max-width: 900px) {
  .nav-desktop, .header-cta { display: none; }
  .menu-toggle { display: flex; }
}

/* ============== HERO ============== */
.hero {
  padding-top: 64px;
  padding-bottom: 96px;
  background: linear-gradient(180deg, var(--sand) 0%, var(--sand-2) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-text { max-width: 600px; }
.hero-title { margin-bottom: 24px; }
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.hero-bullets .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--forest);
  flex-shrink: 0;
}
.hero-visual { position: relative; }
.hero-art {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============== PRÉSENTATION (VIDÉO) ============== */
.presentation { background: var(--surface); }
.video-wrap { max-width: 960px; margin: 0 auto; }
.presentation-video,
.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.presentation-video {
  display: block;
  background: var(--navy-deep);
  object-fit: cover;
}
.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(150deg, var(--santorin) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  border: 1px solid var(--line);
  text-align: center;
}
.video-play {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  border-radius: 50%;
  background: rgba(251, 248, 241, 0.14);
  border: 2px solid rgba(251, 248, 241, 0.55);
  color: var(--cream);
}
.video-placeholder-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}
.video-placeholder-sub {
  font-size: 0.9rem;
  color: rgba(251, 248, 241, 0.7);
}

/* ============== TRUST ============== */
.trust { background: var(--sand); }
.trust .section-title { margin-bottom: 56px; max-width: 720px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trust-card {
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.trust-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lavender-soft);
  color: var(--forest);
  border-radius: 12px;
  margin-bottom: 20px;
}
.trust-card h3 { margin-bottom: 8px; }
.trust-card p { color: var(--ink-soft); font-size: 0.95rem; }

@media (max-width: 768px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ============== SERVICES ============== */
.services { background: var(--sand-2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--forest);
}
.service-num {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--anthracite);
  letter-spacing: 0.08em;
}
.service-card h3 {
  margin: 12px 0 12px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
}
.service-card p { color: var(--ink-soft); font-size: 0.95rem; }

@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ============== MÉTHODE ============== */
.methode { background: var(--santorin); color: var(--cream); }
.methode .section-kicker { background: rgba(255, 255, 255, 0.18); color: var(--cream); }
.methode .section-title { color: var(--cream); }
.methode .section-title em { color: #FFFFFF; }
.methode .section-sub { color: rgba(255, 255, 255, 0.85); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
  position: relative;
}
.step {
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  position: relative;
  transition: background var(--transition);
}
.step:hover { background: rgba(255, 255, 255, 0.08); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--cream);
  color: var(--santorin);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.step h3 { color: var(--cream); margin-bottom: 8px; }
.step p { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* ============== APRÈS LE SPRINT ============== */
.apres { background: var(--sand-2); }
.apres .section-kicker { background: var(--surface); }
.apres-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.apres-card {
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform var(--transition), box-shadow var(--transition);
}
.apres-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.apres-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--forest);
  color: var(--cream);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.apres-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.25;
}
.apres-card p { color: var(--ink-soft); font-size: 0.95rem; }

@media (max-width: 900px) { .apres-grid { grid-template-columns: 1fr; } }

/* ============== POUR QUI ============== */
.pour-qui { background: var(--sand); padding-bottom: 64px; }
.pour-qui .section-head { margin-bottom: 32px; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chip {
  padding: 12px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  transition: all var(--transition);
}
.chip:hover {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
  transform: translateY(-2px);
}

/* ============== POURQUOI ============== */
.pourquoi { background: var(--sand); }
.pourquoi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.pourquoi-left .section-sub { margin-bottom: 32px; }
.pourquoi-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pourquoi-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 1rem;
}
.pourquoi-list li:last-child { border-bottom: none; }
.pourquoi-list strong { color: var(--ink); display: block; margin-bottom: 4px; font-weight: 600; }

@media (max-width: 900px) {
  .pourquoi-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============== EXEMPLES ============== */
.exemples { background: var(--sand-2); }
.exemples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.exemple-card {
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform var(--transition), box-shadow var(--transition);
}
.exemple-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.exemple-tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--lavender-soft);
  color: var(--forest);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.exemple-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.25;
}
.exemple-block { margin-bottom: 16px; }
.exemple-block:last-child { margin-bottom: 0; }
.exemple-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--anthracite);
  margin-bottom: 4px;
}
.exemple-block p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; }

@media (max-width: 900px) { .exemples-grid { grid-template-columns: 1fr; } }

/* ============== AVIS (carrousel défilant) ============== */
.avis { background: var(--sand); overflow: hidden; }

.avis-marquee {
  position: relative;
  padding: 12px 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.avis-track {
  --card-w: 368px;
  --gap: 24px;
  --n: 8; /* nombre de cards originales — surchargé par JS */
  display: flex;
  gap: var(--gap);
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
  animation-direction: reverse; /* défilement de gauche vers la droite */
  will-change: transform;
}
.avis-marquee:hover .avis-track,
.avis-marquee:focus-within .avis-track {
  animation-play-state: paused;
}
.avis-track .avis-card {
  flex: 0 0 var(--card-w);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc((-1 * var(--card-w) - var(--gap)) * var(--n))); }
}

.avis-card {
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
}
.avis-stars {
  color: var(--anthracite);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.avis-card blockquote {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 24px;
  font-weight: 400;
}
.avis-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.avis-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
}
.avis-name { font-weight: 600; font-size: 0.95rem; }
.avis-role { color: var(--ink-soft); font-size: 0.85rem; }

@media (max-width: 768px) {
  .avis-marquee {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 12px 16px;
  }
  .avis-track {
    animation: none;
    --card-w: min(85vw, 340px);
  }
  .avis-track .avis-card {
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .avis-marquee {
    overflow-x: auto;
  }
  .avis-track { animation: none; }
}

/* ============== FAQ ============== */
.faq { background: var(--sand-2); }
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item[open] {
  border-color: var(--forest);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--forest);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item summary:hover { color: var(--forest); }
.faq-answer {
  padding: 0 24px 24px;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.65;
}
.faq-answer p { margin-bottom: 8px; }

/* ============== CTA FINAL ============== */
.cta-final {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 96px 0;
}
.cta-inner {
  max-width: 760px;
  text-align: center;
}
.cta-inner h2 {
  color: var(--cream);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 20px;
}
.cta-inner h2 em { color: var(--clay); }
.cta-inner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
  margin-bottom: 36px;
}

/* ============== CONTACT ============== */
.contact { background: var(--sand); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-left .section-sub { margin-bottom: 32px; }
.contact-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-bullets li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
}
.contact-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 10px;
  border-left: 2px solid var(--forest);
  border-bottom: 2px solid var(--forest);
  transform: rotate(-45deg);
}

.contact-form {
  padding: 40px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.form-row input,
.form-row textarea {
  padding: 14px 16px;
  background: var(--sand);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color var(--transition), background var(--transition);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--forest);
  background: var(--surface);
}
.form-row textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.form-feedback {
  font-size: 0.9rem;
  color: var(--forest);
  text-align: center;
  min-height: 22px;
  margin-top: 4px;
}
.form-feedback.error { color: var(--clay); }

.form-consent {
  margin-top: -4px;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}
.consent-label input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--forest);
  flex-shrink: 0;
  cursor: pointer;
}
.consent-label a {
  color: var(--forest);
  text-decoration: underline;
}
.form-note {
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.5;
  margin-top: -4px;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { padding: 28px; }
}

/* ============== FOOTER ============== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 32px;
  align-items: center;
  padding-bottom: 48px;
}
.footer-brand .brand { color: var(--cream); margin-bottom: 8px; }
.footer-tag { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }
.footer-links {
  display: flex;
  gap: 32px;
  justify-content: center;
}
.footer-links a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--cream); }
.footer-mention {
  font-size: 0.85rem;
  text-align: right;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--cream); }
.footer-legal span { color: rgba(255, 255, 255, 0.3); }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-mention { text-align: center; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .footer-legal { justify-content: center; }
}

/* ============== LEGAL PAGES ============== */
.legal-page { background: var(--sand); }
.legal-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.legal-back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color var(--transition);
}
.legal-back:hover { color: var(--forest); }
.legal-main h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}
.legal-meta {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.legal-main h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 40px 0 14px;
  color: var(--forest);
}
.legal-main p {
  margin-bottom: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.legal-main ul {
  padding-left: 24px;
  list-style: disc;
  margin-bottom: 16px;
  color: var(--ink-soft);
}
.legal-main ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.legal-main strong { color: var(--ink); }
.legal-main a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-main a:hover {
  color: var(--clay);
}

/* ============== MODAL DE RÉSERVATION ============== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
}
.modal[aria-hidden="false"] {
  display: flex;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modalFadeIn 0.2s ease;
  cursor: pointer;
}
.modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 24px 64px rgba(15, 15, 15, 0.3);
  margin: auto;
  animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  border-radius: 50%;
  color: var(--ink);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.modal-close:hover {
  background: var(--ink);
  color: var(--cream);
  transform: rotate(90deg);
}
.modal-close:focus {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}

.modal-header { margin-bottom: 32px; padding-right: 40px; }
.modal-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 16px;
  padding: 5px 10px;
  background: var(--lavender-soft);
  border-radius: 100px;
}
.modal-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.2;
}
.modal-sub {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.modal-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.modal-form input,
.modal-form select,
.modal-form textarea {
  padding: 12px 14px;
  background: var(--sand);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
}
.modal-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%231C5279' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
  cursor: pointer;
}
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--forest);
  background: var(--surface);
}
.modal-form textarea { resize: vertical; min-height: 100px; font-family: inherit; }

body.modal-open {
  overflow: hidden;
}

/* Indicateur d'étape */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.step-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  background: var(--sand);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all var(--transition);
}
.step-pill .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.8rem;
}
.step-pill.active {
  background: var(--lavender-soft);
  color: var(--forest);
}
.step-pill.active .step-num {
  background: var(--forest);
  color: var(--cream);
}
.step-pill.completed .step-num {
  background: var(--forest);
  color: var(--cream);
}
.step-line {
  flex: 1;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}

/* Footer modal avec boutons d'étape */
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.modal-footer .form-note { margin: 0; flex: 1; }
.modal-footer .btn { flex-shrink: 0; }

/* Calendrier */
.calendar { margin: 4px 0 8px; }
.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}
.calendar-nav-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  border-radius: 50%;
  color: var(--forest);
  transition: all var(--transition);
}
.calendar-nav-btn:hover:not(:disabled) {
  background: var(--forest);
  color: var(--cream);
}
.calendar-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.calendar-week-label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.calendar-day {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calendar-day-header {
  text-align: center;
  padding: 8px 4px;
  background: var(--sand);
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.3;
}
.calendar-day-name {
  display: block;
  font-weight: 700;
  color: var(--forest);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
}
.calendar-day-date {
  display: block;
  color: var(--ink);
  font-weight: 500;
  margin-top: 2px;
}
.calendar-slot {
  padding: 8px 4px;
  text-align: center;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.15s ease;
  font-family: inherit;
}
.calendar-slot:hover:not(:disabled) {
  border-color: var(--forest);
  background: var(--lavender-soft);
  color: var(--forest);
}
.calendar-slot.selected {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}
.calendar-slot:disabled {
  background: transparent;
  color: var(--ink-muted);
  border-color: transparent;
  text-decoration: line-through;
  cursor: not-allowed;
  font-weight: 400;
}
.calendar-slot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.calendar-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  justify-content: center;
}
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: middle;
}
.legend-free { background: var(--surface); border: 1.5px solid var(--line); }
.legend-booked { background: var(--sand); border: 1px dashed var(--ink-muted); }
.legend-selected { background: var(--forest); }

.slot-confirmation {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--lavender-soft);
  color: var(--forest);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  min-height: 0;
}
.slot-confirmation:empty {
  display: none;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .modal { padding: 16px 12px; }
  .modal-dialog { padding: 28px 22px; }
  .modal-header { padding-right: 30px; }
  .modal-header h2 { font-size: 1.35rem; }
  .form-grid { grid-template-columns: 1fr; }
  .step-pill .step-name { display: none; }
  .calendar-grid { gap: 6px; }
  .calendar-slot { font-size: 0.75rem; padding: 6px 2px; }
  .calendar-day-header { font-size: 0.7rem; }
  .modal-footer { flex-direction: column-reverse; align-items: stretch; }
  .modal-footer .btn { width: 100%; }
  .modal-footer .form-note { text-align: center; }
}

/* ============== REVEAL ANIMATION ============== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-art { animation: none; }
}
