/* ==========================================================================
   L'atelier Des Lunetiers - feuille de style
   Charte graphique LADL :
     Police titre : Jost* (voir @font-face)  |  Police texte : Helvetica
     Pantone 289 C  #003361  (bleu)
     Pantone 468 C  #f3e7cc  (sable)
     Pantone E60-1  #e63312  (vermillon)
   Les variantes -deep du vermillon servent au texte et aux boutons : le
   vermillon de charte plafonne a 4,38:1 sur blanc, sous le seuil WCAG AA.
   ========================================================================== */

/* Jost* - police de titre (gratuite, licence SIL OFL, voir assets/fonts/LICENCE-Jost.txt).
   Remplace Optician Sans depuis le 15/09/2026 : Optician Sans ne contient aucune
   lettre accentuee (e a u c majuscules et minuscules, oe, guillemets francais),
   ce qui faisait basculer chaque mot accentue d'un titre sur Helvetica en plein
   milieu du mot. Jost* est geometrique comme Optician Sans et couvre le francais. */
@font-face {
  font-family: "Jost";
  src: url("assets/fonts/jost-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #003361;
  --ink-soft: #284b68;
  --text: #1d1d1b;

  --vermillon: #e63312;
  --vermillon-deep: #bf2a12;
  --vermillon-darker: #a02309;

  --sable: #f3e7cc;
  --cream: #fcf7ec;
  --white: #ffffff;

  --star-on-dark: #f2b01e;
  --star-on-light: #9a6700;

  --line: rgba(0, 51, 97, 0.14);
  --shadow: 0 18px 44px rgba(0, 51, 97, 0.13);
  --radius: 8px;
  --container: 1160px;

  --font-title: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-text);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* Anneau de focus visible sur tout element interactif */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--vermillon-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.section-dark a:focus-visible,
.section-dark button:focus-visible,
.site-footer a:focus-visible,
.error-page a:focus-visible {
  outline-color: var(--sable);
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 1000;
  background: var(--ink);
  color: var(--sable);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

/* ============================ En-tete ============================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 64px;
}

.brand-mark {
  width: 54px;
  height: 72px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--ink);
  font-size: 0.94rem;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  font-weight: 600;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--vermillon-deep);
  transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================ Boutons ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

/* blanc sur --vermillon-deep = 5,9:1 */
.btn-primary {
  color: var(--white);
  background: var(--vermillon-deep);
  box-shadow: 0 12px 26px rgba(191, 42, 18, 0.24);
}

.btn-primary:hover {
  background: var(--vermillon-darker);
}

.btn-secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--vermillon-deep);
}

.btn-light {
  color: var(--ink);
  background: var(--sable);
}

.btn-light:hover {
  background: var(--white);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-text {
  min-height: 44px;
  padding-left: 0;
  padding-right: 0;
  color: var(--vermillon-deep);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-small {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================ Hero ============================ */

.hero {
  position: relative;
  min-height: 76vh;
  padding: 0;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background-color: var(--ink);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: url("assets/atelier-boutique-accueil.jpg") center / cover no-repeat;
  background-image: image-set(
    url("assets/atelier-boutique-accueil.webp") type("image/webp"),
    url("assets/atelier-boutique-accueil.jpg") type("image/jpeg")
  );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 51, 97, 0.9) 0%, rgba(0, 51, 97, 0.68) 44%, rgba(0, 51, 97, 0.18) 100%),
    linear-gradient(0deg, rgba(29, 29, 27, 0.36), rgba(29, 29, 27, 0.04));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: none;
  padding: clamp(40px, 6vh, 72px) 0 72px;
  color: var(--sable);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.58fr);
  align-items: start;
  gap: clamp(34px, 5.8vw, 96px);
}

.hero-main {
  padding-top: clamp(8px, 2vh, 22px);
}

.hero-brand {
  justify-self: end;
  align-self: center;
  width: min(100%, 540px);
  color: rgba(243, 231, 204, 0.94);
  text-align: right;
  text-shadow: 0 8px 30px rgba(0, 28, 54, 0.32);
}

.hero-brand-logo {
  width: min(100%, 520px);
  height: auto;
  margin-left: auto;
  filter: drop-shadow(0 14px 34px rgba(0, 28, 54, 0.38));
}

/* ============================ Typographie ============================ */

.eyebrow {
  margin: 0 0 14px;
  color: var(--vermillon-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section-dark .eyebrow {
  color: var(--sable);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-title);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Optician Sans etait une police d'optotype : elle rendait les minuscules en
   capitales et mesurait ~20 % de plus qu'Arial. Jost* est plus etroite et rend
   la casse reelle : d'ou le text-transform ci-dessus, qui conserve l'aspect
   valide par le client, et l'echelle legerement relevee ci-dessous. */
h1 {
  max-width: 900px;
  margin-bottom: 18px;
  color: inherit;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.1;
  text-shadow: 0 8px 32px rgba(0, 28, 54, 0.36);
}

h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(1.7rem, 2.75vw, 2.6rem);
  line-height: 1.14;
}

h3 {
  margin-bottom: 10px;
  font-family: var(--font-text);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 24px;
  color: rgba(243, 231, 204, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  text-shadow: 0 6px 24px rgba(0, 28, 54, 0.28);
}

.hero-actions,
.contact-buttons,
.info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================ Sections ============================ */

section {
  padding: 92px 0;
}

section[id] {
  scroll-margin-top: 96px;
}

.section-muted {
  background: var(--cream);
}

.section-dark {
  background: var(--ink);
  color: var(--sable);
}

.section-copy {
  max-width: 650px;
}

.section-copy p,
.section-heading p,
.service-card p,
.benefit p,
.review-card p {
  color: var(--ink-soft);
}

.site-footer p {
  color: rgba(243, 231, 204, 0.82);
}

.section-dark p {
  color: rgba(243, 231, 204, 0.86);
}

.intro-grid,
.split-layout,
.info-grid,
.contact-grid,
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 56px;
  align-items: center;
}

.intro-grid {
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  align-items: stretch;
}

.intro-content {
  display: grid;
  align-content: center;
  gap: 28px;
}

.intro-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.optician-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  align-self: stretch;
  display: grid;
  grid-template-rows: minmax(420px, 1fr) auto;
}

.optician-card picture {
  display: block;
  height: 100%;
}

.optician-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center 14%;
}

.optician-card figcaption {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
}

.optician-card strong {
  color: var(--ink);
  font-size: 1.02rem;
}

.optician-card span {
  color: var(--ink-soft);
}

.panel-stat,
.opening-card,
.service-card,
.review-card,
.map-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.panel-stat,
.opening-card {
  padding: 28px;
}

.panel-stat strong {
  display: block;
  color: var(--vermillon-deep);
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 3.1rem;
  line-height: 1;
}

.panel-stat span,
.opening-card p {
  color: var(--ink-soft);
}

.card-label {
  display: block;
  margin-bottom: 8px;
  color: var(--vermillon-deep);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.76rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

/* ============================ Avis ============================ */

.reviews-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 48px;
}

.reviews-heading .section-heading {
  margin-bottom: 0;
}

.google-rating {
  position: relative;
  width: min(100%, 340px);
  padding: 26px 28px;
  border: 1px solid rgba(243, 231, 204, 0.2);
  border-radius: var(--radius);
  color: var(--sable);
  background:
    linear-gradient(135deg, rgba(230, 51, 18, 0.24), transparent 42%),
    var(--ink);
  box-shadow: 0 24px 60px rgba(0, 51, 97, 0.22);
  isolation: isolate;
}

.google-rating::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(243, 231, 204, 0.16);
  border-radius: 6px;
  pointer-events: none;
}

.google-rating .google-label {
  display: block;
  margin-bottom: 10px;
  color: var(--sable);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.google-score {
  display: flex;
  align-items: center;
  gap: 14px;
}

.google-rating strong {
  display: block;
  color: var(--sable);
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 3.2rem;
  line-height: 1;
}

.google-rating .stars {
  display: block;
  margin: 0;
  color: var(--star-on-dark);
  font-size: 1.18rem;
  white-space: nowrap;
}

.google-rating small {
  display: block;
  margin-top: 12px;
  color: rgba(243, 231, 204, 0.86);
  font-size: 0.95rem;
  font-weight: 700;
}

/* ============================ Services ============================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 290px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.service-card strong {
  margin-top: auto;
  color: var(--ink);
  font-size: 0.94rem;
}

.service-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--white);
  background: var(--vermillon-deep);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8rem;
}

.service-cta {
  color: var(--sable);
  background:
    linear-gradient(135deg, rgba(230, 51, 18, 0.18), transparent 48%),
    var(--ink);
}

.service-cta p {
  color: rgba(243, 231, 204, 0.86);
}

.service-cta .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ============================ Marques ============================ */

.brands-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: center;
}

.lens-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.lens-partners span {
  width: 100%;
  color: var(--vermillon-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.lens-partners strong,
.brand-cloud span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.lens-partners strong {
  padding: 10px 14px;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(0, 51, 97, 0.08);
}

.brand-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(230, 51, 18, 0.12), transparent 44%),
    var(--cream);
}

.brand-cloud span {
  padding: 9px 12px;
  color: var(--ink);
  font-weight: 600;
}

/* ============================ Offres ============================ */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.offer-card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.offer-card h3 {
  font-size: 1.18rem;
}

.offer-card p {
  color: var(--ink-soft);
}

.offer-card.feature {
  color: var(--sable);
  background:
    linear-gradient(135deg, rgba(230, 51, 18, 0.22), transparent 48%),
    var(--ink);
}

.offer-card.feature p {
  color: rgba(243, 231, 204, 0.86);
}

.offer-card.feature h3 {
  color: var(--sable);
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1;
}

.offer-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--sable);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* ============================ Pourquoi ============================ */

.benefit-list {
  display: grid;
  gap: 18px;
}

.benefit {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.benefit > span {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--vermillon);
}

/* ============================ Galerie ============================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sable);
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item picture {
  display: block;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--sable);
  background: rgba(0, 51, 97, 0.88);
  font-size: 0.9rem;
}

/* ============================ Temoignages ============================ */

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.review-card {
  padding: 28px;
}

.stars {
  margin-bottom: 16px;
  color: var(--star-on-light);
}

.review-card strong {
  display: block;
  color: var(--vermillon-deep);
}

.review-source {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.mid-cta {
  margin-top: 34px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: var(--radius);
  background: var(--cream);
}

.mid-cta span {
  font-weight: 700;
}

/* ============================ Infos pratiques ============================ */

.info-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.info-list p {
  margin: 0;
}

.info-list strong {
  display: block;
  color: var(--ink);
}

.info-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--vermillon-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.map-card {
  overflow: hidden;
  min-height: 420px;
}

.map-card iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

/* ============================ FAQ ============================ */

.faq-grid {
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.faq-item button {
  width: 100%;
  min-height: 60px;
  padding: 16px 46px 16px 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  position: relative;
}

.faq-item button::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vermillon-deep);
  font-size: 1.35rem;
}

.faq-item.is-open button::after {
  content: "\2212";
}

/* visibility: hidden retire aussi la reponse repliee du parcours clavier
   et de la lecture d'ecran, ce que overflow seul ne fait pas. */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.22s ease, visibility 0.22s ease;
}

.faq-answer p {
  overflow: hidden;
  margin: 0;
  padding: 0 18px;
  color: var(--ink-soft);
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
  visibility: visible;
}

.faq-item.is-open .faq-answer p {
  padding-bottom: 18px;
}

/* ============================ Contact ============================ */

.contact {
  position: relative;
  overflow: hidden;
  padding-bottom: 92px;
  background-color: #243b63;
  background-image:
    radial-gradient(circle at 8% 0%, rgba(230, 51, 18, 0.34), transparent 30%),
    linear-gradient(135deg, #3b314c 0%, #243b63 46%, #003361 100%);
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(230, 51, 18, 0.2), transparent 42%);
  pointer-events: none;
}

.contact-grid {
  position: relative;
  z-index: 1;
}

.contact-copy h2 {
  color: var(--sable);
}

.microcopy {
  margin-top: 14px;
  font-size: 0.94rem;
}

.contact-form {
  padding: 26px;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.form-row label {
  color: var(--ink);
  font-weight: 700;
}

.form-row .optional {
  color: var(--ink-soft);
  font-weight: 400;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(0, 51, 97, 0.32);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--text);
  background: #fffdf8;
  outline: none;
}

.form-row textarea {
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--vermillon-deep);
  box-shadow: 0 0 0 3px rgba(191, 42, 18, 0.18);
}

.form-row.has-error input,
.form-row.has-error select {
  border-color: var(--vermillon-darker);
  border-width: 2px;
}

.field-error {
  color: var(--vermillon-darker);
  font-size: 0.88rem;
  font-weight: 700;
}

.field-error:empty {
  display: none;
}

/* piege a robots : jamais affiche, jamais annonce */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  width: 100%;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--vermillon-darker);
  font-weight: 700;
}

/* ============================ Modale ============================ */

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 51, 97, 0.62);
  backdrop-filter: blur(8px);
}

.contact-modal-dialog {
  position: relative;
  width: min(100%, 430px);
  padding: 34px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 51, 97, 0.28);
  text-align: center;
}

.contact-modal-dialog h2 {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 4.2vw, 1.95rem);
}

.contact-modal-dialog p {
  color: var(--ink-soft);
}

.contact-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.contact-modal-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: var(--white);
  background: var(--vermillon-deep);
  font-weight: 700;
  font-size: 1.4rem;
}

.contact-modal.is-error .contact-modal-icon {
  background: var(--vermillon-darker);
}

/* ============================ Pied de page ============================ */

.footer-divider {
  position: relative;
  height: 42px;
  margin-top: -1px;
  background-color: #243b63;
  background-image:
    linear-gradient(180deg, rgba(0, 51, 97, 0) 0%, rgba(0, 51, 97, 0.22) 100%),
    linear-gradient(90deg, rgba(230, 51, 18, 0.34) 0%, rgba(243, 231, 204, 0.18) 32%, rgba(0, 51, 97, 0.2) 100%);
}

.footer-divider::before,
.footer-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(1120px, calc(100% - 40px));
  transform: translateX(-50%);
  pointer-events: none;
}

.footer-divider::before {
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 231, 204, 0.42), transparent);
}

.footer-divider::after {
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 51, 97, 0.45), transparent);
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 56px 0 22px;
  background-color: #243b63;
  background-image:
    radial-gradient(circle at 8% 0%, rgba(230, 51, 18, 0.22), transparent 28%),
    linear-gradient(135deg, #3b314c 0%, #243b63 46%, #003361 100%);
  color: var(--sable);
}

.site-footer strong {
  display: block;
  margin-bottom: 6px;
  color: var(--sable);
  font-size: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.footer-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--sable);
  font-weight: 700;
}

.footer-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(243, 231, 204, 0.88);
}

.footer-grid a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-social {
  gap: 8px;
}

.footer-social .icon-instagram {
  flex: 0 0 auto;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(243, 231, 204, 0.2);
  color: rgba(243, 231, 204, 0.82);
  font-size: 0.92rem;
}

.footer-bottom p {
  margin: 0;
}

.mobile-call {
  display: none;
}

/* ============================ Apparitions ============================ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sans JavaScript, rien ne doit rester invisible. */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .reveal,
  .gallery-item img,
  .faq-answer,
  .main-nav a::after {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================ Page 404 ============================ */

.error-page {
  min-height: 74vh;
  display: grid;
  place-items: center;
  padding: 80px 0;
  text-align: center;
  background-color: #243b63;
  background-image:
    radial-gradient(circle at 12% 0%, rgba(230, 51, 18, 0.28), transparent 34%),
    linear-gradient(135deg, #3b314c 0%, #243b63 46%, #003361 100%);
  color: var(--sable);
}

.error-page h1 {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.9rem, 5vw, 3rem);
  text-shadow: none;
}

.error-page p {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(243, 231, 204, 0.86);
}

.error-code {
  display: block;
  margin-bottom: 6px;
  color: var(--sable);
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: 1;
  opacity: 0.55;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

/* ============================ Responsive ============================ */

@media (max-width: 980px) {
  .header-actions,
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav.is-open {
    position: fixed;
    inset: 76px 0 auto;
    display: grid;
    gap: 0;
    padding: 18px 20px 22px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .intro-grid,
  .split-layout,
  .info-grid,
  .hero-layout,
  .contact-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* La photo de l'opticien fait 533 px de large : au-dela, elle est etiree.
     On borne la carte plutot que de laisser la grille l'agrandir. */
  .optician-card {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }

  .optician-card img {
    min-height: 0;
    height: 420px;
  }

  .hero-brand {
    justify-self: start;
    max-width: 560px;
    text-align: left;
  }

  .hero-brand-logo {
    margin-left: 0;
  }

  .card-grid,
  .review-grid,
  .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brands-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .reviews-heading {
    display: grid;
    gap: 18px;
  }

  .google-rating {
    width: 100%;
    padding: 22px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 230px;
  }

  .gallery-item.large,
  .gallery-item.wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 52px;
    height: 68px;
  }

  .hero {
    min-height: auto;
    align-items: flex-start;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(0, 51, 97, 0.9), rgba(0, 51, 97, 0.56));
  }

  .hero-content {
    padding: 28px 0 104px;
  }

  .hero-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* Sur mobile : le logo passe avant le titre et l'appel a l'action. */
  .hero-brand {
    display: contents;
  }

  .hero-brand-logo {
    order: 1;
    width: min(300px, 72vw);
    margin: 0 0 22px;
  }

  .hero-main {
    order: 2;
    padding-top: 0;
  }

  h1 {
    font-size: clamp(1.8rem, 7.6vw, 2.3rem);
  }

  h2 {
    font-size: clamp(1.55rem, 6.6vw, 2rem);
  }

  section {
    padding: 68px 0;
  }

  .contact {
    padding-bottom: 68px;
  }

  .footer-divider {
    height: 34px;
  }

  .intro-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .intro-content {
    order: 1;
    gap: 24px;
  }

  .optician-card {
    order: 2;
    padding: 10px;
    display: grid;
    grid-template-rows: auto auto;
    border-color: rgba(243, 231, 204, 0.22);
    background: var(--ink);
    box-shadow: 0 18px 44px rgba(0, 51, 97, 0.18);
  }

  .optician-card img {
    height: 265px;
    min-height: 0;
    border-radius: 6px;
    object-position: center 18%;
  }

  .optician-card figcaption {
    padding: 16px 8px 8px;
  }

  .optician-card strong {
    color: var(--white);
  }

  .optician-card span {
    color: rgba(255, 255, 255, 0.86);
  }

  .hero-actions,
  .contact-buttons,
  .info-actions,
  .mid-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-actions .btn-primary[href^="tel:"] {
    display: none;
  }

  .hero-actions .btn,
  .contact-buttons .btn,
  .info-actions .btn,
  .mid-cta .btn {
    width: 100%;
  }

  .card-grid,
  .review-grid,
  .offer-grid,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand-cloud {
    padding: 18px;
  }

  .brand-cloud span {
    font-size: 0.92rem;
  }

  .service-card {
    min-height: auto;
  }

  .intro-data-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-auto-rows: 240px;
  }

  .map-card,
  .map-card iframe {
    min-height: 330px;
    height: 330px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .mobile-call {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 6px;
    color: var(--white);
    background: var(--vermillon-deep);
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(0, 51, 97, 0.3);
  }

  .site-footer {
    padding-bottom: 86px;
  }
}


/* ======================= Pages légales ======================= */

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-legal a {
  color: rgba(243, 231, 204, 0.82);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--sable);
}

.contact-form .form-rgpd {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}

.contact-form .form-rgpd a {
  color: var(--vermillon-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page {
  padding: 56px 0 76px;
  background: var(--cream);
}

.legal-container {
  max-width: 780px;
}

.legal-page h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 6px;
}

.legal-page h2 {
  margin-top: 40px;
  margin-bottom: 10px;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.legal-page p,
.legal-page li {
  color: var(--text);
  line-height: 1.65;
}

.legal-page ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page a {
  color: var(--vermillon-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-updated {
  margin-top: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.legal-page em {
  color: var(--vermillon-darker);
  font-style: italic;
}

.legal-table {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.legal-table th,
.legal-table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--sable);
  color: var(--ink);
}

.legal-back {
  margin-top: 44px;
}

@media (max-width: 700px) {
  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table thead {
    display: none;
  }

  .legal-table tr {
    margin-bottom: 14px;
    border: 1px solid var(--line);
  }

  .legal-table td {
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .legal-table td:last-child {
    border-bottom: 0;
  }

  .legal-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.85rem;
  }
}


/* ======================= Paiement en 4 fois (Alma) ======================= */

.alma {
  padding: 64px 0;
  background: var(--ink);
  color: var(--sable);
}

.alma-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 48px;
  align-items: center;
}

.alma-text h2 {
  color: var(--sable);
}

.alma .eyebrow {
  color: var(--sable);
}

.alma-text p {
  color: rgba(243, 231, 204, 0.88);
}

.alma-points {
  margin: 20px 0 22px;
  padding: 0;
  list-style: none;
}

.alma-points li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 28px;
  color: rgba(243, 231, 204, 0.92);
  line-height: 1.5;
}

.alma-points li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--star-on-dark);
}

.alma-legal {
  margin: 0;
  color: rgba(243, 231, 204, 0.7);
  font-size: 0.84rem;
  line-height: 1.5;
}

.alma-visual {
  padding: 28px;
  border: 1px solid rgba(243, 231, 204, 0.24);
  border-radius: var(--radius);
  background: rgba(252, 247, 236, 0.06);
}

.alma-brand {
  margin: 0 0 20px;
  text-align: center;
}

/* Logo Alma : marque deposee d'Alma (almapay.com), affichee ici pour signaler
   le moyen de paiement accepte en boutique. SVG officiel, integre en ligne pour
   respecter la CSP du site (font-src/img-src limites a 'self'). */
.alma-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--white);
  color: #fa5022;
}

.alma-logo {
  display: block;
  width: auto;
  height: 26px;
}

.alma-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.alma-steps li {
  padding: 14px 6px;
  border-radius: var(--radius);
  background: rgba(252, 247, 236, 0.1);
  text-align: center;
}

.alma-steps strong {
  display: block;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1.22rem;
  color: var(--sable);
}

.alma-steps span {
  display: block;
  margin-top: 4px;
  color: rgba(243, 231, 204, 0.82);
  font-size: 0.78rem;
  line-height: 1.3;
}

.alma-visual-note {
  margin: 16px 0 0;
  color: rgba(243, 231, 204, 0.7);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 900px) {
  .alma-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 520px) {
  .alma-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
