@font-face {
  font-family: "Instrument Serif";
  src: url("polices/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("polices/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("polices/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --fond: #fbf8f3;
  --lin: #f3ede3;
  --carte: #ffffff;
  --encre: #1c1a17;
  --doux: #645c52;
  --trait: #e7dfd2;
  --accent: #a8431f;
  --accent-fonce: #86330f;
  --titre: "Instrument Serif", Georgia, "Times New Roman", serif;
  --texte: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --rayon: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-fonce); }
p { margin: 0 0 1.1rem; }
strong { font-weight: 600; }

h1, h2, .chiffre, .marque .nom, .prix .montant {
  font-family: var(--titre);
  font-weight: 400;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); line-height: 1.04; margin: 0 0 1.4rem; }
h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.1; margin: 0 0 1.2rem; }
h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.35; margin: 0 0 0.4rem; }

.contenu { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.etroit { max-width: 700px; }
.colonne { max-width: 760px; margin: 0 auto; padding: 0 24px; }
section { padding: 5.5rem 0; }
section.lin { background: var(--lin); }
.surtitre {
  color: var(--accent);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0 0 1rem;
}
.intro { font-size: 1.15rem; color: var(--doux); max-width: 46rem; }

/* Bandeau de lancement */
.annonce { background: var(--encre); color: #f6f1e8; font-size: 0.88rem; text-align: center; padding: 0.65rem 1rem; }
.annonce a { color: #fff; font-weight: 600; white-space: nowrap; margin-left: 0.35rem; }

/* En-tête */
.marque { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; padding-bottom: 1.6rem; }
.marque .nom { font-size: 1.7rem; line-height: 1; }
.marque .nom a { color: inherit; text-decoration: none; }
.marque .sous { color: var(--doux); font-size: 0.85rem; margin-top: 0.3rem; }

/* Boutons */
.bouton {
  display: inline-block;
  background: var(--accent); color: #fff;
  padding: 1rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.bouton:hover, .bouton:focus-visible { background: var(--accent-fonce); color: #fff; transform: translateY(-1px); }
.bouton.discret { background: transparent; color: var(--encre); border: 1px solid var(--encre); padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.bouton.discret:hover, .bouton.discret:focus-visible { background: var(--encre); color: #fff; }
.sous-bouton { color: var(--doux); font-size: 0.9rem; margin-top: 0.9rem; }
.appel { margin-top: 2rem; }

/* Accroche */
.accroche { padding: 2.5rem 0 5rem; }
.accroche .grille { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: center; }
.accroche h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: clamp(1.95rem, 3.9vw, 3rem); line-height: 1.16; letter-spacing: -0.015em; }
.accroche .chapo { font-size: 1.2rem; color: var(--doux); max-width: 34rem; }
.accroche .visuel img { border-radius: var(--rayon); width: 100%; box-shadow: 0 30px 60px -30px rgba(60, 40, 20, 0.35); }
.rassure { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; color: var(--doux); font-size: 0.92rem; }
.rassure li { padding-left: 1rem; position: relative; }
.rassure li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.note { background: var(--lin); border-radius: var(--rayon); padding: 1.3rem 1.6rem; margin: 3.5rem 0 0; max-width: 760px; }
.note p { margin: 0; }

/* Cartes */
.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 2.5rem 0; }
.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.6rem; }
.carte .chiffre { font-size: 3.2rem; line-height: 1; color: var(--accent); margin-bottom: 0.6rem; }
.carte p { margin: 0; color: var(--doux); font-size: 0.96rem; }
.piece { border-left: 3px solid var(--accent); padding: 0.2rem 0 0.2rem 1.4rem; margin: 2.5rem 0; max-width: 46rem; }
.piece p { margin: 0; }

/* Tableaux */
.tableau { overflow-x: auto; margin: 2.5rem 0 0.6rem; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--carte); }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
th, td { padding: 0.95rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--trait); }
tr:last-child td { border-bottom: 0; }
th { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--doux); background: #faf6ef; }
table.calendrier { min-width: 760px; }
table.calendrier td:first-child { white-space: nowrap; font-weight: 600; }
table.calendrier .mots { color: var(--doux); }
table.comparer { min-width: 600px; }
table.comparer tr.nous td { background: #fbf1ea; font-weight: 600; }
.legende { color: var(--doux); font-size: 0.86rem; margin: 0.8rem 0 0; }

/* Exemple */
.exemple { display: grid; grid-template-columns: 1fr 1fr 0.72fr; gap: 1.4rem; align-items: start; margin: 2.8rem 0; }
.exemple figure { margin: 0; }
.exemple img, .exemple video { border-radius: var(--rayon); width: 100%; }
figcaption { color: var(--doux); font-size: 0.86rem; margin-top: 0.7rem; }

/* Étapes */
.etapes { list-style: none; padding: 0; margin: 2.5rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem; counter-reset: etape; }
.etapes li { counter-increment: etape; border-top: 1px solid var(--encre); padding-top: 1.2rem; }
.etapes li::before { content: counter(etape); display: block; font-family: var(--titre); font-size: 3rem; line-height: 1; color: var(--accent); margin-bottom: 0.8rem; }
.etapes p { margin: 0; color: var(--doux); font-size: 0.96rem; }
.etapes .duree { color: var(--doux); font-weight: 400; }

/* Prix */
.prix { background: var(--carte); border: 1px solid var(--trait); border-radius: 24px; padding: 2.6rem; margin: 2.5rem 0 0; max-width: 700px; box-shadow: 0 30px 60px -40px rgba(60, 40, 20, 0.3); }
.prix .montant { font-size: clamp(1.9rem, 3.2vw, 2.4rem); line-height: 1.15; margin-bottom: 0.7rem; }
.prix .montant s { color: var(--doux); text-decoration-thickness: 1px; }
.prix .detail { color: var(--doux); font-size: 0.92rem; }
.prix ul { list-style: none; padding: 0; margin: 1.8rem 0 2rem; }
.prix li { padding: 0.6rem 0 0.6rem 1.2rem; border-bottom: 1px solid var(--trait); position: relative; }
.prix li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.prix li:last-child { border-bottom: 0; }

/* Questions */
details { border-bottom: 1px solid var(--trait); }
details:first-of-type { border-top: 1px solid var(--trait); }
summary { cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%); font-family: var(--titre); font-size: 1.8rem; color: var(--accent); }
details[open] summary::after { content: "-"; }
details p { color: var(--doux); padding-right: 2.5rem; }

/* Appel final */
.final { background: var(--encre); color: #f6f1e8; text-align: center; }
.final h2 { max-width: 20em; margin-left: auto; margin-right: auto; }
.final p { color: #cfc6b8; }
.final .sous-bouton { color: #b9af9f; }

/* Pied de page */
footer { padding: 2.5rem 0 3.5rem; color: var(--doux); font-size: 0.84rem; }
footer p { margin-bottom: 0.5rem; }
footer a { color: var(--doux); }

/* Pages légales */
.legal { padding: 1.5rem 0 4rem; }
.legal h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); }
.legal h3 { margin-top: 2rem; }

/* Barre fixe sur téléphone */
.barre-mobile { display: none; }

@media (max-width: 860px) {
  section { padding: 3.8rem 0; }
  .accroche { padding: 1rem 0 3.5rem; }
  .accroche .grille { grid-template-columns: 1fr; gap: 2.5rem; }
  .accroche .visuel { max-width: 420px; }
  .cartes { grid-template-columns: 1fr 1fr; }
  .exemple { grid-template-columns: 1fr 1fr; }
  .exemple .video { grid-column: 1 / -1; max-width: 300px; margin: 0 auto; }
  .etapes { grid-template-columns: 1fr; gap: 1.6rem; }
  .marque .bouton { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; padding-bottom: 76px; }
  .cartes { grid-template-columns: 1fr; }
  .prix { padding: 1.7rem; }
  .annonce { font-size: 0.8rem; }
  .annonce a { display: none; }
  .tableau { border: 0; background: transparent; overflow: visible; }
  table.calendrier, table.comparer { min-width: 0; }
  table.calendrier tr:first-child, table.comparer tr:first-child { display: none; }
  table.calendrier tr, table.comparer tr { display: block; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1rem 1.2rem; margin-bottom: 1rem; }
  table.calendrier td, table.comparer td { display: block; border: 0; padding: 0.35rem 0; background: transparent !important; }
  table.calendrier td::before, table.comparer td[data-nom]:not([data-nom=""])::before {
    content: attr(data-nom); display: block;
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--doux);
  }
  table.calendrier td:first-child::before { display: none; }
  table.calendrier td:first-child, table.comparer td:first-child { font-family: var(--titre); font-size: 1.5rem; font-weight: 400; }
  table.comparer tr.nous { border-color: var(--accent); }
  .barre-mobile {
    display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: rgba(251, 248, 243, 0.96); border-top: 1px solid var(--trait);
    padding: 0.7rem 16px; backdrop-filter: blur(6px);
    transform: translateY(110%); transition: transform 0.25s ease;
  }
  .barre-mobile.visible { transform: none; }
  .barre-mobile span { font-size: 0.82rem; color: var(--doux); line-height: 1.3; }
  .barre-mobile strong { color: var(--encre); font-size: 0.95rem; }
  .barre-mobile .bouton { padding: 0.75rem 1.1rem; font-size: 0.92rem; white-space: nowrap; }
}
