:root {
  color-scheme: light;
  --papier: #e5eddd;
  --encre: #192546;
  --bleu: #263e79;
  --bleu-fonce: #17294f;
  --texte: #43506a;
  --trait: #b5bfd2;
  --ardoise: #e6ebf3;
  --serif: "Baskerville", "Hoefler Text", Georgia, serif;
  --sans: "Avenir Next", Avenir, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 1rem/1.55 var(--sans); }
a { color: inherit; text-underline-offset: .25em; }
button, select, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
:focus-visible { outline: 3px solid #3155aa; outline-offset: 4px; }
[hidden] { display: none !important; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .marque { font-family: var(--serif); font-weight: 600; line-height: 1.02; }
h1 { font-size: clamp(2.7rem, 6vw, 5.6rem); letter-spacing: -.045em; text-wrap: balance; }
h2 { font-size: clamp(2.15rem, 4vw, 3.65rem); letter-spacing: -.035em; }
h3 { font-size: 1.38rem; }
.coquille { width: min(100% - 36px, 1240px); margin-inline: auto; }
.barre { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; padding-block: 13px; }
.entete { border-top: 5px solid var(--bleu); border-bottom: 1px solid var(--trait); }
.marque { display: inline-flex; align-items: center; gap: 8px; font-size: clamp(1.35rem, 3.7vw, 1.8rem); text-decoration: none; }
.marque img { width: 32px; height: 32px; object-fit: contain; }
nav { order: 3; flex-basis: 100%; display: flex; gap: 22px; flex-wrap: wrap; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; text-decoration: none; font-weight: 600; }
nav a:hover { text-decoration: underline; }
.demo { color: var(--texte); font-size: .72rem; }
.evitement { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 12px; background: white; transform: translateY(-180%); }
.evitement:focus { transform: none; }
.hero { display: grid; gap: 22px; padding-block: 20px 32px; }
.hero-photo { aspect-ratio: 1.55; overflow: hidden; }
.hero-photo img { object-position: 62% center; }
.hero-texte { display: flex; flex-direction: column; align-items: flex-start; }
.intro { max-width: 35ch; margin: 12px 0 18px; }
.bouton { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 9px 16px; border: 1px solid var(--bleu); background: var(--bleu); color: white; font-size: .9rem; font-weight: 650; text-align: center; text-decoration: none; }
.bouton:hover { background: var(--bleu-fonce); }
.lien-hero { display: inline-flex; align-items: center; min-height: 44px; font-size: .86rem; }
.catalogue { padding-block: 24px 48px; border-top: 2px solid var(--encre); }
.section-entete { display: grid; align-items: end; gap: 10px 20px; margin-bottom: 19px; }
.section-entete > p { max-width: 42ch; color: var(--texte); font-size: .9rem; }
.grille { display: grid; }
.carte { display: grid; grid-template-columns: 38% minmax(0, 1fr); gap: 14px; align-items: start; padding-block: 13px; border-top: 1px solid var(--trait); }
.photo { aspect-ratio: .88; overflow: hidden; }
.carte-texte { display: grid; align-content: start; gap: 5px; }
.carte-titre { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 9px; }
.carte-titre span { white-space: nowrap; font-size: .83rem; }
.carte-texte p, .note { color: var(--texte); font-size: .83rem; }
.choisir { width: fit-content; min-height: 44px; border: 0; background: transparent; padding: 0; color: var(--bleu); text-align: left; text-decoration: underline; text-underline-offset: .25em; font-size: .82rem; font-weight: 650; }
.choisir:hover { color: var(--encre); text-decoration-thickness: 2px; }
.catalogue > .note { border-top: 1px solid var(--trait); padding-top: 12px; }
.sur-mesure { display: grid; background: var(--bleu-fonce); color: white; margin-bottom: 48px; }
.sur-mesure-photo { aspect-ratio: 1.55; overflow: hidden; }
.sur-mesure-texte { align-self: center; padding: 26px 20px; }
.sur-mesure-texte > p { max-width: 38ch; margin-top: 10px; }
.sur-mesure-texte > .prix-sur-mesure { margin-top: 15px; }
.secondaire { background: transparent; border-color: currentColor; margin-top: 14px; }
.secondaire:hover { background: white; color: var(--bleu-fonce); }
.secondaire:focus-visible { outline-color: white; }
.atelier { background: var(--ardoise); padding-block: 30px; }
.atelier-grille { display: grid; gap: 24px; }
address { font-style: normal; margin-top: 12px; overflow-wrap: anywhere; }
address + .note { margin-top: 7px; }
dl { margin: 10px 0 0; }
dl div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--trait); }
dd { margin: 0; text-align: right; }
.remises { display: grid; gap: 15px; }
.remises p { margin-top: 5px; }
footer .barre { min-height: 68px; font-size: .8rem; }
dialog { position: fixed; inset: 0 0 0 auto; margin: 0; height: 100%; max-height: 100dvh; width: min(100%, 445px); max-width: 100%; overflow: auto; padding: 23px; border: 0; border-top: 5px solid var(--bleu); background: var(--papier); color: var(--encre); }
dialog::backdrop { background: #151e3cb3; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-entete { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 12px; }
.dialog-entete h2 { font-size: 2.15rem; }
.fermer { flex: 0 0 44px; height: 44px; border: 1px solid var(--trait); background: transparent; font-size: 1.65rem; line-height: 1; }
form { display: grid; gap: 7px; margin-top: 17px; }
label { font-weight: 650; font-size: .9rem; }
label span { font-weight: 400; }
select, textarea { width: 100%; border: 1px solid #7784a1; border-radius: 0; background: white; color: var(--encre); padding: 10px; margin-bottom: 8px; }
textarea { resize: vertical; }
.confirmation { margin-top: 18px; padding: 12px; border-left: 3px solid var(--bleu); background: var(--ardoise); }
@media (min-width: 541px) {
  .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .carte { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 10px; }
  .carte-texte { grid-template-rows: auto 1fr auto; }
  .photo { aspect-ratio: 1.08; }
}
@media (min-width: 741px) {
  .coquille { width: min(100% - 72px, 1240px); }
  .barre { min-height: 68px; }
  nav { order: 0; flex-basis: auto; }
  .hero { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 72px); align-items: center; padding-block: 37px 55px; }
  .hero-photo { aspect-ratio: 1.38; }
  .intro { margin-block: 20px; }
  .catalogue { padding-block: 30px 66px; }
  .section-entete { grid-template-columns: 1fr auto; margin-bottom: 23px; }
  .sur-mesure { grid-template-columns: 1.22fr 1fr; margin-bottom: 66px; }
  .sur-mesure-photo { height: 100%; }
  .sur-mesure-texte { padding: 28px clamp(22px, 4vw, 56px); }
  .atelier { padding-block: 43px; }
  .atelier-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 42px; }
  .remises { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 42px; border-top: 1px solid var(--trait); padding-top: 16px; }
}
@media (min-width: 981px) {
  .grille { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
