/* Olynicks — page d'accueil (option A « Marée ») */

:root {
  --navy: #04213F;
  --navy-2: #0A3765;
  --cream: #F3EFE6;
  --ice: #9FC0D6;
  --accent: #9FC0D6;
  --text-soft: #2A4A68;
  --label: #5C7F9B;
  --line-light: rgba(243, 239, 230, 0.2);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Josefin Sans', system-ui, sans-serif;
  --pad-x: 6%;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--cream);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }

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

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

/* ---------- Typo utilitaire ---------- */
.eyebrow {
  font-size: 13px; letter-spacing: 4px; text-transform: uppercase; color: var(--label);
}
.eyebrow--light { color: var(--ice); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 16px 32px;
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--accent { background: var(--accent); color: var(--navy); }
.btn--accent:hover { background: var(--cream); }
.btn--light { background: var(--cream); color: var(--navy); padding: 14px 26px; }
.btn--light:hover { background: var(--ice); }
.btn--ghost { border-color: var(--cream); color: var(--cream); font-weight: 600; }
.btn--ghost:hover { background: var(--cream); color: var(--navy); }
.btn--dark { background: var(--navy); color: var(--cream); }
.btn--dark:hover { background: var(--navy-2); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--cream); }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Header / hero ---------- */
.hero {
  position: relative;
  min-height: 760px;
  display: flex; flex-direction: column;
  background: var(--navy-2);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__veil { position: absolute; inset: 0; background: rgba(4, 33, 63, 0.55); }

.nav {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px var(--pad-x);
  border-bottom: 1px solid rgba(243, 239, 230, 0.18);
}
.nav__logo { display: block; line-height: 0; }
.nav__logo img { width: 190px; height: auto; }
.nav__links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 32px;
  font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
}
.nav__links a { text-decoration: none; color: var(--cream); padding: 8px 0; }
.nav__links a:hover { color: var(--ice); }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__cart {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; color: var(--cream);
}
.nav__toggle, .nav__burger { display: none; }

.hero__content {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: 64px var(--pad-x) 96px;
  max-width: calc(860px + 2 * var(--pad-x));
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(48px, 6.5vw, 84px); line-height: 1.02;
}
.hero__lead { font-size: 20px; line-height: 1.6; font-weight: 300; max-width: 620px; }

/* ---------- Services ---------- */
.services { background: var(--cream); color: var(--navy); padding: 104px var(--pad-x); }
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-bottom: 56px;
}
.section-head h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 4.5vw, 56px); line-height: 1.05; max-width: 640px;
}
.section-head p { font-size: 17px; line-height: 1.6; max-width: 420px; color: var(--text-soft); }

.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card {
  display: flex; flex-direction: column; gap: 18px;
  text-decoration: none; color: var(--navy);
}
.card img { width: 100%; height: 380px; object-fit: cover; }
.card__num { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--label); }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.1; }
.card p { font-size: 16px; line-height: 1.6; color: var(--text-soft); }
.card__cta { font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.card:hover .card__cta { text-decoration: underline; }

/* ---------- Plat signature ---------- */
.signature { display: flex; flex-wrap: wrap; background: var(--navy); }
.signature__photos {
  flex: 1 1 620px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px;
}
.signature__photos img { width: 100%; height: 700px; object-fit: cover; }
.signature__text {
  flex: 1 1 460px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px;
  padding: 88px var(--pad-x);
}
.signature__text h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 4.5vw, 56px); line-height: 1.05;
}
.signature__text > p:not(.eyebrow) { font-size: 18px; line-height: 1.7; font-weight: 300; max-width: 520px; }
.price-line {
  align-self: stretch;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 18px 0; font-size: 18px;
  border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light);
}
.price-line span:last-child { color: var(--ice); }

/* ---------- Avis ---------- */
.reviews {
  background: var(--cream); color: var(--navy);
  padding: 104px var(--pad-x);
  display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center;
}
.reviews__score { display: flex; align-items: center; gap: 20px; }
.reviews__num { font-family: var(--serif); font-size: 112px; line-height: 1; }
.reviews__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 17px; }

/* Slider d'avis */
.slider {
  position: relative; width: 100%; max-width: 960px;
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 16px;
}
.slider__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; scroll-snap-align: start; margin: 0; padding: 8px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.slide blockquote {
  margin: 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(24px, 3vw, 34px); line-height: 1.35;
}
.slide figcaption { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--label); }
.slider__arrow {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--navy); border-radius: 50%; background: transparent; color: var(--navy); cursor: pointer;
}
.slider__arrow:hover { background: var(--navy); color: var(--cream); }
.slider__dots { grid-column: 1 / -1; display: flex; justify-content: center; gap: 4px; }
.slider__dot {
  width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; position: relative;
}
.slider__dot::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(4, 33, 63, 0.25);
}
.slider__dot[aria-current="true"]::after { background: var(--navy); }

/* ---------- Bandeau événement ---------- */
.event__text { display: flex; flex-direction: column; gap: 14px; max-width: 700px; }
.event__text p { font-size: 18px; line-height: 1.6; }
.event {
  background: var(--accent); color: var(--navy);
  padding: 72px var(--pad-x);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px;
}
.event h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 4vw, 48px); line-height: 1.1; max-width: 700px;
}

/* ---------- Footer ---------- */
.footer { padding: 88px var(--pad-x) 40px; display: flex; flex-direction: column; gap: 56px; }
.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer__grid > div { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.6; }
.footer h4 {
  font-size: 13px; font-weight: 400; letter-spacing: 3px; text-transform: uppercase; color: var(--ice);
}
.footer address { font-style: normal; }
.footer a { color: #C9DCE8; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__logo { width: 170px; height: auto; }
.footer__muted { color: #B8CCDB; }
.footer__social { display: flex; gap: 20px; }
.footer__copy {
  border-top: 1px solid rgba(243, 239, 230, 0.18); padding-top: 24px;
  font-size: 13px; color: #9FB4C6;
}

/* ---------- Effets au survol ---------- */
.media { position: relative; overflow: hidden; }
.media img { transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .6s; }
.media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(4, 33, 63, .35), transparent 60%);
  opacity: 0; transition: opacity .5s;
}
.card, .slider__arrow, .nav__cart, .nav__logo { transition: transform .4s cubic-bezier(.2, .7, .2, 1), color .2s, background .2s, opacity .3s; }
.card h3 { transition: color .3s; }
.card__cta .arrow { display: inline-block; transition: transform .3s; }
.btn { position: relative; transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s; }

@media (hover: hover) {
  /* Boutons : légère élévation */
  .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(4, 33, 63, .55); }
  .btn:active { transform: translateY(0); box-shadow: none; }

  /* Menu : soulignement qui se trace de gauche à droite */
  .nav__links a { position: relative; }
  .nav__links a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
    background: var(--ice); transform: scaleX(0); transform-origin: left; transition: transform .35s;
  }
  .nav__links a:hover::after { transform: scaleX(1); }
  .nav__logo:hover { transform: translateY(-2px); opacity: .85; }
  .nav__cart:hover { transform: translateY(-2px); color: var(--ice); }

  /* Cartes services : zoom photo, voile, élévation, flèche qui avance */
  .card:hover { transform: translateY(-6px); }
  .card:hover .media img { transform: scale(1.07); }
  .card:hover .media::after { opacity: 1; }
  .card:hover h3 { color: var(--navy-2); }
  .card:hover .card__cta { text-decoration: none; }
  .card:hover .card__cta .arrow { transform: translateX(8px); }

  /* Plat signature : zoom lent + mise en valeur de la photo survolée */
  .signature__photos:hover .media img { filter: brightness(.7); }
  .signature__photos .media:hover img { transform: scale(1.06); filter: brightness(1.05); }

  /* Avis */
  .slider__arrow:hover { transform: scale(1.08); }
  .slider__dot:hover::after { background: var(--label); }

  /* Pied de page : liens qui glissent légèrement */
  .footer__grid a { transition: color .2s, transform .25s; display: inline-block; }
  .footer__grid a:hover { transform: translateX(4px); text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .card:hover, .btn:hover, .card:hover .media img, .signature__photos .media:hover img { transform: none !important; }
}

/* ---------- Tablette ---------- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services__grid .card:last-child { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signature__photos img { height: 520px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --pad-x: 22px; }

  .nav { padding-top: 18px; padding-bottom: 18px; }
  .nav__logo img { width: 150px; }
  .nav__burger {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; cursor: pointer; order: 2;
  }
  .nav__burger span { display: block; height: 2px; background: var(--cream); }
  .nav__actions { order: 1; margin-left: auto; }
  .nav__actions .btn--light { padding: 12px 16px; font-size: 12px; }
  .nav__links {
    order: 3; width: 100%;
    display: none; flex-direction: column; gap: 4px;
    padding-top: 12px; border-top: 1px solid rgba(243, 239, 230, 0.18);
  }
  .nav__links a { display: block; padding: 12px 0; }
  .nav__toggle:checked ~ .nav__links { display: flex; }

  .hero { min-height: 640px; }
  .hero__content { padding-top: 40px; padding-bottom: 64px; gap: 22px; }
  .hero__lead { font-size: 17px; }
  .hero .btn-row .btn { flex: 1 1 auto; }

  .services, .reviews { padding-top: 72px; padding-bottom: 72px; }
  .services__grid { grid-template-columns: minmax(0, 1fr); }
  .card img { height: 260px; }
  .card h3 { font-size: 28px; }

  .signature__photos { flex-basis: 100%; }
  .signature__photos img { height: 320px; }
  .signature__text { padding-top: 56px; padding-bottom: 64px; }

  .reviews__num { font-size: 80px; }
  .slider { grid-template-columns: minmax(0, 1fr); }
  .slider__arrow { display: none; }
  .slide { padding: 8px 4px; }
  .event { padding-top: 56px; padding-bottom: 56px; gap: 28px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
