/* ==========================================================================
   La Voile Française — page d'attente
   Charte : Alexandria (titres, texte) + Lora Italic (accroches)
   ========================================================================== */

/* Polices hébergées en local (sous-ensemble latin, variables 400–700) */
@font-face {
  font-family: "Alexandria";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/alexandria-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/lora-italic-latin.woff2") format("woff2");
}

:root {
  /* Couleurs de la charte */
  --orange: #ab5f2e;        /* voile du logo — RVB exact */
  --anthracite: #28292b;    /* lettrage du logo — RVB exact */
  --sable: #eee9e4;         /* fond beige du flyer (CMJN 6/7/9/0) */
  --taupe: #c4bab0;         /* filets (CMJN 25/26/31/6) */
  --blanc: #ffffff;
  /* Orange assombri pour petits textes sur fond sable (contraste AA 4,8:1) */
  --orange-texte: #9a5227;

  --sans: "Alexandria", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;

  --gutter: 1.25rem;
  --measure: 40rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sable);
  color: var(--anthracite);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2 { text-wrap: balance; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: .75rem 1rem;
  background: var(--anthracite);
  color: var(--blanc);
  text-decoration: none;
}
.skip-link:focus { top: .75rem; }

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Petites capitales très espacées, comme « UN PROJET ? » sur le flyer */
.caps {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
}

/* Filet orange court, signature du logo et du flyer */
.rule {
  display: block;
  width: 2.5rem;
  height: 3px;
  margin: 0 auto;
  background: var(--orange);
  border: 0;
}

/* --- Bandeau haut ------------------------------------------------------ */
.ribbon {
  margin: 0;
  padding: .7rem var(--gutter);
  background: var(--orange);
  color: var(--blanc);
  font-size: .75rem;
  line-height: 1.4;
  letter-spacing: .12em;   /* tient sur une ligne dès 360 px */
  text-align: center;
}

/* --- En-tête : logo en haut à gauche ----------------------------------- */
.topbar {
  padding-block: .6rem;
  border-bottom: 1px solid rgba(196, 186, 176, .6);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.topbar__brand { text-align: center; }
.topbar__logo { width: clamp(6.5rem, 28vw, 10.5rem); }
.topbar__baseline {
  margin: .35rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(.72rem, 2.6vw, .9rem);
  letter-spacing: .04em;
  white-space: nowrap;
}
.topbar__phone {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .5rem .9rem;
  border-radius: 4px;
  background: var(--orange);
  color: var(--blanc);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .03em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease;
}
.topbar__phone:hover { background: #95501f; }

/* --- Hero + réassurance (au-dessus de la ligne de flottaison) ---------- */
.hero {
  padding: 1.1rem var(--gutter) 3rem;
  text-align: center;
}


.hero__eyebrow {
  max-width: 34rem;
  margin: 0 auto 1rem;
  color: var(--orange-texte);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1rem, 4.2vw, 1.25rem);
  line-height: 1.4;
  text-wrap: balance;
}

/* Couture en pointillés qui avance : le site « se confectionne » */
.hero__stitch {
  display: block;
  width: 7rem;
  height: 2px;
  margin: .6rem auto 0;
  background: repeating-linear-gradient(90deg, var(--orange) 0 8px, transparent 8px 14px);
  background-size: 14px 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__stitch { animation: stitch 1.1s linear infinite; }

  @keyframes stitch {
    from { background-position: 0 0; }
    to   { background-position: 14px 0; }
  }
}

.hero__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.45rem, 6.2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hero__subtitle {
  margin: .15em 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 6.8vw, 2.65rem);   /* 1,1 × le h1 */
  line-height: 1.15;
}

/* Réassurance — mobile : liste compacte icône + texte */
.points {
  display: grid;
  gap: 0;
  max-width: 72rem;
  margin: 1rem auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.points li {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .45rem 0;
  font-size: .85rem;
  line-height: 1.35;
}
.points li + li { border-top: 1px solid rgba(196, 186, 176, .6); }
.points p { margin: 0; }
.points__title {
  display: block;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.points__icon {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
}


/* --- Bande photos, bords en courbe de voile --------------------------- */
.photos {
  --slide-h: 15rem;
  position: relative;
  background: var(--anthracite);
}

/* Carrousel : la série de photos est dupliquée, la piste glisse de -50 %
   puis reboucle sans à-coup. */
.carousel { overflow: hidden; }
.carousel__track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}
.carousel__slide { flex: none; padding-right: 4px; }
.carousel__slide img {
  width: auto;
  height: var(--slide-h);
  object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
  .carousel__track { animation: carousel 50s linear infinite; }
  .carousel:hover .carousel__track,
  .photos.is-paused .carousel__track { animation-play-state: paused; }

  @keyframes carousel {
    to { transform: translateX(-50%); }
  }
}

/* Sans animation : défilement manuel au doigt ou à la molette */
@media (prefers-reduced-motion: reduce) {
  .carousel { overflow-x: auto; }
  .carousel__slide[aria-hidden="true"] { display: none; }
  .carousel__toggle { display: none; }
}

.carousel__toggle {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: clamp(2.25rem, 8vw, 5rem);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(40, 41, 43, .75);
  color: var(--blanc);
  cursor: pointer;
  transition: background-color .2s ease;
}
.carousel__toggle:hover { background: var(--anthracite); }
.carousel__icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.carousel__icon--play { fill: currentColor; stroke-width: 1.5; }
.carousel__icon--play,
.is-paused .carousel__icon--pause { display: none; }
.is-paused .carousel__icon--play { display: block; }

.curve {
  position: absolute;
  z-index: 1;
  left: 0;
  width: 100%;
  height: clamp(1.75rem, 7vw, 4.5rem);
  pointer-events: none;
}
.curve--top { top: -1px; fill: var(--sable); }
.curve--bottom { bottom: -1px; fill: var(--anthracite); }

/* --- Contact ----------------------------------------------------------- */
.contact {
  padding-block: 3rem 3.5rem;
  background: transparent;
  color: var(--blanc);
  text-align: center;
}

.contact .rule { margin-bottom: 1.5rem; }

.contact__title {
  margin: 0;
  color: var(--orange);
  font-size: 1.25rem;          /* texte large : contraste AA respecté */
  font-weight: 700;
  line-height: 1.3;
}
.contact__lead {
  margin: .5rem 0 0;
  color: var(--sable);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
}
.contact__free {
  margin: .75rem 0 0;
  color: var(--taupe);
  font-size: .75rem;
}

.contact__list {
  display: grid;
  gap: .9rem;
  max-width: 24rem;
  margin: 2rem auto 0;
  padding: 0;
  list-style: none;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-height: 3.5rem;
  padding: .85rem 1.1rem;
  border: 1px solid rgba(238, 233, 228, .35);
  border-radius: 4px;
  color: var(--blanc);
  font-size: clamp(.95rem, 4.4vw, 1.05rem);
  text-align: left;
  text-decoration: none;
  overflow-wrap: break-word;
  transition: background-color .2s ease, border-color .2s ease;
}
.contact__link:hover { border-color: var(--sable); background: rgba(238, 233, 228, .08); }

.contact__link--primary {
  background: var(--orange);
  border-color: var(--orange);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .04em;
}
.contact__link--primary:hover { background: #95501f; border-color: #95501f; }

.contact__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--orange);
}
.contact__link--primary .contact__icon { background: var(--blanc); }
.contact__icon svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--blanc);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact__link--primary .contact__icon svg { stroke: var(--orange); }

.contact__label {
  display: block;
  color: var(--taupe);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.contact__link--primary .contact__label { color: var(--blanc); }

/* --- Pied de page ------------------------------------------------------ */
.footer {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--anthracite);
}

/* Grand V du logo en filigrane, décalé vers la droite dans le pied de page */
.footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 82%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 34rem);
  aspect-ratio: 600 / 486;
  background: var(--blanc);
  opacity: .06;
  -webkit-mask: url("../img/v-logo.webp") center / contain no-repeat;
          mask: url("../img/v-logo.webp") center / contain no-repeat;
  pointer-events: none;
}

.footer__legal {
  padding-block: 1.5rem;
  border-top: 1px solid rgba(238, 233, 228, .15);
  color: var(--taupe);
  font-size: .8rem;
  text-align: center;
}
.footer__legal p { margin: .25rem 0; }
.footer__legal a { color: var(--sable); text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--blanc); }
.footer__credit { font-size: .8rem; }
.footer__credit a { display: inline-block; padding: .6rem .25rem; margin: -.35rem 0; }

/* --- Écrans plus larges ------------------------------------------------ */
@media (min-width: 40em) {
  :root { --gutter: 2rem; }
  .ribbon { font-size: .8rem; letter-spacing: .22em; }
  .hero { padding-block: 2.25rem 3.5rem; }
  .points { max-width: 34rem; }
  .photos { --slide-h: clamp(18rem, 30vw, 26rem); }
  .contact { padding-block: 4rem 4.5rem; }
  .contact__list { max-width: 30rem; }
}

/* 5 colonnes séparées par un filet, comme sur le flyer */
@media (min-width: 52em) {
  .topbar { padding-block: 1rem; }
  .topbar__logo { width: 11.5rem; }
  .topbar__phone { font-size: 1rem; padding-inline: 1.2rem; }
  .points { grid-template-columns: repeat(5, 1fr); max-width: 72rem; margin-top: 2.25rem; text-align: center; }
  .points li { flex-direction: column; gap: 0; padding: .25rem 1rem; font-size: .85rem; line-height: 1.45; }
  .points li + li { border-top: 0; border-left: 1px solid rgba(196, 186, 176, .6); }
  .points__icon { width: 3rem; height: 3rem; }
  .points p::before {
    content: "";
    display: block;
    width: 2rem;
    height: 3px;
    margin: .8rem auto .7rem;
    background: var(--orange);
  }
  .points__title { margin-bottom: .25rem; font-size: .85rem; }
}

@media (min-width: 64em) {
  .photos { --slide-h: 26rem; }
}

/* --- Apparition discrète au chargement -------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: reveal .9s cubic-bezier(.2, .7, .2, 1) both;
  }
  .reveal--2 { animation-delay: .15s; }
  .reveal--3 { animation-delay: .3s; }
  .reveal--4 { animation-delay: .45s; }

  @keyframes reveal {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
  }
}
