/* ==========================================================================
   SEA MOTORS — Feuille de style
   Couleurs tirées du logo : marine #053D57, bleu #003285, gris clair #E7E7E7
   ========================================================================== */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #053D57;
  --navy-deep: #04303f;
  --blue: #003285;
  --grey: #E7E7E7;
  --grey-soft: #f4f5f6;
  --white: #ffffff;
  --ink: #10242e;
  --muted: #4a6470;
  --line: #cfd6da;
  --field-border: #74868f;
  --ok: #0b5d3b;
  --err: #a11a1a;
  --display: "Jost", "Century Gothic", "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 68px;
  --bar-h: 60px;
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.block-navy :focus-visible, .hero-text :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }
section:focus { outline: none; }
[hidden] { display: none !important; }

h1, h2, h3 {
  margin: 0 0 0.6em;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--navy);
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.6rem, 1.05rem + 2.3vw, 2.75rem); font-weight: 300; letter-spacing: 0.1em; }
h2 { font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.9rem); font-weight: 300; }
h3 { font-size: 1.02rem; font-weight: 500; letter-spacing: 0.12em; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.block { padding-block: clamp(3rem, 7vw, 5.5rem); }
.block-grey { background: var(--grey); }
.block-navy { background: var(--navy); color: var(--white); }
.block-navy h2 { color: var(--white); }
.center { text-align: center; }
.title-center { text-align: center; margin-bottom: 0.9rem; }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 62ch; }
.block-navy .lead { color: rgba(255, 255, 255, 0.88); }
.note { color: var(--muted); font-size: 0.98rem; margin: 0; }

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow-light { color: rgba(255, 255, 255, 0.85); }

.waves { width: 72px; height: auto; margin: 0 auto 2.5rem; }
.waves-left { margin: 0 0 1.6rem; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.7rem 1rem; background: var(--navy); color: var(--white); }
.skip:focus { top: 0.6rem; }

/* --- Boutons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; flex-direction: column;
  min-height: 52px; padding: 0.8rem 1.7rem;
  border: 1px solid transparent; border-radius: 2px;
  font-family: var(--display); font-size: 0.86rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; text-align: center; line-height: 1.3;
  cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--navy); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--grey); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
.btn-sub { font-family: var(--text); font-size: 0.82rem; font-weight: 400; letter-spacing: 0.04em; text-transform: none; opacity: 0.9; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.link-arrow {
  font-family: var(--display); font-size: 0.86rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 0.25rem;
}
.link-arrow::after { content: " \2192"; }

/* --- En-tête ----------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); flex-wrap: wrap; }
.brand { display: flex; align-items: center; margin-right: auto; padding-block: 0.6rem; }
.brand-wide { display: none; width: 283px; }
.brand-stack { width: 150px; }
.lang { display: none; align-items: center; gap: 0.15rem; font-family: var(--display); font-size: 0.86rem; letter-spacing: 0.12em; color: var(--muted); }
.js .lang { display: flex; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 44px; color: var(--muted); text-decoration: none; }
.lang a[aria-current="true"] { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 0.4em; }
.menu-btn {
  display: none; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.6rem;
  background: none; border: 1px solid var(--line); border-radius: 2px; color: var(--navy);
  font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
}
.nav { order: 10; width: 100%; padding-bottom: 0.6rem; }
.nav ul { display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.nav a {
  display: flex; align-items: center; min-height: 44px;
  font-family: var(--display); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy); text-decoration: none; white-space: nowrap;
}
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); }

@media (max-width: 1239.98px) {
  .js .menu-btn { display: inline-flex; order: 3; }
  .js .lang { order: 2; }
  .js .nav { display: none; }
  .js .site-header.open .nav { display: block; border-top: 1px solid var(--line); padding-block: 0.5rem 1rem; }
  .js .nav ul { flex-direction: column; }
  .js .nav a { min-height: 50px; font-size: 0.9rem; border-bottom: 1px solid var(--grey); }
  .js .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); padding-left: 0.9rem; }
}
@media (min-width: 600px) {
  .brand-wide { display: block; }
  .brand-stack { display: none; }
}
@media (min-width: 1240px) {
  .header-in { flex-wrap: nowrap; gap: 1.6rem; }
  .nav { order: 0; width: auto; padding: 0; }
  .nav ul { flex-wrap: nowrap; gap: 0 1.35rem; }
  .nav a { min-height: var(--header-h); }
  .brand-wide { width: 252px; }
}

/* --- Onglets (seulement quand JavaScript est actif) ---------------------- */
.js .tab { display: none; }
.js[data-tab="accueil"] #accueil,
.js[data-tab="services"] #services,
.js[data-tab="forfait"] #forfait,
.js[data-tab="zone"] #zone,
.js[data-tab="avis"] #avis,
.js[data-tab="contact"] #contact { display: block; }
.js main { min-height: 60vh; }
.i18n-wait body { visibility: hidden; }
html:not(.js) .tab + .tab { border-top: 1px solid var(--line); }
.tab, .service, #devis { scroll-margin-top: calc(var(--header-h) + 1rem); }
.tab-head { margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.tab-title { font-size: clamp(1.55rem, 1.1rem + 2vw, 2.5rem); margin-bottom: 1.1rem; }
.after { margin-top: clamp(2.2rem, 5vw, 3.5rem); display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-align: center; }
.after-left { align-items: flex-start; text-align: left; }

/* --- Accueil : en-tête --------------------------------------------------- */
.hero { display: grid; background: var(--navy); }
.hero-text { padding: clamp(2.6rem, 8vw, 5rem) var(--gutter); color: var(--white); display: flex; flex-direction: column; justify-content: center; }
.hero-text h1 { color: var(--white); margin-bottom: 1.3rem; }
.hero-lead { font-size: 1.14rem; color: rgba(255, 255, 255, 0.9); max-width: 54ch; margin: 0; }
.hero-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #9cc4e4; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 86%; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(calc(100vh - var(--header-h)), 720px); }
  .hero-text { padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); padding-right: clamp(2rem, 4vw, 4rem); }
  .hero-media { aspect-ratio: auto; min-height: 560px; }
  .hero-media img { object-position: 50% 90%; }
}

/* --- Accueil : arguments ------------------------------------------------- */
.why { display: grid; gap: 2.2rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.why li { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.why-n { display: block; margin-bottom: 0.7rem; font-family: var(--display); font-weight: 300; font-size: 1.5rem; letter-spacing: 0.1em; color: var(--blue); }
.why p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* --- Accueil : aperçu des services, bandeau, à propos -------------------- */
.split { display: grid; gap: 2.5rem; }
.svc-list { border-top: 1px solid rgba(5, 61, 87, 0.3); }
.svc-list li { border-bottom: 1px solid rgba(5, 61, 87, 0.3); }
.svc-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 58px; padding: 0.6rem 0.2rem;
  font-family: var(--display); font-size: 0.98rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--navy);
}
.svc-list a::after { content: "\2192"; color: var(--blue); }
.svc-list a:hover { color: var(--blue); }
.band { display: grid; gap: 2rem; align-items: center; }
.band .lead { margin: 0; }
.band .btn { justify-self: start; }
.about { display: grid; gap: 2.5rem; align-items: center; }
.about-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--grey); }
.about-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 78%; }
.about p { max-width: 60ch; }
.cta { text-align: center; border-top: 1px solid var(--line); }
.cta .lead { margin: 0 auto 2rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 6fr; gap: 5rem; align-items: start; }
  .band { grid-template-columns: 1fr auto; gap: 4rem; }
  .about { grid-template-columns: 420px 1fr; gap: 5rem; }
  .about-media { aspect-ratio: 4 / 5; }
  .about-media img { object-position: 40% 100%; }
}

/* --- Services ------------------------------------------------------------ */
.services { border-top: 1px solid var(--line); }
.service { display: grid; gap: 0.4rem 2rem; padding-block: 2.2rem; border-bottom: 1px solid var(--line); grid-template-columns: minmax(0, 1fr); }
.service-n { font-family: var(--display); font-weight: 300; font-size: 1.6rem; letter-spacing: 0.1em; color: var(--blue); line-height: 1.2; }
.service-body h3 { font-size: 1.12rem; }
.service-body p { margin: 0; color: var(--muted); max-width: 60ch; }
.service-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--grey); margin-top: 1.2rem; }
.service-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pos-moteur { object-position: 50% 80%; }
.pos-carene { object-position: 60% 62%; }
.pos-helice { object-position: 50% 70%; }
@media (min-width: 900px) {
  .service { grid-template-columns: 90px minmax(0, 1fr) 440px; align-items: center; padding-block: 2.6rem; }
  .service-media { margin-top: 0; grid-column: 3; }
  .service:not(.has-media) .service-body { grid-column: 2 / 4; }
}

/* --- Forfait à flot ------------------------------------------------------ */
.plan { display: grid; gap: 2.5rem; }
.plan h3 { margin-top: 2.2rem; }
.plan-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--grey); }
.plan-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 34%; }
.checks { display: grid; gap: 0; border-top: 1px solid var(--line); }
.checks li { position: relative; padding: 0.85rem 0 0.85rem 2.3rem; border-bottom: 1px solid var(--line); }
.checks li::before {
  content: ""; position: absolute; left: 0.3rem; top: 1.25rem; width: 0.95rem; height: 0.5rem;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}
.dashes li { position: relative; padding: 0.3rem 0 0.3rem 2.3rem; color: var(--muted); }
.dashes li::before { content: ""; position: absolute; left: 0.3rem; top: 1.15rem; width: 1rem; height: 1px; background: var(--blue); }
@media (min-width: 600px) { .checks { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
@media (min-width: 900px) {
  .plan { grid-template-columns: minmax(0, 1fr) 460px; gap: 5rem; align-items: start; }
  .plan-media { aspect-ratio: 4 / 5; position: sticky; top: calc(var(--header-h) + 2rem); }
  .plan-media img { object-position: 35% 30%; }
}

/* --- Zone d'intervention ------------------------------------------------- */
.coast-box { background: var(--navy); color: var(--white); padding: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.coast-ends { display: flex; justify-content: space-between; margin-bottom: 1.4rem; font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.coast { position: relative; display: grid; gap: 0; }
.coast li {
  position: relative; padding: 0.55rem 0 0.55rem 2.2rem;
  font-family: var(--display); font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.35;
}
.coast li small { display: block; font-size: 0.78rem; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.8); }
.coast li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 11px; height: 11px; border-radius: 50%; background: var(--white); z-index: 1; }
.coast li::after { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.5); }
.coast li:first-child::after { top: 1.05rem; }
.coast li:last-child::after { bottom: auto; height: 1.05rem; }
@media (max-width: 899.98px) { .coast-ends { display: none; } }
@media (min-width: 900px) {
  .coast { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .coast li { padding: 1.9rem 0.3rem 0; text-align: center; font-size: 0.8rem; letter-spacing: 0.08em; overflow-wrap: break-word; hyphens: auto; }
  .coast li::before { left: calc(50% - 5.5px); top: 0; }
  .coast li::after { left: 0; right: 0; top: 5px; bottom: auto; width: auto; height: 1px; }
  .coast li:first-child::after { left: 50%; top: 5px; }
  .coast li:last-child::after { right: 50%; height: 1px; }
}
.cols3 { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cols3 > div { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.cols3 p { margin: 0; color: var(--muted); }

/* --- Avis ---------------------------------------------------------------- */
.reviews { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.reviews:empty { display: none; }
.review { margin: 0; padding: 1.8rem; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1rem; }
.review blockquote { margin: 0; font-size: 1.02rem; }
.review blockquote p { margin: 0; white-space: pre-line; }
.review figcaption { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1rem; font-size: 0.92rem; color: var(--muted); }
.review-name { font-family: var(--display); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); }
.review-stars { display: inline-flex; gap: 2px; color: var(--blue); }
.review-stars svg { width: 15px; height: 15px; }
.review-stars .off { color: var(--line); }
#accueil-avis .center { margin: 2.5rem 0 0; }

/* --- Contact et formulaire ----------------------------------------------- */
.contact { display: grid; gap: 2.5rem; align-items: start; }
.contact-card { background: var(--navy); color: var(--white); padding: clamp(1.6rem, 4vw, 2.4rem); }
.contact-card h3 { color: var(--white); }
.contact-card dl { margin: 0; }
.contact-card dl > div { padding: 0.9rem 0; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.contact-card dt { font-family: var(--display); font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.contact-card dd { margin: 0.15rem 0 0; font-size: 1.08rem; overflow-wrap: anywhere; }
.contact-card a { color: var(--white); display: inline-block; padding-block: 0.3rem; }
.contact-card :focus-visible { outline-color: var(--white); }
.contact-note { margin: 1.2rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.25); font-size: 0.95rem; color: rgba(255, 255, 255, 0.88); }
@media (min-width: 1000px) {
  .contact { grid-template-columns: 340px minmax(0, 1fr); gap: 4rem; }
  .contact-card { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.form-hint { color: var(--muted); font-size: 0.95rem; }
.form fieldset { margin: 0 0 2rem; padding: 1.6rem 0 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.form legend { padding: 0 1rem 0 0; font-family: var(--display); font-size: 0.86rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); }
.grid2 { display: grid; gap: 0 1.5rem; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.field { margin: 0 0 1.25rem; min-width: 0; }
.field > label, .label { display: block; margin-bottom: 0.4rem; font-size: 0.95rem; font-weight: 500; color: var(--navy); }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form select, .form textarea {
  display: block; width: 100%; min-height: 50px; padding: 0.7rem 0.85rem;
  border: 1px solid var(--field-border); border-radius: 2px; background: var(--white); color: var(--ink);
  font: inherit; font-size: 1rem;
}
.form textarea { resize: vertical; min-height: 9rem; }
.form input[type="file"] { display: block; width: 100%; max-width: 100%; padding: 0.7rem; border: 1px dashed var(--field-border); border-radius: 2px; font: inherit; font-size: 0.95rem; }
.form input::placeholder { color: #5f737d; opacity: 1; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.form input[type="radio"], .form input[type="checkbox"] { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--blue); flex: none; position: relative; top: 0.22rem; }
.choice label, .checks-grid label, .consent label { display: inline-flex; align-items: flex-start; gap: 0.6rem; min-height: 44px; padding-block: 0.45rem; margin-right: 1.6rem; cursor: pointer; }
.checks-grid { display: grid; gap: 0 1.5rem; }
.checks-grid .label { grid-column: 1 / -1; }
.checks-grid label { margin-right: 0; }
@media (min-width: 640px) { .checks-grid { grid-template-columns: 1fr 1fr; } }
.hint { display: block; margin-top: 0.4rem; font-size: 0.9rem; color: var(--muted); }
.consent label { margin-right: 0; font-size: 0.97rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { margin: 0 0 1.4rem; padding: 1rem 1.2rem; border-left: 4px solid var(--blue); background: var(--grey-soft); }
.form-status.is-ok { border-color: var(--ok); color: var(--ok); }
.form-status.is-err { border-color: var(--err); color: var(--err); }
.form-status ul { margin: 0.5rem 0 0; padding-left: 1.2rem; list-style: disc; }

/* --- Pied de page -------------------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.88); font-size: 0.97rem; }
.footer-in { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
.footer-brand img { width: 190px; margin-bottom: 1.5rem; }
.footer-brand p { margin: 0 0 0.3rem; max-width: 36ch; }
.site-footer h2 { margin-bottom: 0.8rem; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.8); }
.site-footer a { color: var(--white); display: inline-block; padding-block: 0.45rem; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 2rem; padding-block: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.25); font-size: 0.9rem; }
.footer-legal p { margin: 0; }
.footer-legal a { text-decoration: underline; }
@media (min-width: 800px) { .footer-in { grid-template-columns: 2fr 1fr 1fr; gap: 4rem; } }

/* --- Barre fixe sur mobile ----------------------------------------------- */
.quickbar { display: none; }
@media (max-width: 767.98px) {
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
  .quickbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(5, 61, 87, 0.12);
  }
  .quickbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; min-height: var(--bar-h);
    font-family: var(--display); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--navy); text-decoration: none; border-left: 1px solid var(--line);
  }
  .quickbar a:first-child { border-left: 0; }
  .quickbar .quickbar-main { background: var(--blue); color: var(--white); border-left: 0; }
}

/* --- Page Mentions légales et page de réponse du formulaire -------------- */
.legal { max-width: 46rem; }
.legal h1 { margin-bottom: 1.2rem; }
.legal h2 { margin-top: 3rem; font-size: 1.35rem; font-weight: 400; }
.legal h3 { margin-top: 1.8rem; }
.legal dl { margin: 0 0 1em; }
.legal dl > div { display: flex; flex-wrap: wrap; gap: 0 0.5rem; padding: 0.25rem 0; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; overflow-wrap: anywhere; }
.back { display: inline-block; margin-bottom: 2rem; }
.back::before { content: "\2190\00a0"; }
.header-simple .brand { margin-right: auto; }
.message-page { max-width: 40rem; margin-inline: auto; text-align: center; }
.message-page ul { display: inline-block; margin: 0 0 1.5rem; padding-left: 1.2rem; list-style: disc; text-align: left; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .quickbar, .site-footer nav { display: none; }
  .js .tab { display: block; }
}

/* --- Petits écrans : en-tête sur une seule ligne ------------------------- */
@media (max-width: 479.98px) {
  .header-in { gap: 0.5rem; }
  .brand-stack { width: 132px; }
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .menu-btn { padding: 0 0.65rem; }
  .lang a { min-width: 34px; }
}

/* --- Forfait à flot : les trois formules --------------------------------- */
.formulas-wrap { margin-top: clamp(2.5rem, 6vw, 4rem); }
.formulas-title { margin-bottom: 1.6rem; }
.formulas { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; }
.formula { padding: clamp(1.5rem, 3vw, 2rem); border: 1px solid var(--line); border-top: 3px solid var(--blue); background: var(--white); }
.formula-kicker { margin: 0; font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.formula h4 { margin: 0.2rem 0 1.2rem; font-family: var(--display); font-size: 1.35rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); }
.checks-1 { grid-template-columns: 1fr !important; }
.checks-1 li { font-size: 0.98rem; }
.checks-1 li:last-child { border-bottom: 0; }
.plan .dashes { margin-top: 0; }
.formula-price { margin: -0.6rem 0 1.2rem; font-family: var(--display); font-size: 1.15rem; font-weight: 500; letter-spacing: 0.06em; color: var(--blue); }

/* --- Animations (désactivées si le visiteur a demandé moins d'animations) -- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .reveal.is-in { opacity: 1; transform: none; }

  /* Changement d'onglet */
  .js.tab-anim .tab { animation: tab-in 0.35s ease both; }
  @keyframes tab-in { from { opacity: 0; } to { opacity: 1; } }

  /* Arrivée sur l'accueil : le texte monte, la photo se pose */
  .js .hero-text > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .js .hero-text > :nth-child(2) { animation-delay: 0.08s; }
  .js .hero-text > :nth-child(3) { animation-delay: 0.18s; }
  .js .hero-text > :nth-child(4) { animation-delay: 0.28s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .js .hero-media img { animation: settle 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes settle { from { transform: scale(1.07); } to { transform: none; } }

  /* Survol */
  .service-media img, .about-media img, .plan-media img { transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .service:hover .service-media img, .about-media:hover img, .plan-media:hover img { transform: scale(1.045); }
  .btn { transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s; }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: none; }
  .link-arrow::after, .svc-list a::after { display: inline-block; transition: transform 0.25s; }
  .link-arrow:hover::after, .svc-list a:hover::after { transform: translateX(5px); }
  .formula { transition: box-shadow 0.3s, transform 0.3s; }
  .formula:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(5, 61, 87, 0.12); }
  .nav a { transition: color 0.2s, box-shadow 0.2s; }
}
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

/* ==========================================================================
   Animations, deuxième couche
   ========================================================================== */
/* Bandeau de vagues au pied du bloc d'accueil (fixe si moins d'animations) */
.hero-text { position: relative; overflow: hidden; padding-bottom: calc(clamp(2.6rem, 8vw, 5rem) + 30px); }
.hero-text::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 46px; opacity: 0.2; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='46' viewBox='0 0 240 46' fill='none' stroke='%23fff' stroke-width='1.4'%3E%3Cpath d='M0 13q30-12 60 0t60 0 60 0 60 0M0 23q30-12 60 0t60 0 60 0 60 0M0 33q30-12 60 0t60 0 60 0 60 0'/%3E%3C/svg%3E") repeat-x 0 0 / 240px 46px; }
.site-header { transition: box-shadow 0.3s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(5, 61, 87, 0.12); }
.progress { position: fixed; top: 0; left: 0; z-index: 70; width: 100%; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  /* Les vagues bougent */
  .hero-text::after { animation: tide 16s linear infinite; }
  @keyframes tide { to { background-position-x: -240px; } }
  .waves { animation: sway 4.5s ease-in-out infinite alternate; }
  @keyframes sway { from { transform: translateX(-6px); } to { transform: translateX(6px); } }

  /* La photo d'accueil : pose au chargement, puis léger décalage au défilement */
  .js .hero-media img { animation: settle2 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes settle2 { from { scale: 1.08; } to { scale: 1; } }
  @media (min-width: 900px) { .motion .hero-media img { top: -8%; height: 116%; } }

  /* Les photos se dévoilent comme un rideau */
  .service.reveal .service-media { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(0.7, 0, 0.2, 1) 0.15s; }
  .service.reveal.is-in .service-media { clip-path: inset(0 0 0 0); }
  .about-media.reveal, .plan-media.reveal { background: transparent; }
  .about-media.reveal img, .plan-media.reveal img { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s cubic-bezier(0.7, 0, 0.2, 1) 0.1s, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .about-media.reveal.is-in img, .plan-media.reveal.is-in img { clip-path: inset(0 0 0 0); }

  /* Les grands titres se resserrent en apparaissant (ordinateur) */
  @media (min-width: 900px) {
    .tab-title.reveal.is-in, .title-center { animation: tracking 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
    @keyframes tracking { from { letter-spacing: 0.32em; } to { letter-spacing: 0.14em; } }
  }

  /* Numéros, coches, étoiles : apparition en cascade */
  .why li.reveal .why-n, .service.reveal .service-n { display: block; opacity: 0; transform: translateX(-14px); transition: opacity 0.6s 0.25s, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s; }
  .why li.reveal.is-in .why-n, .service.reveal.is-in .service-n { opacity: 1; transform: none; }
  .formula.reveal.is-in .checks li { animation: slide-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .formula.reveal.is-in .checks li:nth-child(1) { animation-delay: 0.25s; }
  .formula.reveal.is-in .checks li:nth-child(2) { animation-delay: 0.37s; }
  .formula.reveal.is-in .checks li:nth-child(3) { animation-delay: 0.49s; }
  .formula.reveal.is-in .checks li:nth-child(4) { animation-delay: 0.61s; }
  @keyframes slide-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
  .formula.reveal.is-in .formula-price { animation: slide-in 0.6s 0.15s both; }
  .review.reveal.is-in .review-stars svg { animation: pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
  .review.reveal.is-in .review-stars svg:nth-child(1) { animation-delay: 0.35s; }
  .review.reveal.is-in .review-stars svg:nth-child(2) { animation-delay: 0.44s; }
  .review.reveal.is-in .review-stars svg:nth-child(3) { animation-delay: 0.53s; }
  .review.reveal.is-in .review-stars svg:nth-child(4) { animation-delay: 0.62s; }
  .review.reveal.is-in .review-stars svg:nth-child(5) { animation-delay: 0.71s; }
  @keyframes pop { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: none; } }

  /* Zone : la côte se trace d'ouest en est, port après port */
  .coast-box.reveal.is-in .coast li { animation: slide-in 0.5s both; }
  .coast-box.reveal.is-in .coast li::before { animation: pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
  .coast-box.reveal.is-in .coast li:nth-child(1) { animation-delay: 0.30s; }
  .coast-box.reveal.is-in .coast li:nth-child(2) { animation-delay: 0.43s; }
  .coast-box.reveal.is-in .coast li:nth-child(3) { animation-delay: 0.56s; }
  .coast-box.reveal.is-in .coast li:nth-child(4) { animation-delay: 0.69s; }
  .coast-box.reveal.is-in .coast li:nth-child(5) { animation-delay: 0.82s; }
  .coast-box.reveal.is-in .coast li:nth-child(6) { animation-delay: 0.95s; }
  .coast-box.reveal.is-in .coast li:nth-child(7) { animation-delay: 1.08s; }
  .coast-box.reveal.is-in .coast li:nth-child(8) { animation-delay: 1.21s; }
  .coast-box.reveal.is-in .coast li:nth-child(1)::before { animation-delay: 0.40s; }
  .coast-box.reveal.is-in .coast li:nth-child(2)::before { animation-delay: 0.53s; }
  .coast-box.reveal.is-in .coast li:nth-child(3)::before { animation-delay: 0.66s; }
  .coast-box.reveal.is-in .coast li:nth-child(4)::before { animation-delay: 0.79s; }
  .coast-box.reveal.is-in .coast li:nth-child(5)::before { animation-delay: 0.92s; }
  .coast-box.reveal.is-in .coast li:nth-child(6)::before { animation-delay: 1.05s; }
  .coast-box.reveal.is-in .coast li:nth-child(7)::before { animation-delay: 1.18s; }
  .coast-box.reveal.is-in .coast li:nth-child(8)::before { animation-delay: 1.31s; }

  /* Téléphone : la barre du bas monte, le menu se déroule */
  @media (max-width: 767.98px) { .js .quickbar { animation: bar-up 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s both; } }
  @keyframes bar-up { from { transform: translateY(100%); } to { transform: none; } }
  @media (max-width: 1239.98px) {
    .js .site-header.open .nav li { animation: slide-in 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
      .js .site-header.open .nav li:nth-child(1) { animation-delay: 0.00s; }
      .js .site-header.open .nav li:nth-child(2) { animation-delay: 0.05s; }
      .js .site-header.open .nav li:nth-child(3) { animation-delay: 0.10s; }
      .js .site-header.open .nav li:nth-child(4) { animation-delay: 0.15s; }
      .js .site-header.open .nav li:nth-child(5) { animation-delay: 0.20s; }
      .js .site-header.open .nav li:nth-child(6) { animation-delay: 0.25s; }
  }

  /* Reflet sur les boutons principaux */
  .btn-blue, .btn-white { position: relative; overflow: hidden; }
  .btn-blue::after, .btn-white::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); transition: left 0.7s; pointer-events: none; }
  .btn-white::after { background: linear-gradient(90deg, transparent, rgba(0, 50, 133, 0.14), transparent); }
  .btn-blue:hover::after, .btn-white:hover::after { left: 120%; }

  /* Liste des services de l'accueil : la ligne s'allonge au survol */
  .svc-list a { transition: color 0.2s, padding-left 0.3s; }
  .svc-list a:hover { padding-left: 0.8rem; }
}

.credit a { color: inherit; }
.footer-legal .credit { order: 3; width: 100%; opacity: 0.85; }
@media (min-width: 800px) { .footer-legal .credit { order: 0; width: auto; } }

/* Cadrage des nouvelles photos */
.pos-electricite { object-position: 50% 21%; }
.pos-outillage { object-position: 50% 57%; }
.pos-portique { object-position: 50% 36%; }
.about-media img { object-position: 50% 45%; }
@media (min-width: 900px) { .about-media img { object-position: 50% 55%; } }
