/* Prototype autonome. Une seule feuille CSS ; sections délimitées pour SICSI. */
@font-face {
  font-family: "Inter";
  src: url("assets/inter-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Thème : les valeurs seront fournies par les réglages SICSI. */
:root {
  --color-primary: #b63728;
  --color-primary-dark: #98291d;
  --color-secondary: #52595b;
  --color-accent: #b63728;
  --color-surface: #ffffff;
  --color-background: #ffffff;
  --color-text: #252d30;
  --color-text-muted: #52595b;
  --color-border: #e1e5e6;
  --color-soft: #f3f4f4;
  --font-heading: "Inter", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --radius: 4px;
  --radius-btn: 4px;
  --content-width: 1240px;
  --gutter: clamp(20px, 4vw, 60px);
}

/* Fondations. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: #edf0f1; color: var(--color-text); font-family: var(--font-body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.louer1box-menu-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-family: var(--font-heading); }
h2 { font-size: clamp(23px, 2.15vw, 30px); line-height: 1.16; letter-spacing: -.045em; font-weight: 750; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 5px; }
.louer1box-page { max-width: 1440px; margin-inline: auto; background: var(--color-background); }
.louer1box-wrap { width: calc(100% - var(--gutter) * 2); max-width: var(--content-width); margin-inline: auto; }
.louer1box-icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.louer1box-icon, .louer1box-features svg, .louer1box-location__garage { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.louer1box-skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 12px 18px; background: white; color: var(--color-text); transform: translateY(-160%); }
.louer1box-skip-link:focus { transform: translateY(0); }
.louer1box-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 46px; padding: 12px 24px; border: 1px solid var(--color-primary); border-radius: var(--radius-btn); background: var(--color-primary); color: white; font-size: 14px; font-weight: 650; line-height: 1.2; transition: background-color .18s ease, border-color .18s ease; }
.louer1box-button:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.louer1box-button--outline { border: 1px solid white; background: rgb(255 255 255 / 5%); }
.louer1box-button--outline:hover { border-color: white; background: rgb(255 255 255 / 17%); }
.louer1box-button .louer1box-icon { width: 22px; height: 22px; }
.louer1box-heading-line { position: relative; padding-left: 20px; }
.louer1box-heading-line::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 0; width: 4px; background: var(--color-primary); }
.louer1box-eyebrow { margin-bottom: 5px; color: var(--color-primary); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }

/* Header global. */
.louer1box-header { position: relative; z-index: 10; background: white; }
.louer1box-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 82px; }
.louer1box-brand { flex: 0 0 270px; }
.louer1box-brand img { width: 270px; }
.louer1box-navigation { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.louer1box-navigation__link { position: relative; padding-block: 29px; font-size: 12px; font-weight: 500; white-space: nowrap; }
button.louer1box-navigation__link { padding-inline: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.louer1box-navigation__link:hover, .louer1box-navigation__link[aria-current="page"] { color: var(--color-primary); }
.louer1box-navigation__link[aria-current="page"] { font-weight: 750; }
.louer1box-navigation__link[aria-current="page"]::after { content: ""; height: 2px; position: absolute; right: -4px; left: -4px; bottom: 18px; background: var(--color-primary); }
.louer1box-header__contact { gap: 10px; padding-inline: 16px; font-size: 13px; white-space: nowrap; }
.louer1box-menu-toggle { display: none; }

/* Hero. */
.louer1box-hero { position: relative; isolation: isolate; color: white; background: var(--color-secondary); }
.louer1box-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; z-index: -2; }
.louer1box-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(24 29 29 / 87%) 0%, rgb(24 29 29 / 64%) 31%, rgb(24 29 29 / 8%) 72%); }
.louer1box-hero__inner { position: relative; display: flex; align-items: center; min-height: 400px; padding-block: 38px 45px; }
.louer1box-hero__content { max-width: 640px; }
.louer1box-hero h1 { max-width: 620px; font-size: clamp(40px, 4.1vw, 56px); font-weight: 770; line-height: 1.025; letter-spacing: -.055em; text-wrap: pretty; }
.louer1box-hero h1 span { display: block; }
.louer1box-hero__content > p { margin-top: 18px; font-size: clamp(16px, 1.55vw, 19px); line-height: 1.45; letter-spacing: -.025em; }
.louer1box-hero__actions { display: flex; gap: 16px; margin-top: 24px; }
.louer1box-hero__actions .louer1box-button { min-width: 214px; }
.louer1box-hero__location { position: absolute; right: 0; bottom: 17px; display: flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 3px; background: rgb(24 29 29 / 76%); font-size: 11px; }
.louer1box-hero__location .louer1box-icon { width: 17px; height: 17px; }

/* Navigation des implantations : grille extensible. */
.louer1box-locations { display: grid; grid-template-columns: .95fr 1.3fr; gap: 26px; align-items: center; padding-block: 26px; }
.louer1box-locations h2 { font-size: clamp(23px, 2vw, 28px); }
.louer1box-locations__intro > p:last-child { margin-top: 6px; font-size: 13px; color: var(--color-text-muted); }
.louer1box-locations__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.louer1box-location { display: flex; align-items: center; gap: 14px; padding: 18px 15px; border-radius: var(--radius); background: var(--color-soft); transition: background-color .18s ease; }
button.louer1box-location { width: 100%; border: 0; color: inherit; text-align: left; }
.louer1box-location:hover { background: #e9ecec; }
.louer1box-location h3, .louer1box-location__title { display: block; font-size: 17px; font-weight: 750; line-height: 1.2; letter-spacing: -.04em; }
.louer1box-location p, .louer1box-location__description { display: block; margin-top: 2px; font-size: 12px; color: var(--color-text-muted); }
.louer1box-location div > span, .louer1box-location__cta { display: flex; align-items: center; gap: 9px; margin-top: 7px; color: var(--color-primary); font-size: 12px; font-weight: 700; }
.louer1box-location__cta .louer1box-icon, .louer1box-location div > span .louer1box-icon { width: 18px; height: 18px; }
.louer1box-location__container { width: 75px; mix-blend-mode: multiply; }
.louer1box-location__garage { width: 54px; height: 54px; stroke-width: 2; color: var(--color-secondary); margin-inline: 10px; }
.louer1box-location__mobile-arrow { display: none; }

/* Sections d’offre : variante inversée pour Libourne. */
.louer1box-offers { padding-bottom: 26px; }
.louer1box-offer { display: grid; grid-template-columns: .95fr 1.3fr; gap: 40px; padding-block: 24px; border-top: 1px solid var(--color-border); }
.louer1box-offer__media { min-width: 0; }
.louer1box-offer__media img { width: 100%; height: 232px; border-radius: var(--radius); object-fit: cover; object-position: center 55%; }
.louer1box-offer__copy { display: grid; grid-template-columns: 1fr auto; align-content: start; align-items: end; gap: 10px 18px; padding-block: 3px; }
.louer1box-offer__copy > .louer1box-heading-line, .louer1box-offer__description { grid-column: 1 / -1; }
.louer1box-offer__description { color: var(--color-text-muted); font-size: 14px; line-height: 1.5; }
.louer1box-offer__copy .louer1box-heading-line { margin-left: -20px; }
.louer1box-features { display: grid; gap: 5px; padding: 4px 0 0; list-style: none; font-size: 12px; }
.louer1box-features li { display: flex; gap: 9px; align-items: center; }
.louer1box-features svg { width: 17px; height: 17px; padding: 3px; border-radius: 50%; background: var(--color-primary); color: white; stroke-width: 2.7; }
.louer1box-offer__button { min-width: 192px; padding-inline: 17px; font-size: 13px; }
.louer1box-offer--reverse { grid-template-columns: 1.3fr .95fr; }
.louer1box-offer--reverse .louer1box-offer__media { grid-column: 2; grid-row: 1; }
.louer1box-offer--reverse .louer1box-offer__copy { grid-column: 1; grid-row: 1; padding: 12px 0 12px 20px; align-content: space-between; }
.louer1box-offer--reverse .louer1box-offer__media img { height: 200px; object-position: center 58%; }
.louer1box-offer--reverse .louer1box-offer__description { align-self: start; margin-bottom: auto; }

/* Réassurance. */
.louer1box-reassurance { background: var(--color-secondary); color: white; }
.louer1box-reassurance__list { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding-block: 20px; list-style: none; }
.louer1box-reassurance li { display: flex; align-items: center; gap: 17px; min-height: 38px; padding-inline: 22px; font-size: 12px; line-height: 1.35; }
.louer1box-reassurance li:first-child { padding-left: 0; }
.louer1box-reassurance li + li { border-left: 1px solid rgb(255 255 255 / 35%); }
.louer1box-reassurance .louer1box-icon { width: 32px; height: 32px; }
.louer1box-reassurance button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
.louer1box-reassurance a:hover, .louer1box-reassurance button:hover { text-decoration: underline; text-underline-offset: 3px; }
.louer1box-reassurance a:focus-visible, .louer1box-reassurance button:focus-visible { outline-color: white; }

/* Contact : coordonnées globales à terme. */
.louer1box-contact { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 32px; padding-block: 32px; }
.louer1box-contact h2 { font-size: clamp(23px, 2vw, 28px); }
.louer1box-contact .louer1box-heading-line > p { margin-top: 8px; font-size: 12px; color: var(--color-text-muted); max-width: 530px; }
.louer1box-contact__actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px; border-radius: var(--radius); background: var(--color-soft); }
.louer1box-contact__phone { display: flex; align-items: center; gap: 12px; white-space: nowrap; font-size: clamp(16px, 1.6vw, 23px); font-weight: 800; letter-spacing: -.045em; }
.louer1box-contact__phone .louer1box-icon { width: 28px; height: 28px; }
.louer1box-contact__actions .louer1box-button { white-space: nowrap; padding-inline: 17px; gap: 13px; font-size: 13px; }

/* Footer global. */
.louer1box-footer { padding-block: 22px; color: white; background: var(--color-secondary); }
.louer1box-footer__inner { display: grid; grid-template-columns: 220px 1fr; gap: 14px 35px; align-items: center; }
.louer1box-footer__brand { grid-row: span 2; background: white; padding: 5px; }
.louer1box-footer__brand img { width: 210px; }
.louer1box-footer__navigation { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px 24px; font-size: 12px; }
.louer1box-footer__navigation a:hover { text-decoration: underline; text-underline-offset: 4px; }
.louer1box-footer__navigation a:focus-visible { outline-color: white; }
.louer1box-footer__legal { display: flex; justify-content: flex-end; gap: 22px; font-size: 11px; color: #e3e6e7; }
.louer1box-footer button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
.louer1box-footer button:hover { text-decoration: underline; text-underline-offset: 4px; }
.louer1box-footer button:focus-visible { outline-color: white; }

/* Fenêtre des destinations à venir. */
body.louer1box-dialog-open { overflow: hidden; }
.louer1box-dialog { position: fixed; width: min(420px, calc(100% - 40px)); margin: auto; padding: 36px 30px 30px; border: 0; border-top: 4px solid var(--color-primary); border-radius: var(--radius); background: white; color: var(--color-text); box-shadow: 0 18px 70px rgb(0 0 0 / 20%); }
.louer1box-dialog::backdrop { background: rgb(24 29 29 / 65%); }
.louer1box-dialog__close { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; color: var(--color-secondary); }
.louer1box-dialog__page { max-width: calc(100% - 28px); margin-bottom: 10px; }
.louer1box-dialog h2 { font-size: 30px; }
.louer1box-dialog > p:not(.louer1box-eyebrow) { margin-block: 14px 24px; font-size: 14px; color: var(--color-text-muted); }
.louer1box-dialog > .louer1box-button { min-width: 120px; }

/* Tablette et navigation compacte. */
@media (max-width: 1190px) {
  .louer1box-header__inner { min-height: 76px; }
  .louer1box-brand, .louer1box-brand img { flex-basis: 230px; width: 230px; }
  .louer1box-navigation { gap: 15px; }
  .louer1box-navigation__link { font-size: 11px; }
  .louer1box-header__contact { padding-inline: 12px; font-size: 12px; }
  .louer1box-header__contact .louer1box-icon { display: none; }
  .louer1box-locations { grid-template-columns: .85fr 1.3fr; gap: 20px; }
  .louer1box-locations__grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .louer1box-location { gap: 8px; padding: 15px 10px; }
  .louer1box-location h3, .louer1box-location__title { font-size: 15px; }
  .louer1box-location__container { width: 53px; }
  .louer1box-location__garage { width: 43px; height: 43px; margin-inline: 5px; }
  .louer1box-location div > span, .louer1box-location__cta { font-size: 11px; gap: 4px; }
  .louer1box-offer { gap: 32px; }
  .louer1box-offer__copy { grid-template-columns: 1fr; }
  .louer1box-offer__button { justify-self: start; margin-top: 3px; }
  .louer1box-offer__media img { height: 280px; }
  .louer1box-offer--reverse .louer1box-offer__media img { height: 228px; }
  .louer1box-contact { grid-template-columns: 1fr; gap: 20px; }
  .louer1box-contact__actions { justify-content: flex-start; gap: 32px; }
  .louer1box-contact__phone { font-size: 23px; }
}

@media (max-width: 1000px) {
  .louer1box-header__inner { min-height: 76px; }
  .louer1box-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 9px; border: 0; background: transparent; color: var(--color-secondary); cursor: pointer; }
  .louer1box-menu-toggle .louer1box-icon { width: 26px; height: 26px; }
  .louer1box-menu-toggle__close { display: none; }
  .louer1box-menu-toggle[aria-expanded="true"] .louer1box-menu-toggle__close { display: block; }
  .louer1box-menu-toggle[aria-expanded="true"] .louer1box-menu-toggle__open { display: none; }
  .louer1box-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 18px var(--gutter) 26px; border-top: 1px solid var(--color-border); border-bottom: 3px solid var(--color-primary); background: white; max-height: calc(100dvh - 76px); overflow-y: auto; }
  .louer1box-navigation.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .louer1box-navigation__link { padding-block: 15px; font-size: 15px; white-space: normal; }
  .louer1box-navigation__link[aria-current="page"]::after { display: none; }
  .louer1box-header__contact { margin-top: 10px; padding: 14px; font-size: 14px; }
  .louer1box-header__contact .louer1box-icon { display: block; }
  .louer1box-locations { grid-template-columns: 1fr; padding-block: 25px; gap: 18px; }
  .louer1box-locations__grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .louer1box-location { padding: 16px 20px; gap: 18px; }
  .louer1box-location h3, .louer1box-location__title { font-size: 18px; }
  .louer1box-location div > span, .louer1box-location__cta { font-size: 13px; }
  .louer1box-location__container { width: 75px; }
  .louer1box-location__garage { width: 55px; height: 55px; margin-inline: 10px; }
  .louer1box-offer__copy .louer1box-heading-line { margin-left: 0; padding-left: 15px; }
  .louer1box-offer--reverse .louer1box-offer__copy { padding-left: 0; }
  .louer1box-reassurance li { padding-inline: 14px; gap: 10px; font-size: 11px; }
  .louer1box-reassurance .louer1box-icon { width: 26px; height: 26px; }
}

/* Mobile : titre, photo puis contenu pour chaque offre. */
@media (max-width: 700px) {
  :root { --gutter: 20px; }
  body { background: white; }
  .louer1box-header__inner { min-height: 68px; gap: 12px; }
  .louer1box-brand, .louer1box-brand img { width: 235px; flex-basis: 235px; }
  .louer1box-navigation { max-height: calc(100dvh - 68px); }
  .louer1box-hero__inner { min-height: 484px; padding-top: 96px; padding-bottom: 48px; align-items: flex-end; }
  .louer1box-hero__image { object-position: 48% center; }
  .louer1box-hero::after { background: linear-gradient(180deg, rgb(24 29 29 / 8%) 0%, rgb(24 29 29 / 70%) 35%, rgb(24 29 29 / 94%) 100%); }
  .louer1box-hero h1 { max-width: 420px; font-size: clamp(31px, 8.7vw, 43px); line-height: 1.04; letter-spacing: -.05em; }
  .louer1box-hero__content > p { margin-top: 15px; font-size: 14px; line-height: 1.5; }
  .louer1box-desktop-break { display: none; }
  .louer1box-hero__actions { flex-direction: column; gap: 10px; margin-top: 22px; }
  .louer1box-hero__actions .louer1box-button { min-width: 0; width: 100%; min-height: 46px; }
  .louer1box-hero__location { left: 0; right: auto; bottom: 12px; padding: 0; background: transparent; font-size: 10px; }
  .louer1box-hero__location .louer1box-icon { width: 14px; height: 14px; }
  .louer1box-locations { padding-block: 25px; gap: 17px; }
  .louer1box-heading-line { padding-left: 15px; }
  .louer1box-eyebrow { font-size: 9px; letter-spacing: .08em; }
  .louer1box-locations h2 { font-size: 24px; }
  .louer1box-locations__intro > p:last-child { font-size: 12px; line-height: 1.45; }
  .louer1box-locations__grid { grid-template-columns: 1fr; gap: 8px; }
  .louer1box-location { gap: 14px; padding: 12px 14px; min-height: 73px; }
  .louer1box-location h3, .louer1box-location__title { font-size: 16px; }
  .louer1box-location p, .louer1box-location__description { font-size: 12px; }
  .louer1box-location div > span, .louer1box-location__cta { display: none; }
  .louer1box-location__container { width: 60px; }
  .louer1box-location__garage { width: 44px; height: 44px; margin-inline: 8px; }
  .louer1box-location__mobile-arrow { display: block; margin-left: auto; color: var(--color-primary); width: 19px; height: 19px; }
  .louer1box-offers { padding-bottom: 10px; }
  .louer1box-offer, .louer1box-offer--reverse { display: grid; grid-template-columns: 1fr; padding-block: 23px; gap: 15px; }
  .louer1box-offer__copy, .louer1box-offer--reverse .louer1box-offer__copy { display: contents; }
  .louer1box-offer__copy > .louer1box-heading-line { grid-column: 1; grid-row: 1; }
  .louer1box-offer h2 { font-size: 25px; letter-spacing: -.045em; }
  .louer1box-offer__media, .louer1box-offer--reverse .louer1box-offer__media { grid-column: 1; grid-row: 2; }
  .louer1box-offer__media img, .louer1box-offer--reverse .louer1box-offer__media img { height: auto; aspect-ratio: 1.85; object-fit: cover; }
  .louer1box-offer__description { grid-column: 1; font-size: 13px; }
  .louer1box-features { grid-column: 1; gap: 7px; font-size: 12px; padding-top: 0; }
  .louer1box-offer__button { grid-column: 1; width: 100%; margin-top: 1px; min-height: 46px; font-size: 14px; }
  .louer1box-reassurance__list { grid-template-columns: 1fr 1fr; padding-block: 8px; }
  .louer1box-reassurance li, .louer1box-reassurance li:first-child { padding: 16px 12px 16px 0; gap: 10px; min-height: 72px; font-size: 11px; }
  .louer1box-reassurance li + li { border-left: 0; }
  .louer1box-reassurance li:nth-child(even) { padding-left: 14px; border-left: 1px solid rgb(255 255 255 / 30%); }
  .louer1box-reassurance li:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / 30%); }
  .louer1box-reassurance .louer1box-icon { width: 27px; height: 27px; }
  .louer1box-contact { padding-block: 27px; gap: 20px; }
  .louer1box-contact h2 { font-size: 25px; }
  .louer1box-contact .louer1box-heading-line > p { font-size: 12px; line-height: 1.5; }
  .louer1box-contact__actions { flex-direction: column; gap: 15px; padding: 17px 12px 12px; }
  .louer1box-contact__phone { font-size: 26px; }
  .louer1box-contact__actions .louer1box-button { width: 100%; font-size: 14px; }
  .louer1box-footer { padding-block: 24px; }
  .louer1box-footer__inner { grid-template-columns: 1fr; justify-items: start; gap: 22px; }
  .louer1box-footer__brand { grid-row: auto; width: 230px; }
  .louer1box-footer__navigation { justify-content: flex-start; gap: 12px 20px; font-size: 12px; }
  .louer1box-footer__legal { flex-wrap: wrap; justify-content: flex-start; gap: 10px 20px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 25%); width: 100%; }
}

@media (max-width: 360px) {
  .louer1box-brand, .louer1box-brand img { width: 210px; flex-basis: 210px; }
  .louer1box-hero__inner { min-height: 492px; }
  .louer1box-locations h2 { font-size: 22px; }
  .louer1box-reassurance li { font-size: 10px; }
  .louer1box-contact__phone { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
