/* Page d'accueil — toutes les classes commencent par « index- ». */

.index-page {
  --index-ease: var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
  --index-navy: var(--navy, #0f2a44);
  --index-sea: var(--sea, #1d5c8c);
  --index-sand: var(--sand, #f6f1e7);
  --index-line: var(--line, #dfe3e8);
  --index-muted: var(--muted, #5f6b76);
}

/* ---------- Titres de section ---------- */
.index-head { max-width: 40rem; margin: 0 auto 2.5rem; text-align: center; }
.index-head--left { margin-inline: 0; text-align: left; margin-bottom: 1.75rem; }
.index-head h2 { text-wrap: balance; margin-block: 0.25rem 0.75rem; }
.index-head p { text-wrap: pretty; }
.index-center { display: flex; justify-content: center; margin-top: 2.5rem; }
.index-narrow { max-width: 46rem; }

/* ---------- Boutons : flèche, variantes sur fond sombre (on change les variables du bouton) ---------- */
.index-arrow { flex: none; transition: transform 200ms var(--index-ease); }
@media (hover: hover) and (pointer: fine) {
  .index-page .btn:hover .index-arrow { transform: translateX(3px); }
}
.index-page .btn.index-btn-light { --btn-bg: #fff; --btn-fg: var(--index-navy); --btn-bd: #fff; }
.index-page .btn.index-btn-light:hover:not(:disabled) { --btn-bg: var(--index-sand); --btn-fg: var(--index-navy); --btn-bd: var(--index-sand); color: var(--index-navy); }
.index-page .btn.index-btn-glass { --btn-bg: rgba(255, 255, 255, 0.08); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.45); box-shadow: none; }
.index-page .btn.index-btn-glass:hover:not(:disabled) { --btn-bg: rgba(255, 255, 255, 0.18); --btn-fg: #fff; --btn-bd: #fff; }

/* ---------- Héro ---------- */
.index-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(160deg, #0f2a44 0%, #123a5e 55%, #1d5c8c 100%);
  padding-block: clamp(3rem, 8vw, 6rem) clamp(7rem, 12vw, 9rem);
}
.index-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.index-hero__bg::before,
.index-hero__bg::after {
  content: "";
  position: absolute;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: index-drift 22s ease-in-out infinite alternate;
}
.index-hero__bg::before { top: -30vmax; right: -15vmax; background: radial-gradient(circle, rgba(94, 170, 214, 0.55), transparent 65%); }
.index-hero__bg::after { bottom: -35vmax; left: -20vmax; background: radial-gradient(circle, rgba(214, 190, 140, 0.28), transparent 65%); animation-duration: 28s; animation-direction: alternate-reverse; }
@keyframes index-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-6vmax, 4vmax, 0); } }

.index-hero__inner { display: grid; gap: 1.75rem; align-items: center; }
.index-hero h1 { color: #fff; font-size: clamp(2rem, 5.2vw, 3.25rem); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; margin-block: 0.5rem 1rem; }
.index-hero__eyebrow { color: rgba(255, 255, 255, 0.78); }
.index-hero__lead { color: rgba(255, 255, 255, 0.88); max-width: 34rem; text-wrap: pretty; }
.index-hero__cta { gap: 0.75rem; margin-top: 1.75rem; }
.index-hero__cta .btn { min-height: 48px; }
.index-hero__note { color: rgba(255, 255, 255, 0.72); margin-top: 1rem; font-size: 0.9rem; }

/* Points forts sous le titre */
.index-hero__more { min-width: 0; }
.index-hero__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.index-hero__points li { display: flex; align-items: flex-start; gap: 0.75rem; color: rgba(255, 255, 255, 0.92); line-height: 1.35; }
.index-hero__points .index-check { background: rgba(255, 255, 255, 0.18); color: #fff; }
.index-hero__cta .btn { font-size: 0.9375rem; }

/* Fiche d'enregistrement du bateau (carte blanche sur le fond marine) */
.index-intake {
  color: var(--ink, #1f2933);
  background: #fff;
  border-radius: 24px;
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 2px 4px rgba(4, 18, 32, 0.12), 0 28px 56px -24px rgba(4, 18, 32, 0.55);
  display: flex; flex-direction: column; gap: 1rem;
  min-width: 0;
}
.index-intake__title { margin: 0; font-size: 1.25rem; color: var(--index-navy); }
.index-intake__sep { display: flex; align-items: center; gap: 0.75rem; margin: 0; color: var(--index-muted); font-size: 0.875rem; }
.index-intake__sep::before, .index-intake__sep::after { content: ""; flex: 1; height: 1px; background: var(--index-line); }
.index-intake__form { display: flex; flex-direction: column; gap: 1rem; }
.index-intake__form .form-grid { gap: 0.875rem; }
.index-intake__form .wz__chips { margin-block: 0.375rem 0; }
.index-intake__form .field__error { margin: 0; }
.index-intake__submit { min-height: 52px; }
@media (min-width: 520px) { .index-intake__form .form-grid { grid-template-columns: 1fr 1fr; } }

/* Résultat : fiche du bateau, prochain entretien, plan */
.index-result { scroll-margin-top: 4.5rem; }
.index-hero { scroll-margin-top: 4.5rem; }
.index-result__head { margin-bottom: 1.5rem; }
.index-result__head h2 { margin-block: 0.25rem 0.5rem; text-wrap: balance; }
.index-result__head .lead { margin: 0; font-variant-numeric: tabular-nums; }
.index-result__resumed { margin: 0.75rem 0 0; font-size: 0.9375rem; color: var(--index-muted); }
.index-result__grid { display: grid; gap: 1.25rem; align-items: start; }
.index-result__main { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.index-result__side { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.25rem; }
.index-result__actions { display: flex; flex-direction: column; gap: 0.5rem; }
.index-result__actions .btn { min-height: 48px; justify-content: center; }
.index-result__save .icon { width: 1.125rem; height: 1.125rem; }
.index-result__note { margin: 0; font-size: 0.875rem; color: var(--index-muted); text-wrap: pretty; }
@media (min-width: 900px) {
  .index-result__grid { grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 1fr); gap: 2rem; }
  .index-result__side { position: sticky; top: 5.5rem; }
}
.index-sheet { margin: 0; display: grid; gap: 1rem; }
.index-sheet dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--index-sea); margin-bottom: 0.35rem; }
.index-sheet dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.index-sheet dd strong { color: var(--index-navy); }
.index-sheet__sub { flex-basis: 100%; font-size: 0.9375rem; color: var(--index-muted); font-variant-numeric: tabular-nums; }
.index-sheet__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.index-sheet__chips li { padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--index-sand); font-size: 0.875rem; }
.index-plan { background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px rgba(15, 42, 68, 0.08); }
.index-plan summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; min-height: 44px; color: var(--index-navy); border-radius: 14px; }
.index-plan summary::-webkit-details-marker { display: none; }
.index-plan summary:focus-visible { outline: 2px solid var(--index-sea); outline-offset: 2px; }
.index-plan[open] .index-faq__chevron { transform: rotate(-135deg) translate(-2px, -2px); }
.index-plan__list { list-style: none; margin: 0; padding: 0 1.25rem 0.5rem; }
.index-plan__list li { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem; align-items: center; padding-block: 0.7rem; border-top: 1px solid var(--index-line); }
.index-plan__title { font-weight: 600; font-size: 0.9375rem; color: var(--ink, #1f2933); }
.index-plan__last { grid-column: 1; font-size: 0.8125rem; color: var(--index-muted); font-variant-numeric: tabular-nums; }
.index-plan__list .badge, .index-plan__cost { grid-column: 2; grid-row: 1 / span 2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.index-plan__cost { font-size: 0.9375rem; color: var(--index-navy); font-weight: 600; }
.index-steps--3 { max-width: 62rem; margin-inline: auto; }

.index-check { background: rgba(255, 255, 255, 0.18); color: #fff; }

.index-check { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(29, 92, 140, 0.12); color: var(--index-sea); margin-top: 1px; }

.index-waves { position: absolute; max-width: none; left: -10%; bottom: -1px; width: 120%; height: clamp(60px, 9vw, 110px); z-index: -1; }
.index-wave { transition: none; }
.index-wave--1 { fill: rgba(255, 255, 255, 0.22); animation: index-wave 12s ease-in-out infinite alternate; }
.index-wave--2 { fill: var(--bg, #fbfaf7); animation: index-wave 16s ease-in-out infinite alternate-reverse; }
@keyframes index-wave { from { transform: translateX(-1.5%); } to { transform: translateX(1.5%); } }

@media (min-width: 900px) {
  .index-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); grid-template-areas: "copy card" "more card"; grid-template-rows: auto 1fr; gap: 0 3.5rem; align-items: start; }
  .index-hero__copy { grid-area: copy; padding-top: 1.5rem; }
  .index-hero__more { grid-area: more; }
  .index-intake { grid-area: card; }
  .index-steps--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Double choix ---------- */
.index-choice { gap: 1.25rem; }
.index-choice__card { display: flex; flex-direction: column; gap: 0.75rem; padding: clamp(1.25rem, 3vw, 2rem); position: relative; overflow: hidden; }
.index-choice__card h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 0; }
.index-choice__card > p { color: var(--index-muted); margin: 0; }
.index-choice__card--owner { background: linear-gradient(180deg, #fff 0%, #f3f8fc 100%); }
.index-choice__card--pro { background: linear-gradient(180deg, #fff 0%, var(--index-sand) 100%); }
.index-choice__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--index-navy); color: #fff; margin-top: 0.25rem; transition: transform 240ms var(--index-ease); }
.index-choice__icon .index-icon { width: 26px; height: 26px; }
.index-ticks { list-style: none; margin: 0.25rem 0 0.5rem; padding: 0; display: grid; gap: 0.5rem; }
.index-ticks li { display: flex; gap: 0.6rem; align-items: flex-start; }
.index-choice__actions { margin-top: auto; padding-top: 0.75rem; gap: 0.5rem; }
.index-choice__actions .btn { min-height: 44px; }
@media (hover: hover) and (pointer: fine) {
  .index-choice__card:hover .index-choice__icon { transform: translateY(-2px) rotate(-4deg); }
}

/* ---------- Étapes ---------- */
.index-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: none; }
.index-step { position: relative; background: #fff; border-radius: 16px; padding: 1.25rem 1.25rem 1.25rem 4.25rem; box-shadow: 0 0 0 1px rgba(15, 42, 68, 0.06), 0 1px 2px rgba(15, 42, 68, 0.06), 0 6px 16px -8px rgba(15, 42, 68, 0.12); }
.index-step h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.index-step p { margin: 0; color: var(--index-muted); text-wrap: pretty; }
.index-step__num { position: absolute; left: 1.1rem; top: 1.15rem; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--index-sea); color: #fff; display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .index-steps { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
  .index-step { padding: 4.25rem 1.25rem 1.5rem; }
  .index-step__num { left: 1.25rem; top: 1.25rem; width: 2.5rem; height: 2.5rem; }
  .index-step:not(:last-child)::after { content: ""; position: absolute; top: 2.5rem; left: calc(1.25rem + 2.5rem + 0.6rem); right: -1.25rem; height: 2px; background: repeating-linear-gradient(90deg, rgba(29, 92, 140, 0.35) 0 6px, transparent 6px 12px); }
}

/* ---------- Métiers ---------- */
.index-trades { list-style: none; margin: 0; padding: 0; }
.index-trade { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; border-left: 3px solid var(--index-sea); transition: transform 200ms var(--index-ease), box-shadow 200ms ease; }
.index-trade h3 { margin: 0; font-size: 1.1rem; }
.index-trade p { margin: 0; color: var(--index-muted); text-wrap: pretty; }
@media (hover: hover) and (pointer: fine) {
  .index-trade:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(15, 42, 68, 0.06), 0 12px 24px -12px rgba(15, 42, 68, 0.25); }
}

/* ---------- Colonnes texte + visuel ---------- */
.index-split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .index-split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.index-features { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 1.25rem; }
.index-feature { display: flex; gap: 1rem; align-items: flex-start; }
.index-feature h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.index-feature p { margin: 0; color: var(--index-muted); text-wrap: pretty; }
.index-feature__icon { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(29, 92, 140, 0.1); color: var(--index-sea); }
.index-icon { width: 24px; height: 24px; }

/* ---------- Maquette du carnet ---------- */
.index-mock { padding: 1.25rem; max-width: 28rem; width: 100%; justify-self: center; transform: rotate(0.6deg); }
.index-mock__title { font-weight: 700; color: var(--index-navy); margin: 0 0 1rem; }
.index-mock__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.index-mock__list li { display: flex; gap: 0.75rem; align-items: center; padding: 0.75rem; border-radius: 12px; background: var(--index-sand); }
.index-mock__list div { display: grid; gap: 0.1rem; }
.index-mock__list span { font-size: 0.875rem; color: var(--index-muted); }
.index-mock__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--index-sea); }
.index-mock__dot--2 { background: #c9972b; }
.index-mock__dot--3 { background: #5f6b76; }
.index-mock__note { margin: 0.9rem 0 0; font-size: 0.8rem; color: var(--index-muted); text-align: right; }

/* ---------- Confiance ---------- */
.index-trusts { list-style: none; margin: 0; padding: 0; }
.index-trust { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.index-trust h3 { margin: 0.25rem 0 0; font-size: 1.05rem; }
.index-trust p { margin: 0; color: var(--index-muted); text-wrap: pretty; }
.index-ports { margin-top: 2.5rem; padding: 1.5rem; border-radius: 16px; background: var(--index-sand); text-align: center; }
.index-ports__title { display: flex; gap: 0.5rem; justify-content: center; align-items: center; color: var(--index-navy); }
.index-ports__title h3 { margin: 0; font-size: 1.15rem; }
.index-ports > p { margin: 0.35rem 0 1rem; color: var(--index-muted); }
.index-ports__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.index-ports__list li { padding: 0.35rem 0.8rem; border-radius: 999px; background: #fff; font-size: 0.875rem; box-shadow: 0 0 0 1px rgba(15, 42, 68, 0.08); }

/* ---------- Section pros (fond marine) ---------- */
.index-pros { position: relative; overflow: hidden; }
.index-pros .index-head h2, .index-pros h3 { color: #fff; }
.index-pros .eyebrow { color: rgba(255, 255, 255, 0.72); }
.index-pros .lead, .index-pros .index-feature p { color: rgba(255, 255, 255, 0.82); }
.index-pros .index-feature__icon { background: rgba(255, 255, 255, 0.12); color: #fff; }
.index-pros .index-features { margin-bottom: 0; }
.index-pros__note { margin: 1rem 0 0; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.index-pros .btn { min-height: 48px; }

/* ---------- FAQ ---------- */
.index-faq { display: grid; gap: 0.75rem; }
.index-faq__item { background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px rgba(15, 42, 68, 0.08); transition: box-shadow 200ms ease; }
.index-faq__item[open] { box-shadow: 0 0 0 1px rgba(29, 92, 140, 0.35), 0 8px 20px -12px rgba(15, 42, 68, 0.2); }
.index-faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; min-height: 44px; font-weight: 600; color: var(--index-navy); border-radius: 14px; }
.index-faq__item summary::-webkit-details-marker { display: none; }
.index-faq__item summary:focus-visible { outline: 2px solid var(--index-sea); outline-offset: 2px; }
.index-faq__chevron { flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform 200ms var(--index-ease); }
.index-faq__item[open] .index-faq__chevron { transform: rotate(-135deg) translate(-2px, -2px); }
.index-faq__item p { margin: 0; padding: 0 1.25rem 1.25rem; color: var(--index-muted); text-wrap: pretty; }

/* ---------- Appel final ---------- */
.index-final { background: linear-gradient(160deg, #0f2a44, #1d5c8c); color: #fff; padding-block: clamp(3rem, 8vw, 5rem); text-align: center; }
.index-final h2 { color: #fff; text-wrap: balance; max-width: 36rem; margin: 0 auto 0.75rem; }
.index-final .lead { color: rgba(255, 255, 255, 0.85); margin: 0 auto; max-width: 32rem; }
.index-final__cta { justify-content: center; gap: 0.75rem; margin-top: 1.75rem; }
.index-final__cta .btn { min-height: 48px; }

/* ---------- Mouvement réduit : on garde le contenu, on retire les déplacements ---------- */
@media (prefers-reduced-motion: reduce) {
  .index-hero__bg::before, .index-hero__bg::after, .index-wave { animation: none; }
  .index-arrow, .index-choice__icon, .index-trade, .index-faq__chevron { transition: none; }
}

/* Fiche courte : précisions facultatives repliées */
.index-intake__more { border-top: 1px solid var(--index-line); }
.index-intake__more summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 48px; font-size: 0.9375rem; font-weight: 600; color: var(--index-sea); }
.index-intake__more summary::-webkit-details-marker { display: none; }
.index-intake__more summary:focus-visible { outline: 2px solid var(--index-sea); outline-offset: 2px; border-radius: 6px; }
.index-intake__more[open] .index-faq__chevron { transform: rotate(-135deg) translate(-2px, -2px); }
.index-intake__more .form-grid { margin-bottom: 0.875rem; }
