/* ============================================================
   melissahypnose.be — Centre Homéostasie
   Melissa Caufriez, praticienne en hypnose ericksonienne

   Palette : rose magenta, bleu ciel et jaune, en versions
   franches. Les teintes vives portent les petits éléments
   (boutons, traits, bandeau) ; les aplats de fond sont des
   versions claires mais bien pigmentées, assez soutenues pour
   se voir, assez claires pour rester lisibles.

   Lora est intégrée au site (dossier /fonts) : aucune requête
   vers un serveur externe, donc aucune donnée du visiteur
   ne quitte l'hébergement. Aucun cookie, aucun script.
   ============================================================ */

/* ---------- Police intégrée ---------- */
@font-face {
  font-family: "Lora";
  src: url("fonts/lora.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("fonts/lora-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* ---------- Réglages ---------- */
:root {
  --fond:         #FFFDFA;

  --encre:        #1F2D45;   /* texte et titres */
  --encre-douce:  #46536B;

  /* Couleurs franches — aplats vifs, traits, bandeau */
  --magenta:      #E6007E;
  --ciel:         #00A3E0;
  --jaune:        #FFC400;

  /* Version texte du magenta : plus dense, pour rester lisible */
  --magenta-texte:  #BF0063;
  --magenta-appuye: #9E0052;

  /* Fonds pigmentés */
  --rose-fond:    #FBC2DC;
  --ciel-fond:    #A9DBF7;
  --jaune-fond:   #FFE380;

  --serif: "Lora", Georgia, "Iowan Old Style", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--magenta-texte); text-underline-offset: 3px; }
a:hover { color: var(--magenta-appuye); }

/* Sur les aplats de couleur, le magenta des liens doit être plus dense,
   sinon le contraste passe sous le seuil de lisibilité.
   Les boutons sont exclus : ils ont leur propre fond, donc leur propre
   couleur de texte. Sans cette exclusion, le texte du bouton bleu
   deviendrait magenta sur bleu — illisible. */
.fond-ciel a:not(.appel):not(.rdv),
.fond-jaune a:not(.appel):not(.rdv),
.rappel a:not(.appel):not(.rdv) { color: var(--magenta-appuye); }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }

.lire { width: 100%; max-width: 36rem; margin: 0 auto; padding: 0 1.4rem; }

.saut {
  position: absolute; left: -9999px; top: 0;
  background: var(--magenta-texte); color: #fff; padding: 0.7rem 1.1rem;
}
.saut:focus { left: 0; }

/* ---------- Bandeau à trois couleurs, tout en haut ---------- */
.barre-haut { display: flex; height: 8px; }
.barre-haut span { flex: 1; }
.barre-haut span:nth-child(1) { background: var(--magenta); }
.barre-haut span:nth-child(2) { background: var(--ciel); }
.barre-haut span:nth-child(3) { background: var(--jaune); }

/* ---------- Titres ---------- */
h1, h2 { font-weight: 600; line-height: 1.3; margin: 0; color: var(--encre); }
h1 { font-size: clamp(1.85rem, 6vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 4.5vw, 1.6rem); margin-bottom: 0.6rem; }
p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

/* Trait de couleur sous chaque sous-titre */
.bloc h2::after {
  content: "";
  display: block;
  width: 58px; height: 6px;
  border-radius: 3px;
  margin: 0.6rem 0 0.95rem;
  background: var(--magenta);
}
.bloc.fond-ciel h2::after  { background: var(--ciel); }
.bloc.fond-jaune h2::after { background: var(--jaune); }

/* ---------- En-tête ---------- */
.entete { padding: 1.3rem 0 1.1rem; text-align: center; }
.marque { display: block; text-decoration: none; color: var(--encre); }
.marque span { display: block; font-size: 1.25rem; font-weight: 600; letter-spacing: 0.01em; }
.marque small { display: block; color: var(--encre-douce); font-size: 0.92rem; margin-top: 0.15rem; }

/* ---------- Bouton d'appel ---------- */
.appel {
  display: inline-block;
  background: var(--magenta);
  color: #fff;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  min-height: 48px;
  line-height: 1.6;
}
.appel:hover, .appel:focus { background: var(--magenta-appuye); color: #fff; }

/* ---------- Bouton « Prendre rendez-vous » ---------- */
.rdv {
  display: inline-block;
  background: var(--ciel);
  color: var(--encre);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  min-height: 48px;
  line-height: 1.6;
}
.rdv:hover, .rdv:focus { background: var(--ciel-fond); color: var(--encre); }

/* Les deux boutons côte à côte, empilés quand l'écran est étroit */
.appel-zone, .deux-boutons {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 0.6rem;
  margin-top: 1rem;
}
.deux-boutons { margin-top: 1.6rem; }
.appel-note { color: var(--encre-douce); font-size: 0.92rem; margin-top: 0.7rem; }

/* ---------- Menu ---------- */
.menu { margin-top: 1rem; }
.menu ul {
  list-style: none; margin: 0; padding: 0 0.6rem;
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 0.15rem 0.25rem;
}
.menu a {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--encre);
  font-size: 0.94rem;
}
.menu a:hover, .menu a:focus { background: var(--ciel-fond); color: var(--encre); }
.menu a[aria-current="page"] { background: var(--magenta); color: #fff; }

/* ---------- Emplacement de la vidéo ---------- */
.video { margin: 2.2rem auto 0; max-width: 36rem; border-radius: 8px; overflow: hidden; }
.video video, .video iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 0; background: var(--ciel-fond);
}

/* ---------- Corps de page ---------- */
main { padding: 1.2rem 0 0; }

.titre-page { text-align: center; margin-bottom: 2rem; }
.sous-titre { color: var(--encre-douce); font-size: 1.02rem; margin: 0.7rem 0 0; }

/* Sous-sous-titres dans le contenu (objections, façon de travailler) */
.bloc h3 {
  font-family: var(--serif);
  font-size: 1.08rem; font-weight: 600;
  color: var(--encre);
  margin: 1.5rem 0 0.3rem;
}
.bloc h3:first-of-type { margin-top: 0.4rem; }

/* Numéro de téléphone mis en avant en fin de section */
.tel-gros { margin-top: 1.2rem; font-size: 1.35rem; font-weight: 600; }
.tel-gros a { text-decoration: none; }
.tel-gros a:hover { text-decoration: underline; }

/* ---------- Tarifs ---------- */
.prix { list-style: none; margin: 0; padding: 0; }
.prix li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 1rem;
  padding: 1.1rem 0;
}
.prix li + li { border-top: 2px solid var(--ciel-fond); }
.prix-nom { font-weight: 600; font-size: 1.1rem; }
.prix-detail { color: var(--encre-douce); font-size: 0.95rem; grid-column: 1; }
.prix-montant {
  grid-row: 1 / span 2; grid-column: 2;
  align-self: center;
  font-size: 1.7rem; font-weight: 600;
  color: var(--magenta-texte);
  white-space: nowrap;
}
.mutuelle { margin-top: 1.4rem; color: var(--encre-douce); }

/* ---------- Horaires ---------- */
.horaires { list-style: none; margin: 0.3rem 0 1.2rem; padding: 0; }
.horaires li {
  display: flex; flex-wrap: wrap; gap: 0 0.6rem;
  padding: 0.55rem 0;
}
.horaires li + li { border-top: 2px solid var(--jaune-fond); }
.horaires span:first-child { font-weight: 600; min-width: 11rem; }

/* ---------- Adresse mise en avant ---------- */
.adresse { font-size: 1.15rem; font-weight: 600; line-height: 1.5; }

/* Signature à trois couleurs sous le titre principal */
.trait { display: flex; justify-content: center; gap: 8px; margin-top: 1.2rem; }
.trait span { width: 30px; height: 7px; border-radius: 4px; }
.trait span:nth-child(1) { background: var(--magenta); }
.trait span:nth-child(2) { background: var(--ciel); }
.trait span:nth-child(3) { background: var(--jaune); }

.intro { margin-bottom: 2.6rem; }
.intro .citation { font-style: italic; color: var(--magenta-texte); }
.intro .accroche { font-size: 1.25rem; line-height: 1.55; }

/* ---------- Liste des motifs (accueil) ---------- */
.motifs { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.motifs li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.6rem;
}
.motifs li::before {
  content: "";
  position: absolute; left: 0; top: 1.05rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--magenta);
}
.motifs a { font-weight: 600; }
.et-dautres { margin-top: 1.6rem; font-style: italic; color: var(--encre-douce); }

/* ---------- Grandes catégories de sujets ---------- */
.categories {
  list-style: none;
  margin: 0.9rem 0 0; padding: 0;
}
.categories li {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
}
.categories li::before {
  content: "";
  position: absolute; left: 0; top: 0.95rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--encre);   /* le bleu vif serait trop pâle sur la bande bleue */
}
@media (min-width: 620px) {
  .categories { columns: 2; column-gap: 2rem; }
  .categories li { break-inside: avoid; }
}

/* ---------- Lien mis en avant ----------
   Le bouton lui-même porte la classe .rdv : cette règle ne gère
   que l'espacement autour. */
.lien-fort { margin-top: 1.5rem; }

/* ---------- Sections, en aplats alternés ---------- */
.bloc { padding: 2.4rem 0; }
.bloc.fond-ciel  { background: var(--ciel-fond); }
.bloc.fond-jaune { background: var(--jaune-fond); }

/* ---------- Photo de Melissa ---------- */
.photo {
  width: 150px; height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.2rem;
  padding: 5px;                 /* le fond apparaît dans la marge : anneau coloré */
  background: var(--magenta);
}

/* ---------- Fin de page : appel ---------- */
.rappel { margin-top: 0.6rem; padding: 2.6rem 0 2.8rem; background: var(--rose-fond); text-align: center; }
.rappel .nom { font-weight: 600; margin-bottom: 0.2rem; font-size: 1.15rem; }
.rappel .role { color: var(--encre-douce); font-size: 0.95rem; margin-bottom: 1.4rem; }

/* ---------- Pied de page ---------- */
.pied { padding: 2.4rem 0 3rem; color: var(--encre-douce); font-size: 0.95rem; text-align: center; }
.pied p { margin-bottom: 0.9rem; }
.pied .cadre {
  margin-top: 1.6rem; padding-top: 1.4rem;
  border-top: 3px solid var(--ciel-fond);
  font-size: 0.88rem; line-height: 1.65;
}

/* ---------- Page légale ---------- */
.legal { max-width: 40rem; }
.legal h2 { margin-top: 2.6rem; }
.legal h2::after {
  content: ""; display: block;
  width: 58px; height: 6px; border-radius: 3px;
  margin: 0.55rem 0 0.95rem; background: var(--ciel);
}
.legal h3 { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; margin: 1.6rem 0 0.4rem; color: var(--encre); }
.legal ul { margin: 0 0 1.15rem; padding-left: 1.3rem; }
.legal li { margin-bottom: 0.4rem; }
.legal li::marker { color: var(--magenta); }
.legal .small { font-size: 0.9rem; color: var(--encre-douce); }
.legal .maj { color: var(--encre-douce); font-size: 0.9rem; margin-top: 2.4rem; }

/* ---------- Confort de lecture sur grand écran ---------- */
@media (min-width: 700px) {
  body { font-size: 19px; }
  .entete { padding-top: 2.6rem; }
  .bloc { padding: 3rem 0; }
}
