@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
  --nuit: #16233a;
  --nuit-2: #22324f;
  --orange: #e2581b;
  --orange-fonce: #b9420f;
  --papier: #ffffff;
  --gris-clair: #eef1f5;
  --gris: #5d6878;
  --trait: #d5dbe3;
  --vert: #1d7f55;
  --rouge: #b3261e;
  --rayon: 14px;
  --large: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--papier);
  color: var(--nuit);
  font: 400 1.0625rem/1.6 "Bricolage", system-ui, sans-serif;
  font-optical-sizing: auto;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--orange-fonce); text-underline-offset: .18em; }
a:hover { color: var(--nuit); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
.visuel-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sauter { position: absolute; left: -999px; top: 8px; background: var(--nuit); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.sauter:focus { left: 16px; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--orange); color: #fff; border: 0; border-radius: 999px;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  padding: .7em 1.4em; transition: background .15s;
}
.bouton:hover { background: var(--orange-fonce); color: #fff; }
.bouton-petit { font-size: .95rem; padding: .55em 1.1em; }
.bouton-grand { font-size: 1.15rem; padding: .85em 1.8em; }
.bouton-second { background: transparent; color: var(--nuit); box-shadow: inset 0 0 0 2px var(--trait); }
.bouton-second:hover { background: var(--gris-clair); color: var(--nuit); }
.bouton[disabled] { background: var(--trait); color: var(--gris); cursor: not-allowed; }
.lien { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* En-tête */
.tete {
  max-width: var(--large); margin: 0 auto; padding: 18px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.marque { font-size: 1.35rem; color: var(--nuit); text-decoration: none; letter-spacing: -.02em; font-weight: 400; }
.marque b, .pied-marque b { font-weight: 800; color: var(--orange); }

/* Une */
.une {
  max-width: var(--large); margin: 0 auto; padding: 28px 16px 72px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center;
}
.une h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; font-variation-settings: "opsz" 96; }
.chapeau { margin-top: 22px; font-size: 1.2rem; color: var(--nuit-2); max-width: 34em; }
.prix-court { display: flex; gap: 28px; margin: 30px 0 6px; flex-wrap: wrap; }
.prix-court div { border-left: 4px solid var(--orange); padding-left: 14px; }
.prix-court dt { font-size: .95rem; color: var(--gris); }
.prix-court dd { margin: 0; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.taxes { color: var(--gris); font-size: .95rem; margin-bottom: 26px; }

/* Avant / après : la signature de la page */
.avap { margin: 0; }
.avap-cadre { border-radius: var(--rayon); overflow: hidden; box-shadow: 0 0 0 1px var(--trait), 0 24px 60px -24px rgba(22, 35, 58, .45); background: #fff; position: relative; }
.avap-barre { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--gris-clair); border-bottom: 1px solid var(--trait); }
.avap-barre i { width: 10px; height: 10px; border-radius: 50%; background: var(--trait); }
.avap-barre span { margin-left: 10px; font-size: .8rem; color: var(--gris); background: #fff; border-radius: 6px; padding: 2px 10px; flex: 1; }
.avap-scene { position: relative; aspect-ratio: 5 / 4; overflow: hidden; --pos: 50%; }
.avant, .site { position: absolute; inset: 0; }
.avant { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

/* Le même site de boulangerie, deux fois : peaufiné (après) et avec ses défauts (avant) */
.site { background: #fffaf3; color: #2b1d12; font-size: clamp(.5rem, 1.05vw, .74rem); padding: 3.5% 5%; display: flex; flex-direction: column; gap: 4.5%; line-height: 1.3; }
.s-nav { display: flex; align-items: center; gap: 4%; }
.s-logo { display: flex; align-items: center; gap: .5em; margin-right: auto; }
.s-logo svg { width: 2.3em; height: 2.3em; display: block; flex: none; }
.s-logo b { font-size: 1.4em; font-weight: 800; letter-spacing: -.02em; color: #7a4a24; }
.s-liens { display: flex; gap: 1.6em; color: #6b5a4b; }
.s-cta { background: #7a4a24; color: #fff; border-radius: 999px; padding: .45em 1.1em; font-weight: 650; }
.s-une { display: grid; grid-template-columns: 1fr 1.05fr; gap: 6%; align-items: center; }
.s-titre { font-size: 2.3em; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.s-texte { margin: .7em 0 1.2em; color: #6b5a4b; }
.s-bouton { display: inline-block; background: #c8671d; color: #fff; font-weight: 650; padding: .6em 1.3em; border-radius: 999px; }
.s-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.s-cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4%; }
.s-carte { display: flex; flex-direction: column; background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px #eadfce; overflow: hidden; }
.s-carte img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.s-carte b { padding: .6em .8em 0; font-size: 1.05em; }
.s-carte small { padding: .15em .8em 0; color: #6b5a4b; font-size: .9em; }
.s-carte small:last-child { padding-bottom: .8em; }
.s-heures { background: #7a4a24; box-shadow: none; justify-content: center; }
.s-heures b, .s-heures small { color: #fff; }
.s-temps { position: absolute; right: 3%; bottom: 2.5%; font-size: .9em; color: var(--vert); font-weight: 650; background: #fff; padding: .1em .5em; border-radius: 4px; }

/* Défauts : logo flou et étiré, menu inégal, bouton décalé, police de secours, photos pixellisées et déformées,
   cartes désalignées, texte qui déborde, image brisée, lenteur */
.site-avant { padding: 1.5% 2%; gap: 2.5%; font-family: Arial, Helvetica, sans-serif; background: #fff; }
.site-avant .s-logo { transform: scaleX(1.4); transform-origin: left center; filter: blur(.7px); gap: .2em; }
.site-avant .s-logo b { font-family: "Times New Roman", Times, serif; font-weight: 400; letter-spacing: 0; }
.site-avant .s-liens { gap: .35em; margin-left: 12%; }
.site-avant .s-liens span:nth-child(3) { margin-left: 2.6em; }
.site-avant .s-cta { border-radius: 0; padding: .1em .35em; position: relative; top: .9em; font-weight: 400; }
.site-avant .s-une { grid-template-columns: 1.2fr 1fr; gap: 1.5%; align-items: start; }
.site-avant .s-titre { font-family: "Times New Roman", Times, serif; font-weight: 700; font-size: 2em; letter-spacing: 0; }
.site-avant .s-texte { margin: .15em 0 .3em; font-size: .82em; }
.site-avant .s-bouton { display: block; width: 104%; border-radius: 0; text-align: center; padding: .2em; background: #e5843a; font-weight: 400; }
.site-avant .s-photo { image-rendering: pixelated; object-fit: fill; aspect-ratio: auto; height: 10em; border-radius: 0; margin-top: 1.5em; }
.site-avant .s-cartes { gap: 1%; align-items: start; }
.site-avant .s-carte { border-radius: 0; box-shadow: 0 0 0 1px #bbb; overflow: visible; }
.site-avant .s-carte:nth-child(2) { margin-top: 1.4em; }
.site-avant .s-carte img { image-rendering: pixelated; aspect-ratio: auto; height: 4.6em; object-fit: fill; }
.site-avant .s-carte b { padding: .1em .2em 0; text-align: center; }
.site-avant .s-carte small { padding: 0 .2em; white-space: nowrap; }
.site-avant .s-heures { padding: .3em; margin-top: .5em; }
.site-avant .s-brisee { height: 4.6em; display: grid; place-items: center; background: #fafafa; border: 1px dashed #c33; color: #c33; font-size: .85em; }
.site-avant .s-temps { color: var(--rouge); }

.avap-poignee { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--orange); pointer-events: none; }
.avap-poignee span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--orange); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.avap-poignee span::before, .avap-poignee span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 7px solid transparent; margin-top: -7px; }
.avap-poignee span::before { left: 5px; border-right-color: #fff; }
.avap-poignee span::after { right: 5px; border-left-color: #fff; }
.avap-curseur { position: absolute; left: 0; right: 0; bottom: 0; top: 38px; }
.avap-curseur input { -webkit-appearance: none; appearance: none; width: 100%; height: 100%; margin: 0; background: transparent; cursor: ew-resize; opacity: 0; }
.avap-curseur input:focus-visible { opacity: .01; }
.avap-cadre:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 4px; }
.avap figcaption { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: .9rem; color: var(--gris); }
.avap figcaption span { font-weight: 700; color: var(--nuit); }
.avap-note { margin-top: 4px; font-size: .78rem; color: var(--gris); text-align: center; }
.avap-scene.invite .avap-poignee, .avap-scene.invite .avant { transition: left .9s cubic-bezier(.5, 0, .2, 1), clip-path .9s cubic-bezier(.5, 0, .2, 1); }

/* Blocs */
.bloc { max-width: var(--large); margin: 0 auto; padding: 64px 16px; }
.bloc h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin-bottom: 36px; }
.bloc h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.regle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.regle li { border-top: 3px solid var(--nuit); padding-top: 16px; }
.regle p, .etapes p { color: var(--nuit-2); }

.bloc-etapes { max-width: none; background: var(--nuit); color: #fff; }
.bloc-etapes > * { max-width: calc(var(--large) - 32px); margin-left: auto; margin-right: auto; }
.etapes { list-style: none; padding: 0; counter-reset: e; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.etapes li { counter-increment: e; }
.etapes li::before { content: counter(e); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 18px; }
.bloc-etapes .etapes p { color: #c9d2e0; }
.sauvegarde { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18); color: #fff; font-weight: 600; }

.prix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 760px; }
.prix-carte { border: 2px solid var(--nuit); border-radius: var(--rayon); padding: 28px; }
.prix-carte h3 { font-size: 1.1rem; font-weight: 600; color: var(--nuit-2); }
.montant { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; margin-top: 8px; }
.prix-note { margin-top: 20px; max-width: 760px; color: var(--nuit-2); }

.bloc-pourquoi { padding-top: 24px; }
.pourquoi { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.45; max-width: 36em; font-weight: 450; }

.conditions { margin: 0; padding-left: 1.2em; max-width: 46em; display: grid; gap: 12px; }
.conditions li::marker { color: var(--orange); }

/* Formulaire */
.bloc-form .form, .bloc-form > .message { max-width: 780px; }
.form { display: grid; gap: 26px; }
.champ { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.champ legend, .etiquette { font-weight: 650; padding: 0; margin-bottom: 8px; }
.etiquette { margin-bottom: 0; }
.etiquette i, legend i { font-style: normal; font-weight: 400; color: var(--gris); font-size: .9em; margin-left: .3em; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  font: inherit; color: inherit; width: 100%; padding: .7em .85em; border: 2px solid var(--trait); border-radius: 10px; background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--nuit); outline: none; box-shadow: 0 0 0 3px rgba(226, 88, 27, .35); }
textarea { resize: vertical; }
.champs-deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.choix-ligne { display: flex; flex-wrap: wrap; gap: 10px; }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choix { display: flex; align-items: center; gap: .6em; padding: .6em .85em; border: 2px solid var(--trait); border-radius: 10px; cursor: pointer; line-height: 1.3; }
.choix:has(input:checked) { border-color: var(--nuit); background: var(--gris-clair); }
.choix input { accent-color: var(--orange); width: 1.15em; height: 1.15em; flex: none; margin: 0; }
.choix-prix { margin-left: auto; font-weight: 700; padding-left: .6em; }
.choix-obligatoire { align-items: flex-start; font-weight: 600; }
.choix-obligatoire input { margin-top: .1em; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-loi { font-size: .92rem; color: var(--gris); }
.message { padding: 14px 18px; border-radius: 10px; font-weight: 600; }
.message-ok { background: #e3f4ec; color: var(--vert); margin-bottom: 26px; }
.message-err { background: #fbe9e7; color: var(--rouge); }
.bloc-form > .message-err { margin-bottom: 26px; }
.champ-faux { border-color: var(--rouge) !important; }

/* Pied */
.pied { background: var(--gris-clair); padding: 40px 16px; text-align: center; display: grid; gap: 10px; color: var(--nuit-2); font-size: .95rem; margin-top: 40px; }
.pied-marque { font-size: 1.2rem; color: var(--nuit); }
.pied nav { display: flex; gap: 20px; justify-content: center; }
.pied nav a, .pied nav .lien { color: var(--nuit-2); }
.pied-droits { color: var(--gris); font-size: .85rem; }

/* Témoins */
.temoins { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin-left: auto; background: #fff; border-radius: var(--rayon); box-shadow: 0 0 0 1px var(--trait), 0 18px 50px -12px rgba(22, 35, 58, .4); padding: 20px; z-index: 20; display: grid; gap: 10px; font-size: .95rem; }
.temoins[hidden] { display: none; }
.temoins-boutons { display: flex; gap: 10px; justify-content: flex-end; }

/* Page de texte */
.texte { max-width: 760px; margin: 0 auto; padding: 24px 16px 40px; }
.texte h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.texte h2 { font-size: 1.4rem; font-weight: 750; margin: 40px 0 12px; }
.texte p, .texte ul { margin: 0 0 14px; }
.texte .date { color: var(--gris); }
.texte table { border-collapse: collapse; width: 100%; font-size: .95rem; margin-bottom: 14px; }
.texte th, .texte td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--trait); }
.tableau { overflow-x: auto; }

@media (max-width: 900px) {
  .une { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 48px; }
  .regle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .bloc { padding: 48px 16px; }
  .regle, .etapes, .prix, .champs-deux, .cases { grid-template-columns: minmax(0, 1fr); }
  .tete .bouton-petit { font-size: .85rem; padding: .5em .9em; }
  .marque { font-size: 1.15rem; }
  .choix-ligne { flex-direction: column; }
  .bouton-grand { width: 100%; }
}
