/* Exhale — feuille de style commune à toutes les pages */

/* Mise en page : une colonne centrale façon carnet de stickers sur fond crème,
   les formes de la marque en décor sur les bords. */
:root {
  color-scheme: light;

  /* Charte Exhale (EXHALE IDENTITÉ V3) */
  --creme: #F4F7CC;
  --ciel: #9ED9F2;
  --bleu: #306BB2;
  --vert: #36B669;
  --orange: #FC662C;
  /* Bleu marine profond, dérivé du bleu, pour garder les textes lisibles sur le vert et l'orange */
  --marine: #15345C;

  --f-titre: "Darker Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-texte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* American Typewriter s'affiche sur iPhone et Mac, Courier Prime prend le relais ailleurs */
  --f-machine: "American Typewriter", "Courier Prime", "Courier New", monospace;

  --rayon: 26px;
  --trait: 2px solid var(--marine);
  --ombre: 5px 5px 0 var(--marine);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--creme);
  color: var(--bleu);
  font-family: var(--f-texte);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 10px;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--f-titre);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

/* Petit titre « machine à écrire », posé comme un sticker */
.etiquette {
  display: inline-block;
  justify-self: center;
  padding: 0.3em 0.85em;
  border-radius: 999px;
  background: var(--vert);
  color: var(--marine);
  font-family: var(--f-machine);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
  transform: rotate(-2deg);
}

/* ---------- Décor : formes de la marque ---------- */

.decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.decor img {
  position: absolute;
  height: auto;
}

.d1 { width: 130px; top: -28px; left: -52px; transform: rotate(-18deg); }
.d2 { width: 150px; top: 140px; right: -78px; transform: rotate(12deg); }
.d3 { width: 170px; bottom: 70px; left: -96px; transform: rotate(-8deg); }
.d4 { width: 150px; bottom: -40px; right: -50px; transform: rotate(20deg); }

@media (min-width: 760px) {
  .d1 { width: 230px; top: -40px; left: -40px; }
  .d2 { width: 260px; top: 120px; right: -30px; }
  .d3 { width: 280px; bottom: 60px; left: -60px; }
  .d4 { width: 240px; bottom: -40px; right: 20px; }
}

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.8em 1.4em;
  border: var(--trait);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--marine);
  background: var(--bleu);
  color: var(--creme);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bouton--clair { background: var(--creme); color: var(--bleu); }

.bouton:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--marine); }
.bouton:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--marine); }

/* Encadré « à compléter » : visible seulement pendant la phase de test */
.a-completer {
  padding: 0.75em 1em;
  border: 2px dashed var(--orange);
  border-radius: 16px;
  background: var(--creme);
  color: var(--marine);
  font-size: 0.875rem;
  line-height: 1.45;
}

.a-completer strong { font-family: var(--f-machine); }

/* ---------- Page d'accueil : les liens ---------- */

.liens {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding-inline: 20px;
  padding-block: 16px 40px;
}

.profil {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.profil .logo { width: 120px; height: auto; }

.avatar {
  position: relative;
  width: 118px;
  aspect-ratio: 1031 / 1018;
  margin-block: 4px 2px;
}

/* Forme bleu ciel décalée derrière la photo */
.avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/blob-coeur-ciel.png") center / contain no-repeat;
  transform: translate(12px, 9px) rotate(9deg);
}

/* Photo découpée dans la forme « cœur » de la marque */
.avatar img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask: url("img/blob-coeur-bleu.png") center / contain no-repeat;
  mask: url("img/blob-coeur-bleu.png") center / contain no-repeat;
}

.profil h1 {
  font-size: clamp(2.1rem, 9vw, 2.7rem);
  color: var(--bleu);
}

.profil .intro {
  max-width: 34ch;
  color: var(--bleu);
  font-size: 1rem;
}

.choix {
  display: grid;
  gap: 14px;
}

.carte {
  --fond: var(--ciel);
  --texte: var(--marine);
  --titre: var(--marine);
  --puce: var(--creme);

  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 12px;
  border: var(--trait);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  background: var(--fond);
  color: var(--texte);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.carte:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--marine); }
.carte:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--marine); }

.c-bleu   { --fond: var(--bleu);   --texte: var(--creme);  --titre: var(--creme);  --puce: var(--ciel); }
.c-ciel   { --fond: var(--ciel);   --texte: var(--marine); --titre: var(--bleu);   --puce: var(--vert); }
.c-orange { --fond: var(--orange); --texte: var(--marine); --titre: var(--marine); --puce: var(--creme); }
.c-vert   { --fond: var(--vert);   --texte: var(--marine); --titre: var(--marine); --puce: var(--ciel); }
.c-creme  { --fond: var(--creme);  --texte: var(--marine); --titre: var(--bleu);   --puce: var(--orange); }

.vignette {
  width: 64px;
  height: 64px;
  border: var(--trait);
  border-radius: 18px;
  object-fit: cover;
  transform: rotate(-3deg);
}

.carte:nth-child(even) .vignette { transform: rotate(3deg); }

.carte-texte {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.carte-etiquette {
  justify-self: start;
  padding: 0.1em 0.6em;
  border-radius: 999px;
  background: var(--puce);
  color: var(--marine);
  font-family: var(--f-machine);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.5;
}

.carte-titre {
  color: var(--titre);
  font-family: var(--f-titre);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 0.95;
  text-wrap: balance;
}

.carte-sous {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.35;
}

.fleche {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: var(--trait);
  border-radius: 50%;
  background: var(--creme);
  color: var(--marine);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.carte:hover .fleche { transform: rotate(-35deg); }

.pied {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-top: 8px;
  color: var(--bleu);
  font-size: 0.85rem;
  text-align: center;
}

.pied .reseaux {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pied .petit-lien {
  padding: 0.35em 0.9em;
  border: var(--trait);
  border-radius: 999px;
  background: var(--creme);
  color: var(--marine);
  font-weight: 600;
  text-decoration: none;
}

.pied .petit-lien:hover { background: var(--ciel); }

/* ---------- Pages intérieures ---------- */

.barre {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 980px;
  margin-inline: auto;
  padding-inline: 20px;
  padding-block: 18px;
}

.retour {
  padding: 0.4em 1em;
  border: var(--trait);
  border-radius: 999px;
  background: var(--creme);
  color: var(--marine);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--marine);
}

.retour:hover { background: var(--ciel); }

.barre-logo img { width: 120px; height: auto; }

.contenu {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 56px;
  max-width: 980px;
  margin-inline: auto;
  padding-inline: 20px;
  padding-block: 8px 56px;
}

.ouverture {
  display: grid;
  gap: 28px;
  align-items: center;
}

.ouverture-texte {
  display: grid;
  gap: 16px;
  justify-items: start;
  min-width: 0;
}

.ouverture-texte .etiquette { justify-self: start; }

.ouverture h1 {
  font-size: clamp(3rem, 12vw, 4.6rem);
  color: var(--bleu);
}

.ouverture p { max-width: 46ch; font-size: 1.05rem; }

.cadre-photo {
  position: relative;
  max-width: 420px;
  width: 100%;
  justify-self: center;
}

.cadre-photo img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: var(--trait);
  border-radius: 32px;
  box-shadow: 8px 8px 0 var(--marine);
}

.cadre-photo .forme {
  position: absolute;
  width: 46%;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: auto;
}

.cadre-photo .forme--haut { top: -34px; right: -26px; transform: rotate(14deg); z-index: 1; }
.cadre-photo .forme--bas { bottom: -30px; left: -30px; transform: rotate(-10deg); z-index: 1; }

@media (min-width: 760px) {
  .ouverture { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .ouverture.ouverture--simple { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

.ouverture--simple .photo-seule { justify-self: start; }

.section {
  display: grid;
  gap: 22px;
}

.section h2 {
  font-size: clamp(2.3rem, 8vw, 3.2rem);
  color: var(--bleu);
}

.texte-courant {
  display: grid;
  gap: 14px;
  max-width: 62ch;
  font-size: 1.02rem;
}

/* Planning des cours */
.planning {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jour {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: var(--trait);
  border-radius: var(--rayon);
  background: var(--ciel);
  color: var(--marine);
  box-shadow: var(--ombre);
}

.jour:nth-child(even) { background: var(--creme); }

.jour h3 {
  justify-self: start;
  padding: 0.15em 0.75em;
  border-radius: 999px;
  background: var(--vert);
  color: var(--marine);
  font-family: var(--f-machine);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.creneaux {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.creneau {
  display: grid;
  grid-template-columns: 8.4em minmax(0, 1fr);
  gap: 2px 12px;
  align-items: baseline;
}

.heure {
  grid-row: span 2;
  color: var(--bleu);
  font-family: var(--f-titre);
  font-weight: 900;
  font-size: 1.3rem;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cours-lien {
  justify-self: start;
  color: var(--marine);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cours-lien:hover { color: var(--bleu); }

.info a { font-weight: 600; text-underline-offset: 3px; }

.cours-nom {
  font-family: var(--f-titre);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
}

.cours-info { font-size: 0.875rem; }

@media (min-width: 760px) {
  .planning { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jour:nth-child(even) { background: var(--ciel); }
  .jour:nth-child(4n + 2), .jour:nth-child(4n + 3) { background: var(--creme); }
}

/* Blocs d'infos (tarifs, réservation…) */
.infos {
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .infos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.info {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: var(--trait);
  border-radius: var(--rayon);
  background: var(--creme);
  color: var(--marine);
}

.info h3 { font-size: 1.7rem; color: var(--bleu); }
.info p { font-size: 0.95rem; }
.info img { width: 56px; height: auto; }

.info--ciel { background: var(--ciel); }
.info--vert { background: var(--vert); }
.info--vert h3 { color: var(--marine); }

/* Liste « au programme » */
.liste-puces {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.liste-puces li {
  position: relative;
  padding-left: 34px;
  font-size: 1.02rem;
}

.liste-puces li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 22px;
  height: 22px;
  background: url("img/blob-fleur-orange.png") center / contain no-repeat;
}

/* Galerie de photos */
.galerie {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.galerie img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: var(--trait);
  border-radius: 24px;
}

.galerie img:nth-child(odd) { transform: rotate(-1.5deg); }
.galerie img:nth-child(even) { transform: rotate(1.5deg); margin-top: 22px; }

/* Témoignages */
.temoignages {
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .temoignages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.temoignage {
  display: grid;
  align-content: start;
  gap: 12px;
  margin: 0;
  padding: 22px 20px 18px;
  border: var(--trait);
  border-radius: var(--rayon);
  background: var(--ciel);
  color: var(--marine);
}

.temoignage:nth-child(even) { background: var(--creme); }

.temoignage blockquote {
  margin: 0;
  font-family: var(--f-titre);
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1.05;
}

.temoignage figcaption {
  font-family: var(--f-machine);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Appel à l'action en bas de page */
.appel {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 28px 22px;
  border: var(--trait);
  border-radius: 32px;
  background: var(--bleu);
  color: var(--creme);
  box-shadow: 8px 8px 0 var(--marine);
  overflow: hidden;
}

.appel h2 {
  position: relative;
  max-width: 16ch;
  font-size: clamp(2.2rem, 8vw, 3rem);
  color: var(--creme);
}

.appel p { position: relative; max-width: 44ch; }
.appel .etiquette { justify-self: start; }

.appel .bouton { position: relative; background: var(--orange); color: var(--marine); font-size: 1.1rem; font-weight: 700; }

.appel .forme {
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 180px;
  height: auto;
  opacity: 0.9;
  transform: rotate(-12deg);
}

/* Trois piliers (page Qui suis-je) */
.piliers {
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .piliers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Une seule photo, en paysage, entre deux sections */
.photo-seule {
  justify-self: center;
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border: var(--trait);
  border-radius: 28px;
  box-shadow: 6px 6px 0 var(--marine);
  transform: rotate(-1.5deg);
}

.pied-page {
  position: relative;
  z-index: 1;
  padding-inline: 20px;
  padding-block: 0 36px;
}

/* ---------- Page Coaching ---------- */

.boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Les trois étapes, numérotées dans l'ordre où elles se passent */
.etapes {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}

@media (min-width: 760px) {
  .etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.etape {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: var(--trait);
  border-radius: var(--rayon);
  background: var(--creme);
  color: var(--marine);
  counter-increment: etape;
}

.etape::before {
  content: counter(etape);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: var(--trait);
  border-radius: 50%;
  background: var(--orange);
  color: var(--marine);
  font-family: var(--f-titre);
  font-weight: 900;
  font-size: 1.7rem;
  line-height: 1;
}

.etape h3 { font-size: 1.7rem; color: var(--bleu); }
.etape p { font-size: 0.95rem; }

/* Cartes de tarifs : de plus en plus colorées avec l'engagement */
.tarifs {
  display: grid;
  gap: 22px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .tarifs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tarif:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .tarifs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tarif:last-child:nth-child(odd) { grid-column: auto; }
}

.tarif {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px 18px 20px;
  border: var(--trait);
  border-radius: var(--rayon);
  background: var(--creme);
  color: var(--marine);
  box-shadow: var(--ombre);
}

.tarif h3 { font-size: 1.6rem; color: var(--bleu); }

.prix {
  color: var(--bleu);
  font-family: var(--f-titre);
  font-weight: 900;
  font-size: 3.4rem;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.prix-unite { font-size: 1.4rem; }

@media (min-width: 900px) {
  .prix { font-size: 2.9rem; }
}

.par-seance {
  justify-self: start;
  padding: 0.15em 0.7em;
  border-radius: 999px;
  background: var(--vert);
  color: var(--marine);
  font-family: var(--f-machine);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.5;
}

.tarif p:last-child { font-size: 0.92rem; }

.tarif--ciel { background: var(--ciel); }

.tarif--phare { background: var(--bleu); color: var(--creme); }
.tarif--phare h3, .tarif--phare .prix { color: var(--creme); }
.tarif--phare .par-seance { background: var(--ciel); }

.tarif-badge {
  position: absolute;
  top: -15px;
  right: 14px;
  padding: 0.2em 0.75em;
  border: var(--trait);
  border-radius: 999px;
  background: var(--orange);
  color: var(--marine);
  font-family: var(--f-machine);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.4;
  transform: rotate(3deg);
}

.tarifs + .infos { margin-top: 10px; }

.texte-courant a { font-weight: 600; text-underline-offset: 3px; }

/* Duo et trio : une carte par taille de groupe, prix par personne */
.groupes {
  display: grid;
  gap: 18px;
}

@media (min-width: 760px) {
  .groupes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.groupe {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px 18px 8px;
  border: var(--trait);
  border-radius: var(--rayon);
  background: var(--ciel);
  color: var(--marine);
  box-shadow: var(--ombre);
}

.groupe--vert { background: var(--vert); }
.groupe--creme { background: var(--creme); padding-bottom: 20px; }
.groupe--creme h3 { font-size: 1.8rem; color: var(--bleu); }
.groupe .liste-puces li { font-size: 0.95rem; }

.groupe-tete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.groupe h3 { font-size: 2.1rem; color: var(--marine); }
.groupe-tete .par-seance { background: var(--creme); }

.grille {
  display: grid;
  margin: 0;
}

.grille > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
  border-top: 2px dashed var(--marine);
}

.grille dt {
  min-width: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.grille dd {
  display: grid;
  justify-items: end;
  margin: 0;
  font-family: var(--f-titre);
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.grille dd span {
  font-family: var(--f-texte);
  font-weight: 500;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* ---------- Mouvement ---------- */

@media (prefers-reduced-motion: no-preference) {
  .carte {
    animation: monte 0.55s cubic-bezier(0.2, 0.8, 0.2, 1.15) backwards;
    animation-delay: calc(var(--i, 0) * 90ms + 120ms);
  }

  .avatar img, .avatar::before {
    animation: pop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1.3) backwards;
  }

  .decor img {
    animation: flotte 10s ease-in-out infinite alternate;
  }

  .decor .d2 { animation-duration: 12s; animation-delay: -3s; }
  .decor .d3 { animation-duration: 14s; animation-delay: -6s; }
  .decor .d4 { animation-duration: 11s; animation-delay: -2s; }
}

@keyframes monte {
  from { transform: translateY(22px) rotate(-1.5deg); }
}

@keyframes pop {
  from { transform: scale(0.85) rotate(-6deg); }
}

@keyframes flotte {
  to { translate: 0 -16px; rotate: 8deg; }
}
