:root {
  /* ==========================================================================
     COULEURS — Palette avec contrastes AA validés
     ========================================================================== */

  /* Primitives de marque (étoile du logo Tanibis) */
  --color-brand: #D7746C;
  --color-brand-dark: #B85D53;
  --color-brand-light: #F5E6E4;

  /* Texte */
  --color-text: #1A1A1A;
  --color-text-muted: #5A5A5A;
  --color-text-on-brand: #FFFFFF;

  /* Fonds */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8F8F8;

  /* Bordures */
  --color-border: #E0E0E0;
  --color-border-strong: #CCCCCC;

  /* États interactifs */
  --color-focus: #0057D9;
  --color-error: #C0392B;
  --color-success: #27AE60;
  --color-warning: #E67E22;

  /* ==========================================================================
     TYPOGRAPHIE — Familles, échelle fluide, graisse, interlignage
     ========================================================================== */

  /* Familles */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-mono: "SF Mono", "Fira Code", "Monaco", monospace;

  /* Échelle fluide (mobile-first clamp) */
  --fs-300: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --fs-400: clamp(0.875rem, 0.84rem + 0.18vw, 0.9375rem);
  --fs-500: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-600: clamp(1.125rem, 1.07rem + 0.28vw, 1.25rem);
  --fs-700: clamp(1.375rem, 1.28rem + 0.48vw, 1.625rem);
  --fs-800: clamp(1.75rem, 1.6rem + 0.75vw, 2.25rem);
  --fs-900: clamp(2.25rem, 2rem + 1.25vw, 3rem);

  /* Graisse */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Interlignage */
  --lh-tight: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  /* ==========================================================================
     ESPACEMENT — Échelle base 4px
     ========================================================================== */

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* ==========================================================================
     GRILLE & RESPONSIVE — Breakpoints, conteneurs, gouttières
     ========================================================================== */

  /* Breakpoints */
  --bp-mobile: 375px;
  --bp-tablet: 768px;
  --bp-desktop: 1440px;

  /* Conteneurs max-width */
  --container-narrow: 720px;
  --container-wide: 1280px;
  --container-full: 100%;

  /* Gouttière fluide */
  --gutter: clamp(var(--space-4), 2vw, var(--space-6));

  /* ==========================================================================
     FORME & EFFETS — Rayons, ombres, transitions
     ========================================================================== */

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-focus: 0 0 0 3px var(--color-focus);

  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease-out;
  --transition-slow: 400ms ease-in-out;

  /* ==========================================================================
     EMPILEMENT (z-index)
     ========================================================================== */

  --z-dropdown: 100;
  --z-sticky: 200;
  --z-drawer: 300;
  --z-modal: 400;
  --z-toast: 500;

  /* ==========================================================================
     CIBLES TACTILES — Minimum 44px
     ========================================================================== */

  --touch-target: 44px;

  /* ==========================================================================
     HAUTEURS COMPOSANTS
     ========================================================================== */

  --header-height-mobile: 56px;
  --header-height-desktop: 64px;
  --btn-height-min: 44px;

  /* ==========================================================================
     MÉDIAS — Ratios images
     ========================================================================== */

  --ratio-book: 2 / 3;
  --ratio-poster: 1 / 1.4;
  --ratio-slide: 16 / 9;
}

/* ==========================================================================
   RESET & BASE — Normalisation minimale
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-500);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   FOCUS VISIBLE — Accessible sur tous les éléments interactifs
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ==========================================================================
   PRÉFÉRENCE MOUVEMENT RÉDUIT — Global
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   UTILITAIRES TYPOGRAPHIQUES — Classes d'usage sémantique
   ========================================================================== */

.text-serif { font-family: var(--font-serif); }
.text-sans { font-family: var(--font-sans); }
.text-mono { font-family: var(--font-mono); }

.fw-regular { font-weight: var(--fw-regular); }
.fw-medium { font-weight: var(--fw-medium); }
.fw-semibold { font-weight: var(--fw-semibold); }
.fw-bold { font-weight: var(--fw-bold); }

.fs-300 { font-size: var(--fs-300); }
.fs-400 { font-size: var(--fs-400); }
.fs-500 { font-size: var(--fs-500); }
.fs-600 { font-size: var(--fs-600); }
.fs-700 { font-size: var(--fs-700); }
.fs-800 { font-size: var(--fs-800); }
.fs-900 { font-size: var(--fs-900); }

.lh-tight { line-height: var(--lh-tight); }
.lh-normal { line-height: var(--lh-normal); }
.lh-relaxed { line-height: var(--lh-relaxed); }

/* ==========================================================================
   UTILITAIRES ESPACEMENT
   ========================================================================== */

.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-7 { padding: var(--space-7); }
.p-8 { padding: var(--space-8); }

.m-0 { margin: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mt-8 { margin-top: var(--space-8); }
.mt-9 { margin-top: var(--space-9); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-7 { margin-bottom: var(--space-7); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-9 { margin-bottom: var(--space-9); }

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

/* ==========================================================================
   CONTENEURS RESPONSIVE
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-6);
  }
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ==========================================================================
   GRILLE RESPONSIVE — Utilitaires pour les sections
   ========================================================================== */

.grid {
  display: grid;
  gap: var(--gutter);
}

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

@media (min-width: 375px) {
  .mobile\:grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
  .mobile\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .mobile\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  .tablet\:grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
  .tablet\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .tablet\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .tablet\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1440px) {
  .desktop\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .desktop\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .desktop\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   BOUTONS — Variantes avec états complets
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--btn-height-min);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--fs-400);
  font-weight: var(--fw-medium);
  line-height: 1;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primaire — newsletter */
.btn-primary {
  background-color: var(--color-brand);
  color: var(--color-text-on-brand);
}

.btn-primary:not(:disabled):hover {
  background-color: var(--color-brand-dark);
}

.btn-primary:focus-visible {
  box-shadow: var(--shadow-focus);
}

/* Secondaire — VOIR TOUS LES LIVRES / AFFICHES */
.btn-secondary {
  background-color: transparent;
  color: var(--color-brand);
  border: 1px solid var(--color-brand);
}

.btn-secondary:not(:disabled):hover {
  background-color: var(--color-brand-light);
}

.btn-secondary:focus-visible {
  box-shadow: var(--shadow-focus);
}

/* Ghost — navigation header */
.btn-ghost {
  background-color: transparent;
  color: var(--color-text);
  padding: var(--space-2) var(--space-3);
}

.btn-ghost:not(:disabled):hover {
  color: var(--color-brand);
}

.btn-ghost[aria-current="page"] {
  font-weight: var(--fw-semibold);
  color: var(--color-brand);
}

.btn-ghost:focus-visible {
  box-shadow: var(--shadow-focus);
}

/* ==========================================================================
   LIENS — Style éditorial
   ========================================================================== */

.link {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.link:hover,
.link:focus-visible {
  color: var(--color-brand);
  text-decoration: underline;
}

.link-external {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

/* ==========================================================================
   CHAMPS DE FORMULAIRE
   ========================================================================== */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.field__label {
  font-size: var(--fs-400);
  font-weight: var(--fw-medium);
  color: var(--color-text);
}

.field__input {
  width: 100%;
  min-height: var(--btn-height-min);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--fs-500);
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.field__input::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}

.field__input:focus {
  outline: none;
  border-color: var(--color-focus);
  box-shadow: var(--shadow-focus);
}

.field__input[aria-invalid="true"] {
  border-color: var(--color-error);
}

.field__input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.25);
}

.field__message {
  font-size: var(--fs-300);
  color: var(--color-text-muted);
}

.field__message--error {
  color: var(--color-error);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.field__message--success {
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* ==========================================================================
   BADGES
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-300);
  font-weight: var(--fw-medium);
  line-height: 1;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge--nouveaute {
  background-color: var(--color-brand-light);
  color: var(--color-brand-dark);
}

.badge--a-paraitre {
  background-color: var(--color-bg-alt);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

/* ==========================================================================
   CARTES — Livres, microédition, affiches
   ========================================================================== */

.card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

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

.card:focus-within {
  box-shadow: var(--shadow-focus);
}

.card__image {
  width: 100%;
  aspect-ratio: var(--ratio-book);
  object-fit: cover;
  background-color: var(--color-bg-alt);
}

.card__image--poster {
  aspect-ratio: var(--ratio-poster);
}

.card__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  flex: 1;
}

.card__badge {
  align-self: flex-start;
}

.card__title {
  font-family: var(--font-serif);
  font-size: var(--fs-600);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  margin: 0;
  color: var(--color-text);
}

.card__author {
  font-size: var(--fs-400);
  color: var(--color-text-muted);
  margin: 0;
}

.card__description {
  font-family: var(--font-serif);
  font-size: var(--fs-500);
  line-height: var(--lh-relaxed);
  color: var(--color-text);
  margin: 0;
}

.card__link {
  margin-top: auto;
  align-self: flex-start;
}

/* ==========================================================================
   DIAPORAMA — Héros
   ========================================================================== */

.slider {
  position: relative;
  overflow: hidden;
}

.slider__track {
  display: flex;
  transition: transform var(--transition-slow);
}

@media (prefers-reduced-motion: reduce) {
  .slider__track {
    transition: none;
  }
}

.slider__slide {
  flex: 0 0 100%;
  position: relative;
}

.slider__image {
  width: 100%;
  aspect-ratio: var(--ratio-slide);
  object-fit: cover;
}

.slider__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}

.slider__content {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  right: var(--space-6);
  color: var(--color-text-on-brand);
  z-index: 1;
}

.slider__title {
  font-family: var(--font-serif);
  font-size: var(--fs-800);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-2);
}

.slider__meta {
  font-size: var(--fs-500);
  opacity: 0.9;
}

.slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--color-text);
  box-shadow: var(--shadow-md);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.slider__nav:hover {
  background: var(--color-bg);
  transform: translateY(-50%) scale(1.05);
}

.slider__nav:focus-visible {
  box-shadow: var(--shadow-focus);
}

.slider__nav--prev { left: var(--space-4); }
.slider__nav--next { right: var(--space-4); }

.slider__indicators {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 2;
}

.slider__indicator {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.slider__indicator[aria-selected="true"] {
  background: var(--color-text-on-brand);
  transform: scale(1.2);
}

.slider__indicator:focus-visible {
  box-shadow: var(--shadow-focus);
}

/* ==========================================================================
   EN-TÊTE
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  height: var(--header-height-mobile);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .header {
    height: var(--header-height-desktop);
  }
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

@media (min-width: 768px) {
  .header__inner {
    padding: 0 var(--space-6);
  }
}

.header__logo {
  flex-shrink: 0;
}

.header__nav {
  display: none;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .header__nav {
    display: flex;
  }
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header__lang {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-400);
}

.header__lang-btn {
  background: none;
  border: none;
  padding: var(--space-1);
  font: inherit;
  color: var(--color-text-muted);
  cursor: pointer;
}

.header__lang-btn[aria-current="true"] {
  color: var(--color-brand);
  font-weight: var(--fw-semibold);
}

.header__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-target);
  height: var(--touch-target);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .header__menu-btn {
    display: none;
  }
}

/* Drawer mobile */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
  z-index: var(--z-drawer);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  overflow-y: auto;
}

@media (prefers-reduced-motion: reduce) {
  .drawer {
    transition: none;
  }
}

.drawer[aria-hidden="false"] {
  transform: translateX(0);
}

.drawer__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  z-index: calc(var(--z-drawer) - 1);
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

@media (prefers-reduced-motion: reduce) {
  .drawer__backdrop {
    transition: none;
  }
}

.drawer__backdrop[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   PIED DE PAGE
   ========================================================================== */

.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: var(--space-8) 0 var(--space-6);
}

.footer__grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1440px) {
  .footer__grid {
    grid-template-columns: 2fr repeat(3, 1fr);
  }
}

.footer__section-title {
  font-family: var(--font-serif);
  font-size: var(--fs-600);
  font-weight: var(--fw-semibold);
  margin: 0 0 var(--space-4);
  color: var(--color-text);
}

.footer__address {
  font-style: normal;
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-4);
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--fs-400);
  transition: color var(--transition-fast);
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--color-brand);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer__social-link:hover,
.footer__social-link:focus-visible {
  color: var(--color-brand);
}

.footer__newsletter {
  grid-column: 1 / -1;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

@media (min-width: 1440px) {
  .footer__newsletter {
    grid-column: auto;
    border-top: none;
    padding-top: 0;
  }
}

/* ==========================================================================
   FORMULAIRE NEWSLETTER
   ========================================================================== */

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 360px;
}

@media (min-width: 768px) {
  .newsletter-form {
    flex-direction: row;
    align-items: flex-end;
  }
}

.newsletter-form .field {
  flex: 1;
}

.newsletter-form .btn {
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .newsletter-form .btn {
    width: auto;
  }
}

.newsletter-feedback {
  min-height: 20px;
  font-size: var(--fs-400);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.newsletter-feedback[aria-live] {
  /* Région live pour annonces */
}

/* ==========================================================================
   SPINNER CHARGEMENT
   ========================================================================== */

.spinner {
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 2s;
  }
}

/* ==========================================================================
   SECTIONS — Titres communs
   ========================================================================== */

.section {
  padding: var(--space-7) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-8) 0;
  }
}

.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.section__title {
  font-family: var(--font-serif);
  font-size: var(--fs-700);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  margin: 0;
  color: var(--color-text);
}

.section__action {
  flex-shrink: 0;
}

/* ==========================================================================
   HERO — Diaporama section
   ========================================================================== */

.hero {
  padding: 0;
}

.hero .slider {
  border-radius: 0;
}

/* ==========================================================================
   UTILITAIRES VISIBILITÉ
   ========================================================================== */

.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;
}

.hidden { display: none !important; }
.invisible { visibility: hidden; }

/* ==========================================================================
   IMAGES RESPONSIVE
   ========================================================================== */

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

picture {
  display: block;
}

/* ==========================================================================
   LISTES RÉINITIALISÉES
   ========================================================================== */

ul[class],
ol[class] {
  padding: 0;
  margin: 0;
  list-style: none;
}

/* ==========================================================================
   TYPOGRAPHIE PAR DÉFAUT POUR ÉLÉMENTS SÉMANTIQUES
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--color-text);
  margin: 0 0 var(--space-3);
}

h1 { font-size: var(--fs-800); }
h2 { font-size: var(--fs-700); }
h3 { font-size: var(--fs-600); }
h4 { font-size: var(--fs-500); }

p {
  margin: 0 0 var(--space-4);
  line-height: var(--lh-normal);
}

a {
  color: inherit;
}

address {
  font-style: normal;
}