/* =========================================================
   Golfe Nettoyage — Feuille de style principale
   Design system « bleu marine maritime »
   Mobile-first, HTML/CSS/JS pur
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --navy:        #0A2540;  /* fond foncé, header, titres */
  --navy-700:    #103A5C;
  --azure:       #1E88B0;  /* bleu maritime secondaire */
  --azure-bright:#00A6CE;  /* boutons CTA principaux */
  --azure-hover: #0089AB;
  --paper:       #F5F9FC;  /* fond clair des sections alternées */
  --sand:        #EAF3F8;  /* surfaces douces / cartes */
  --text:        #1A2B3A;
  --muted:       #5B6B79;
  --white:       #FFFFFF;
  --whatsapp:    #25D366;
  --radius:      14px;
  --shadow:      0 10px 30px rgba(10,37,64,.10);
  --shadow-sm:   0 4px 14px rgba(10,37,64,.08);
  --maxw:        1200px;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  /* espace pour la barre d'appel collante en bas (mobile) */
  padding-bottom: 64px;
}
img { max-width: 100%; display: block; }
a { color: var(--azure); text-decoration: none; }
h1, h2, h3 { font-family: 'Poppins', system-ui, sans-serif; color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-weight: 700; }
h2, h3 { font-weight: 600; }
p { margin: 0 0 1em; }

/* ---------- Utilitaires ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
/* Décalage pour que le header sticky ne masque pas les sections ancrées */
#services, #realisations, #zone, #devis, #contact { scroll-margin-top: 72px; }
.section { padding: 56px 0; }
.section--paper { background: var(--paper); }
.section--sand  { background: var(--sand); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section__head p { color: var(--muted); margin: 0; }
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Focus visible (accessibilité) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--azure-bright);
  outline-offset: 2px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1rem;
  padding: 14px 24px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background .2s ease, transform .15s ease, box-shadow .2s ease, color .2s ease;
  text-align: center; line-height: 1.2;
}
.btn--primary { background: var(--azure-bright); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--azure-hover); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: .95rem; }
.btn--block { width: 100%; }

/* ---------- Header (sticky) ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(10,37,64,.25);
}
.header__inner { display: flex; flex-wrap: nowrap; align-items: center; gap: 14px; padding: 10px 20px; max-width: var(--maxw); margin: 0 auto; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--white); flex: 0 0 auto; }
.logo svg { flex: 0 0 auto; }
.logo__name { white-space: nowrap; }

/* ---------- Navigation ---------- */
/* Liens centrés entre le logo (gauche) et les actions (droite) */
.nav { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.nav__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; }
.nav__menu a {
  display: block; color: #E6F1F8; font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: .94rem; padding: 8px 12px; border-radius: 8px; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav__menu a:hover { background: rgba(255,255,255,.10); color: var(--white); }

.header__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.header__tel { white-space: nowrap; }
.ico-phone { width: 1.05em; height: 1.05em; flex: 0 0 auto; }

/* Bouton hamburger (caché en desktop) */
.nav__toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent;
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.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); }

/* Sous ~1000px, on bascule sur le menu hamburger (évite tout tassement des liens) */
@media (max-width: 999px) {
  /* la nav vide garde flex:1 pour pousser les actions à droite ; le menu s'ouvre en overlay */
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--navy);
    padding: 8px 16px 16px; box-shadow: 0 12px 24px rgba(10,37,64,.3);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .header__tel span { display: none; } /* garde l'icône téléphone compacte sur petit écran */
  .header__tel { padding: 10px 12px; }
}
@media (max-width: 380px) {
  .header__actions .btn--primary { padding: 10px 12px; font-size: .9rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: var(--navy) url('../images/hero.jpg') center / cover no-repeat;
  padding: 64px 0 72px;
  text-align: center;
  overflow: hidden;
}
/* Scrim léger et localisé : l'image reste lumineuse, le texte reste lisible */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,37,64,.30) 0%, rgba(10,37,64,0) 28%, rgba(10,37,64,0) 55%, rgba(10,37,64,.62) 100%),
    radial-gradient(120% 80% at 50% 60%, rgba(10,37,64,.30), rgba(10,37,64,0) 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); font-size: clamp(1.9rem, 6vw, 3.2rem); margin-bottom: .35em; text-shadow: 0 2px 16px rgba(10,37,64,.85), 0 1px 3px rgba(10,37,64,.9); }
.hero__sub { font-size: clamp(1rem, 2.6vw, 1.25rem); max-width: 640px; margin: 0 auto 1.6em; color: #F2F8FC; text-shadow: 0 2px 12px rgba(10,37,64,.85); }
.hero__reassure span { text-shadow: 0 1px 8px rgba(10,37,64,.9); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 1.8em; }
.hero__reassure { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; font-weight: 500; font-size: .95rem; }
.hero__reassure span { display: inline-flex; align-items: center; gap: 6px; }
.hero__reassure span::before { content: "✓"; color: var(--azure-bright); font-weight: 700; }

/* ---------- Barre de confiance ---------- */
.trust { background: var(--white); }
.trust__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; margin: 0 auto; }
.trust__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 16px 8px; }
.trust__item .ico { color: var(--azure-bright); line-height: 0; }
.trust__item .ico svg { width: 34px; height: 34px; display: block; }
.trust__item strong { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--navy); font-size: .98rem; }

/* ---------- Prestations (cartes) ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 22px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  position: relative; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10,37,64,.16); }
.card__media { aspect-ratio: 4 / 3; background: var(--navy); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .4em; }
.card__body p { color: var(--muted); flex: 1; }
.card__link { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--azure-bright); margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; }
.card__link:hover { color: var(--azure-hover); }
.card__link::after { content: "→"; transition: transform .15s ease; }
.card__link:hover::after { transform: translateX(4px); }
.badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: var(--azure-bright); color: var(--white);
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .8rem;
  padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.also { text-align: center; margin-top: 28px; color: var(--muted); }
.also strong { color: var(--navy); }

/* ---------- Bandeau saisonnier ---------- */
.season-banner {
  background: linear-gradient(120deg, var(--azure), var(--azure-bright));
  color: var(--white); border-radius: var(--radius); padding: 28px 24px;
  text-align: center; box-shadow: var(--shadow); margin-top: 32px;
}
.season-banner p { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.15rem; margin-bottom: 16px; }

/* ---------- Comparateur avant/après ---------- */
.compare-wrap { display: grid; grid-template-columns: 1fr; gap: 26px; max-width: 760px; margin: 0 auto; }
.compare {
  position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow); user-select: none;
  background: var(--navy); touch-action: pan-y;
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__after-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.compare__after-wrap img { width: auto; max-width: none; }
.compare__after-img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.compare__label {
  position: absolute; bottom: 12px; z-index: 3; color: var(--white);
  background: rgba(10,37,64,.7); font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: .8rem; padding: 4px 10px; border-radius: 999px; pointer-events: none;
}
.compare__label--before { right: 12px; }
.compare__label--after  { left: 12px; }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 4px;
  background: var(--white); transform: translateX(-50%); z-index: 4; cursor: ew-resize;
}
.compare__handle::before {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 44px; height: 44px; background: var(--white); border-radius: 50%;
  box-shadow: var(--shadow); display: block;
}
.compare__handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--azure); font-size: 1.1rem;
  letter-spacing: 2px;
}
/* Curseur natif (accessibilité clavier) */
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; z-index: 5;
}
.compare--static .compare__handle,
.compare--static .compare__range { display: none; }
.compare--static .compare__after-wrap { width: 100%; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 22px; counter-reset: step; }
.step { text-align: center; padding: 8px; }
.step__num {
  counter-increment: step; width: 56px; height: 56px; margin: 0 auto 14px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--azure-bright); color: var(--white);
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.5rem;
}
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: .3em; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Engagements ---------- */
.commitments { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 760px; margin: 0 auto; }
.commitment { display: flex; gap: 14px; align-items: flex-start; background: var(--white); padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.commitment .ico { font-size: 1.5rem; line-height: 1; flex: 0 0 auto; }
.commitment p { margin: 0; }
.commitment strong { color: var(--navy); font-family: 'Poppins', sans-serif; }

/* ---------- Zone d'intervention (carte) ---------- */
.map {
  width: 100%; height: 380px; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; z-index: 0; background: var(--sand);
}
.leaflet-container { font: inherit; }
.zone__info { text-align: center; max-width: 720px; margin: 22px auto 8px; }
.zone__lead { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--navy); font-size: 1.15rem; margin-bottom: .4em; }
.zone__note { color: var(--muted); font-size: .95rem; margin: 0; }
@media (min-width: 640px) { .map { height: 460px; } }

.zone__list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 820px; margin: 22px auto 0; }
.zone__list li { list-style: none; }
.chip {
  display: inline-block; background: var(--white); border: 1px solid var(--sand);
  color: var(--navy); padding: 8px 16px; border-radius: 999px; font-weight: 500;
  font-size: .95rem; box-shadow: var(--shadow-sm);
}

/* ---------- Avis ---------- */
.reviews { display: grid; grid-template-columns: 1fr; gap: 22px; }
.review { background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.review__stars { color: #FFB400; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 10px; }
.review__text { font-style: italic; color: var(--text); }
.review__author { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--navy); margin: 0; }
.review__note { display: block; font-size: .8rem; color: var(--azure); font-weight: 600; margin-top: 8px; font-style: normal; }

/* ---------- Formulaire ---------- */
.form-section { background: var(--navy); color: var(--white); }
.form-section h2 { color: var(--white); }
.form-section .section__head p { color: #CFE3EF; }
.form {
  max-width: 560px; margin: 0 auto; background: var(--white); color: var(--text);
  padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #C9D8E2; border-radius: 10px;
  font: inherit; color: var(--text); background: var(--white); transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--azure-bright); }
.field textarea { resize: vertical; min-height: 90px; }
.form__note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form__consent { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- WhatsApp flottant ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 80px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: var(--whatsapp);
  display: grid; place-items: center; box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #CFE3EF; padding: 40px 0 28px; text-align: center; }
.footer a { color: var(--white); }
.footer__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 20px; }
.footer__meta { font-size: .9rem; line-height: 1.8; }
.footer__meta a { text-decoration: underline; }

/* ---------- Barre collante (mobile) : appel + devis ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; box-shadow: 0 -4px 16px rgba(10,37,64,.2);
}
.call-bar a {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--white); font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 1.02rem; padding: 14px 10px; height: 60px; text-align: center;
}
.call-bar__tel   { background: var(--navy); }
.call-bar__devis { background: var(--azure-bright); }
.call-bar .ico-phone { width: 1.15em; height: 1.15em; }

/* ---------- Vague décorative (séparateur) ---------- */
.wave { display: block; width: 100%; height: auto; line-height: 0; }
.wave svg { display: block; width: 100%; height: 60px; }

/* ---------- Carte « spécial » (traitement anti-mousse) ---------- */
.card--feature { border: 2px solid var(--azure-bright); }
.badge--green { background: #2E9E5B; }

/* ---------- Compléments de services (grille compacte) ---------- */
.services-more { margin-top: 40px; }
.services-more__title { text-align: center; color: var(--muted); font-family: 'Poppins', sans-serif; font-weight: 600; margin-bottom: 22px; }
.mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; display: block;
}
.mini-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mini-card:hover img { transform: scale(1.06); }
.mini-card__label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 12px 10px;
  color: var(--white); font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .95rem;
  background: linear-gradient(180deg, rgba(10,37,64,0), rgba(10,37,64,.85));
}

/* ---------- Réalisations (galerie en mosaïque, légendes en surimpression) ---------- */
.gallery {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
.shot {
  position: relative; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow); display: block; min-height: 220px;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.05); }
.shot__cat {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--azure-bright); color: var(--white);
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .78rem;
  padding: 5px 11px; border-radius: 999px;
}
.shot__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 40px 16px 14px; color: var(--white);
  background: linear-gradient(180deg, rgba(10,37,64,0), rgba(10,37,64,.9));
}
.shot__caption strong { display: block; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.05rem; }
.shot__caption span { font-size: .85rem; color: #CFE3EF; }
/* tuiles agrandies pour l'effet mosaïque (desktop) */
.shot--tall { grid-row: span 2; }

.realisations-note { text-align: center; margin-top: 28px; font-size: .9rem; color: var(--muted); }

/* ---------- Révélation au scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Breakpoints
   ========================================================= */

/* ~640px */
@media (min-width: 640px) {
  .trust__grid { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .commitments { grid-template-columns: repeat(2, 1fr); }
  .mini-cards { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery .shot { min-height: 0; }
}

/* ~960px : on masque la barre d'appel collante & on enlève le padding bas */
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .call-bar { display: none; }
  .wa-float { bottom: 24px; }
  .section { padding: 72px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .mini-cards { grid-template-columns: repeat(5, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; }
}

/* ~1200px */
@media (min-width: 1200px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 96px 0 104px; }
}

/* ---------- Préférence d'animation réduite ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
