/* Direction : ardoise de ferme à l'heure dorée — vert forêt profond, un seul citron pour agir, crème, sable, sauge. */
body { font-stretch: 100%; }
h1, h2 { font-weight: 400; font-stretch: 88%; letter-spacing: -0.035em; line-height: .9; }
h3 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; font-size: 1.25rem; }
.fin { font-family: var(--police-fine); font-style: italic; font-weight: 300; letter-spacing: -0.03em; font-stretch: 100%; }
.marque { font-family: var(--police-titre); font-weight: 600; font-stretch: 90%; font-size: 1.5rem; color: var(--foret); letter-spacing: -0.03em; }
.marque small { font-weight: 500; font-stretch: 100%; color: var(--encre-2); }
.entete { background: color-mix(in srgb, var(--fond) 94%, transparent); backdrop-filter: none; }
.menu a { font-weight: 500; }
.bouton { background: var(--citron); color: var(--encre); border-color: var(--citron); border-radius: 999px; font-weight: 600; padding: 14px 26px; }
.bouton:hover { background: var(--foret); border-color: var(--foret); color: var(--fond); }
.bouton-second { background: transparent; color: inherit; border-color: currentColor; }
.bouton-second:hover { background: var(--fond); color: var(--foret); border-color: var(--fond); }
.entete .bouton { padding: 10px 20px; }

/* premier écran : bande forêt, titre déposé, photo glissée, tampon citron */
.hero { background: var(--foret); color: var(--fond); padding: 0 var(--gouttiere) var(--e-6); }
.hero .contenu { gap: var(--e-4); align-items: center; }
.hero h1 { font-size: var(--t-1); color: var(--fond); }
.hero-texte { padding-top: var(--e-3); }
.hero-texte p.chapo { color: color-mix(in srgb, var(--fond) 88%, transparent); font-size: 1.1875rem; max-width: 42ch; }
.hero .bouton-second:hover { color: var(--foret); }
.hero-visuel img { border-radius: 20px; aspect-ratio: 4 / 5; width: 100%; object-fit: cover; object-position: var(--cadrage, 50% 30%); background: #0b5a4d; }
.tampon { position: absolute; right: -8px; top: 24px; transform: rotate(6deg); background: var(--citron); color: var(--encre); border-radius: 999px; padding: 12px 20px; font-weight: 600; font-size: .9375rem; line-height: 1.2; max-width: 190px; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .hero .tampon { animation: tamponner 650ms var(--ease-rebond) 1000ms both; }
  @keyframes tamponner { from { opacity: 0; transform: rotate(-14deg) scale(1.5); } to { opacity: 1; transform: rotate(6deg); } }
}

/* comparateur : dans le premier écran, il balaie de l'ancien site vers la proposition au chargement */
@property --p { syntax: "<percentage>"; inherits: true; initial-value: 22%; }
.hero-comp { position: relative; order: -1; }
.hero .comp { border-color: var(--fond); }
.hero .comp-note { color: color-mix(in srgb, var(--fond) 80%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .hero .comp:not([data-main]) { animation: balayer 1400ms var(--ease-sortie) 300ms both; }
  @keyframes balayer { from { --p: 94%; } to { --p: 22%; } }
}
.comparateur-tete { display: grid; gap: var(--e-2); margin-bottom: var(--e-4); }
.comparateur-tete p { margin: 0; }
.comp { --p: 22%; position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: #fff; border: 1.5px solid var(--encre); user-select: none; }
.vue { position: absolute; inset: 0; container-type: inline-size; overflow: hidden; }
.vue.apres { clip-path: inset(0 0 0 var(--p)); }
.etiq-vue { position: absolute; bottom: 3cqw; z-index: 3; padding: .8cqw 2.4cqw; border-radius: 999px; font: 600 max(11px, 1.9cqw)/1.2 var(--police-texte); }
.avant .etiq-vue { left: 3cqw; background: #222; color: #fff; }
.apres .etiq-vue { right: 3cqw; background: var(--citron); color: var(--encre); }
.poignee { position: absolute; top: 0; bottom: 0; left: var(--p); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 0 1px rgba(14,21,14,.55), 0 0 14px rgba(0,0,0,.45); z-index: 4; pointer-events: none; }
.poignee span { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--encre); color: #fff; border: 3px solid #fff; box-shadow: 0 6px 20px rgba(0,0,0,.4); display: grid; place-items: center; transition: transform var(--duree-clic) var(--ease-rebond); }
.poignee svg { width: 26px; height: 26px; }
.comp:hover .poignee span, .comp:focus-within .poignee span { transform: scale(1.08); }
.comp input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; z-index: 5; }
.comp input[type=range]:focus-visible + .poignee span { outline: 3px solid var(--citron); outline-offset: 3px; }
.comp-note { margin: var(--e-2) 0 0; font-size: .9375rem; color: var(--encre-2); }

/* maquette « avant » : site de 2014 */
.avant { background: #f3f3f3; font-family: "Times New Roman", Times, serif; color: #111; }
.avant .barre-nav { background: #dcdcdc; border-bottom: 1px solid #999; padding: 1.2cqw 3cqw; font: 400 max(10px, 1.7cqw)/1.2 Arial, sans-serif; color: #444; padding-left: 14cqw; }
.avant .corps { padding: 4cqw 6cqw; }
.avant .titre-b { text-align: center; font-size: max(20px, 5.2cqw); font-weight: 700; color: #1b3a6b; margin: 2cqw 0 1cqw; line-height: 1.1; }
.avant .vague { text-align: center; color: #c00; font-weight: 700; font-size: max(13px, 2.6cqw); margin-bottom: 2cqw; }
.avant .liens-b { text-align: center; font-size: max(12px, 2.3cqw); margin-bottom: 2.4cqw; color: #1b3a6b; }
.avant .liens-b u { margin: 0 1.2cqw; }
.avant .cols-b { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2cqw; }
.avant .cols-b div { border: 1px solid #aaa; background: #fff; padding: 1.5cqw; font-size: max(10px, 1.8cqw); line-height: 1.3; }
.avant .cols-b .cassee { background: #ddd; color: #4a4a4a; display: grid; place-items: center; min-height: 12cqw; font-family: Arial, sans-serif; }
.avant .pied-b { margin-top: 2.4cqw; text-align: center; font-size: max(10px, 1.6cqw); color: #666; }

/* maquette « après » : la proposition */
.apres { background: var(--fond); font-family: var(--police-texte); color: var(--encre); }
.apres .haut-a { display: flex; justify-content: space-between; align-items: center; background: var(--fond); padding: 2.4cqw 4cqw; border-bottom: 1px solid var(--filet); }
.apres .logo-a { font-weight: 600; font-stretch: 90%; font-size: max(14px, 3cqw); color: var(--foret); letter-spacing: -.03em; }
.apres .nav-a { display: flex; gap: 3cqw; align-items: center; font-size: max(10px, 1.8cqw); font-weight: 500; }
.apres .nav-a b { background: var(--citron); padding: .9cqw 2.4cqw; border-radius: 999px; font-weight: 600; }
.apres .heros-a { height: 40cqw; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; background: var(--foret); color: var(--fond); }
.apres .heros-a div { padding: 3cqw 4cqw; align-self: center; }
.apres .heros-a .gros { margin: 0 0 2.2cqw; font: 400 max(24px, 7.4cqw)/.9 var(--police-titre); font-stretch: 88%; letter-spacing: -.035em; }
.apres .heros-a p { margin: 0 0 3cqw; font-size: max(11px, 2cqw); max-width: 32ch; }
.apres .heros-a .cta-a { display: inline-block; background: var(--citron); color: var(--encre); border-radius: 999px; padding: 1.4cqw 3.4cqw; font-weight: 600; font-size: max(10px, 1.9cqw); }
.apres .heros-a img { width: 100%; height: 40cqw; object-fit: cover; border-radius: 0; background: #0b5a4d; }
.apres .prix-a { display: flex; gap: 4cqw; padding: 3cqw 4cqw; font-size: max(10px, 1.9cqw); background: var(--sauge); }
.apres .prix-a span { flex: 1; border-top: 1.5px solid var(--foret); padding-top: 1cqw; font-weight: 600; }
.apres .prix-a span small { display: block; font-weight: 400; }

/* constats */
.constats { background: var(--sauge); }
.constats h2 { max-width: 14ch; margin-bottom: var(--e-6); }
.lignes { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--encre); }
.lignes li { display: grid; gap: 6px var(--e-4); padding: var(--e-3) 0; border-bottom: 1px solid color-mix(in srgb, var(--encre) 30%, transparent); }
.lignes .avant-t { font-size: 1.1875rem; font-weight: 600; margin: 0; }
.lignes .apres-t { margin: 0; color: var(--encre-2); max-width: none; }
.lignes .tag { display: inline-block; font-size: .8125rem; font-weight: 600; border-radius: 999px; padding: 2px 10px; margin-bottom: 6px; background: var(--encre); color: var(--fond); }
.lignes .tag.ok { background: var(--foret); }

/* le pain */
.maison-bande .contenu { align-items: center; }
.maison img { border-radius: 20px; background: #c9bd9f; }
.maison h2 { margin-bottom: var(--e-3); }
.galerie { background: var(--kraft); }
.galerie h2 { margin-bottom: var(--e-4); }
.mosaique li { border-radius: 20px; }
.mosaique img { background: #d8c9a8; }
.mosaique figcaption { color: var(--encre); }

/* zone */
.zone { background: var(--foret); }
.zone .horaires li { border-bottom: 1px dashed color-mix(in srgb, var(--fond) 40%, transparent); }
.zone .horaires li.ferme span:last-child { color: var(--citron); }
.ticket { background: var(--fond); border-radius: 999px; padding: 10px 20px; }
.ticket::before { display: none; }
.ticket[aria-pressed="true"] { background: var(--citron); }

.faq-liste summary { font-weight: 600; font-size: 1.1875rem; }
.faq-liste summary::after { color: var(--foret); }

.contact { background: var(--sauge); }
.contact h2 { margin-bottom: var(--e-3); }
.contact .formulaire { background: var(--fond); border: 0; border-radius: 20px; padding: var(--e-4); }
.formulaire input, .formulaire textarea { border: 1.5px solid var(--encre); border-radius: 8px; background: var(--papier); }
.formulaire .confirmation { background: var(--foret); color: var(--fond); }
.coordonnees { margin-top: var(--e-3); font-size: 1.125rem; }

.barre-mobile { position: fixed; inset: auto 0 0 0; z-index: 30; padding: 10px var(--gouttiere) calc(10px + env(safe-area-inset-bottom)); background: var(--fond); border-top: 1.5px solid var(--encre); display: flex; gap: 10px; transition: transform 240ms var(--ease-sortie); }
.barre-mobile .bouton { flex: 1; white-space: nowrap; padding-inline: 12px; }
.barre-mobile .bouton:first-child { flex: 1.7; }
.barre-mobile .bouton-second { color: var(--encre); }
.barre-mobile[data-cachee] { transform: translateY(110%); }
body { padding-bottom: 76px; }
.pied { padding-bottom: var(--e-8); }

@media (min-width: 700px) {
  .barre-mobile { display: none; }
  body { padding-bottom: 0; }
  .hero .contenu { grid-template-columns: 1.15fr .85fr; }
  .hero-comp { order: 0; }
  .hero .comp { aspect-ratio: 5 / 4; }
  .comp { aspect-ratio: 16 / 10; }
  .lignes li { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .comparateur-tete { grid-template-columns: 1.2fr .8fr; align-items: end; }
  .maison { grid-template-columns: .9fr 1.1fr; }
}
@media (max-width: 699px) {
  .marque { font-size: 1.25rem; white-space: nowrap; }
  .marque small { font-size: .6875rem; }
  .hero { padding-top: var(--e-2); }
  .hero-visuel img { aspect-ratio: 5 / 4; --cadrage: 50% 24%; }
  .hero h1 { font-size: 2.875rem; }
  .tampon { top: 12px; right: -4px; font-size: .8125rem; padding: 8px 14px; }
  .comp { aspect-ratio: 1 / 1; }
  .apres .heros-a { grid-template-columns: 1fr; height: 62cqw; }
  .apres .heros-a .gros { font-size: 11cqw; }
  .apres .heros-a img { display: none; }
  .avant .cols-b { grid-template-columns: 1fr 1fr; }
  .avant .cols-b div:nth-child(3) { display: none; }
  .apres .nav-a span { display: none; }
}
