/* Dalopi Hygiène. Sarcelle de l'appli sur papier de registre : les heures se lisent dans la marge. */
@font-face {
  font-family: "Bricolage";
  src: url("/assets/polices/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --encre: #12211f;
  --doux: #4b5c59;
  --papier: #faf7f0;
  --ligne: #e4dfd2;
  --marge: #e7b4ac;
  --heure: #b4382c;
  --sarcelle: #0f766e;
  --sarcelle-fonce: #134e4a;
  --nuit: #0c3633;
  --menthe: #ccfbf1;
  --menthe-pale: #e9f7f3;
  --titre: "Bricolage", system-ui, sans-serif;
  --texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 1.0625rem/1.6 var(--texte); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--titre); font-weight: 700; line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--sarcelle); text-underline-offset: .15em; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

.cadre { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.evitement { position: absolute; left: -999rem; background: #fff; padding: .5rem 1rem; z-index: 10; }
.evitement:focus { left: 1rem; top: 1rem; }

/* En-tête */
.entete { background: var(--sarcelle-fonce); color: #fff; }
.entete .cadre { display: flex; align-items: center; justify-content: space-between; padding-block: 1.1rem; }
.marque { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font: 700 1.2rem var(--titre); }
.marque svg { width: 2rem; height: 2rem; }
.menu { display: none; gap: 1.75rem; }
.menu a { color: #d6f5ee; text-decoration: none; }
.menu a:hover { color: #fff; text-decoration: underline; }

/* Boutons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.1rem; margin-top: 1.75rem; }
.bouton { display: inline-block; padding: .9rem 1.45rem; border-radius: .7rem; background: #fff; color: var(--sarcelle-fonce); font-weight: 700; text-decoration: none; }
.bouton:hover { background: var(--menthe); }
.bouton.grise, .bouton.grise:hover { background: #c5cfcd; color: #5a6a67; cursor: not-allowed; }

/* Téléphones */
.telephone { margin: 0; padding: .5rem; background: #0a1716; border-radius: 2rem; box-shadow: 0 1.5rem 3rem -1rem rgb(10 30 28 / .42); }
.telephone img { width: 100%; border-radius: 1.55rem; }
.telephone.coupe img { aspect-ratio: 640 / 900; object-fit: cover; object-position: top; }
.telephone.coupe.bas img { object-position: bottom; }

/* Haut de page */
.une { background: var(--sarcelle-fonce); color: #fff; overflow: hidden; }
.une-grille { display: grid; gap: 2.75rem; padding-top: 1.75rem; }
.une h1 { font-size: clamp(2.7rem, 11.5vw, 5.25rem); line-height: .98; }
.surtitre { margin-bottom: .9rem; color: var(--menthe); font-weight: 600; }
.chapo { max-width: 34rem; margin-top: 1.3rem; color: #e3f3ef; font-size: 1.2rem; line-height: 1.5; }
.promesses { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin: 1.5rem 0 0; padding: 0; list-style: none; color: #e3f3ef; }
.promesses li::before { content: "✓"; margin-right: .4rem; color: var(--menthe); font-weight: 700; }
.une-visuel { position: relative; justify-self: center; width: min(18rem, 76%); height: 25rem; }
.rappel { position: absolute; top: 1rem; left: -2.75rem; width: 15.5rem; border-radius: 1.1rem; box-shadow: 0 1rem 2rem -.5rem rgb(0 0 0 / .45); }

/* La journée, en registre */
.registre { padding-block: clamp(3.5rem, 8vw, 6rem); }
.titre-section h2 { font-size: clamp(2.1rem, 6.5vw, 3.4rem); }
.titre-section p { max-width: 38rem; margin-top: 1rem; color: var(--doux); font-size: 1.15rem; }
.moments { margin: 2.5rem 0 0; padding: 0; list-style: none; }
.moment { display: grid; gap: 1rem; padding-block: 2.25rem; border-top: 1px solid var(--ligne); }
.heure { color: var(--heure); font: 700 1.1rem var(--titre); font-variant-numeric: tabular-nums; }
.recit h3 { font-size: clamp(1.55rem, 5vw, 2.15rem); }
.recit p { max-width: 36rem; margin-top: .8rem; }
.recit .detail { color: var(--doux); font-size: .98rem; }
.moment .telephone { justify-self: center; width: min(15rem, 68%); margin-top: .75rem; }

/* Le contrôle */
.controle { padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--nuit); color: #fff; }
.controle-grille { display: grid; gap: 2.75rem; }
.controle .telephone { justify-self: center; width: min(16rem, 72%); order: 2; box-shadow: 0 1.5rem 3rem -1rem rgb(0 0 0 / .6); background: #051a18; }
.controle h2 { font-size: clamp(2.1rem, 6.5vw, 3.4rem); }
.controle p { max-width: 36rem; margin-top: 1rem; color: #e3f3ef; font-size: 1.15rem; }
.dossier { margin: 1.75rem 0 0; padding: 0; border-top: 1px solid rgb(255 255 255 / .22); list-style: none; }
.dossier li { padding: .7rem 0; border-bottom: 1px solid rgb(255 255 255 / .22); }
.controle .note { margin-top: 1.4rem; color: #bfddd7; font-size: .98rem; }

/* Gratuit */
.gratuit { padding-block: clamp(3.5rem, 8vw, 6rem); }
.gratuit-grille { display: grid; gap: 1.25rem; }
.zero { color: var(--sarcelle); font: 800 clamp(6.5rem, 26vw, 12rem)/.88 var(--titre); letter-spacing: -.04em; }
.gratuit h2 { font-size: clamp(1.9rem, 5.5vw, 2.7rem); }
.gratuit-grille > div p { max-width: 38rem; margin-top: 1rem; font-size: 1.1rem; }

/* Questions */
.questions { padding-block: clamp(3.5rem, 8vw, 6rem); background: #fff; }
.questions h2 { margin-bottom: 2rem; font-size: clamp(2.1rem, 6.5vw, 3.4rem); }
.questions details { border-top: 1px solid var(--ligne); }
.questions details:last-of-type { border-bottom: 1px solid var(--ligne); }
.questions summary { position: relative; padding: 1.1rem 2.25rem 1.1rem 0; font: 600 1.2rem/1.3 var(--titre); cursor: pointer; list-style: none; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; position: absolute; top: .85rem; right: .25rem; color: var(--sarcelle); font-size: 1.6rem; line-height: 1.2; }
.questions details[open] summary::after { content: "−"; }
.questions details p { max-width: 46rem; padding-bottom: 1.25rem; color: var(--doux); }
.questions .contact { margin-top: 1.75rem; color: var(--doux); }

/* Dernier appel */
.appel { padding-block: clamp(3rem, 7vw, 5rem); background: var(--sarcelle); color: #fff; text-align: center; }
.appel h2 { font-size: clamp(2.1rem, 6.5vw, 3.4rem); }
.appel .actions { justify-content: center; }

/* Pied de page */
.pied { padding-block: 2rem; background: var(--nuit); color: #d6f5ee; font-size: .97rem; }
.pied-grille { display: grid; gap: 1rem; }
.pied a { color: #fff; }
.pied nav { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }

/* Pages légales */
.bandeau { padding-block: 1.25rem 3rem; background: var(--sarcelle-fonce); color: #fff; }
.bandeau .cadre-texte, .legal .cadre-texte { width: min(100% - 2rem, 46rem); margin-inline: auto; }
.bandeau h1 { font-size: clamp(2.1rem, 7vw, 3.2rem); }
.bandeau p { margin-top: .8rem; color: #e3f3ef; }
.legal { padding-block: 2.5rem 4.5rem; }
.legal h2 { margin: 2.5rem 0 .75rem; font-size: 1.6rem; }
.legal .cadre-texte > h2:first-child { margin-top: 0; }
.legal h3 { margin: 1.5rem 0 .4rem; font-size: 1.2rem; }
.legal p, .legal ul, .legal ol { margin-block: .75rem; }
.legal li { margin-block: .35rem; }
.encadre { margin-block: 1.25rem; padding: 1.1rem 1.5rem; border-radius: 1rem; background: var(--menthe-pale); }
.encadre > :first-child { margin-top: 0; }
.encadre > :last-child { margin-bottom: 0; }
.legal .bouton { background: var(--sarcelle); color: #fff; }
.legal .bouton:hover { background: var(--sarcelle-fonce); }

@media (min-width: 48rem) {
  .menu { display: flex; }
  .pied-grille { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 58rem) {
  .une-grille { grid-template-columns: minmax(0, 1fr) 24rem; align-items: center; gap: 4rem; padding-top: 1.5rem; }
  .une-texte { padding-block: 2rem 4rem; }
  .une-visuel { width: 21rem; height: 37rem; margin-top: 1rem; align-self: start; justify-self: end; }
  .rappel { top: 1.25rem; left: -6.5rem; width: 18rem; }

  .moments { position: relative; }
  .moments::before { content: ""; position: absolute; top: 0; bottom: 0; left: 8.5rem; width: 2px; background: var(--marge); }
  .moment { grid-template-columns: 7rem minmax(0, 1fr) 17rem; column-gap: 3rem; gap: 0 3rem; align-items: start; padding-block: 3rem; }
  .heure { padding-top: .1rem; font-size: 1.9rem; text-align: right; }
  .moment .telephone { width: 100%; margin-top: 0; }

  .controle-grille { grid-template-columns: minmax(0, 1fr) 19rem; align-items: center; gap: 5rem; }
  .controle .telephone { width: 100%; }

  .gratuit-grille { grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); align-items: center; gap: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
