@font-face { font-family: "Open Sans"; src: url("/fonts/open-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/fonts/open-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/fonts/open-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --nuit: #2a227b;
  --violet: #7065d5;
  --citron: #cae365;
  --ambre: #f8c255;
  --creme: #fef7eb;
  --encre: #1d1e20;
  --marge: clamp(1rem, 5vw, 4.5rem);
  --police: "Open Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--creme); color: var(--encre); font: 400 1.125rem/1.55 var(--police); }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }

.evitement { position: absolute; left: -999px; }
.evitement:focus { left: 1rem; top: 1rem; z-index: 2; background: #fff; padding: .5rem 1rem; }

.entete { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 2rem; padding: 1.25rem var(--marge); background: var(--nuit); color: #fff; }
.marque { font: 700 1.35rem/1 var(--police); text-decoration: none; }
.marque img { display: block; height: 2.75rem; width: auto; }
.entete-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font-size: 1rem; }
.entete-nav a { text-decoration: none; padding-bottom: .1em; border-bottom: 2px solid transparent; }
.entete-nav a:hover, .entete-nav a[aria-current] { border-bottom-color: var(--ambre); }

.bouton { display: inline-block; padding: .85rem 1.5rem; border: 0; border-radius: 999px; background: var(--ambre); color: var(--encre); font: 700 1.0625rem/1.2 var(--police); text-decoration: none; cursor: pointer; }
.bouton:hover { background: var(--citron); }

/* Accroche : photo en fond, voile violet pour la lisibilité */
.accroche { position: relative; isolation: isolate; overflow: hidden; background: var(--nuit); color: #fff; padding: clamp(3rem, 8vw, 6.5rem) var(--marge) clamp(3.5rem, 8vw, 6.5rem); }
.accroche-fond { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.accroche::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(42, 34, 123, .93) 0%, rgba(42, 34, 123, .82) 55%, rgba(42, 34, 123, .55) 100%); }
.accroche h1 { font-size: clamp(2.6rem, 8.2vw, 7.5rem); line-height: 1.05; letter-spacing: -.02em; color: var(--ambre); }
.accroche-suite { max-width: 40rem; margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.accroche-texte { font: 600 clamp(1.3rem, 2.3vw, 1.75rem)/1.3 var(--police); margin-bottom: 1rem; }
.accroche-suite .bouton { margin-top: 1.75rem; }

/* Constat */
.constat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 6vw, 5.5rem); padding: clamp(3.5rem, 9vw, 7rem) var(--marge); }
.constat h2 { color: var(--nuit); margin-bottom: 1.25rem; }
.constat-intro { font-weight: 700; margin-bottom: .5rem; }
.constat li { font: 700 clamp(1.35rem, 2.5vw, 1.9rem)/1.2 var(--police); padding: .45rem 0; color: var(--nuit); }
.constat-fin { margin-top: 1.5rem; font-weight: 700; }

/* Programme : un escalier posé sur la bande citron */
.programme-tete { max-width: 46rem; padding: 0 var(--marge) clamp(2rem, 5vw, 3.5rem); }
.programme h2 { color: var(--nuit); margin-bottom: 1rem; }
.programme-tete p + p { margin-top: .5rem; }
.marches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; padding: 0 var(--marge); }
.marche { padding: 1.75rem clamp(1.25rem, 2.4vw, 2.25rem) 2.5rem; }
.marche-1 { background: var(--nuit); color: #fff; min-height: 15rem; }
.marche-2 { background: var(--ambre); min-height: 20rem; }
.marche-3 { background: var(--citron); min-height: 25rem; }
.marche-rang { font-weight: 700; }
.marche h3 { font-size: clamp(1.5rem, 2.3vw, 1.9rem); margin: .4rem 0 .9rem; }
.marche-detail summary { display: inline-block; margin-top: .5rem; padding: .5rem 1.1rem; border: 2px solid currentColor; border-radius: 999px; font-weight: 700; cursor: pointer; list-style: none; }
.marche-detail summary::-webkit-details-marker { display: none; }
.marche-detail summary::after { content: " +"; }
.marche-detail[open] summary::after { content: " −"; }
.marche-detail[open] summary { margin-bottom: 1rem; }
.marche-detail p + p, .marche-detail p + ul, .marche-detail ul + p { margin-top: .75rem; }
.marche li { padding-left: 1.1em; text-indent: -1.1em; margin-bottom: .5rem; }
.marche li::before { content: "+"; display: inline-block; width: 1.1em; text-indent: 0; font-weight: 700; }

.pourquoi { padding: clamp(2.5rem, 6vw, 4.5rem) var(--marge) clamp(3rem, 7vw, 5.5rem); background: var(--citron); }
.pourquoi h2 { color: var(--nuit); margin-bottom: 2rem; }
.pourquoi-raisons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); }
.pourquoi h3 { font-size: 1.6rem; margin-bottom: .75rem; }
.pourquoi p + p { margin-top: .75rem; }

.appel { padding: clamp(3rem, 7vw, 5.5rem) var(--marge); background: var(--violet); color: #fff; }
.appel-titre { max-width: 17em; font: 700 clamp(2rem, 4.8vw, 3.8rem)/1.12 var(--police); }
.appel .bouton { margin-top: 1.75rem; }
.appel-suite { margin-top: .75rem; font: 700 clamp(1.4rem, 2.6vw, 2rem)/1.2 var(--police); color: var(--encre); }

.services, .faq { padding: clamp(3rem, 7vw, 5.5rem) var(--marge) 0; }
.services h2, .faq h2 { color: var(--nuit); margin-bottom: 1rem; }
.services-texte { max-width: 40rem; }
.services dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); margin: 2rem 0 0; }
.services dt { font: 700 1.6rem/1.15 var(--police); margin-bottom: .5rem; }
.services dd { margin: 0; }
.services-suite { margin-top: 1.5rem; font-weight: 700; }

.faq { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.faq-liste { max-width: 46rem; }
.faq details { border-bottom: 2px solid var(--nuit); }
.faq summary { padding: 1rem 0; font-weight: 700; cursor: pointer; }
.faq details p { padding-bottom: 1rem; }

/* Rendez-vous */
.rdv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem clamp(2rem, 5vw, 4.5rem); padding: clamp(3rem, 7vw, 5.5rem) var(--marge); background: var(--nuit); color: #fff; }
.rdv h2 { color: var(--ambre); margin-bottom: 1rem; }
.coordonnees { margin-top: 1.25rem; line-height: 1.8; }
.formulaire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.5rem; }
.champ label { display: block; font-weight: 700; margin-bottom: .3rem; }
.champ-large { grid-column: 1 / -1; }
.champ input, .champ select, .champ textarea { width: 100%; padding: .7rem .8rem; border: 2px solid transparent; border-radius: 6px; background: #fff; color: var(--encre); font: inherit; }
.formulaire .bouton { justify-self: start; }
.note { font-size: 1rem; }
.leurre { position: absolute; left: -9999px; }
.retour { grid-column: 1 / -1; padding: .85rem 1rem; border-radius: 6px; background: #fff; color: var(--encre); font-weight: 700; align-self: start; }
.retour-erreur { border-left: 6px solid var(--ambre); }

/* Pages intérieures */
.tete-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(2rem, 5vw, 4rem) var(--marge); background: var(--nuit); color: #fff; }
.tete-page h1 { font-size: clamp(2.3rem, 4.8vw, 4rem); color: var(--ambre); margin-bottom: 1rem; }
.tete-page img { display: block; width: 100%; height: clamp(14rem, 28vw, 25rem); object-fit: cover; border-radius: 6px; }
.tete-page .bouton { margin-top: 1.5rem; }
.surtitre { font-weight: 700; margin-bottom: .5rem; }
.bloc { padding: clamp(3rem, 6vw, 4.5rem) var(--marge); }
.bloc h2 { color: var(--nuit); margin-bottom: 1rem; }
.bloc h2.petit, .bloc h3 { font-size: 1.6rem; margin-bottom: .5rem; font-weight: 700; line-height: 1.15; }
.bloc-citron { background: var(--citron); }
.bloc-ambre { background: var(--ambre); }
.chapo { max-width: 40rem; margin-bottom: 2rem; }
.colonnes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); }
.colonnes-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.points li { padding-left: 1.1em; text-indent: -1.1em; margin-bottom: .4rem; }
.points li::before { content: "+"; display: inline-block; width: 1.1em; text-indent: 0; font-weight: 700; }
.grande-liste li { font: 700 clamp(1.4rem, 3vw, 2.2rem)/1.2 var(--police); padding: .4rem 0; color: var(--nuit); }
.suite { counter-reset: suite; margin-top: 2rem; }
.suite li { counter-increment: suite; }
.suite li::before { content: counter(suite); display: block; font: 700 2.6rem/1 var(--police); margin-bottom: .5rem; }
.suite-bouton { margin-top: 2.25rem; }
.bouton-nuit { background: var(--nuit); color: #fff; }
.bouton-nuit:hover { background: var(--encre); }

.pied { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem clamp(2rem, 5vw, 4.5rem); padding: 2.25rem var(--marge); background: var(--encre); color: #fff; font-size: 1rem; }
.pied-nom { font: 700 1.35rem/1.2 var(--police); margin-bottom: .5rem; }
.pied ul { line-height: 1.8; }

.page-texte { max-width: 44rem; padding: clamp(2.5rem, 6vw, 4.5rem) var(--marge); }
.page-texte h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1.5rem; }
.page-texte h2 { font-size: 1.5rem; margin: 2rem 0 .5rem; }
.page-texte p { margin-bottom: .75rem; }

/* Éditeur */
.edition { max-width: 56rem; margin: 0 auto; padding: 1.5rem var(--marge) 4rem; }
.edition h1 { font-size: 2rem; margin-bottom: 1rem; color: var(--nuit); }
.edition-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-bottom: 1.5rem; padding-bottom: .75rem; border-bottom: 2px solid var(--nuit); }
.edition-nav [aria-current] { font-weight: 700; }
.edition fieldset { min-width: 0; margin: 0 0 1.5rem; padding: 1rem 1.25rem 1.25rem; border: 2px solid var(--nuit); border-radius: 6px; background: #fff; }
.edition legend { padding: 0 .4rem; font: 700 1.3rem/1.2 var(--police); color: var(--nuit); }
.edition label { display: block; font-weight: 700; margin: .9rem 0 .25rem; }
.edition input[type="text"], .edition input[type="password"], .edition textarea { width: 100%; padding: .55rem .65rem; border: 2px solid var(--nuit); border-radius: 6px; background: #fff; color: var(--encre); font: inherit; }
.edition-aide { font-size: 1rem; margin-bottom: 1rem; }
.edition-barre { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding: .75rem 0; background: var(--creme); }
.edition fieldset .edition-barre { position: static; background: none; }
.edition-photo { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1rem 1.5rem; align-items: start; }
.edition-photo img { display: block; width: 100%; height: 8rem; object-fit: cover; border-radius: 6px; background: var(--nuit); }
.edition-photo-vide { display: grid; place-items: center; height: 8rem; border-radius: 6px; background: var(--nuit); color: #fff; }
.edition-versions li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; padding: .5rem 0; border-bottom: 1px solid var(--nuit); }
.bouton-discret { padding: .35rem .8rem; border: 2px solid var(--nuit); border-radius: 999px; background: transparent; color: var(--nuit); font: 700 1rem/1.2 var(--police); cursor: pointer; }
.edition .retour { margin-bottom: 1rem; border-left: 6px solid var(--citron); background: #fff; }
.edition .retour-erreur { border-left-color: var(--ambre); }

@media (max-width: 820px) {
  .constat, .rdv, .pourquoi-raisons, .services dl, .tete-page, .colonnes, .colonnes-2, .pied { grid-template-columns: minmax(0, 1fr); }
  .accroche-suite { margin-left: 0; }
  .marches { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .marche, .marche-1, .marche-2, .marche-3 { min-height: 0; padding: 1.75rem var(--marge) 2.25rem; }
  .marche-3 { padding-bottom: .5rem; }
}
@media (max-width: 560px) {
  .formulaire, .edition-photo { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
