/* ============================================================
   POISCAILLE COMPTOIR MARIN — style.css
   Palette : #F0F7F9 azur · #0E5C7A marin · #1A2B35 texte
   Mobile-first · Zéro framework
   ============================================================ */

/* 1. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--texte);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; background: none; border: none; font-family: inherit; }
textarea { resize: vertical; }
table { border-collapse: collapse; }

/* 2. DESIGN TOKENS
   ============================================================ */
:root {
  --azur:      #F0F7F9;
  --marin:     #0E5C7A;
  --marin-dk:  #0a4460;
  --marin-lt:  #1a7499;
  --marin-tnt: #c8e8f0;
  --texte:     #1A2B35;
  --texte-mu:  #5a7888;
  --ambre:     #D48C28;
  --blanc:     #ffffff;

  --font-titre: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:  'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --max-w:   1140px;
  --r:       6px;
  --rl:      14px;

  --sh:    0 2px 12px rgba(14,92,122,.08);
  --sh-md: 0 4px 28px rgba(14,92,122,.14);
  --sh-lg: 0 8px 44px rgba(14,92,122,.22);

  --ease:   240ms ease;
  --ease-s: 500ms ease;

  --nav-h: 3.75rem;
}

/* 3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-titre);
  line-height: 1.18;
  color: var(--marin);
}

.section__kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--marin-lt);
  margin-bottom: 0.75rem;
}

.section__kicker--light { color: var(--marin-tnt); }

.section__title {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.section__title--light { color: var(--blanc); }

.section__sub {
  font-size: 1.0625rem;
  color: var(--texte-mu);
  max-width: 540px;
}

/* 4. LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 5rem 0; position: relative; }

.section__header {
  text-align: center;
  margin-bottom: 3.25rem;
}

.section__header .section__sub { margin: 0 auto; }

/* 5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--r);
  border: 2px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease),
              transform var(--ease), box-shadow var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--marin);
  color: var(--blanc);
  border-color: var(--marin);
}
.btn--primary:hover {
  background: var(--marin-dk);
  border-color: var(--marin-dk);
  box-shadow: 0 4px 18px rgba(14,92,122,.35);
}

.btn--white {
  background: var(--blanc);
  color: var(--marin);
  border-color: var(--blanc);
}
.btn--white:hover {
  background: var(--marin-tnt);
  box-shadow: 0 4px 18px rgba(255,255,255,.2);
}

.btn--ghost {
  background: transparent;
  color: var(--blanc);
  border-color: rgba(255,255,255,.65);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--blanc);
}

.btn--full { width: 100%; justify-content: center; }

.btn--lg {
  font-size: 1.0625rem;
  padding: 0.9rem 2.25rem;
}

/* 6. HEADER
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--ease-s), box-shadow var(--ease-s);
}

.header.is-scrolled {
  background: var(--marin-dk);
  box-shadow: var(--sh-md);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--blanc);
  flex-shrink: 0;
}

.logo__fish { color: var(--marin-tnt); flex-shrink: 0; }

.logo__text {
  font-family: var(--font-titre);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.logo--footer .logo__text { font-size: 1.3rem; }

/* Nav */
.nav { display: none; }

.nav__list {
  display: flex;
  gap: 0.2rem;
  align-items: center;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  padding: 0.4rem 0.75rem;
  border-radius: var(--r);
  transition: color var(--ease), background var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--blanc);
  background: rgba(255,255,255,.1);
}

/* Header CTA */
.header__cta { padding: 0.45rem 1.1rem; font-size: 0.875rem; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  color: var(--blanc);
}

.hamburger__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

.hamburger.is-open .hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open .hamburger__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open .hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav open */
.nav.is-open {
  display: block;
  position: fixed;
  top: var(--nav-h);
  inset-inline: 0;
  background: var(--marin-dk);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 0.75rem;
  z-index: 99;
}

.nav.is-open .nav__list { flex-direction: column; gap: 0.2rem; }
.nav.is-open .nav__link { display: block; padding: 0.8rem 1rem; font-size: 1.0625rem; }

/* 7. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: linear-gradient(155deg, #0E5C7A 0%, #0a4460 45%, #062e45 100%);
}

/* Poisson décoratif en fond */
.hero-deco-fish {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-55%);
  width: min(55vw, 480px);
  pointer-events: none;
  opacity: 0.6;
}

/* Bulles flottantes */
.hero-bubbles { position: absolute; inset: 0; pointer-events: none; }

.bubble {
  position: absolute;
  left: var(--x);
  bottom: -20px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  animation: floatBubble var(--dur, 10s) ease-in-out infinite var(--delay, 0s);
}

@keyframes floatBubble {
  0%   { transform: translateY(0)     scale(1);    opacity: 0; }
  8%   { opacity: 0.9; }
  88%  { opacity: 0.4; }
  100% { transform: translateY(-95vh) scale(1.15); opacity: 0; }
}

/* Contenu */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--blanc);
  padding: 3rem 1.25rem 6rem;
}

.hero__kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--marin-tnt);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-titre);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--blanc);
  margin-bottom: 1.25rem;
}

.hero__title em {
  font-style: italic;
  color: var(--marin-tnt);
  display: block;
  font-size: 0.65em;
  margin-top: 0.2em;
  letter-spacing: 0.02em;
}

.hero__tagline {
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  color: rgba(255,255,255,.75);
  line-height: 1.55;
  margin-bottom: 2.25rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  padding: 0.35rem 0.8rem;
  border-radius: 99px;
}

/* Vagues animées */
.hero-waves {
  position: absolute;
  bottom: 56px; /* above divider */
  inset-inline: 0;
  height: 90px;
  pointer-events: none;
  z-index: 1;
}

.wave-wrap {
  position: absolute;
  inset: 0;
  width: 200%;
}

.wave-wrap svg { width: 100%; height: 100%; }

.wave-wrap--1 { animation: waveslide 11s linear infinite; }
.wave-wrap--2 { animation: waveslide 16s linear infinite reverse; bottom: 8px; top: auto; height: 70px; }

@keyframes waveslide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Diviseurs SVG */
.section-divider {
  position: absolute;
  inset-inline: 0;
  pointer-events: none;
  z-index: 2;
}

.section-divider--bottom  { bottom: 0; }
.section-divider--bottom svg { display: block; width: 100%; }

.section-divider--top     { top: 0; }
.section-divider--top svg,
.section-divider--top-dark svg,
.section-divider--bottom-white svg { display: block; width: 100%; }

/* Scroll hint */
.hero__scroll {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  z-index: 3;
  animation: scrollBounce 2s ease-in-out infinite;
  transition: color var(--ease);
}
.hero__scroll:hover { color: rgba(255,255,255,.9); }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* Fade-in (hero content) */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 0.75s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.25s; }
.fade-in:nth-child(3) { animation-delay: 0.4s; }
.fade-in:nth-child(4) { animation-delay: 0.55s; }
.fade-in:nth-child(5) { animation-delay: 0.7s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .fade-in, .reveal, .bubble, .wave-wrap--1, .wave-wrap--2, .hero__scroll {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* 8. HISTOIRE
   ============================================================ */
.histoire { background: var(--blanc); }

.histoire__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

/* SVG illustration */
.illu-frame {
  border-radius: var(--rl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  background: var(--azur);
  aspect-ratio: 4/3;
}

.illu-sea { width: 100%; height: 100%; }

.histoire__text {
  font-size: 1.0625rem;
  color: var(--texte-mu);
  line-height: 1.72;
  margin-bottom: 1.125rem;
}

.histoire__features {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  margin-top: 2rem;
}

.feat {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feat__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(14,92,122,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--marin);
}

.feat strong {
  display: block;
  font-weight: 700;
  color: var(--marin);
  margin-bottom: 0.15rem;
}

.feat span {
  font-size: 0.9375rem;
  color: var(--texte-mu);
  line-height: 1.5;
}

/* 9. LA CARTE
   ============================================================ */
.carte {
  background: var(--azur);
  padding-top: 0;
  padding-bottom: 0;
}

.carte > .container { padding-top: 5rem; padding-bottom: 5rem; }

.section-divider--top { top: 0; }
.section-divider--bottom-white { bottom: 0; }

.carte-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Carte card */
.carte-card {
  background: var(--blanc);
  border-radius: var(--rl);
  overflow: hidden;
  box-shadow: var(--sh);
  transition: box-shadow var(--ease), transform var(--ease);
}

.carte-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}

.carte-card__header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.1rem 1.375rem;
  color: var(--blanc);
}

.carte-card__header h3 {
  font-family: var(--font-titre);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--blanc);
}

.carte-card__header--entree { background: linear-gradient(120deg, #0E5C7A, #1a7499); }
.carte-card__header--poisson { background: linear-gradient(120deg, #0a4460, #0E5C7A); }
.carte-card__header--fdm    { background: linear-gradient(120deg, #065070, #0a4460); }
.carte-card__header--dessert { background: linear-gradient(120deg, #D48C28, #e8a030); }

.carte-card__icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.carte-card__list { padding: 0.5rem 1.375rem 1rem; }

/* Dish item */
.dish {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed #e8eff2;
}

.dish:last-of-type { border-bottom: none; }

.dish__info { flex: 1; min-width: 0; }

.dish__name {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--marin);
  line-height: 1.3;
}

.dish--signature .dish__name::after {
  content: "✦";
  font-size: 0.6rem;
  color: var(--ambre);
  margin-left: 0.4rem;
  vertical-align: middle;
}

.dish__desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--texte-mu);
  margin-top: 0.15rem;
  line-height: 1.4;
}

.dish__price {
  font-family: var(--font-titre);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ambre);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 0.05rem;
}

.carte-card__note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--texte-mu);
  font-style: italic;
  padding: 0.75rem 1.375rem 1rem;
  border-top: 1px solid #e8eff2;
  margin-top: -0.25rem;
}

/* 10. LOCALISATION
    ============================================================ */
.localisation { background: var(--blanc); }

.localisation__grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

/* Map SVG frame */
.loc-map__frame {
  border-radius: var(--rl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 3/2;
  background: var(--marin-tnt);
}

.loc-map__frame svg { width: 100%; height: 100%; }

/* Info blocks */
.loc-info-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.125rem 0;
  border-bottom: 1px solid #e8eff2;
}

.loc-info-block:last-child { border-bottom: none; }

.loc-info-block__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(14,92,122,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--marin);
  margin-top: 0.1rem;
}

.loc-info-block strong {
  display: block;
  font-weight: 700;
  color: var(--marin);
  margin-bottom: 0.35rem;
}

.loc-info-block address,
.loc-info-block p {
  font-size: 0.9375rem;
  color: var(--texte-mu);
  line-height: 1.6;
}

.loc-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--marin-lt);
  transition: color var(--ease);
}
.loc-link:hover { color: var(--marin-dk); }

.hours-table { width: 100%; font-size: 0.9375rem; color: var(--texte-mu); }
.hours-table td { padding: 0.2rem 0; }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--marin); }
.hours-table .closed td { opacity: 0.4; }

.loc-note {
  font-size: 0.8125rem !important;
  color: var(--texte-mu) !important;
  font-style: italic;
  margin-top: 0.4rem !important;
}

.loc-tel {
  display: block;
  font-family: var(--font-titre);
  font-size: 1.5rem;
  color: var(--marin);
  margin-bottom: 0.25rem;
  transition: color var(--ease);
}
.loc-tel:hover { color: var(--marin-lt); }

/* 11. CONTACT
    ============================================================ */
.contact {
  background: linear-gradient(150deg, #0E5C7A 0%, #0a4460 60%, #072f44 100%);
  color: var(--blanc);
  padding-top: 0;
}

.contact > .container,
.contact > .contact__grid { padding-top: 5rem; }

.contact-deco {
  position: absolute;
  top: 50%;
  left: -40px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.contact__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3.5rem;
  align-items: start;
  padding: 5rem 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.contact__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.contact__hours {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,.55);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--rl);
  padding: 1.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,.8);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--texte);
  background: rgba(255,255,255,.94);
  border: 1.5px solid transparent;
  border-radius: var(--r);
  padding: 0.65rem 0.9rem;
  transition: border-color var(--ease), box-shadow var(--ease);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--marin-lt);
  box-shadow: 0 0 0 3px rgba(26,116,153,.25);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #9aacb4; }

.form-note {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.45);
  font-style: italic;
  text-align: center;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 3rem 2rem;
  color: var(--blanc);
}

.form-success h3 { font-size: 1.5rem; color: var(--blanc); }
.form-success p  { color: rgba(255,255,255,.7); font-size: 1rem; }

/* 12. FOOTER
    ============================================================ */
.footer {
  background: #062030;
  color: rgba(255,255,255,.55);
  padding: 3rem 0 0;
}

.footer__inner {
  display: grid;
  gap: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__brand p {
  font-size: 0.875rem;
  margin-top: 0.75rem;
  line-height: 1.65;
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}

.footer__nav a {
  font-size: 0.9375rem;
  transition: color var(--ease);
}
.footer__nav a:hover { color: var(--marin-tnt); }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer__contact a {
  font-family: var(--font-titre);
  font-size: 1.25rem;
  color: var(--blanc);
  transition: color var(--ease);
}
.footer__contact a:hover { color: var(--marin-tnt); }
.footer__contact address,
.footer__contact span { font-size: 0.875rem; }

.footer__bottom {
  padding: 1.125rem 0;
  text-align: center;
  font-size: 0.8125rem;
}

/* 13. SECTION DIVIDERS (extras)
    ============================================================ */
.section-divider--top-dark { top: 0; }
.section-divider--top-dark svg,
.section-divider--top svg { display: block; width: 100%; }

/* 14. RESPONSIVE — TABLET ≥ 640px
    ============================================================ */
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .carte-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .histoire__grid { grid-template-columns: 1fr 1fr; }
  .localisation__grid { grid-template-columns: 1fr 1fr; }
}

/* 15. RESPONSIVE — DESKTOP ≥ 1024px
    ============================================================ */
@media (min-width: 1024px) {
  :root { --nav-h: 4.25rem; }

  .nav { display: flex; }
  .hamburger { display: none; }

  .histoire__grid { gap: 4.5rem; }

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

  .localisation__grid { grid-template-columns: 5fr 6fr; gap: 4.5rem; align-items: start; }

  .contact__grid { grid-template-columns: 1fr 1fr; gap: 4rem; }

  .footer__inner { grid-template-columns: 2fr 1fr 1fr; }

  .hero-deco-fish { opacity: 1; }

  .illu-frame { aspect-ratio: unset; height: 480px; }
}
