/* Accueil — complète style.css */

.enveloppe {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.accueil h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
  margin: 0 0 28px;
}

.accueil h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--nuit);
  margin: 0 0 8px;
}

/* --- Hero --- */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 56px;
  padding-top: 64px;
  padding-bottom: 88px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  max-width: 12ch;
}

.hero .accroche {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--gris);
  max-width: 44ch;
  margin: 0 0 40px;
}

/* La ligne de route : l'élément signature de la page.
   Pointillés façon marquage au sol, un arrêt par ville. */
.ligne-route {
  position: relative;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  max-width: 480px;
}

.ligne-route::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 7px;
  right: 7px;
  border-top: 3px dashed var(--nuit);
  opacity: 0.35;
}

.ligne-route li {
  position: relative;
  padding-top: 24px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--nuit);
  text-align: center;
  width: 0;
  white-space: nowrap;
  display: flex;
  justify-content: center;
}

.ligne-route li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 15px;
  height: 15px;
  margin-left: -7.5px;
  border-radius: 50%;
  background: var(--papier);
  border: 3px solid var(--azur);
}

.ligne-route li:first-child,
.ligne-route li:last-child {
  font-weight: 600;
}

.ligne-route li:first-child::before,
.ligne-route li:last-child::before {
  background: var(--nuit);
  border-color: var(--nuit);
}

.ligne-route li:first-child {
  justify-content: flex-start;
}

.ligne-route li:first-child::before {
  left: 0;
  margin-left: 0;
}

.ligne-route li:last-child {
  justify-content: flex-end;
}

.ligne-route li:last-child::before {
  left: auto;
  right: 0;
  margin-left: 0;
}

.note-route {
  font-size: 0.9rem;
  color: var(--gris);
  margin: 0;
  max-width: 48ch;
}

.note-route a,
.lien-fleche {
  color: var(--azur);
  font-weight: 500;
}

/* Widget de réservation */
.widget-reservation {
  background: var(--creme);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 22px;
}

.widget-titre {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.35rem;
  color: var(--nuit);
  margin: 0 0 14px;
}

.carte-accueil {
  width: 100%;
  height: 200px;
  background: var(--sable-fonce);
  border: 1px solid var(--ligne);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  color: var(--gris);
  display: flex;
  align-items: center;
  justify-content: center;
}

.widget-reservation .info-trajet-discret {
  margin: -4px 0 14px;
  min-height: 1.3em;
}

/* --- Bandes de couleur --- */

.bande {
  background: var(--sable-fonce);
  padding: 72px 0;
}

/* Comment ça marche : une vraie séquence, donc numérotée */
.liste-etapes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  list-style: none;
  counter-reset: etape;
  padding: 0;
  margin: 0;
}

.etape {
  counter-increment: etape;
  position: relative;
  padding-top: 56px;
}

.etape::before {
  content: counter(etape);
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--nuit);
  color: #fff;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.etape p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gris);
  margin: 0;
  max-width: 34ch;
}

/* --- Trajets --- */

.occasions {
  padding-top: 80px;
  padding-bottom: 80px;
}

.grille-occasions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.occasion {
  padding: 22px 0 0;
  border-top: 2px solid var(--nuit);
}

.occasion p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gris);
  margin: 0 0 10px;
}

/* La carte Espagne occupe toute la largeur : c'est l'offre différenciante */
.occasion-espagne {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.6fr auto;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
  padding: 26px 28px;
  background: var(--nuit);
  border: none;
  border-radius: var(--rayon);
}

.occasion-espagne h3 {
  color: #fff;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0;
}

.occasion-espagne p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.occasion-espagne .lien-fleche {
  background: #fff;
  color: var(--nuit);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 100px;
  white-space: nowrap;
}

.occasion-espagne .lien-fleche:hover {
  background: var(--papier);
}

/* --- Typographie de l'accueil : un cran plus grande (rem = 17px) --- */

html {
  font-size: 106.25%;
}

body.accueil {
  font-size: 17px;
}

/* --- En-tête fixe --- */

html {
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.accueil .entete {
  position: sticky;
  top: 0;
  z-index: 1000; /* au-dessus du voile du menu mobile (999) */
  max-width: none;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(24px, calc((100% - 1080px) / 2 + 24px)) 14px;
  background: var(--papier);
  border-bottom: 1px solid var(--ligne);
  transition: padding 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.accueil .entete.defile {
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
  padding-bottom: 8px;
  border-bottom-color: var(--ligne-forte);
  box-shadow: 0 6px 20px rgba(11, 27, 122, 0.07);
}

.accueil .entete .logo img {
  transition: height 0.25s ease;
}

.accueil .entete.defile .logo img {
  height: 46px;
}

.accueil .entete nav a.actif:not(.bouton-reservation) {
  color: var(--nuit);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* --- Révélation au défilement (désactivée si mouvement réduit) --- */

.revele-actif .revele {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.revele-actif .revele.au-dessus {
  transform: translateY(-18px);
}

.revele-actif .revele.visible {
  opacity: 1;
  transform: none;
}

/* --- Horaires : la semaine en colonnes --- */

.section-tete {
  margin-bottom: 28px;
}

.accroche-petite {
  color: var(--gris);
  margin: -12px 0 0;
  max-width: 46ch;
}

.statut-jour {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--vert-fond);
  color: var(--vert);
  font-size: 0.92rem;
  font-weight: 500;
}

.statut-jour.ferme {
  background: var(--rouge-fond);
  color: var(--rouge);
}

.semaine {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--creme);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  overflow: hidden;
}

.semaine li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 8px 22px;
  border-left: 1px solid var(--ligne);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.semaine li:first-child {
  border-left: none;
}

.semaine .semaine-attente {
  grid-column: 1 / -1;
  color: var(--gris);
}

.semaine-jour {
  font-weight: 600;
  color: var(--nuit);
}

.jour-court {
  display: none;
}

.semaine-heures {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--encre);
}

.semaine-heures time + time::before {
  content: "";
  display: block;
  width: 14px;
  height: 1px;
  margin: 4px auto 6px;
  background: currentColor;
  opacity: 0.35;
}

.semaine li.ferme .semaine-heures {
  color: var(--gris-clair);
}

.semaine li.aujourdhui {
  background: var(--nuit);
}

.semaine li.aujourdhui .semaine-jour,
.semaine li.aujourdhui .semaine-heures {
  color: #fff;
}



/* --- Véhicule : visuel + caractéristiques --- */

.vehicule {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.vehicule-visuel {
  margin: 0;
  background: #fff; /* fond blanc de la photo */
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  padding: 28px 24px;
}

.vehicule-visuel img {
  display: block;
  width: 100%;
  height: auto;
}

.vehicule-texte h2 {
  margin-bottom: 6px;
}

.vehicule-modele {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.3rem;
  color: var(--nuit);
  margin: 0 0 14px;
}

.vehicule-description {
  color: var(--gris);
  margin: 0 0 28px;
  max-width: 40ch;
}

.vehicule-carac {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-top: 1px solid var(--ligne-forte);
}

.vehicule-carac > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--ligne);
}

.vehicule-carac > div:nth-child(odd) {
  padding-right: 16px;
}

.vehicule-carac dt {
  font-size: 0.86rem;
  color: var(--gris);
  margin-bottom: 4px;
}

.vehicule-carac dd {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--nuit);
}

/* --- Pied de page --- */

.pied {
  background: var(--papier);
  border-top: 1px solid var(--ligne-forte);
  padding: 56px 0 32px;
}

.pied-grille {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}

.pied h2 {
  font-size: 1.15rem !important;
  margin: 0 0 12px !important;
}

.pied p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--gris);
  margin: 0 0 6px;
}

.pied a {
  color: var(--nuit);
}

.pied-logo {
  height: 48px;
  width: auto;
  margin-bottom: 12px;
}

.pied .copyright {
  margin: 40px max(24px, calc((100% - 1032px) / 2)) 0;
  max-width: none;
  padding: 20px 0 0;
  border-top: 1px solid var(--ligne);
  font-size: 0.8rem !important;
}

/* --- Menu mobile (tiroir) --- */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--nuit);
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle.actif span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.actif span:nth-child(2) { opacity: 0; }
.menu-toggle.actif span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(7, 18, 90, 0.45);
  z-index: 999;
}

.nav-overlay.actif {
  display: block;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 36px;
    padding-bottom: 56px;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .liste-etapes,
  .grille-occasions,
  .disponibilite-grille,
  .pied-grille {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .occasion-espagne {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 8px;
  }

  .occasion-espagne .lien-fleche {
    justify-self: start;
  }

  .accroche-petite {
    margin: -16px 0 0;
  }

  .bande,
  .occasions {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .menu-toggle {
    display: flex;
  }

  .accueil .entete nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 80%;
    max-width: 300px;
    background: var(--creme);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 84px 22px 22px;
    box-shadow: 2px 0 24px rgba(7, 18, 90, 0.2);
    transform: translateX(-100%);
    transition: transform 0.28s ease, visibility 0.28s;
    z-index: 1000;
    overflow-y: auto;
    visibility: hidden;
  }

  .accueil .entete nav.ouvert {
    transform: translateX(0);
    visibility: visible;
  }

  .accueil .entete nav a {
    font-size: 1.05rem;
    padding: 15px 4px;
    border-bottom: 1px solid var(--ligne);
  }

  .accueil .entete nav a.bouton-reservation {
    text-align: center;
    margin-top: 18px;
    border-bottom: none;
    padding: 15px;
  }
}

@media (max-width: 900px) {
  .vehicule {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .accueil .entete.defile .logo img {
    height: 38px;
  }
}

/* Tablettes : jours abrégés pour tenir sur 7 colonnes */
@media (min-width: 641px) and (max-width: 900px) {
  .jour-long { display: none; }
  .jour-court { display: inline; }
}

/* Petits écrans : la semaine repasse en liste, jour à gauche, heures à droite */
@media (max-width: 640px) {
  .semaine {
    grid-template-columns: 1fr;
  }

  .semaine li {
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 18px;
    border-left: none;
    border-top: 1px solid var(--ligne);
  }

  .semaine li:first-child {
    border-top: none;
  }

  .semaine-heures {
    flex-direction: row;
    gap: 6px;
  }

  .semaine-heures time + time::before {
    content: "–";
    display: inline;
    width: auto;
    height: auto;
    margin: 0 6px 0 0;
    background: none;
    opacity: 0.6;
  }
}

@media (max-width: 480px) {
  .ligne-route li {
    font-size: 0.72rem;
  }

  .ligne-route li:nth-child(2),
  .ligne-route li:nth-child(4) {
    color: transparent;
  }
}

/* --- Avis clients --- */

.avis-tete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.avis-tete h2 {
  margin-bottom: 8px;
}

.avis-resume {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gris);
}

.avis-resume strong {
  color: var(--nuit);
  font-size: 1.1rem;
}

/* Étoiles partielles : fond gris, couche dorée à la largeur de la moyenne */
.etoiles {
  position: relative;
  display: inline-block;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--ligne-forte);
}

.etoiles::before {
  content: "★★★★★";
}

.etoiles-pleines {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #E0A526;
}

.etoiles-pleines::before {
  content: "★★★★★";
}

.avis-vide {
  margin: 0;
  padding: 28px;
  text-align: center;
  color: var(--gris);
  background: var(--creme);
  border: 1px dashed var(--ligne-forte);
  border-radius: var(--rayon);
}

.avis-liste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.avis-carte {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--creme);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
}

.avis-carte-etoiles {
  margin: 0;
  color: #E0A526;
  letter-spacing: 2px;
}

.avis-carte blockquote {
  margin: 0;
  color: var(--encre);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.avis-carte-pied {
  margin: auto 0 0;
  font-size: 0.86rem;
  color: var(--gris);
}

.avis-mention {
  margin: 22px 0 0;
  font-size: 0.8rem;
  color: var(--gris);
  max-width: 70ch;
}

.bouton-avis {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 100px;
  background: var(--nuit);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}

.bouton-avis:hover {
  background: var(--azur);
  color: #fff;
}
