/* Site Dju-Lye : mobile d'abord. Le trait d'union (miel) est le fil de la page. */

@font-face {
  font-family: "Lexend";
  src: url("polices/Lexend-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("polices/SourceSans3-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("polices/SourceSans3-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --aubergine: #4a2a6e;
  --miel: #f5c33b;
  --creme: #fbf5e6;
  --texte: #222222;
  --focus: var(--aubergine);
}

* { box-sizing: border-box; }

html { font-size: 125%; } /* 20 px : texte courant, jamais sous 18 px */

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--texte);
  background: var(--creme);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
footer { margin-top: auto; }

h1, h2, .gros {
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h2::after { /* le trait d'union, fil de la page */
  content: "";
  display: block;
  width: 3rem;
  height: .35rem;
  margin-top: .6rem;
  background: var(--miel);
  border-radius: .2rem;
}
p { margin: 0 0 1rem; max-width: 65ch; }

a { color: inherit; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }

.contenu { max-width: 62rem; margin: 0 auto; padding: 2.5rem 1.25rem; }

/* Sections qui alternent aubergine / crème */
.sombre { background: var(--aubergine); color: #ffffff; --focus: var(--miel); }
.clair { background: var(--creme); color: var(--texte); }
.clair h2 { color: var(--aubergine); }

.logo { display: block; width: 13rem; height: auto; margin-bottom: 2rem; }

/* Accroche */
.accroche h1 span { color: var(--miel); }
.accroche p { font-size: 1.25rem; margin-bottom: 0; }
.accroche .bouton { margin: 1.5rem 0 0; }
.accroche .bouton-libelle { margin-bottom: 0; }

/* Séparateur : courbe miel (esprit du sourire), dessinée à part */
.courbe {
  height: 2.25rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='36' viewBox='0 0 120 36'%3E%3Cpath d='M0 12 Q30 32 60 12 T120 12' fill='none' stroke='%23f5c33b' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / 120px 36px repeat-x,
    linear-gradient(to bottom, var(--de) 50%, var(--vers) 50%);
}
.courbe.a-c { --de: var(--aubergine); --vers: var(--creme); }
.courbe.c-a { --de: var(--creme); --vers: var(--aubergine); }

/* Services */
.cartes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.carte {
  background: #ffffff;
  border: 2px solid var(--aubergine);
  border-radius: 1rem;
  padding: 1.25rem;
}
.carte .gros { margin-bottom: .6rem; }
.carte p { margin: 0; font-size: 1.3rem; font-weight: 600; color: var(--aubergine); }

/* Étapes reliées par le trait d'union */
.etapes { list-style: none; margin: 0 0 1rem; padding: 0; counter-reset: etape; }
.etapes li {
  position: relative;
  counter-increment: etape;
  padding: .25rem 0 2rem 4rem;
  font-size: 1.3rem;
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-weight: 600;
}
.etapes li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: 0;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 3px solid var(--miel);
  border-radius: 50%;
  background: var(--aubergine);
  color: #ffffff;
}
.etapes li:not(:last-child)::after { /* trait miel vertical */
  content: "";
  position: absolute;
  left: calc(1.5rem - 2px);
  top: 3rem;
  bottom: 0;
  width: 4px;
  background: var(--miel);
  border-radius: 2px;
}
.etapes li:last-child { padding-bottom: 0; min-height: 3rem; }
.sans-jargon { font-size: 1.2rem; margin: 0; }

/* Tarif */
.prix { font-size: 2.6rem; color: var(--aubergine); }

/* Qui est Julie */
.qui .symbole { width: 4.5rem; height: 4.5rem; margin-bottom: 1rem; }
.qui p { font-size: 1.15rem; margin-bottom: 0; }

/* Écrire à Julie */
.bouton {
  display: block;
  padding: 1.1rem 1rem;
  min-height: 3.5rem;
  background: var(--miel);
  color: var(--aubergine);
  border: 3px solid var(--aubergine);
  border-radius: 1rem;
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  margin: 1rem 0 1.5rem;
}
.bouton > span { display: block; }
.bouton-libelle { font-size: 1.1rem; margin-bottom: .25rem; }
.bouton:hover { background: #ffffff; }
.exemple { margin-bottom: .25rem; }
.modele { font-size: 1.1rem; font-style: italic; margin: 0; }

/* Pied de page */
footer .contenu { padding-top: 2rem; padding-bottom: 2rem; }
footer p { margin: 0 0 .75rem; }
footer a { display: inline-block; padding: .6rem 0; color: var(--miel); font-weight: 600; text-decoration: underline; }

/* Mentions légales */
.texte-long { max-width: 40rem; }
.a-completer { background: var(--miel); color: var(--aubergine); padding: 0 .3rem; border-radius: .25rem; }

/* Ordinateur */
@media (min-width: 48em) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.1rem; }
  .contenu { padding: 4rem 2rem; }
  .logo { width: 16rem; margin-bottom: 3rem; }
  .cartes { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .etapes { display: grid; grid-template-columns: repeat(3, 1fr); }
  .etapes li { padding: 4.25rem 1.5rem 0 0; }
  .etapes li:not(:last-child)::after { /* trait miel horizontal */
    left: 3rem;
    right: 0;
    top: calc(1.5rem - 2px);
    bottom: auto;
    width: auto;
    height: 4px;
  }
  .bouton { display: inline-block; padding: 1.1rem 2.5rem; font-size: 1.5rem; }
}

/* Grand écran : on occupe la largeur */
@media (min-width: 900px) {
  html { font-size: 112.5%; } /* 18 px : texte courant, rien en dessous */
  h1 { font-size: 2.45rem; } /* ~44 px */
  h2 { font-size: 1.65rem; } /* ~30 px */
  .contenu { max-width: 61rem; padding: 3rem 2rem; } /* ~1100 px */
  .accroche .contenu {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 3rem;
    align-items: center;
  }
  .accroche .logo { grid-column: 1 / -1; }
  .accroche h1, .accroche p { grid-column: 1; }
  .accroche p { font-size: 1.2rem; }
  .accroche .bouton { grid-column: 2; grid-row: 2 / span 2; margin: 0; }
  .carte p { font-size: 1.15rem; }
  .etapes li { font-size: 1.2rem; }
  .sans-jargon { font-size: 1.1rem; }
  .prix { font-size: 2rem; }
  .qui p { font-size: 1.05rem; }
  .bouton { font-size: 1.25rem; }
  .bouton-libelle { font-size: 1rem; }
  .modele { font-size: 1rem; }
  .tarif .contenu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
    align-content: start;
  }
  .tarif h2 { grid-column: 1 / -1; }
  .tarif .prix { grid-column: 1; grid-row: 2 / span 2; }
  .tarif .contenu > p:not(.prix) { grid-column: 2; }
  .qui .contenu {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 3rem;
    align-content: start;
  }
  .qui .symbole { grid-row: 1 / span 2; width: 8rem; height: 8rem; margin: 0; }
  .qui h2, .qui p { grid-column: 2; }
  .ecrire .contenu { text-align: center; }
  .ecrire h2::after { margin-left: auto; margin-right: auto; }
  .ecrire p { margin-left: auto; margin-right: auto; }
  .ecrire .bouton { display: block; max-width: 40rem; margin: 1rem auto 1.5rem; }
}

.logo-lien { display: inline-block; }
.clair a { color: var(--aubergine); }

.saison:empty { display: none; }
