/* ==========================================================================
   L.C.L. OPTIC — Lourdes Optique Laure Gabarre — Opticien-lunetier, Lourdes
   ========================================================================== */

:root {
  --ink:      #1E1A22;
  --aubergine:#3A2C40;
  --plum:     #6E3D5B;
  --plum-dk:  #562E47;
  --grey:     #6E6673;
  --pearl:    #F7F5F3;
  --linen:    #EDE8E6;
  --white:    #FFFFFF;

  --rule:     rgba(30, 26, 34, .13);
  --rule-mid: rgba(30, 26, 34, .32);
  --rule-inv: rgba(247, 245, 243, .24);

  --display: "Spectral", Georgia, "Times New Roman", serif;
  --sans:    "Figtree", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4.6vw, 60px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

p { margin: 0 0 1.05em; max-width: 64ch; }

:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--pearl); padding: 12px 18px; z-index: 60; }
.skip:focus { left: 12px; top: 12px; }

.kicker {
  display: inline-block; font-family: var(--sans);
  font-size: 12.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--plum);
  margin-bottom: 16px;
}

.hero .kicker, .dark .kicker { color: #D7A9C4; }

/* ------------------------------------------------------------- Structure -- */

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }

section { padding-block: clamp(56px, 8.5vw, 106px); }

.linen { background: var(--linen); }
.dark { background: var(--aubergine); color: var(--linen); }
.dark h2, .dark h3 { color: var(--white); }
.dark p { color: #C6BCC9; }

/* ---------------------------------------------------------------- Entête -- */

.masthead { background: var(--pearl); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 40; }

.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 84px; flex-wrap: wrap;
}

.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.25; }
.brand__name { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.brand__sub { font-size: 12.5px; color: var(--grey); letter-spacing: .04em; }

.nav { display: flex; gap: clamp(16px, 2.6vw, 32px); font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink); padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--plum); }
.nav a[aria-current="page"] { border-bottom-color: var(--plum); color: var(--plum); }

/* ------------------------------------------------------------------ Hero -- */

.hero { position: relative; overflow: hidden; background: var(--ink); }

.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .48; }

.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(30,26,34,.94) 0%, rgba(58,44,64,.78) 55%, rgba(58,44,64,.46) 100%);
}

.hero .wrap { position: relative; z-index: 2; padding-block: clamp(64px, 11vw, 138px); }

.hero h1 { font-size: clamp(38px, 6.8vw, 82px); color: var(--white); max-width: 16ch; margin-bottom: 24px; }

.hero__lede { font-size: clamp(17px, 2vw, 21px); color: #DBD2DD; max-width: 52ch; margin-bottom: 34px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block; font-family: var(--sans);
  font-size: 15.5px; font-weight: 600;
  padding: 15px 28px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.btn--solid { background: var(--plum); color: var(--white); }
.btn--solid:hover { background: var(--plum-dk); }

.btn--line { border-color: var(--rule-inv); color: var(--white); }
.btn--line:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

section:not(.dark) .btn--line { border-color: var(--rule-mid); color: var(--ink); }
section:not(.dark) .btn--line:hover { border-color: var(--plum); color: var(--plum); background: rgba(110,61,91,.06); }

/* -------------------------------------------------------------- Repères -- */

.marks { background: var(--linen); border-bottom: 1px solid var(--rule); }

.marks .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.marks div { padding: 22px 26px 22px 0; border-right: 1px solid var(--rule); }
.marks div:last-child { border-right: 0; }

@media (max-width: 640px) {
  .marks div { border-right: 0; border-bottom: 1px solid var(--rule); padding-right: 0; }
  .marks div:last-child { border-bottom: 0; }
}

.marks dt { font-size: 11.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--grey); margin-bottom: 4px; }
.marks dd { margin: 0; font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--aubergine); }

/* ---------------------------------------------------- Titrage de section -- */

.lead-in { max-width: 47ch; margin-bottom: clamp(32px, 4.4vw, 54px); }
.lead-in h2 { font-size: clamp(28px, 4.4vw, 48px); margin-bottom: 15px; }
.lead-in p { color: var(--grey); margin: 0; }
.dark .lead-in p { color: #C6BCC9; }

/* -------------------------------------------------------------- Services -- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); gap: clamp(20px, 2.4vw, 30px); }

.card {
  background: var(--white); border: 1px solid var(--rule);
  display: flex; flex-direction: column; overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}

.card:hover { box-shadow: 0 12px 32px rgba(30,26,34,.1); transform: translateY(-3px); }

.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--linen); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__body { padding: 24px 24px 28px; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--grey); margin: 0; max-width: none; }

/* ------------------------------------------------------------ Deux colonnes -- */

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: clamp(30px, 4.6vw, 66px); align-items: center; }

.split__media { overflow: hidden; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.tick-list { list-style: none; margin: 22px 0 0; padding: 0; }
.tick-list li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--rule); font-size: 16.5px; position: relative; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 22px; width: 12px; height: 1px; background: var(--plum); }
.dark .tick-list li { border-bottom-color: var(--rule-inv); }
.dark .tick-list li::before { background: #D7A9C4; }

/* -------------------------------------------------------------- Séquence -- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: clamp(24px, 3.2vw, 40px); counter-reset: step; }

.step { padding-top: 18px; border-top: 1px solid var(--rule-mid); }

.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--display); font-size: 14px; font-weight: 600;
  color: var(--plum); margin-bottom: 10px;
}

.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15.5px; color: var(--grey); margin: 0; }

/* ------------------------------------------------------------------- CTA -- */

.cta { background: var(--plum); }
.cta h2 { font-size: clamp(28px, 4.4vw, 48px); max-width: 18ch; margin-bottom: 16px; color: var(--white); }
.cta p { color: #EBD8E4; max-width: 50ch; margin-bottom: 28px; }
.cta .btn--solid { background: var(--white); color: var(--plum-dk); }
.cta .btn--solid:hover { background: var(--pearl); }
.cta .btn--line { border-color: rgba(255,255,255,.45); color: var(--white); }
.cta .btn--line:hover { border-color: var(--white); background: rgba(255,255,255,.14); }

/* ------------------------------------------------------------ Pages texte -- */

.page-head { background: var(--aubergine); color: var(--linen); padding-block: clamp(50px, 7.5vw, 92px); }
.page-head h1 { font-size: clamp(36px, 6.2vw, 72px); color: var(--white); margin-bottom: 15px; }
.page-head p { color: #C6BCC9; font-size: 18px; max-width: 56ch; margin: 0; }

.prose h2 { font-size: clamp(25px, 3.4vw, 37px); border-top: 2px solid var(--plum); padding-top: 14px; margin: 0 0 18px; }
.prose h3 { font-size: 19px; margin: 36px 0 12px; }
.prose p, .prose li { color: #3B3441; }
.prose + .prose { margin-top: clamp(46px, 5.6vw, 76px); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 0 38px; margin: 0; }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); margin-bottom: 3px; }
.facts dd { margin: 0; font-size: 16.5px; }

.note { font-size: 15px; color: var(--grey); border-left: 2px solid var(--plum); padding-left: 18px; margin-top: 28px; }

/* --------------------------------------------------------------- Contact -- */

.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 70px); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 19px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid var(--rule-mid); padding: 13px 15px; border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--plum); outline: 2px solid rgba(110,61,91,.25); }
.field textarea { min-height: 160px; resize: vertical; }

.form-note { font-size: 14.5px; color: var(--grey); margin-top: 15px; }

/* ------------------------------------------------------------------ Pied -- */

.foot { background: var(--ink); color: #A79EAC; padding-block: clamp(42px, 5.5vw, 66px); font-size: 15px; }
.foot a { color: var(--linen); text-decoration: none; border-bottom: 1px solid var(--rule-inv); }
.foot a:hover { color: #D7A9C4; border-bottom-color: #D7A9C4; }

.foot__top { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 28px 40px; padding-bottom: 28px; border-bottom: 1px solid var(--rule-inv); }

.foot__name { font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--white); margin-bottom: 10px; }

.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 6px; }

.foot__bottom { padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; font-size: 13.5px; }

.credit { font-size: 12px; color: #7B7280; margin-top: 16px; }
.credit a { border: 0; color: #7B7280; }

/* ---------------------------------------------------------------- Motion -- */

.rise { opacity: 0; transform: translateY(14px); animation: rise .65s cubic-bezier(.2,.7,.3,1) forwards; }
.rise:nth-child(2) { animation-delay: .1s; }
.rise:nth-child(3) { animation-delay: .2s; }

@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; animation: none; }
  .card:hover { transform: none; }
  * { transition-duration: .01ms !important; }
}
