/* Le CRM bateauavendre.fr : site de présentation (statique, servi par nginx). */

@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("../fonts/outfit-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("../fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Couleurs de la marque bateauavendre.fr */
  --marine: #152f4f;
  --marine-profond: #0c1d31;
  --bleu: #007aa2;
  --ciel: #41c0f0;
  --orange: #f47b20;
  --orange-vif: #ff8a33;

  /* Rôles */
  --fond: #f2f7fa;          /* papier */
  --fond-clair: #ffffff;    /* surface la plus claire */
  --fond-pas: #e4eef4;      /* un pas de ton sous le papier */
  --encre: var(--marine);
  --encre-douce: #4a5d74;
  --sur-sombre: #ffffff;
  --sur-sombre-doux: #b9c7d8;
  --accent: var(--orange);

  /* Typographie : cinq tailles */
  --t-marque: clamp(104px, min(13vw, 22vh), 230px);
  --t-titre: clamp(32px, 2.8vw, 40px);
  --t-enonce: 28px;
  --t-texte: 18px;
  --t-petit: 14px;

  --f-titre: "Outfit", system-ui, sans-serif;
  --f-texte: "DM Sans", system-ui, sans-serif;

  --marge: 32px;
  --rayon: 12px;
  --duree: 520ms;
  --courbe: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: var(--t-texte);
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ciel); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ciel); color: var(--marine); }

.invisible {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; /* taste-skill-ignore */
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.evitement { position: absolute; left: var(--marge); top: -80px; z-index: 50; background: var(--fond-clair); padding: 10px 16px; border-radius: var(--rayon); }
.evitement:focus { top: 16px; }

h2 {
  font-family: var(--f-titre);
  font-weight: 600;
  font-size: var(--t-titre);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h3 { font-family: var(--f-titre); font-weight: 500; }

/* Boutons et liens : une seule forme, ronde */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: var(--accent); color: var(--marine);
  font-weight: 700; font-size: 18px; text-decoration: none;
  border-radius: 999px;
  transition: transform 180ms var(--courbe), background-color 180ms var(--courbe);
}
.bouton:hover { background: var(--orange-vif); transform: translateY(-2px); }
.bouton:active { transform: translateY(0) scale(.97); }
.bouton-petit { min-height: 44px; padding: 0 22px; font-size: 16px; }
.lien-fort {
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  transition: color 160ms, text-underline-offset 160ms;
}
.lien-fort:hover { text-underline-offset: 8px; }

/* Barre du haut : posée sur l'ouverture */
.barre { position: absolute; top: 0; right: 0; z-index: 30; padding: 28px var(--marge); color: var(--sur-sombre); }
.barre-liens { display: flex; align-items: center; gap: 28px; }
.barre-liens ul { display: flex; gap: 28px; }
.barre-liens ul a { font-size: 16px; font-weight: 500; text-decoration: none; transition: color 160ms; }
.barre-liens ul a:hover { color: var(--ciel); }
.barre-menu { display: none; }

/* La scène : le film reste à gauche, le texte défile à droite */
.scene { display: grid; grid-template-columns: 55% 45%; background: var(--marine); }
.scene-film {
  position: sticky; top: 0; z-index: 1;
  height: 100vh; height: 100svh; /* taste-skill-ignore */
  padding: 32px 24px 32px var(--marge);
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  color: var(--sur-sombre);
}
.film video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--rayon); background: #e9f2f7; }
.film video::cue { font-family: var(--f-texte); font-size: 17px; background: rgba(12, 29, 49, .82); color: #fff; }
.film-legende { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.film-titre { font-family: var(--f-titre); font-weight: 600; font-size: 22px; }
.film-son {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: var(--sur-sombre); font-size: 14px; font-weight: 500;
  transition: background-color 160ms, transform 160ms;
}
.film-son:hover { background: rgba(255, 255, 255, .18); }
.film-son:active { transform: scale(.97); }
.film-son[aria-pressed="true"] { background: var(--sur-sombre); color: var(--marine); }
.film-chapitres { display: flex; flex-wrap: wrap; gap: 8px; }
.film-chapitres button {
  min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--sur-sombre-doux); font-size: 14px;
  transition: background-color 180ms, color 180ms, transform 160ms;
}
.film-chapitres button:hover { color: var(--sur-sombre); background: rgba(255, 255, 255, .08); }
.film-chapitres button:active { transform: scale(.96); }
.film-chapitres button[aria-current="true"] { background: var(--sur-sombre); color: var(--marine); font-weight: 500; }

.scene-texte { position: relative; z-index: 2; background: var(--fond); }

/* Ouverture */
.ouverture {
  position: relative;
  min-height: 100vh; min-height: 100svh; /* taste-skill-ignore */
  background: var(--marine); color: var(--sur-sombre);
  padding: 110px var(--marge) 36px;
  display: flex; flex-direction: column;
}
.ouverture-texte { flex: 1; display: flex; flex-direction: column; justify-content: center; width: min(100%, 30ch); margin: 0 auto 150px; }
.enonce {
  font-family: var(--f-titre); font-weight: 600;
  font-size: var(--t-enonce); line-height: 1.15; letter-spacing: -0.01em;
  text-wrap: balance;
}
.ouverture-detail { margin-top: 20px; color: var(--sur-sombre-doux); font-size: var(--t-texte); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }
.ouverture .lien-fort { color: var(--sur-sombre); }
.marque {
  order: 2;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  margin: 0; white-space: nowrap; pointer-events: none;
}
.marque-mot {
  display: block;
  font-family: var(--f-titre); font-weight: 700;
  font-size: var(--t-marque); line-height: .8; letter-spacing: -0.045em;
  color: var(--accent);
  transform-origin: 100% 100%;
}
.marque-logo { width: clamp(200px, 18vw, 320px); height: auto; order: -1; }

/* Chapitres : un passage du film chacun */
.chapitre {
  min-height: 92vh; min-height: 92svh;
  padding: 120px var(--marge) 120px clamp(32px, 4vw, 64px);
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
}
.chapitre > p { max-width: 46ch; }
.chapitre-dernier { padding-bottom: 160px; }

/* Ticket : le trajet d'une demande */
.ticket {
  position: relative; max-width: 480px; margin-top: 12px;
  background: var(--fond-clair); padding: 28px 28px 0;
  font-size: 16px; font-variant-numeric: tabular-nums;
}
.ticket::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12'%3E%3Cpath d='M0 0h16L8 12z' fill='%23ffffff'/%3E%3C/svg%3E") repeat-x;
  background-size: 16px 12px;
}
.ticket-titre { font-family: var(--f-titre); font-weight: 600; font-size: 22px; line-height: 1.2; }
.ticket h3 { font-family: var(--f-texte); font-weight: 700; font-size: 16px; margin-top: 28px; }
.ticket ul { margin-top: 10px; display: grid; gap: 10px; }
.ticket li { display: flex; align-items: baseline; gap: 10px; }
.ticket li i { flex: 1; min-width: 24px; border-bottom: 4px dotted var(--fond-pas); transform: translateY(-4px); }
.ticket li b { font-weight: 500; color: var(--bleu); white-space: nowrap; }
.ticket-total {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 28px -28px 0; padding: 0 28px; min-height: 48px;
  background: var(--marine); color: var(--sur-sombre); font-weight: 500;
}

.sms {
  max-width: 380px; padding: 18px 20px; border-radius: var(--rayon);
  background: var(--marine); color: var(--sur-sombre); font-size: 16px;
}
.sms-de { font-weight: 700; color: var(--ciel); margin-bottom: 4px; font-size: 14px; }

.consigne {
  max-width: 520px; padding: 28px 30px; border-radius: var(--rayon);
  background: var(--ciel); color: var(--marine);
}
.consigne p { font-family: var(--f-titre); font-weight: 500; font-size: 22px; line-height: 1.3; }

.documents { display: grid; gap: 22px; max-width: 560px; margin-top: 8px; }
.documents div { display: grid; grid-template-columns: 7.5em 1fr; gap: 20px; align-items: baseline; }
.documents dt { font-family: var(--f-titre); font-weight: 600; font-size: 22px; }

.graphe-bloc { background: var(--fond-clair); padding: 24px 24px 20px; border-radius: var(--rayon); max-width: 640px; }
.graphe-chiffre { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 16px; color: var(--encre-douce); }
.graphe-chiffre b { font-family: var(--f-titre); font-weight: 700; font-size: 40px; color: var(--encre); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.graphe { width: 100%; height: auto; margin-top: 12px; }
.g-grille { stroke: var(--fond-pas); stroke-width: 1; }
.g-point { fill: var(--ciel); fill-opacity: .8; }
.g-point:hover { fill: var(--bleu); fill-opacity: 1; }
.g-mediane { stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
.g-axe { font-family: var(--f-texte); font-size: 14px; fill: var(--encre-douce); }
.graphe-bloc figcaption { margin-top: 10px; font-size: var(--t-petit); color: var(--encre-douce); }

.estimation { max-width: 440px; border-radius: var(--rayon); overflow: hidden; background: var(--fond-clair); }
.estimation-tete {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: var(--marine); color: var(--sur-sombre);
  font-family: var(--f-titre); font-weight: 600; font-size: 18px;
}
.estimation-langues { display: inline-flex; gap: 4px; font-size: 14px; font-family: var(--f-texte); }
.estimation-langues b, .estimation-langues span { padding: 2px 10px; border-radius: 999px; }
.estimation-langues b { background: var(--accent); color: var(--marine); }
.estimation dl { padding: 8px 20px 18px; display: grid; }
.estimation dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 16px; }
.estimation dl div + div { border-top: 1px solid var(--fond-pas); } /* taste-skill-ignore */
.estimation dt { color: var(--encre-douce); }
.estimation dd { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

.photo { overflow: hidden; border-radius: var(--rayon); }
.photo img { width: 100%; height: auto; border-radius: var(--rayon); }
.photo figcaption { margin-top: 10px; font-size: var(--t-petit); color: var(--encre-douce); }

/* Essai en direct : un message, une fiche */
.essai {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto;
  min-height: 90vh; min-height: 90svh;
}
.essai-titre {
  grid-column: 1 / 3; grid-row: 2; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; align-items: end;
  font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.03em;
}
.essai-titre span { padding: 0 var(--marge) 40px; }
.essai-titre-a { color: var(--sur-sombre); }
.essai-titre-b { color: var(--encre); }
.essai-entree, .essai-sortie { grid-row: 1 / 3; padding: 18vh var(--marge) 200px; }
.essai-entree { grid-column: 1; background: var(--marine-profond); color: var(--sur-sombre); display: flex; flex-direction: column; align-items: flex-end; }
.essai-entree > * { width: min(100%, 38ch); }
.essai-sortie { grid-column: 2; background: var(--fond-clair); }
.essai-entree label { display: block; font-weight: 700; font-size: 18px; }
.essai-entree textarea {
  display: block; width: 100%; resize: vertical; min-height: 280px;
  padding: 20px 22px; border: 0; border-radius: var(--rayon);
  background: rgba(255, 255, 255, .07); color: var(--sur-sombre);
  font-size: 22px; line-height: 1.5;
  transition: background-color 180ms;
}
.essai-entree textarea:hover { background: rgba(255, 255, 255, .1); }
.essai-entree textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); } /* taste-skill-ignore */
.essai-aide { margin: 4px 0 14px; color: var(--sur-sombre-doux); font-size: 16px; }

.fiche { width: min(100%, 480px); border-radius: var(--rayon); overflow: hidden; background: var(--fond); margin-top: 38px; }
.fiche-tete { padding: 18px 22px; background: var(--marine); color: var(--sur-sombre); font-family: var(--f-titre); font-weight: 600; font-size: 22px; }
.fiche dl { padding: 8px 22px 6px; }
.fiche dl div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 12px 0; align-items: baseline; }
.fiche dl div + div { border-top: 1px solid var(--fond-pas); } /* taste-skill-ignore */
.fiche dt { color: var(--encre-douce); font-size: 14px; }
.fiche dd { font-weight: 700; font-size: 18px; overflow-wrap: anywhere; min-height: 1.4em; transition: background-color 600ms; border-radius: 6px; padding: 0 6px; margin-left: -6px; }
.fiche dd.vide { color: var(--encre-douce); font-weight: 400; }
.fiche dd.change { background: #d6f0fb; }
.fiche-pied { padding: 12px 22px 16px; font-size: 14px; color: var(--bleu); font-weight: 500; }

/* Tarif : comme une carte */
.tarif, .questions {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  padding: 200px var(--marge) 0;
}
.tarif-gauche { grid-column: 1 / 4; }
.tarif h2, .questions h2 { font-size: var(--t-titre); }
.photo-portrait { margin-top: 40px; }
.tarif-liste { grid-column: 5 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-content: start; }
.tarif-groupe h3 { font-size: 22px; }
.tarif-groupe ul { margin-top: 26px; display: grid; gap: 22px; }
.tarif-groupe li p { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 18px; }
.tarif-groupe li b { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tarif-groupe li:first-child b { color: var(--marine); }
.tarif-groupe small { display: block; margin-top: 4px; max-width: 36ch; font-size: 16px; color: var(--encre-douce); }

/* Questions : en texte suivi */
.questions-texte { grid-column: 5 / 13; columns: 2; column-gap: 56px; font-size: 16px; line-height: 1.6; }
.questions-texte p { break-inside: avoid; margin-bottom: 20px; }
.questions-texte b { font-weight: 700; }

/* Contact : un champ */
.contact { width: min(520px, calc(100% - 2 * var(--marge))); margin: 0 auto; padding: 200px 0 120px; }
.contact-invite { font-family: var(--f-titre); font-weight: 500; font-size: 28px; line-height: 1.25; letter-spacing: -0.01em; }
p.contact-invite { color: var(--encre-douce); margin-top: 2px; }
.contact-champ { position: relative; margin-top: 28px; }
.contact-champ input {
  display: block; width: 100%; height: 64px; padding: 0 64px 0 22px;
  border: 0; border-radius: var(--rayon); background: var(--fond-clair); font-size: 18px;
}
.contact-champ input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); } /* taste-skill-ignore */
.contact-champ button {
  position: absolute; right: 10px; top: 10px; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--marine);
  transition: transform 160ms var(--courbe), background-color 160ms;
}
.contact-champ button:hover { background: var(--orange-vif); transform: translateX(2px); }
.contact-champ button:active { transform: scale(.94); }
.contact-suite { margin-top: 16px; font-size: var(--t-petit); color: var(--encre-douce); }
.contact-lignes { margin-top: 72px; display: grid; gap: 14px; font-size: 16px; }
.contact-lignes div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; }
.contact-lignes dt { color: var(--encre-douce); }
.contact-lignes a { font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.contact-lignes a:hover { color: var(--bleu); }

/* Pied : une ligne */
.pied {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 24px;
  margin-top: 18vh; padding: 0 var(--marge) 30px; font-size: 14px; color: var(--encre-douce);
}
.pied p:last-child { text-align: right; }
.pied-liens { display: flex; gap: 24px; }
.pied a { color: var(--encre); text-underline-offset: 4px; }
.pied a:hover { color: var(--bleu); }

/* Mouvement : entrées des sections, mot-marque lié au défilement */
.js .apparait { opacity: 0; transform: translateY(24px); transition: opacity var(--duree) var(--courbe), transform var(--duree) var(--courbe); transition-delay: calc(var(--rang, 0) * 80ms); }
.js .apparait.vu { opacity: 1; transform: none; }
@supports (animation-timeline: scroll()) {
  .marque-mot { animation: marque-recul linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  @keyframes marque-recul { to { transform: scale(.93); } }
  .photo img { animation: photo-approche linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
  @keyframes photo-approche { from { transform: scale(1.08); } to { transform: scale(1); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .apparait { opacity: 1; transform: none; transition: none; }
  .marque-mot, .photo img { animation: none; }
  .bouton, .film-son, .film-chapitres button, .contact-champ button { transition: none; }
}

/* Tablette */
@media (max-width: 1100px) {
  .tarif-liste { grid-template-columns: 1fr; gap: 48px; }
  .questions-texte { columns: 1; }
}

/* Téléphone */
@media (max-width: 860px) {
  :root { --marge: 20px; }
  .barre { position: static; padding: 12px var(--marge); background: var(--marine); }
  .barre-liens { justify-content: space-between; flex-wrap: wrap; gap: 12px; }
  .barre-menu {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
    border: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--sur-sombre); font-weight: 500; cursor: pointer;
  }
  .barre-liens ul { display: none; order: 3; width: 100%; flex-direction: column; gap: 0; padding: 6px 0 4px; }
  .barre-liens ul.ouvert { display: flex; }
  .barre-liens ul a { display: block; padding: 10px 0; font-size: 16px; }

  .scene { display: block; }
  .scene-film { position: static; height: auto; padding: 8px var(--marge) 20px; gap: 10px; background: var(--marine); }
  .film video { border-radius: 8px; }
  .film-legende { margin-top: 8px; }
  .film-titre { display: none; }
  .film-son { min-height: 40px; font-size: 14px; }
  .film-chapitres { gap: 6px; }
  .film-chapitres button { min-height: 40px; padding: 0 12px; }

  .ouverture { min-height: 0; padding: 20px var(--marge) 72px; }
  .marque { align-items: flex-start; order: -1; gap: 6px; margin: 0; }
  .marque-mot { font-size: 21vw; }
  .marque-logo { width: 60vw; order: 0; }
  .ouverture-texte { width: auto; margin: 28px 0 0; flex: none; }

  .chapitre { min-height: 0; padding: 72px var(--marge) 64px; gap: 20px; }
  .documents div { grid-template-columns: 1fr; gap: 4px; }
  .graphe-bloc { padding: 18px 14px 16px; }
  .graphe-chiffre b { font-size: 32px; }

  .essai { display: flex; flex-direction: column; min-height: 0; }
  .essai-titre { order: 2; display: block; font-size: 11vw; }
  .essai-titre span { display: block; padding: 0 var(--marge); }
  .essai-titre-a { background: var(--marine-profond); padding-bottom: 32px !important; }
  .essai-titre-b { background: var(--fond-clair); padding-top: 32px !important; }
  .essai-entree { order: 1; padding: 64px var(--marge) 40px; align-items: stretch; }
  .essai-entree > * { width: 100%; }
  .essai-entree textarea { font-size: 18px; min-height: 230px; }
  .essai-sortie { order: 4; padding: 8px var(--marge) 72px; }
  .fiche { margin-top: 20px; }

  .tarif, .questions { display: block; padding: 120px var(--marge) 0; }
  .tarif h2, .questions h2 { font-size: var(--t-titre); }
  .photo-portrait { width: 60%; margin-top: 28px; }
  .tarif-liste { margin-top: 48px; }
  .tarif-groupe h3 { font-size: 22px; }
  .tarif-groupe li p { font-size: 18px; }
  .questions-texte { margin-top: 32px; font-size: 16px; }
  .questions-texte p { margin-bottom: 18px; }

  .contact { padding: 120px 0 80px; }
  .contact-invite { font-size: 22px; }
  .ouverture .actions { margin-top: 28px; }
  .contact-champ input { height: 60px; }
  .contact-champ button { top: 8px; }
  .contact-lignes div { grid-template-columns: 1fr; gap: 2px; }
  .contact-lignes { gap: 20px; }

  .pied { display: block; margin-top: 12vh; padding-bottom: 24px; font-size: 14px; }
  .pied p { margin-top: 8px; }
  .pied p:last-child { text-align: left; }
  .pied-liens { flex-wrap: wrap; gap: 8px 20px; }
}
