/* =============================================
   base.css — Chez Tante Yvonne
   Reset + styles globaux
   ============================================= */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-corps);
  background-color: var(--fond);
  color: var(--texte);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

a, button, .btn {
  -webkit-tap-highlight-color: transparent;
}

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

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

ul {
  list-style: none;
}

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

/* ── Typographie ── */
h1, h2, h3, h4 {
  font-family: var(--font-titre);
  color: var(--bleu-nuit);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

p {
  font-size: 1rem;
  color: var(--texte-doux);
  line-height: 1.8;
}

/* ── Boutons ── */
.btn {
  display: inline-block;
  font-family: var(--font-titre);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--rayon);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  border: 2px solid transparent;
}

.btn-primaire {
  background: var(--bleu);
  color: var(--blanc);
  border-color: var(--bleu);
}
.btn-primaire:hover {
  background: var(--bleu-fort);
  border-color: var(--bleu-fort);
  transform: translateY(-2px);
}

.btn-secondaire {
  background: transparent;
  color: var(--blanc);
  border-color: var(--blanc);
}
.btn-secondaire:hover {
  background: var(--blanc);
  color: var(--bleu-nuit);
  transform: translateY(-2px);
}

/* ── Section commune ── */
.section {
  padding: var(--section-py) 0;
}

.section-titre {
  text-align: center;
  margin-bottom: 48px;
}

.section-titre h2 {
  margin-bottom: 12px;
}

.section-titre p {
  max-width: 560px;
  margin: 0 auto;
}

.filet {
  width: 48px;
  height: 3px;
  background: var(--bleu);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ── Accessibilité ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* =============================================
   Animations — scroll reveal
   ============================================= */

/* État initial : caché, décalé vers le bas */
.rv {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Variante : glisse depuis la gauche */
.rv-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Variante : glisse depuis la droite */
.rv-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* État visible */
.rv.visible,
.rv-left.visible,
.rv-right.visible {
  opacity: 1;
  transform: translate(0, 0);
  will-change: auto;
}

/* Pas d'animation si l'utilisateur le préfère */
@media (prefers-reduced-motion: reduce) {
  .rv, .rv-left, .rv-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
