:root {
  --ocean: #0f3b4c;
  --ocean-deep: #0a2833;
  --sea: #2b7a8c;
  --sand: #f6f1ea;
  --sand-dark: #e9e0d3;
  --red: #c4302b;      /* rouge basque */
  --green: #2f6b45;    /* vert basque */
  --ink: #1d2a2f;
  --muted: #5b6b70;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 59, 76, .10);
  --serif: "Outfit", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sea); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--ocean); }
h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ocean); }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.mt { margin-top: 2.5rem; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-head p:last-child { color: var(--muted); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: .8em;
}
.eyebrow.light { color: #f4b9a8; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid var(--red);
  transition: transform .15s, background .15s, box-shadow .15s;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(196, 48, 43, .3); }
.btn-small { padding: 9px 18px; font-size: .92rem; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); box-shadow: none; }
.btn-full { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,59,76,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ocean); font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.brand img { border-radius: 50%; object-fit: cover; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ocean); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { position: relative; color: var(--white); min-height: min(88vh, 760px); display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10,40,51,.72) 0%, rgba(10,40,51,.52) 45%, rgba(10,40,51,0) 75%),
    url("images/cote/saint-jean-de-luz-plage.jpg") center 35%/cover;
}
.hero-content { position: relative; padding: 80px 0; max-width: 1140px; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); max-width: 16ch; color: var(--white); text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero h1 em { font-style: normal; color: #ffd2c4; }
.hero .eyebrow { color: #f4b9a8; }
.lead { font-size: 1.15rem; font-weight: 500; max-width: 560px; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.hero-points { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-points li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 1rem; font-size: .9rem; opacity: .75; }

/* Intro */
.intro { background: var(--sand); }
.intro p { color: var(--muted); font-size: 1.08rem; }

.intro-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.intro h2 { margin-bottom: .8em; }
.intro-img img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }

.profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 1.8rem; }
.profile { background: var(--white); border-top: 3px solid var(--red); border-radius: 0 0 var(--radius) var(--radius); padding: 22px; box-shadow: var(--shadow); }
.profile h3 { text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; }
.profile p { font-size: .97rem; margin: 0; }
.cards.cards-4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards-4 .card { padding: 26px 22px; }
.trust { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 34px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; color: var(--ocean); }
.trust li::before { content: "✓ "; color: var(--green); }
.person { display: flex; align-items: center; gap: 16px; margin: 0 0 1rem; }
.person img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.person p { margin: 0; color: var(--muted); }

/* Territoire */
.territory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.territory img { border-radius: 10px; aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.territory-caption { text-align: center; margin: 18px 0 0; color: rgba(255,255,255,.7); font-size: .95rem; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.icon { width: 52px; height: 52px; border-radius: 12px; background: var(--sand); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Why */
.why { background: var(--ocean); color: var(--white); }
.why h2, .why h3 { color: var(--white); }
.why .section-head p:last-child { color: rgba(255,255,255,.75); }
.why .eyebrow { color: #f4b9a8; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-item { border-top: 2px solid rgba(255,255,255,.2); padding-top: 24px; }
.why-item p { color: rgba(255,255,255,.78); margin: 0; }
.num { font-family: var(--serif); font-weight: 600; font-size: 2.4rem; color: #f4b9a8; display: block; margin-bottom: 8px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-img { position: relative; }
.about-img img { border-radius: var(--radius); aspect-ratio: 5/6; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.badge {
  position: absolute; right: -14px; bottom: 28px;
  background: var(--red); color: var(--white);
  padding: 16px 22px; border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: center;
}
.badge strong { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 600; line-height: 1; }
.badge span { font-size: .85rem; }
.values { font-weight: 700; color: var(--green); font-size: .95rem; }
.about p { color: var(--muted); }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--red); }
.link-arrow::after { content: " →"; }

/* Gallery */
.gallery-section { background: var(--sand); }
.gallery { columns: 3 260px; column-gap: 14px; }
.gallery button {
  display: block; width: 100%; padding: 0; border: 0; margin: 0 0 14px;
  border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--sand-dark);
  break-inside: avoid;
}
.gallery img { width: 100%; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,20,26,.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 8px; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); font-size: 3rem; cursor: pointer; padding: 10px 18px; line-height: 1; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 4px; }
.lb-next { right: 4px; }

/* Quote */
.quote { background: linear-gradient(135deg, rgba(10,40,51,.93), rgba(15,59,76,.80)), url("images/cote/phare-biarritz-vagues.jpg") center/cover; color: var(--white); }
.quote h2 { color: var(--white); }
.quote-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.quote-text p { color: rgba(255,255,255,.82); font-size: 1.08rem; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.checks li { padding: 6px 0 6px 32px; position: relative; font-weight: 600; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); display: grid; place-items: center; font-size: .75rem; }

.form { background: var(--white); color: var(--ink); padding: clamp(22px, 4vw, 36px); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 14px; color: var(--ocean); }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px;
  font: inherit; font-weight: 400; font-size: 1rem;
  padding: 12px 14px; border: 1px solid var(--sand-dark); border-radius: 10px; background: #fcfaf7;
  color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--sea); border-color: transparent; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 12px 0 0; font-weight: 600; text-align: center; min-height: 1.4em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--sand-dark); display: flex; gap: 16px; flex-wrap: wrap; }
.contact-list span { width: 100px; color: var(--muted); font-size: .9rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; word-break: break-all; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { text-decoration: none; font-weight: 700; color: var(--ocean); border: 1.5px solid var(--ocean); padding: 8px 18px; border-radius: 999px; font-size: .9rem; }
.socials a:hover { background: var(--ocean); color: var(--white); }
.map iframe { width: 100%; height: 400px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Footer */
.site-footer { background: var(--ocean-deep); color: rgba(255,255,255,.7); padding: 28px 0; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-footer p { margin: 0; }
.site-footer a { color: rgba(255,255,255,.85); }

/* WhatsApp */
.whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .2s;
}
.whatsapp:hover { transform: scale(1.08); }
.whatsapp svg { width: 30px; height: 30px; fill: var(--white); }

/* Legal page */
.legal { padding: 60px 0 90px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--ocean); }
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal .todo { background: #fff4d6; padding: 0 4px; border-radius: 4px; }

/* Responsive */
@media (max-width: 960px) {
  .cards.cards-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-bg { background-image: linear-gradient(180deg, rgba(10,40,51,.55) 0%, rgba(10,40,51,.50) 60%, rgba(10,40,51,.35) 100%), url("images/cote/saint-jean-de-luz-plage.jpg"); background-position: 30% center; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-img { max-width: 480px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .quote-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-img { max-width: 480px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--sand-dark);
    padding: 8px 16px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--sand); }
  .nav .btn { margin-top: 14px; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards, .cards.cards-4, .why-grid, .profiles { grid-template-columns: 1fr; }
  .territory { grid-template-columns: 1fr 1fr; }
  .territory img:last-child { display: none; }
  .form .row { grid-template-columns: 1fr; gap: 0; }
  .brand span { font-size: 1.15rem; }
  .badge { right: 10px; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .map iframe { height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
