/* ============================================================
   Art'Optical — Feuille de style
   Opticien indépendant, Nancy (quartier Artem)
   ============================================================ */

/* -------- Tokens -------- */
:root {
  --violet:        #7E48CB;
  --violet-hover:  #6C39B6;
  --violet-dark:   #4E2A85;
  --violet-light:  #EDE4F8;
  --violet-soft:   #D9C6F0;
  --accent:        #E0A43B;   /* Ambre — accent chaleureux */
  --ink:           #2B2333;
  --ink-2:         #3A3340;
  --grey:          #6E6577;
  --grey-2:        #5C5464;
  --sand:          #EFE6D8;
  --cream:         #FAF6F0;
  --border:        #ECE2D3;
  --border-2:      #E4D8C7;
  --white:         #ffffff;
  --danger:        #B0455A;
  --danger-bg:     #F7E4E8;
  --green:         #7FA38A;

  --serif: 'Spectral', Georgia, serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
  --radius: 14px;
  --shadow-soft: 0 24px 55px -34px rgba(78,42,133,.45);
}

/* -------- Reset / base -------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--violet); color: #fff; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: 40px; padding-right: 40px; }

.eyebrow {
  font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase;
  font-weight: 600; color: var(--violet);
}
.eyebrow--accent { color: var(--accent); }
.rule-top { border-top: 1px solid var(--border-2); padding-top: 18px; }

/* Accessibilité clavier */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
  border-radius: 6px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--violet); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* -------- Boutons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 16px; font-weight: 600;
  padding: 14px 26px; border-radius: 8px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .18s, color .18s, border-color .18s;
}
.btn--primary { background: var(--violet); color: #fff; }
.btn--primary:hover { background: var(--violet-hover); }
.btn--ghost { background: transparent; color: var(--violet); border-color: var(--violet); }
.btn--ghost:hover { background: var(--violet-light); }
.btn--light { background: #fff; color: var(--violet-dark); }
.btn--light:hover { background: #F3EAD9; }
.btn--block { display: flex; width: 100%; }
.btn--sm { font-size: 14.5px; padding: 11px 20px; }

.link-underline {
  font-weight: 600; color: var(--violet-dark); text-decoration: underline;
  text-underline-offset: 5px; text-decoration-color: var(--violet-soft);
  transition: text-decoration-color .18s, color .18s;
}
.link-underline:hover { text-decoration-color: var(--violet); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,246,240,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--violet); text-decoration: none; }
.brand__name { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); letter-spacing: .2px; }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav__links a { text-decoration: none; transition: color .18s; }
.nav__links a:not(.btn):hover { color: var(--violet); }
.nav__toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
  color: var(--ink); border-radius: 8px;
}
.nav__toggle:hover { background: var(--violet-light); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; scroll-margin-top: 80px; }
.hero__blobs {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  filter: blur(60px); opacity: .5; pointer-events: none;
}
.ao-blob {
  position: absolute; width: 60%; height: 130%; top: -15%;
  border-radius: 50%; transform-origin: center center; will-change: transform;
}
.hero__inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 76px 40px 52px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 62px; line-height: 1.05; letter-spacing: -.5px; margin-top: 20px; }
.hero h1 em { color: var(--violet); font-style: italic; }
.hero__lead { font-size: 18px; color: var(--grey-2); margin: 22px 0 0; max-width: 470px; }
.hero__cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; align-items: center; }
.hero__note { margin: 40px 0 0; font-size: 15px; color: var(--grey); border-top: 1px solid var(--border-2); padding-top: 18px; max-width: 440px; }
.figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--portrait { aspect-ratio: 4/5; }
.figcaption { font-size: 13px; color: var(--grey); margin-top: 12px; padding-left: 2px; }

@keyframes aoMoveInCircle { 0%{transform:rotate(0)} 50%{transform:rotate(180deg)} 100%{transform:rotate(360deg)} }
@keyframes aoMoveVertical { 0%{transform:translateY(-46%)} 50%{transform:translateY(46%)} 100%{transform:translateY(-46%)} }
@keyframes aoMoveHorizontal { 0%{transform:translateX(-44%) translateY(-8%)} 50%{transform:translateX(44%) translateY(8%)} 100%{transform:translateX(-44%) translateY(-8%)} }

/* ============================================================
   SECTIONS GÉNÉRIQUES
   ============================================================ */
.section { max-width: var(--maxw); margin: 0 auto; padding: 80px 40px; scroll-margin-top: 80px; }
.section h2 { font-size: 44px; line-height: 1.08; margin-top: 14px; }
.split { display: grid; gap: 56px; align-items: center; }
.split--about { grid-template-columns: 1fr 1.1fr; }
.split--vision { grid-template-columns: 1fr 1fr; }
.split p { font-size: 17px; color: var(--ink-2); max-width: 540px; }
.split p.muted { color: var(--grey); }

/* ============================================================
   BANDEAU ESSILOR
   ============================================================ */
.essilor { background: var(--ink); color: #F6EFE2; }
.essilor__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 52px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 56px; flex-wrap: wrap;
}
.essilor__title { font-family: var(--serif); font-size: 30px; line-height: 1.15; }
.essilor__title em { color: #C9A6F0; font-style: italic; }
.essilor__sub { font-size: 15px; color: #B7AEC0; margin-top: 8px; }
.essilor__specs { display: flex; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.spec-val { font-family: var(--serif); font-size: 26px; color: var(--accent); }
.spec-label { font-size: 13px; color: #B7AEC0; }
.essilor__badge { flex: none; height: 220px; width: auto; border-radius: 12px; box-shadow: 0 20px 46px -22px rgba(0,0,0,.55); }

/* ============================================================
   MONTURES / COLLECTIONS
   ============================================================ */
.section--montures { padding-bottom: 40px; }
.montures__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.montures__head h2 { font-size: 46px; line-height: 1.05; max-width: 560px; }
.montures__head p { font-size: 16px; color: var(--grey); margin: 0; max-width: 340px; }

.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; margin-top: 48px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.feature__img { aspect-ratio: 16/11; overflow: hidden; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { padding: 20px 44px 20px 0; }
.feature__body h3 { font-size: 32px; line-height: 1.12; margin-top: 12px; }
.feature__body p { font-size: 16px; color: var(--grey); margin: 16px 0 0; }
.feature__link { display: inline-block; margin-top: 22px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--violet); transition: color .18s; }
.feature__link:hover { color: var(--violet-dark); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 18px 40px -26px rgba(78,42,133,.35); transform: translateY(-3px); }
.card__img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__tag {
  position: absolute; top: 14px; left: 14px; font-size: 11px; font-weight: 700; letter-spacing: .5px;
  color: var(--violet); background: rgba(255,255,255,.92); padding: 6px 12px; border-radius: 999px;
}
.card__tag--accent { color: var(--ink); background: var(--accent); }
.card__body { padding: 20px 22px; }
.card__title { font-family: var(--serif); font-size: 22px; }
.card__body p { font-size: 14px; color: var(--grey); margin: 6px 0 0; }

/* ============================================================
   MUTUELLE / TIERS PAYANT
   ============================================================ */
.mutuelle { max-width: var(--maxw); margin: 0 auto; padding: 20px 40px 40px; }
.mutuelle__card {
  background: var(--violet-light); border: 1px solid #E3D5F5; border-radius: 16px;
  padding: 44px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.mutuelle__card h2 { font-size: 34px; line-height: 1.1; }
.mutuelle__card p { font-size: 16px; color: var(--grey-2); margin: 16px 0 0; }
.mutuelle__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.mutuelle__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink); }
.check {
  flex: none; width: 26px; height: 26px; border-radius: 99px; background: #fff; color: var(--violet);
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}

/* ============================================================
   CONTRÔLE VISION
   ============================================================ */
.checklist { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--ink); }
.checklist .check { background: var(--violet-light); }

/* ============================================================
   RDV — formulaire
   ============================================================ */
.rdv { max-width: var(--maxw); margin: 0 auto; padding: 20px 40px 40px; scroll-margin-top: 80px; }
.rdv__card {
  background: var(--violet-dark); border-radius: 16px; padding: 56px; color: #fff;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
.rdv__card h2 { font-size: 40px; line-height: 1.08; margin-top: 14px; }
.rdv__intro { font-size: 17px; color: #D9C9F2; margin: 18px 0 0; max-width: 480px; }
.rdv__phone { display: flex; align-items: center; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.rdv__phone a { font-size: 16px; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #8E63D6; }
.rdv__steps { list-style: none; margin: 30px 0 0; padding: 0; }
.rdv__steps li { display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 15px; }
.rdv__steps li:last-child { border-bottom: none; }
.rdv__steps .num { font-family: var(--serif); font-size: 18px; color: var(--accent); font-variant-numeric: tabular-nums; }

.form-card { background: #fff; border-radius: 14px; padding: 32px; color: var(--ink); }
.form-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin-bottom: 4px; }
.form-card .form-sub { font-size: 14px; color: var(--grey); margin: 0 0 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field label .req { color: var(--violet); }
.field input, .field select, .field textarea {
  font-family: inherit; width: 100%; font-size: 15px; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--border-2); padding: 12px 14px;
  border-radius: 10px; outline: none; transition: border-color .18s, background .18s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { font-size: 12px; color: var(--grey); margin: 4px 0 16px; }
.form-status { font-size: 14px; margin-top: 12px; padding: 12px 14px; border-radius: 10px; display: none; }
.form-status.is-ok { display: block; background: #E7F1EA; color: #2F6B4A; }
.form-status.is-err { display: block; background: var(--danger-bg); color: var(--danger); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact__grid h2 { font-size: 44px; line-height: 1.08; margin: 14px 0 28px; }
.contact__items { display: flex; flex-direction: column; gap: 18px; }
.contact__item { display: flex; align-items: center; gap: 15px; }
.contact__icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--violet-light);
  color: var(--violet); display: flex; align-items: center; justify-content: center;
}
.contact__label { font-size: 13px; color: var(--grey); }
.contact__value { font-size: 19px; font-weight: 700; color: var(--ink); text-decoration: none; }
a.contact__value:hover { color: var(--violet); }
.map-embed { margin-top: 26px; border-radius: 18px; overflow: hidden; border: 1px solid var(--border-2); }
.map-embed iframe { display: block; width: 100%; height: 260px; border: 0; }
.map-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; }

.hours-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 34px; }
.hours-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin-bottom: 6px; }
.hours-card .form-sub { font-size: 14px; color: var(--grey); margin: 0 0 22px; }
.hours-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid #F2EADD; gap: 16px; }
.hours-row:last-of-type { border-bottom: none; }
.hours-row .day { font-weight: 600; font-size: 16px; }
.hours-row .time { font-size: 15px; color: var(--ink-2); text-align: right; }
.hours-row .day--off { color: #9A93A3; }
.badge-closed { font-size: 13px; font-weight: 600; color: var(--danger); background: var(--danger-bg); padding: 5px 12px; border-radius: 999px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #C9C0D2; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 52px 40px 30px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; border-bottom: 1px solid #453B52; padding-bottom: 32px; }
.footer__brand { max-width: 340px; }
.footer__brand .brand { color: #C9A6F0; }
.footer__brand .brand__name { color: #F6EFE2; }
.footer__brand p { font-size: 14px; margin: 16px 0 0; color: #A99FB8; }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__col h4 { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0; }
.footer__col > div { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; font-size: 14px; }
.footer__col a { color: #C9C0D2; text-decoration: none; transition: color .18s; }
.footer__col a:hover { color: #fff; }
.footer__col span { color: #A99FB8; }
.footer__legal { padding-top: 22px; font-size: 13px; color: #8E85A0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__legal a { color: #8E85A0; }
.footer__legal a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .container, .nav__inner, .hero__inner, .section, .essilor__inner,
  .rdv, .mutuelle, .footer__inner { padding-left: 24px; padding-right: 24px; }

  .hero__grid, .split--about, .split--vision, .feature,
  .rdv__card, .mutuelle__card, .contact__grid { grid-template-columns: 1fr; }

  .hero h1 { font-size: 46px; }
  .section h2, .contact__grid h2 { font-size: 34px; }
  .montures__head h2 { font-size: 36px; }
  .rdv__card h2 { font-size: 32px; }
  .feature__body { padding: 0 28px 28px; }
  .feature__body h3 { font-size: 28px; }

  /* réordonner : image d'abord dans "about", texte d'abord ailleurs si besoin */
  .split--about .figure-wrap { order: -1; }
  .split--vision .figure { order: -1; }
  .rdv__card { padding: 40px 28px; }
  .mutuelle__card { padding: 32px 28px; }

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

  /* Menu mobile */
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream); border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px; display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav__links .btn { margin-top: 8px; }
}

@media (max-width: 560px) {
  .container, .nav__inner, .hero__inner, .section, .essilor__inner,
  .rdv, .mutuelle, .footer__inner { padding-left: 18px; padding-right: 18px; }
  .hero__inner { padding-top: 48px; }
  .hero h1 { font-size: 38px; }
  .hero__lead { font-size: 16px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .section h2 { font-size: 29px; }
  .cards { grid-template-columns: 1fr; }
  .essilor__badge { height: 160px; }
  .essilor__specs { gap: 24px; }
  .rdv__card, .form-card { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero__cta .btn, .hero__cta a { width: 100%; }
  .footer__cols { gap: 32px; }
}
