/* ============================================================
   LE SAFARI DES COULEURS — feuille de style (style.css)
   ============================================================
   Ce fichier décide de l'APPARENCE du site.
   Mise en page : sections empilées les unes sous les autres, contenu
   centré dans une colonne de 1100px max, qui passe sur une seule
   colonne sur téléphone.
   ============================================================ */


/* ------------------------------------------------------------
   1. LES VARIABLES (couleurs et polices réutilisées partout)
   Pour changer une couleur sur tout le site, il suffit de la
   changer ici, une seule fois.
   ------------------------------------------------------------ */
:root {
  /* Couleurs des lettres du logo */
  --rouge:   #e5262b;
  --orange:  #f7941d;
  --jaune:   #ffc72c;
  --vert:    #2da84a;
  --bleu:    #1e7be0;
  --violet:  #8a3fd1;
  --rose:    #ec2c8c;
  --turquoise: #1fb3ad;
  --marine:  #1b2a8a;   /* le bleu foncé de « Le » et « des » */

  /* Couleurs de fond et de texte */
  --fond:        #ffffff;
  --fond-doux:   #f2f7ff;   /* bleu ciel très pâle pour alterner les sections */
  --texte:       #23284a;   /* presque noir, légèrement bleuté */
  --texte-doux:  #565d82;
  --bordure:     #dde4f5;

  /* Polices */
  --police-titre: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --police-texte: "Nunito", "Segoe UI", system-ui, sans-serif;

  /* Arrondis */
  --arrondi: 18px;
  --arrondi-bouton: 999px;   /* 999px = bords complètement ronds */

  color-scheme: light;
}


/* ------------------------------------------------------------
   2. RÉGLAGES DE BASE
   ------------------------------------------------------------ */

/* box-sizing: border-box = la largeur d'un élément inclut ses marges intérieures */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;      /* défilement doux quand on clique dans le menu */
  scroll-padding-top: 90px;     /* pour que l'en-tête ne cache pas les titres */
}

body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 1.0625rem;         /* environ 17px */
  line-height: 1.65;
  color: var(--texte);
  background: var(--fond);
}

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

h1, h2, h3 {
  font-family: var(--police-titre);
  line-height: 1.15;
  color: var(--marine);
  margin: 0 0 0.5em;
  text-wrap: balance;           /* répartit joliment les mots sur les lignes */
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--bleu); }

/* Contour bien visible quand on navigue au clavier (touche Tab) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* La colonne centrale qui contient le contenu de chaque section */
.conteneur {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.centre { text-align: center; margin-top: 2.5rem; }


/* ------------------------------------------------------------
   3. ÉLÉMENTS RÉUTILISÉS : étiquettes et boutons
   ------------------------------------------------------------ */

/* Petit texte au-dessus des titres (« Le projet », « Les livres »…) */
.etiquette {
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rose);
  margin-bottom: 0.4rem;
}

.section-intro {
  max-width: 62ch;              /* 62 caractères par ligne : confortable à lire */
  color: var(--texte-doux);
  font-size: 1.125rem;
}

.boutons {
  display: flex;
  flex-wrap: wrap;              /* les boutons passent à la ligne si besoin */
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.bouton {
  display: inline-block;
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.75em 1.5em;
  border-radius: var(--arrondi-bouton);
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Effet « bouton bonbon » : il se soulève quand on passe la souris */
.bouton:hover {
  transform: translateY(-2px);
}

.bouton-principal {
  background: var(--rouge);
  color: #ffffff;
  box-shadow: 0 4px 0 #a8151a;  /* ombre dure = effet 3D comme les lettres du logo */
}
.bouton-principal:hover { box-shadow: 0 6px 0 #a8151a; }

.bouton-secondaire {
  background: #ffffff;
  color: var(--marine);
  border-color: var(--marine);
  box-shadow: 0 4px 0 var(--marine);
}

.bouton-petit {
  font-size: 0.95rem;
  padding: 0.55em 1.2em;
  background: var(--bleu);
  color: #ffffff;
  box-shadow: 0 3px 0 #13529a;
}


/* ------------------------------------------------------------
   4. EN-TÊTE (logo + menu), collé en haut de l'écran
   ------------------------------------------------------------ */
.entete {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bordure);
}

.entete-interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
}

.entete-logo img {
  width: 150px;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.4rem;
}

.menu a {
  font-family: var(--police-titre);
  font-weight: 600;
  color: var(--marine);
  text-decoration: none;
  padding: 0.3em 0;
  border-bottom: 3px solid transparent;
}

/* Au survol, chaque lien du menu se souligne d'une couleur du logo */
.menu a:nth-child(1):hover { border-color: var(--orange); }
.menu a:nth-child(2):hover { border-color: var(--vert); }
.menu a:nth-child(3):hover { border-color: var(--violet); }
.menu a:nth-child(4):hover { border-color: var(--rose); }


/* ------------------------------------------------------------
   5. ACCUEIL
   ------------------------------------------------------------ */
.accueil {
  position: relative;
  background:
    /* petites taches de couleur, comme les éclaboussures du logo */
    radial-gradient(circle at 8% 20%, rgba(236, 44, 140, 0.10) 0 90px, transparent 91px),
    radial-gradient(circle at 92% 85%, rgba(30, 123, 224, 0.10) 0 120px, transparent 121px),
    radial-gradient(circle at 55% 8%, rgba(255, 199, 44, 0.16) 0 60px, transparent 61px),
    var(--fond);
}

.accueil-interieur {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* deux colonnes : texte | logo */
  align-items: center;
  gap: 2.5rem;
  padding-block: 4rem 4.5rem;
}

.accueil-texte { min-width: 0; }

.accueil-intro {
  font-size: 1.2rem;
  color: var(--texte-doux);
  max-width: 34ch;
}

/* Le logo détouré (fond transparent) : drop-shadow suit la forme
   du logo, au lieu de faire une ombre rectangulaire */
.accueil-visuel img {
  filter: drop-shadow(0 14px 22px rgba(27, 42, 138, 0.18));
  transform: rotate(-3deg);
}

/* Bande arc-en-ciel : les couleurs des lettres du logo, dans l'ordre */
.arc-en-ciel {
  height: 10px;
  background: linear-gradient(90deg,
    var(--rouge) 0 14.28%,
    var(--orange) 0 28.56%,
    var(--vert) 0 42.84%,
    var(--bleu) 0 57.12%,
    var(--violet) 0 71.4%,
    var(--rose) 0 85.68%,
    var(--turquoise) 0 100%);
}


/* ------------------------------------------------------------
   6. SECTIONS GÉNÉRALES
   ------------------------------------------------------------ */
.section {
  padding-block: 4.5rem;
}

/* Une section sur deux a un fond bleu ciel, avec une ligne pointillée
   qui rappelle le trajet de l'avion du logo */
.section-coloree {
  background:
    radial-gradient(circle, rgba(27, 42, 138, 0.07) 1.5px, transparent 1.6px) 0 0 / 22px 22px,
    var(--fond-doux);
}


/* ------------------------------------------------------------
   7. LE PROJET : trois cartes
   ------------------------------------------------------------ */
.trois-cartes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.2rem;
}

.carte-idee {
  background: #ffffff;
  border: 3px solid var(--bordure);
  border-radius: var(--arrondi);
  padding: 1.6rem;
}

.carte-idee p { margin: 0; color: var(--texte-doux); }

/* Le titre de chaque carte prend une couleur du logo */
.carte-rouge h3 { color: var(--rouge); }
.carte-verte h3 { color: var(--vert); }
.carte-bleue h3 { color: var(--bleu); }

.carte-rouge { border-top: 10px solid var(--rouge); }
.carte-verte { border-top: 10px solid var(--vert); }
.carte-bleue { border-top: 10px solid var(--bleu); }


/* ------------------------------------------------------------
   8. LES LIVRES
   ------------------------------------------------------------ */
.grille-livres {
  display: grid;
  /* autant de colonnes que possible, chacune d'au moins 250px */
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.8rem;
  margin-top: 2.2rem;
}

.livre {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: var(--arrondi);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(27, 42, 138, 0.10);
  transition: transform 0.2s ease;
}

.livre:hover { transform: translateY(-4px) rotate(-0.5deg); }

/* Couverture au format d'un livre (largeur 3 / hauteur 4) */
.livre-couverture {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* Couverture provisoire, en attendant les vraies images */
.couverture-attente {
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 1.3rem;
  color: #ffffff;
}
.couleur-orange  { background: linear-gradient(150deg, var(--jaune), var(--orange)); }
.couleur-verte   { background: linear-gradient(150deg, var(--turquoise), var(--vert)); }
.couleur-violette{ background: linear-gradient(150deg, var(--rose), var(--violet)); }

.livre-infos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1.3rem 1.4rem 1.5rem;
  flex: 1;                      /* toutes les cartes ont la même hauteur */
}

.livre-infos h3 { margin: 0; }
.livre-infos p { margin: 0; color: var(--texte-doux); font-size: 0.98rem; flex: 1; }

/* Le « tampon de passeport » qui indique la destination */
.tampon {
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rose);
  border: 2px dashed var(--rose);
  border-radius: 8px;
  padding: 0.15em 0.6em;
  transform: rotate(-2deg);
}


/* ------------------------------------------------------------
   9. L'AUTRICE
   ------------------------------------------------------------ */
.autrice {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: center;
}

.autrice-texte { min-width: 0; max-width: 62ch; }

.autrice-photo {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid #ffffff;
  box-shadow: 0 0 0 6px var(--orange), 0 14px 30px rgba(27, 42, 138, 0.15);
}

/* Rond provisoire avec les initiales, en attendant la photo */
.photo-attente {
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--bleu), var(--violet));
  color: #ffffff;
  font-family: var(--police-titre);
  font-size: 3.5rem;
  font-weight: 700;
}


/* ------------------------------------------------------------
   10. CONTACT
   ------------------------------------------------------------ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-texte { min-width: 0; }

.contact-mail { font-weight: 700; }

.formulaire {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #ffffff;
  border-radius: var(--arrondi);
  padding: 1.8rem;
  box-shadow: 0 8px 24px rgba(27, 42, 138, 0.10);
}

.formulaire label {
  font-weight: 700;
  color: var(--marine);
  margin-top: 0.5rem;
}

.formulaire input,
.formulaire textarea {
  font: inherit;
  color: var(--texte);
  background: #ffffff;
  padding: 0.7em 0.9em;
  border: 2px solid var(--bordure);
  border-radius: 12px;
  width: 100%;
}

.formulaire button { margin-top: 1rem; align-self: flex-start; }

.formulaire-merci {
  margin: 0.8rem 0 0;
  font-weight: 700;
  color: var(--vert);
}


/* ------------------------------------------------------------
   11. PIED DE PAGE
   ------------------------------------------------------------ */
.pied {
  background: var(--marine);
  color: #ffffff;
}

.pied-interieur {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.6rem;
  font-size: 0.95rem;
}

.pied p { margin: 0; }
.pied a { color: var(--jaune); }


/* ------------------------------------------------------------
   12. TÉLÉPHONES ET PETITS ÉCRANS
   Ces règles ne s'appliquent que si l'écran fait moins de 800px de large.
   ------------------------------------------------------------ */
@media (max-width: 800px) {
  .entete-interieur { flex-direction: column; gap: 0.3rem; }
  .entete-logo img { width: 120px; }
  .menu { justify-content: center; gap: 0.2rem 1rem; font-size: 0.95rem; }

  html { scroll-padding-top: 130px; }

  /* Tout passe sur une seule colonne */
  .accueil-interieur,
  .trois-cartes,
  .autrice,
  .contact {
    grid-template-columns: 1fr;
  }

  .accueil-interieur { padding-block: 2.5rem 3rem; gap: 2rem; }
  .accueil-visuel { order: -1; }   /* le logo passe au-dessus du texte */
  .autrice-photo { max-width: 200px; margin: 0 auto; }
  .section { padding-block: 3.2rem; }
}

/* Pour les personnes qui ont désactivé les animations dans leur système */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton, .livre { transition: none; }
}


/* ------------------------------------------------------------
   13. COMMANDER : prix, étapes, paiement et livraison
   ------------------------------------------------------------ */

/* Le prix sous chaque livre */
.livre-infos .prix {
  flex: 0;
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--marine);
}

/* Les 3 étapes : une liste numérotée dont les numéros sont de grosses pastilles */
.etapes {
  list-style: none;            /* on enlève les numéros par défaut… */
  counter-reset: etape;        /* …et on crée notre propre compteur */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  padding: 0;
  margin: 2.2rem 0;
}

.etapes li {
  counter-increment: etape;
  min-width: 0;
}

.etapes li::before {
  content: counter(etape);     /* affiche 1, 2, 3 */
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 1.5rem;
  color: #ffffff;
}
.etapes li:nth-child(1)::before { background: var(--orange); }
.etapes li:nth-child(2)::before { background: var(--vert); }
.etapes li:nth-child(3)::before { background: var(--violet); }

.etapes h3 { margin-bottom: 0.3rem; }
.etapes p { margin: 0; color: var(--texte-doux); }

.infos-commande {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.bloc-info {
  min-width: 0;
  background: var(--fond-doux);
  border-radius: var(--arrondi);
  padding: 1.6rem;
}

.bloc-info ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.bloc-info li { margin-bottom: 0.5rem; }

.petit { font-size: 0.92rem; color: var(--texte-doux); margin: 0; }
.centre-texte { text-align: center; margin-top: 2rem; }

/* Tableau des tarifs de livraison */
.tarifs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;   /* chiffres bien alignés */
}
.tarifs th,
.tarifs td {
  text-align: left;
  padding: 0.5em 0.4em;
  border-bottom: 2px solid var(--bordure);
}
.tarifs th { font-family: var(--police-titre); color: var(--marine); font-weight: 600; }
.tarifs td:last-child,
.tarifs th:last-child { text-align: right; white-space: nowrap; }

.formulaire select {
  font: inherit;
  color: var(--texte);
  background: #ffffff;
  padding: 0.7em 0.9em;
  border: 2px solid var(--bordure);
  border-radius: 12px;
  width: 100%;
}

@media (max-width: 800px) {
  .etapes,
  .infos-commande { grid-template-columns: 1fr; }
}


/* ------------------------------------------------------------
   14. LIVRE EN VEDETTE (le premier livre, présenté en grand)
   ------------------------------------------------------------ */
.livre-vedette {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);   /* couverture | texte */
  gap: 2.5rem;
  align-items: start;
  margin-top: 2.2rem;
  background: #ffffff;
  border-radius: 26px;
  padding: 2rem;
  box-shadow: 0 12px 32px rgba(27, 42, 138, 0.12);
}

/* La couverture, légèrement penchée comme un livre posé sur la table */
.vedette-couverture {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(27, 42, 138, 0.22);
  transform: rotate(-2deg);
  position: sticky;              /* reste visible pendant qu'on lit le texte */
  top: 110px;
}

.vedette-infos { min-width: 0; }

.tampons { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.9rem; }

.tampon-jaune {
  color: #b86e00;
  border-color: var(--orange);
}

.vedette-titre {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.vedette-sous-titre {
  font-weight: 700;
  color: var(--rose);
  margin-bottom: 0.2rem;
}

.vedette-auteurs {
  color: var(--texte-doux);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.vedette-listes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin: 1.4rem 0;
  padding: 1.3rem 1.4rem;
  background: var(--fond-doux);
  border-radius: var(--arrondi);
}

.vedette-listes h4 {
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--marine);
  margin: 0 0 0.5rem;
}

.vedette-listes ul { margin: 0; padding-left: 1.1rem; font-size: 0.95rem; }
.vedette-listes li { margin-bottom: 0.35rem; }
.vedette-listes li::marker { color: var(--orange); }

/* Prix + bouton côte à côte */
.vedette-achat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}

.vedette-achat .prix {
  margin: 0;
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 2rem;
  color: var(--marine);
}


/* ------------------------------------------------------------
   15. LA COLLECTION (les 10 tomes)
   ------------------------------------------------------------ */
.collection {
  margin-top: 2.5rem;
  padding: 1.8rem 2rem;
  border: 3px dashed var(--bleu);      /* pointillés = trajet de l'avion du logo */
  border-radius: 26px;
  background: #ffffff;
}

.collection h3 { color: var(--bleu); }
.collection p { max-width: 65ch; color: var(--texte-doux); }

/* Les univers en pastilles de couleur */
.univers {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
}

.univers li {
  font-family: var(--police-titre);
  font-weight: 600;
  color: #ffffff;
  padding: 0.35em 1em;
  border-radius: var(--arrondi-bouton);
}
.univers-orange { background: var(--orange); }
.univers-vert   { background: var(--vert); }
.univers-bleu   { background: var(--bleu); }
.univers-rose   { background: var(--rose); }
.univers-violet { background: var(--violet); }

.grille-livres:not(:empty) { margin-top: 2.2rem; }

@media (max-width: 800px) {
  .livre-vedette {
    grid-template-columns: 1fr;
    padding: 1.3rem;
    gap: 1.6rem;
  }
  .vedette-couverture { position: static; max-width: 380px; margin: 0 auto; }
  .vedette-listes { grid-template-columns: 1fr; }
  .collection { padding: 1.4rem; }
}


/* ------------------------------------------------------------
   16. FICHE TECHNIQUE DU LIVRE et PHOTOS DES DEUX AUTRICES
   ------------------------------------------------------------ */
.fiche-technique {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0 0 1.4rem;
}

.fiche-technique div {
  border: 2px solid var(--bordure);
  border-radius: 14px;
  padding: 0.5rem 1rem;
  font-variant-numeric: tabular-nums;
}

.fiche-technique dt {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rose);
}

.fiche-technique dd {
  margin: 0;
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--marine);
}

/* Les deux ronds se chevauchent un peu, comme deux amies côte à côte */
.autrices-photos {
  display: flex;
  justify-content: center;
  align-items: flex-start;   /* empêche les ronds de s'étirer en ovale */
}

.autrices-photos .autrice-photo {
  flex-shrink: 0;
  width: 150px;
  font-size: 2.4rem;
}

.autrices-photos .autrice-photo + .autrice-photo {
  margin-left: -28px;
  margin-top: 70px;
}

.photo-attente-2 {
  background: linear-gradient(150deg, var(--rose), var(--orange));
  box-shadow: 0 0 0 6px var(--vert), 0 14px 30px rgba(27, 42, 138, 0.15);
}

@media (max-width: 800px) {
  .autrices-photos .autrice-photo { width: 130px; margin: 0; }
}


/* ------------------------------------------------------------
   17. PAGES LÉGALES (mentions légales, CGV) et liens du pied de page
   ------------------------------------------------------------ */
.pied-liens { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }

.page-legale { max-width: 780px; }

.page-legale h2 {
  font-size: 1.5rem;
  margin-top: 2.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px dotted var(--bordure);
}

.page-legale p { max-width: 68ch; }

.mise-a-jour { color: var(--texte-doux); font-size: 0.95rem; }

/* Tableau « nom : valeur » de l'éditeur du site */
.fiche-legale {
  display: grid;
  gap: 0;
  margin: 1rem 0 0;
  border: 2px solid var(--bordure);
  border-radius: var(--arrondi);
  overflow: hidden;
}

.fiche-legale div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 2px solid var(--bordure);
}
.fiche-legale div:last-child { border-bottom: 0; }
.fiche-legale div:nth-child(odd) { background: var(--fond-doux); }

.fiche-legale dt { font-weight: 800; color: var(--marine); }
.fiche-legale dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

/* Information encore manquante : cadre jaune bien visible */
.a-completer {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #7a4b00;
  background: #fff3c4;
  border: 2px dashed var(--orange);
  border-radius: 8px;
  padding: 0 0.5em;
}

.retour { margin-top: 3rem; }

@media (max-width: 600px) {
  .fiche-legale div { grid-template-columns: 1fr; gap: 0.1rem; }
}


/* ------------------------------------------------------------
   18. PAGE 404 (adresse introuvable)
   ------------------------------------------------------------ */
.page-404 {
  max-width: 640px;
  text-align: center;
}
.page-404 img { width: min(420px, 100%); margin: 0 auto 2rem; }
.page-404 p { color: var(--texte-doux); }


/* ------------------------------------------------------------
   19. PAGE CGV : sommaire, listes, encadrés, tableau
   ------------------------------------------------------------ */
.sommaire {
  background: var(--fond-doux);
  border-radius: var(--arrondi);
  padding: 1.2rem 1.6rem;
  margin: 1.5rem 0 0;
}
.sommaire ol {
  margin: 0;
  padding-left: 1.4rem;
  columns: 2;                  /* sommaire sur deux colonnes */
  column-gap: 2rem;
}
.sommaire li { margin-bottom: 0.3rem; break-inside: avoid; }

.liste-legale { padding-left: 1.4rem; margin: 0 0 1em; max-width: 68ch; }
.liste-legale li { margin-bottom: 0.3rem; }

/* Encadré pour les textes officiels (garanties, formulaire) */
.encadre-legal {
  border: 2px solid var(--bordure);
  border-left: 8px solid var(--bleu);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  margin: 0 0 1em;
  background: #ffffff;
}
.encadre-legal p:last-child { margin-bottom: 0; }

/* Le tableau peut défiler horizontalement sur petit écran */
.tableau-defilant { overflow-x: auto; margin-bottom: 1em; }
.tarifs-cgv { min-width: 520px; }
.tarifs-cgv td:last-child, .tarifs-cgv th:last-child { white-space: normal; text-align: left; }

@media (max-width: 600px) {
  .sommaire ol { columns: 1; }
}


/* ------------------------------------------------------------
   21. CARROUSEL DU LIVRE (couverture + pages qui défilent)
   ------------------------------------------------------------ */
.carrousel {
  min-width: 0;
  position: sticky;              /* reste visible pendant qu'on lit le texte */
  top: 110px;
}

.carrousel-cadre {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(27, 42, 138, 0.22);
}

/* La piste : les diapositives sont alignées en ligne, et le navigateur
   « aimante » chaque diapositive en place (scroll-snap) */
.carrousel-piste {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;         /* cache la barre de défilement (Firefox) */
}
.carrousel-piste::-webkit-scrollbar { display: none; }   /* (Chrome, Safari) */

.carrousel-diapo {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
  position: relative;
}

.carrousel-diapo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #ffffff;
}

/* Petite légende sous chaque page */
.carrousel-diapo figcaption {
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  color: #ffffff;
  background: var(--marine);
  padding: 0.45em 3.4rem;        /* place pour les flèches de chaque côté */
}

/* Flèches rondes à gauche et à droite */
.carrousel-fleche {
  position: absolute;
  top: calc(50% - 1.1rem);       /* centrées sur l'image, au-dessus de la légende */
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--marine);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(27, 42, 138, 0.25);
}
.carrousel-fleche:hover { background: #ffffff; color: var(--rouge); }
.carrousel-precedent { left: 0.6rem; }
.carrousel-suivant { right: 0.6rem; }

/* Petits points sous le carrousel */
.carrousel-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carrousel-point {
  width: 0.75rem;
  height: 0.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bordure);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.carrousel-point[aria-current="true"] {
  background: var(--rose);
  transform: scale(1.35);
}

.carrousel-note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--texte-doux);
  margin: 0.6rem 0 0;
}

.carrousel-fleche:focus-visible,
.carrousel-point:focus-visible,
.carrousel-piste:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .carrousel { position: static; max-width: 420px; margin: 0 auto; width: 100%; }
}

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


/* ------------------------------------------------------------
   22. FORMULAIRE (Web3Forms) : piège à robots et message d'erreur
   ------------------------------------------------------------ */
.piege-robots { display: none; }
.formulaire-erreur { color: var(--rouge); }
