/* Kodak Express Évreux — « La Vitrine »
   Enseigne jaune, vitre de plein jour, lettrage adhésif, pastilles prix, plaques émaillées. */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-latin-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-latin-wght.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --jaune: #ffb800;
  --jaune-fonce: #e9a600;
  --rouge: #e3051b;
  --encre: #2b2b2e;
  --vitre: #dde7ea;
  --vitre-claire: #eef3f4;
  --vitre-ombre: #c5d3d8;
  --papier: #ffffff;
  --texte-vitre: #46555c;
  --texte-jaune: #4a3a00;
  --vert: #0f6b3c;

  --f-titre: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --f-texte: "Nunito Sans", "Segoe UI", system-ui, sans-serif;

  --gouttiere: clamp(1rem, 4vw, 3rem);
  --largeur: 75rem;
  --ombre-papier: 0 0.6rem 1.4rem rgb(43 43 46 / 0.18);
  --ombre-vinyle: 0.04em 0.07em 0.09em rgb(43 43 46 / 0.24);
  --sortie: cubic-bezier(0.16, 1, 0.3, 1);

  /* Reflets obliques de la vitre : une couche sous le contenu, une plus légère par-dessus. */
  --reflets: linear-gradient(112deg,
      transparent 0 30%, rgb(255 255 255 / 0.45) 30% 37%, transparent 37% 43%,
      rgb(255 255 255 / 0.28) 43% 45%, transparent 45% 78%,
      rgb(255 255 255 / 0.26) 78% 86%, transparent 86%);
  /* Plafond à 8 % de blanc : au-delà, le blanc sur rouge et le rouge sur blanc passent sous 4,5:1. */
  --reflets-dessus: linear-gradient(112deg,
      transparent 0 30%, rgb(255 255 255 / 0.08) 30% 37%, transparent 37% 43%,
      rgb(255 255 255 / 0.05) 43% 45%, transparent 45% 78%,
      rgb(255 255 255 / 0.06) 78% 86%, transparent 86%);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 112.5%;
  scroll-behavior: smooth;
  /* La place de la barre de défilement est réservée : la mise en page ne saute pas d'une page à l'autre. */
  scrollbar-gutter: stable;
  scrollbar-color: var(--encre) var(--vitre);
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-block-size: 100dvh;
  margin: 0;
  background: var(--vitre);
  color: var(--encre);
  font-family: var(--f-texte);
  line-height: 1.6;
  caret-color: var(--rouge);
  accent-color: var(--encre);
}
main { flex: 1 0 auto; }

::selection { background: var(--jaune); color: var(--encre); }

img { max-inline-size: 100%; block-size: auto; display: block; }

h1, h2, h3 {
  font-family: var(--f-titre);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-block: 0 1.25rem; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.15; letter-spacing: 0; margin-block: 0 0.5rem; }
p { margin-block: 0 1rem; }

a {
  color: inherit;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 0.18em; }

:focus-visible {
  outline: 3px solid var(--encre);
  outline-offset: 3px;
  border-radius: 2px;
}
.trottoir :focus-visible,
.porte:focus-visible,
.affiche--encre :focus-visible,
.ecran :focus-visible { outline-color: var(--jaune); }
.ecran--carte :focus-visible { outline-color: var(--encre); }

.evitement {
  position: absolute;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--encre);
  color: #fff;
  font-family: var(--f-titre);
  font-weight: 600;
  translate: 0 -200%;
}
.evitement:focus { translate: 0 0; }

.cadre {
  inline-size: min(100% - 2 * var(--gouttiere), var(--largeur));
  margin-inline: auto;
}
.masque {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Enseigne ---------- */

.enseigne { background: var(--jaune); position: relative; z-index: 20; }

.enseigne__haut { background: var(--jaune-fonce); font-size: 0.85rem; }
.enseigne__haut .cadre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  padding-block: 0.4rem;
}
.enseigne__tel { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; }
.enseigne__tel a { padding: 0.15rem 0.6rem; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.enseigne__tel strong { font-family: var(--f-titre); font-weight: 600; font-variant-numeric: tabular-nums; }
.enseigne__tel a:hover strong { text-decoration: underline; text-underline-offset: 0.2em; }

.choix-boutique { display: flex; align-items: center; gap: 0.5rem; }
.choix-boutique__titre { color: var(--texte-jaune); }
.choix-boutique button {
  font: 600 0.85rem/1 var(--f-titre);
  color: var(--encre);
  background: transparent;
  border: 2px solid var(--encre);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  min-block-size: 2rem;
  cursor: pointer;
  transition: background-color 0.2s var(--sortie), color 0.2s var(--sortie);
}
.choix-boutique button:hover { background: rgb(43 43 46 / 0.12); }
.choix-boutique button[aria-pressed="true"] { background: var(--encre); color: #fff; }
html:not(.js) .choix-boutique { display: none; }

.enseigne__bandeau {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 0.6rem;
}
.caisson {
  flex: none;
  display: block;
  background: #fff;
  padding: 0.35rem 0.9rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.6rem rgb(74 58 0 / 0.3), inset 0 0 0 2px rgb(43 43 46 / 0.08);
}
.caisson img { inline-size: clamp(8.5rem, 14vw, 11rem); }

.menu__bouton {
  display: none;
  font: 600 1rem/1 var(--f-titre);
  color: #fff;
  background: var(--encre);
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  min-block-size: 2.75rem;
  cursor: pointer;
}
.menu__liste {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--f-titre);
  font-weight: 600;
  font-size: 1rem;
}
.menu__liste > li { position: relative; }
.menu__liste > li > a,
.menu__groupe > summary {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 0.4rem;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s var(--sortie);
}
.menu__groupe > summary::-webkit-details-marker { display: none; }
.menu__groupe > summary::after {
  content: "";
  display: inline-block;
  inline-size: 0.45em;
  block-size: 0.45em;
  margin-inline-start: 0.45em;
  border: solid currentColor;
  border-width: 0 0.14em 0.14em 0;
  rotate: 45deg;
  translate: 0 -0.2em;
  transition: rotate 0.25s var(--sortie), translate 0.25s var(--sortie);
}
.menu__groupe[open] > summary::after { rotate: 225deg; translate: 0 0.08em; }
.menu__liste > li > a:hover,
.menu__groupe > summary:hover,
.menu__groupe[open] > summary { background: rgb(43 43 46 / 0.12); }
.menu__liste a[aria-current="page"],
.menu__liste a[aria-current="page"]:hover { background: var(--encre); color: #fff; }
.menu__sous {
  position: absolute;
  inset-block-start: calc(100% + 0.4rem);
  inset-inline-start: 0;
  z-index: 30;
  min-inline-size: 16rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: var(--ombre-papier);
  font-weight: 500;
}
.menu__liste > li:nth-last-child(-n + 3) .menu__sous { inset-inline: auto 0; }
.menu__sous a { display: block; padding: 0.55rem 0.75rem; border-radius: 0.3rem; text-decoration: none; }
.menu__sous a:hover { background: var(--vitre-claire); }

@media (max-width: 63.99rem) {
  .js .menu__bouton { display: block; }
  .enseigne__bandeau { flex-wrap: wrap; }
  .menu { flex-basis: 100%; }
  .js .menu:not([data-ouvert]) { display: none; }
  .menu__liste { flex-direction: column; gap: 0; font-size: 1.1rem; }
  .menu__liste > li { border-block-start: 1px solid rgb(43 43 46 / 0.2); }
  .menu__liste > li > a,
  .menu__groupe > summary { padding: 0.9rem 0.25rem; border-radius: 0; }
  .menu__sous,
  .menu__liste > li:nth-last-child(-n + 3) .menu__sous {
    position: static;
    box-shadow: none;
    background: rgb(255 255 255 / 0.55);
    margin-block-end: 0.75rem;
  }
}

/* ---------- Vitre ---------- */

.vitre,
.rayon--vitre {
  position: relative;
  background: var(--reflets) var(--vitre);
}
/* Le contenu se lit derrière la vitre : un reflet léger passe par-dessus sans gêner les clics. */
.vitre::after,
.rayon--vitre::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: var(--reflets-dessus);
}
.vitre {
  padding-block: clamp(2.5rem, 6vw, 5rem);
  border-block-end: 0.6rem solid var(--encre);
}
.vitre--accueil { padding-block: clamp(1.25rem, 2.4vw, 2rem) 0; border-block-end: 0; }
.vitre--accueil .lettrage { font-size: clamp(2.2rem, 5.6vw, 4.4rem); }
.vitre--accueil .chapo { max-inline-size: 42em; margin-block-start: 1rem; }

.lettrage {
  font-size: clamp(2.4rem, 6.2vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-shadow: var(--ombre-vinyle);
}
.lettrage em { font-style: normal; color: var(--rouge); }
.vitre--page .lettrage { font-size: clamp(2.3rem, 6vw, 4.5rem); }

.chapo {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.45;
  max-inline-size: 34em;
  margin-block: 1.25rem 0;
  color: var(--encre);
}

.vitre__accueil {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 2rem;
  align-items: center;
}
.vitre__collage { position: relative; min-block-size: 17rem; }
.vitre__collage .pastille { position: absolute; margin: 0; }
.vitre__collage .pastille:nth-child(1) { inset-block-start: 0; inset-inline-start: 0; }
.vitre__collage .pastille:nth-child(2) { inset-block-start: 35%; inset-inline-end: 0; rotate: 9deg; }
.vitre__collage .pastille:nth-child(3) { inset-block-end: 0; inset-inline-start: 18%; rotate: -4deg; }

.vitre__page {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.vitre__objet { position: relative; margin: 0; }
.vitre__objet img { margin-inline: auto; filter: drop-shadow(0 1rem 1.2rem rgb(43 43 46 / 0.22)); }
.vitre__objet .pastille { position: absolute; inset-block-start: -1rem; inset-inline-end: 0; }
.vitre__objet--papier img {
  filter: none;
  background: #fff;
  padding: 0.6rem;
  box-shadow: var(--ombre-papier);
  rotate: 1.2deg;
}

@media (max-width: 47.99rem) {
  .vitre__accueil,
  .vitre__page { grid-template-columns: 1fr; }
  .vitre__collage { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.4rem; min-block-size: 0; }
  .vitre__collage .pastille { position: static; }
  .vitre__collage .pastille:nth-child(1) { --d: min(6rem, 28vw); }
  .vitre__collage .pastille:nth-child(2) { --d: min(5rem, 24vw); }
  .vitre__collage .pastille:nth-child(3) { --d: min(4.4rem, 21vw); }
}

/* ---------- Pastille prix ---------- */

.pastille {
  --d: 6.5rem;
  display: inline-grid;
  place-content: center;
  inline-size: var(--d);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--rouge);
  color: #fff;
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: calc(var(--d) * 0.26);
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  rotate: -8deg;
  box-shadow: 0 0.35rem 0.8rem rgb(43 43 46 / 0.3);
}
.pastille small {
  display: block;
  font-size: max(0.42em, 0.72rem);
  font-weight: 600;
  line-height: 1.1;
  margin-block-start: 0.2em;
  padding-inline: 0.5em;
}
.pastille--grande { --d: clamp(7.5rem, 13vw, 10.5rem); }
.pastille--petite { --d: 5.25rem; }
/* Prix à décimales : corps réduit pour que le texte garde une marge dans le rond. */
.pastille--long { font-size: calc(var(--d) * 0.2); }
/* Rouge = un prix. Jaune ou encre = un délai, un devis, une mention. */
.pastille--jaune { background: var(--jaune); color: var(--encre); }
.pastille--encre { background: var(--encre); }

/* ---------- Portes ---------- */

.portes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-block-start: clamp(1.25rem, 2.2vw, 1.75rem);
  padding: 0.6rem 0.6rem 0;
  background: var(--encre);
  border-radius: 0.5rem 0.5rem 0 0;
}
.porte {
  display: block;
  background: #17171a;
  color: var(--encre);
  text-decoration: none;
  perspective: 70rem;
}
.porte__battant {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  block-size: 100%;
  min-block-size: clamp(13rem, 20vw, 16rem);
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
  background: var(--jaune);
  box-shadow: inset 0 0 0 0.5rem var(--jaune-fonce), inset 0 -3.2rem 0 0 var(--jaune-fonce);
  transition: transform 0.6s var(--sortie), box-shadow 0.6s var(--sortie);
  will-change: transform;
}
.porte--gauche .porte__battant { transform-origin: left center; padding-inline-end: clamp(2.5rem, 6vw, 4.5rem); }
.porte--droite .porte__battant { transform-origin: right center; padding-inline-start: clamp(2.5rem, 6vw, 4.5rem); }
.porte--gauche:hover .porte__battant,
.porte--gauche:focus-visible .porte__battant { transform: rotateY(16deg); }
.porte--droite:hover .porte__battant,
.porte--droite:focus-visible .porte__battant { transform: rotateY(-16deg); }
/* Au toucher, la porte cède sous le doigt avant de s'ouvrir. */
.porte--gauche:active .porte__battant { transform: rotateY(8deg); }
.porte--droite:active .porte__battant { transform: rotateY(-8deg); }

.porte__poignee {
  position: absolute;
  inset-block-start: 38%;
  inline-size: 0.7rem;
  block-size: 30%;
  min-block-size: 4.5rem;
  border-radius: 999px;
  background: var(--encre);
  box-shadow: 0.2rem 0.3rem 0.5rem rgb(74 58 0 / 0.4);
}
.porte--gauche .porte__poignee { inset-inline-end: 1.4rem; }
.porte--droite .porte__poignee { inset-inline-start: 1.4rem; }

.porte__titre {
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.porte__texte { max-inline-size: 22em; line-height: 1.4; color: var(--texte-jaune); }
.porte__marque {
  display: none;
  align-self: flex-start;
  padding: 0.2rem 0.75rem;
  background: var(--encre);
  color: #fff;
  border-radius: 999px;
  font: 600 0.85rem/1.4 var(--f-titre);
}

/* ---------- Écriteaux de porte ---------- */

.ecriteaux {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  margin-block: auto 2.4rem;
  padding-block-start: 1.1rem;
}
.ecriteau {
  position: relative;
  display: grid;
  gap: 0.15rem;
  min-inline-size: 9.5rem;
  padding: 0.55rem 0.9rem 0.65rem;
  background: #fff;
  border-radius: 0.3rem;
  box-shadow: 0 0.25rem 0.5rem rgb(74 58 0 / 0.3);
  transform-origin: top center;
}
/* Le cordon : un carré tourné dont seuls deux bords sont tracés. */
.ecriteau::before {
  content: "";
  position: absolute;
  inset-block-start: -0.7rem;
  inset-inline-start: calc(50% - 0.7rem);
  inline-size: 1.4rem;
  block-size: 1.4rem;
  border: solid var(--encre);
  border-width: 2px 0 0 2px;
  rotate: 45deg;
}
.ecriteau__lieu { font: 600 0.8rem/1.2 var(--f-titre); color: var(--texte-vitre); }
.ecriteau__mot {
  font: 700 clamp(1.6rem, 2.6vw, 2.1rem)/1 var(--f-titre);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.ecriteau__detail { font-size: 0.85rem; line-height: 1.3; }
.ecriteau[data-etat="ouvert"] .ecriteau__mot { color: var(--vert); }
.ecriteau[data-etat="ferme"] .ecriteau__mot { color: var(--rouge); }

@media (max-width: 33.99rem) {
  .portes { gap: 0.4rem; padding: 0.4rem 0.4rem 0; }
  .porte__battant {
    min-block-size: 9rem;
    padding: 0.9rem 0.6rem;
    box-shadow: inset 0 0 0 0.3rem var(--jaune-fonce), inset 0 -1.5rem 0 0 var(--jaune-fonce);
  }
  .porte--gauche .porte__battant { padding-inline-end: 1.7rem; }
  .porte--droite .porte__battant { padding-inline-start: 1.7rem; }
  .porte__poignee { inline-size: 0.45rem; min-block-size: 3rem; }
  .porte--gauche .porte__poignee { inset-inline-end: 0.6rem; }
  .porte--droite .porte__poignee { inset-inline-start: 0.6rem; }
  .porte__titre { font-size: 1.3rem; }
  .porte__texte { display: none; }
  .ecriteaux { gap: 1.1rem; margin-block-end: 1.3rem; }
  .ecriteau { inline-size: 100%; min-inline-size: 0; padding: 0.45rem 0.4rem 0.5rem; }
  .ecriteau__mot { font-size: min(1.6rem, 7.4vw); letter-spacing: 0; }
  .ecriteau__detail { font-size: 0.78rem; }

  /* Premier écran sur téléphone : tout se resserre pour que les deux portes et leur état tiennent
     sans défiler ; les pastilles chevauchent le haut des portes. */
  .enseigne__bandeau { padding-block: 0.4rem; }
  .enseigne__tel a { display: none; }
  .vitre--accueil { padding-block-start: 1.1rem; }
  .vitre--accueil .lettrage { font-size: 2.2rem; }
  .vitre--accueil .vitre__accueil,
  .vitre--accueil .vitre__page { gap: 0.6rem; }
  .vitre--accueil .chapo { margin-block-start: 0.8rem; }
  .vitre--accueil .chapo__detail { display: none; }
  .vitre--accueil .vitre__collage { position: relative; z-index: 2; justify-content: flex-end; margin-block-end: -1.2rem; }
  .vitre--accueil .vitre__collage .pastille:nth-child(1) { --d: min(5.5rem, 26vw); }
  .vitre--accueil .vitre__collage .pastille:nth-child(2) { --d: min(4.8rem, 23vw); }
  .vitre--accueil .portes { margin-block-start: 0.8rem; }
  .ecriteaux { margin-block-end: 0.9rem; }
}

/* ---------- État ouvert / fermé ---------- */

.etat {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin: 0;
  font-family: var(--f-titre);
  font-weight: 600;
}
.etat::before {
  content: "";
  flex: none;
  inline-size: 0.7em;
  block-size: 0.7em;
  border-radius: 50%;
  background: var(--texte-vitre);
}
.etat[data-etat="ouvert"] { color: var(--vert); }
.etat[data-etat="ouvert"]::before { background: var(--vert); }
.etat[data-etat="ferme"] { color: var(--rouge); }
.etat[data-etat="ferme"]::before { background: transparent; box-shadow: inset 0 0 0 0.16em var(--rouge); }

/* ---------- Boutique choisie : elle ressort, l'autre s'efface ---------- */

html[data-boutique="centre"] [data-boutique-info="carrefour"],
html[data-boutique="carrefour"] [data-boutique-info="centre"] { filter: saturate(0.3); }

html[data-boutique="centre"] .plaque[data-boutique-info="carrefour"],
html[data-boutique="carrefour"] .plaque[data-boutique-info="centre"] { box-shadow: none; border-color: #7d8b91; }

html[data-boutique="centre"] .plaque[data-boutique-info="centre"],
html[data-boutique="carrefour"] .plaque[data-boutique-info="carrefour"] {
  box-shadow: 0 0 0 0.45rem var(--jaune), 0 0.9rem 1.6rem rgb(43 43 46 / 0.2);
}
html[data-boutique="centre"] [data-boutique-info="centre"] .plaque__marque,
html[data-boutique="carrefour"] [data-boutique-info="carrefour"] .plaque__marque { display: block; }
html[data-boutique="centre"] [data-boutique-info="centre"] .porte__marque,
html[data-boutique="carrefour"] [data-boutique-info="carrefour"] .porte__marque { display: block; }

html[data-boutique="centre"] .enseigne__tel [data-boutique-info="centre"],
html[data-boutique="carrefour"] .enseigne__tel [data-boutique-info="carrefour"] {
  display: inline-block;
  background: var(--encre);
  color: #fff;
}
html[data-boutique="centre"] .ecriteau[data-boutique-info="centre"],
html[data-boutique="carrefour"] .ecriteau[data-boutique-info="carrefour"] { outline: 3px solid var(--encre); outline-offset: 2px; }

/* ---------- Rayons (sections) ---------- */

.rayon { padding-block: clamp(3rem, 7vw, 5.5rem); }
/* Montant de châssis entre deux vitres. */
.rayon + .rayon { border-block-start: 0.4rem solid var(--encre); }
.rayon--jaune { background: var(--jaune); }
.rayon > .cadre > :last-child { margin-block-end: 0; }

.prose { max-inline-size: 68ch; }
.prose h2 { margin-block-start: 2.5rem; }
.prose > :first-child { margin-block-start: 0; }
.prose ul { padding-inline-start: 1.2em; }
.prose li { margin-block-end: 0.35rem; }

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: start;
}
.duo--large { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.duo--centre { align-items: center; }
@media (max-width: 47.99rem) {
  .duo,
  .duo--large { grid-template-columns: 1fr; }
}

.note { font-size: 0.9rem; color: var(--texte-vitre); max-inline-size: 68ch; }
.rayon--jaune .note { color: var(--texte-jaune); }

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-block-size: 3rem;
  padding: 0.75rem 1.4rem;
  border: 2px solid var(--encre);
  border-radius: 999px;
  background: var(--encre);
  color: #fff;
  font: 600 1.05rem/1.2 var(--f-titre);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--sortie), color 0.2s var(--sortie), translate 0.2s var(--sortie);
}
.bouton:hover { background: #000; border-color: #000; }
.bouton:active { translate: 0 1px; }
.bouton--contour { background: transparent; color: var(--encre); }
.bouton--contour:hover { background: var(--encre); color: #fff; }
.bouton[disabled] { opacity: 0.55; cursor: progress; }

/* Lien sortant : flèche oblique avec sa hampe, dessinée une fois et teintée par la couleur du texte. */
.bouton--externe::after,
.lien-externe::after {
  content: "";
  flex: none;
  inline-size: 0.8em;
  block-size: 0.8em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12 12 4M5.5 4H12v6.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12 12 4M5.5 4H12v6.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lien-externe::after { display: inline-block; margin-inline-start: 0.3em; vertical-align: -0.05em; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block: 1.5rem 0; padding: 0; list-style: none; }

/* ---------- Plaques des boutiques ---------- */

.plaques { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2.5rem); }
@media (max-width: 47.99rem) { .plaques { grid-template-columns: 1fr; } }

.plaque {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background-color: #fff;
  background-image:
    radial-gradient(circle at 0.85rem 0.85rem, var(--vitre-ombre) 0 0.22rem, transparent 0.26rem),
    radial-gradient(circle at calc(100% - 0.85rem) 0.85rem, var(--vitre-ombre) 0 0.22rem, transparent 0.26rem),
    radial-gradient(circle at 0.85rem calc(100% - 0.85rem), var(--vitre-ombre) 0 0.22rem, transparent 0.26rem),
    radial-gradient(circle at calc(100% - 0.85rem) calc(100% - 0.85rem), var(--vitre-ombre) 0 0.22rem, transparent 0.26rem);
  border: 2px solid var(--encre);
  border-radius: 0.6rem;
  box-shadow: 0 0.5rem 1.1rem rgb(43 43 46 / 0.16);
  transition: box-shadow 0.3s var(--sortie), border-color 0.3s var(--sortie), filter 0.3s var(--sortie);
}
.plaque__tete { display: flex; gap: 1rem; align-items: center; margin-block-end: 1rem; }
.plaque__photo { flex: none; inline-size: 6.5rem; border-radius: 0.3rem; }
.plaque h2, .plaque h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 0.3rem; }
.plaque address { font-style: normal; margin-block-end: 1rem; }
.plaque__marque {
  display: none;
  position: absolute;
  inset-block-start: -0.9rem;
  inset-inline-end: 1.25rem;
  padding: 0.25rem 0.8rem;
  background: var(--encre);
  color: #fff;
  border-radius: 999px;
  font: 600 0.85rem/1.4 var(--f-titre);
}
/* Les actions se calent en bas : deux plaques voisines restent alignées quel que soit leur texte. */
.plaque .actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-block-start: auto;
  padding-block-start: 0.25rem;
}
.plaque .actions li:first-child { grid-column: 1 / -1; }
.plaque .actions .bouton { inline-size: 100%; padding-inline: 0.75rem; }

.horaires { margin: 0 0 1.25rem; font-variant-numeric: tabular-nums; }
.horaires > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.1rem 1rem;
  padding-block: 0.45rem;
  border-block-end: 1px dashed var(--vitre-ombre);
}
.horaires dt { font-weight: 400; }
.horaires dd { margin: 0; font-weight: 800; }

@media (max-width: 39.99rem) {
  .plaque__tete { align-items: flex-start; }
  .plaque__photo { inline-size: 5rem; }
}

/* ---------- Affiches en vitrine ---------- */

.affiches {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(1.1rem, 2.4vw, 2rem);
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}
.affiche {
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  padding: clamp(1.1rem, 2.2vw, 1.75rem);
  background: #fff;
  box-shadow: var(--ombre-papier);
  transition: translate 0.4s var(--sortie), box-shadow 0.4s var(--sortie);
}
.affiche:hover,
.affiche:focus-within { translate: 0 -0.3rem; box-shadow: 0 1.1rem 2rem rgb(43 43 46 / 0.24); }
.affiche--7 { grid-column: span 7; }
.affiche--5 { grid-column: span 5; }
.affiche--3 { grid-column: span 3; }
.affiche img { inline-size: 100%; block-size: 12rem; object-fit: contain; margin-block-end: 1rem; }
.affiche h3 a { text-decoration: none; }
.affiche h3 a::after { content: ""; position: absolute; inset: 0; }
.affiche h3 a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.affiche p { margin: 0; color: var(--texte-vitre); line-height: 1.45; }
.affiche .pastille { position: absolute; inset-block-start: -1.1rem; inset-inline-end: -0.9rem; z-index: 1; }

/* Affiche-titre : le prix ou le délai est l'affiche, à l'échelle d'une vitrine. */
.affiche .affiche__chiffre {
  margin: 0 0 0.9rem;
  color: var(--rouge);
  font: 700 clamp(3.6rem, 9vw, 5.3rem)/0.9 var(--f-titre);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.affiche--titre { justify-content: flex-end; min-block-size: 15rem; }
.affiche--titre h3 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.affiche--jaune { background: var(--jaune); }
.affiche--jaune p { color: var(--texte-jaune); }
.affiche--jaune .affiche__chiffre { color: var(--encre); }

/* Ticket : petite étiquette de prix collée entre deux affiches. */
.affiche--ticket {
  align-self: center;
  padding: 1.1rem 1.25rem 1.25rem;
  rotate: -1.4deg;
}
.affiche--ticket:nth-child(even) { rotate: 1.2deg; }
.affiche--ticket .affiche__chiffre { margin-block-end: 0.5rem; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.01em; }
.affiche--encre { background: var(--encre); color: #fff; }
.affiche--encre p { color: #dfe6e9; }
.affiche--encre .affiche__chiffre,
.affiche--encre h3.affiche__chiffre { color: var(--jaune); }
.affiche h3.affiche__chiffre { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1; letter-spacing: -0.01em; }

@media (max-width: 63.99rem) {
  .affiche, .affiche--5, .affiche--3 { grid-column: span 6; }
  .affiche--7 { grid-column: span 12; }
  .affiche--titre { grid-column: span 6; }
}
@media (max-width: 39.99rem) {
  .affiche, .affiche--7, .affiche--5, .affiche--3, .affiche--titre { grid-column: span 12; }
  .affiche--titre { min-block-size: 0; }
  .affiche--ticket { align-self: stretch; }
  .affiche .pastille { inset-inline-end: -0.3rem; }
  .affiche img { block-size: auto; max-block-size: 14rem; }
}

/* ---------- Grilles tarifaires ---------- */

.grille {
  inline-size: 100%;
  border-collapse: collapse;
  background: #fff;
  font-variant-numeric: tabular-nums;
  margin-block-end: 1.5rem;
  box-shadow: 0 0.3rem 0.9rem rgb(43 43 46 / 0.1);
}
.grille caption {
  caption-side: top;
  text-align: start;
  padding-block-end: 0.6rem;
  font: 700 1.35rem/1.2 var(--f-titre);
}
.grille caption small { display: block; font: 400 0.9rem/1.4 var(--f-texte); color: var(--texte-vitre); margin-block-start: 0.2rem; }
.grille th,
.grille td { padding: 0.7rem 1rem; text-align: start; vertical-align: top; border-block-end: 1px dashed var(--vitre-ombre); }
.grille thead th { background: var(--encre); color: #fff; font: 600 0.95rem/1.3 var(--f-titre); border: 0; }
.grille tbody th { font-weight: 400; }
.grille tbody th small { display: block; color: var(--texte-vitre); font-size: 0.85rem; }
/* Les prix restent dans la police de texte : ses chiffres sont tabulaires, ceux du lettrage non. */
.grille .prix,
.grille td:last-child { text-align: end; white-space: nowrap; font-weight: 800; }
.grille thead th.prix { text-align: end; }
.grille td.gauche { text-align: start; }
.grille tbody tr:hover { background: var(--vitre-claire); }
.grille tr.est-choisi { background: var(--jaune); }
.grilles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }

/* Grille à plusieurs colonnes de prix : sur téléphone, chaque ligne devient une fiche libellé / prix. */
@media (max-width: 39.99rem) {
  .grille--large,
  .grille--large caption,
  .grille--large tbody,
  .grille--large tr,
  .grille--large th,
  .grille--large td { display: block; }
  .grille--large { background: transparent; box-shadow: none; }
  .grille--large thead {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .grille--large tr { margin-block-end: 0.75rem; padding-block: 0.4rem 0.6rem; background: #fff; box-shadow: 0 0.3rem 0.9rem rgb(43 43 46 / 0.1); }
  .grille--large tbody th { border: 0; padding-block: 0.5rem 0.3rem; font-weight: 800; }
  .grille--large tbody th small { font-weight: 400; }
  .grille--large td { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.3rem; border: 0; }
  .grille--large td::before { content: attr(data-label); font-weight: 400; white-space: normal; text-align: start; }
  .grille--large td:not([data-label])::before { content: none; }
}

/* ---------- Formats emboîtés ---------- */

.formats { margin-block-end: 1.5rem; }
.formats__plan { position: relative; aspect-ratio: 90 / 60; }
.format {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  inline-size: calc(var(--l) / 90 * 100%);
  aspect-ratio: var(--l) / var(--h);
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0.2rem 0.4rem;
  background: #fff;
  border: 1.5px dashed var(--texte-vitre);
  color: var(--encre);
  font: 600 clamp(0.6rem, 1.3vw, 0.85rem)/1 var(--f-titre);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 0.25s var(--sortie);
}
.format:hover { background: var(--vitre-claire); }
.format[aria-pressed="true"] { background: var(--jaune); border: 3px solid var(--encre); }
.format[aria-pressed="true"] ~ .format { background: var(--jaune); border-style: dashed; }
.formats__lecture {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  background: var(--encre);
  color: #fff;
  font: 600 1.1rem/1.3 var(--f-titre);
  font-variant-numeric: tabular-nums;
}

/* ---------- Listes ---------- */

.coches { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.coches li { position: relative; padding: 0.5rem 0 0.5rem 2.2rem; border-block-end: 1px dashed rgb(43 43 46 / 0.3); }
.coches li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.35rem;
  inset-block-start: 0.85rem;
  inline-size: 0.5rem;
  block-size: 0.95rem;
  border: solid var(--vert);
  border-width: 0 0.2rem 0.2rem 0;
  rotate: 40deg;
}

.etapes { margin: 0 0 1.5rem; padding: 0; list-style: none; counter-reset: etape; }
.etapes li {
  counter-increment: etape;
  position: relative;
  padding: 0.75rem 0 0.75rem 3.4rem;
  border-block-end: 1px dashed rgb(43 43 46 / 0.3);
  min-block-size: 3.6rem;
}
.etapes li::before {
  content: counter(etape);
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.55rem;
  inline-size: 2.4rem;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: var(--encre);
  color: #fff;
  font: 700 1.1rem/1 var(--f-titre);
}

.etiquettes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.etiquettes li {
  padding: 0.3rem 0.8rem;
  background: #fff;
  border: 1.5px solid var(--encre);
  border-radius: 0.3rem;
  font: 500 0.95rem/1.4 var(--f-titre);
}

.voir-aussi { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; font-family: var(--f-titre); font-weight: 600; }

/* ---------- Vidéo et carte au clic ---------- */

.ecran {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--encre);
  color: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--ombre-papier);
}
.ecran--carte { aspect-ratio: 16 / 7; background: var(--vitre-ombre); color: var(--encre); }
.ecran iframe { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border: 0; }
.ecran__lien {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  font: 600 clamp(1rem, 2.2vw, 1.3rem)/1.25 var(--f-titre);
}
/* Le lien remplit un cadre à bords rognés : l'anneau de focus se trace à l'intérieur. */
.ecran__lien:focus-visible { outline-offset: -6px; border-radius: 0.4rem; }
.ecran__lien::before {
  content: "";
  inline-size: 4.2rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--rouge) conic-gradient(from 240deg at 100% 50%, #fff 0 60deg, transparent 0) 56% 50% / 36% 42% no-repeat;
  box-shadow: 0 0.4rem 0.9rem rgb(0 0 0 / 0.35);
  transition: scale 0.3s var(--sortie);
}
.ecran--carte .ecran__lien::before { background: var(--encre); border-radius: 50% 50% 50% 0; rotate: -45deg; inline-size: 3rem; }
.ecran__lien:hover::before { scale: 1.08; }
.ecran__lien small { font: 400 0.85rem/1.3 var(--f-texte); opacity: 0.85; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.videos h3 { margin-block: 0.9rem 0; font-size: 1.15rem; }

/* ---------- Formulaire ---------- */

.formulaire { display: grid; gap: 1.1rem; max-inline-size: 38rem; }
.formulaire fieldset { margin: 0; padding: 0; border: 0; }
.formulaire legend,
.champ label { display: block; padding: 0; margin-block-end: 0.35rem; font: 600 1rem/1.3 var(--f-titre); }
.choix { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.choix label { display: inline-flex; align-items: center; gap: 0.5rem; font: 400 1rem/1.3 var(--f-texte); margin: 0; min-block-size: 2.75rem; }
.choix input { inline-size: 1.3rem; block-size: 1.3rem; }
.champ input,
.champ textarea {
  inline-size: 100%;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--encre);
  border-radius: 0.4rem;
  background: #fff;
  color: var(--encre);
  font: inherit;
}
.champ textarea { min-block-size: 9rem; resize: vertical; }
.champ [aria-invalid="true"] { border-color: var(--rouge); background: #fff5f6; }
.champ__erreur { margin: 0.3rem 0 0; color: #b00416; font-weight: 700; font-size: 0.95rem; }
.champ__erreur:empty { display: none; }
.piege { position: absolute; inset-inline-start: -200vw; }
.formulaire__etat { margin: 0; font-weight: 700; }
.formulaire__etat:empty { display: none; }
.formulaire__etat[data-type="ok"] { padding: 0.9rem 1rem; background: #e3f3ea; color: #0a4f2c; border-radius: 0.4rem; }
.formulaire__etat[data-type="erreur"] { padding: 0.9rem 1rem; background: #fde8ea; color: #8f0312; border-radius: 0.4rem; }

/* ---------- Brochure ---------- */

.brochure { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; }
.brochure a { display: block; background: #fff; padding: 0.4rem; box-shadow: var(--ombre-papier); transition: translate 0.3s var(--sortie); }
.brochure a:nth-child(1) { rotate: -1.2deg; }
.brochure a:nth-child(2) { rotate: 1deg; margin-block-start: 1.5rem; }
.brochure a:hover { translate: 0 -0.3rem; }

/* ---------- Trottoir (pied de page) ---------- */

.trottoir {
  background: var(--encre);
  color: #eceff1;
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
  border-block-start: 0.6rem solid var(--jaune);
  font-size: 0.95rem;
}
.trottoir a { color: #fff; display: inline-block; padding-block: 0.2rem; }
.trottoir__grille { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 2rem clamp(1.5rem, 4vw, 4rem); }
.trottoir h2 { font-size: 1.25rem; color: var(--jaune); margin-block-end: 0.6rem; letter-spacing: 0; }
.trottoir address { font-style: normal; line-height: 1.55; }
.trottoir ul { margin: 0; padding: 0; list-style: none; }
.trottoir li { margin-block-end: 0.4rem; }
.trottoir .etat { color: #fff; font-size: 0.95rem; margin-block-start: 0.4rem; }
.trottoir .etat[data-etat="ouvert"] { color: #7ee2a8; }
.trottoir .etat[data-etat="ouvert"]::before { background: #7ee2a8; }
.trottoir .etat[data-etat="ferme"] { color: #ffb3ba; }
.trottoir .etat[data-etat="ferme"]::before { box-shadow: inset 0 0 0 0.16em #ffb3ba; }
.trottoir__fin {
  margin: 2.5rem 0 0;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid rgb(255 255 255 / 0.2);
  color: #cfd8dc;
}
@media (max-width: 47.99rem) { .trottoir__grille { grid-template-columns: 1fr; } }

/* ---------- Mouvement ---------- */

@keyframes retourne {
  from { transform: perspective(40rem) rotateX(-88deg); }
  to { transform: perspective(40rem) rotateX(0deg); }
}
/* L'écriteau se retourne quand son état change, jamais sans raison. */
.ecriteau.est-retourne { animation: retourne 0.7s var(--sortie) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .porte:hover .porte__battant,
  .porte:focus-visible .porte__battant,
  .porte:active .porte__battant { transform: none; box-shadow: inset 0 0 0 0.5rem var(--encre), inset 0 -3.2rem 0 0 var(--jaune-fonce); }
  .affiche:hover, .affiche:focus-within { translate: 0 0; }
}

@media print {
  .enseigne__haut, .menu, .menu__bouton, .portes, .ecran, .formulaire { display: none; }
  .vitre, .rayon--vitre { background: none; border: 0; padding-block: 1rem; }
  .vitre::after, .rayon--vitre::after { content: none; }
  body { background: #fff; font-size: 11pt; }
}
