/* ==========================================================================
   Nömad mobilité collective — page transitoire
   Normes : Nomad-identite-visuelle-20260930_V3.pdf (Virage, oct. 2026)
   ========================================================================== */

@font-face { font-family: "Barlow Semi Condensed"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-sc-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-sc-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-sc-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-sc-700.woff2") format("woff2"); }

:root {
  /* Palette officielle */
  --mer: #6daac9;        /* Mer sereine — décoratif, grands titres sur foncé */
  --pistache: #afcb37;   /* Pistache */
  --encre: #313f48;      /* Tache d'encre */

  /* Dérivés (accessibilité / profondeur) */
  --encre-900: #232e35;
  --mer-texte: #2b6a8a;  /* bleu lisible sur blanc (AA) */
  --mer-50: #eaf3f8;
  --pistache-50: #f3f7e1;
  --papier: #f7f8f5;
  --blanc: #fff;
  --texte: var(--encre);
  --texte-doux: #55636c;

  --font: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --rayon: 18px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); /* 18–20px : clientèle aînée */
  line-height: 1.55;
  color: var(--texte);
  background: var(--blanc);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--mer-texte); text-underline-offset: .18em; }
a:hover { color: var(--encre); }
:focus-visible { outline: 3px solid var(--pistache); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5rem); }
h2 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); }
h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem); line-height: 1.15; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--mer-texte); margin-bottom: 1rem;
}
.lead { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); line-height: 1.45; color: var(--texte-doux); max-width: 38ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Le tréma : deux points */
.trema { display: inline-flex; gap: .28em; }
.trema i { width: .62em; height: .62em; border-radius: 50%; background: var(--mer); }
.trema i + i { background: var(--pistache); }

/* --------------------------------------------------------------------------
   Bandeau d'épreuve (à retirer à la mise en ligne)
   -------------------------------------------------------------------------- */
.epreuve {
  background: #fff4c2; color: #4a3b00; font-size: .95rem; text-align: center;
  padding: .55rem var(--gutter); border-bottom: 1px solid #e8d77a;
}
.a-confirmer {
  background: #fff4c2; color: inherit; padding: 0 .2em; border-radius: 3px;
  box-shadow: inset 0 -2px 0 #e0c341;
}
.a-confirmer, a .a-confirmer { color: var(--encre) !important; }
sup { font-size: .65em; line-height: 0; vertical-align: .55em; }

/* --------------------------------------------------------------------------
   Lien d'évitement + en-tête
   -------------------------------------------------------------------------- */
.skip { position: absolute; left: -999px; top: 0; background: var(--encre); color: #fff; padding: .7rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(49,63,72,.08);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.header__logo img { width: clamp(150px, 22vw, 210px); height: auto; }
.nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.75rem); }
.nav a { color: var(--encre); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.nav a:hover { color: var(--mer-texte); }
/* Mobile : logo + Réserver sur la 1re ligne, les 3 ancres en rangée dessous (sans JS) */
@media (max-width: 860px) {
  html { scroll-padding-top: 128px; }  /* en-tête plus haut : 72px + rangée de liens */
  .header .wrap {
    display: grid; grid-template-columns: repeat(3, 1fr);
    column-gap: 0; row-gap: 0; min-height: 0; padding-top: 10px;
  }
  .nav { display: contents; }
  .header__logo { grid-column: 1 / 3; grid-row: 1; align-self: center; padding-bottom: 10px; }
  .nav .btn { grid-column: 3; grid-row: 1; justify-self: end; align-self: center; margin-bottom: 10px; }
  .nav a:not(.btn) {
    grid-row: 2;
    display: flex; align-items: center; justify-content: center;
    min-height: 44px;                    /* cible tactile WCAG */
    font-size: .98rem; text-align: center;
    border-top: 1px solid rgba(49,63,72,.1);
  }
  .nav a:not(.btn) + a:not(.btn) { border-left: 1px solid rgba(49,63,72,.1); }
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .7em 1.4em; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1.1rem; line-height: 1.1; text-decoration: none;
  background: var(--encre); color: #fff; border: 2px solid var(--encre);
  transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--encre-900); color: #fff; transform: translateY(-1px); }
.btn--pistache { background: var(--pistache); border-color: var(--pistache); color: var(--encre); }
.btn--pistache:hover { background: #c1db4c; color: var(--encre); }
.btn--ligne { background: transparent; color: var(--encre); }
.btn--ligne:hover { background: var(--encre); color: #fff; }
.btn--petit { min-height: 44px; padding: .5em 1.1em; font-size: 1rem; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* --------------------------------------------------------------------------
   1. Présentation (hero)
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(40px, 6vw, 88px) 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero__texte { padding-bottom: clamp(40px, 7vw, 110px); }
.hero__logo { width: min(100%, 360px); height: auto; margin-bottom: clamp(28px, 4vw, 48px); }
.hero h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.3rem); }
.hero h1 em { font-style: normal; color: var(--mer-texte); }
.hero .lead { margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__date {
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1.25rem;
  background: var(--pistache-50); color: var(--encre); font-weight: 600;
  padding: .35em .9em .35em .7em; border-radius: 999px; font-size: 1rem;
}

/* La photo dans une arche : « fenêtres sur les paysages » */
.hero__figure { margin: 0; align-self: center; }
.hero__visuel { position: relative; aspect-ratio: 1 / 1.03; }
.hero__legende {
  margin: .75rem 0 1.25rem; font-size: .875rem; line-height: 1.45; color: var(--texte-doux);
}
.arche-photo {
  position: absolute; inset: 0;
  border-radius: 999px 999px 0 0; overflow: hidden; background: var(--mer-50);
}
.arche-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
/* Tréma « l'humain » (modèle du client) : à hauteur du visage, juste à côté de la tête du sujet
   (Denis Verreault, à droite), sur la fenêtre sombre de l'autobus. Couleurs pleines, sans ombre.
   Position = centre du tréma, en % de la photo ; taille en cqw : identique à toutes les résolutions. */
.hero__visuel { container-type: inline-size; }
.hero__trema {
  position: absolute; left: 81.5%; top: 39.2%; z-index: 2;
  transform: translate(-50%, -50%); gap: .38em;
  font-size: clamp(14px, 3vw, 32px); /* repli */
  font-size: 5.65cqw;                /* proportionnel à la largeur de la photo */
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__texte { padding-bottom: 0; }
  .hero__logo { width: min(70%, 260px); }
  .hero__figure { max-width: 520px; width: 100%; margin-inline: auto; }
  .hero__visuel { min-height: 0; aspect-ratio: 4 / 4.2; }
}

/* --------------------------------------------------------------------------
   2. Territoire
   -------------------------------------------------------------------------- */
.section--encre { background: var(--encre); color: #fff; overflow: hidden; }
.section--encre .eyebrow { color: var(--pistache); }
.section--encre .lead { color: #d5dde2; }
.section--encre a { color: #bfe0ef; }

.territoire__tete { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem 4rem; align-items: start; margin-bottom: clamp(40px, 5vw, 64px); }
.chiffres { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); flex-wrap: wrap; margin: 0; padding-top: 2.4rem; justify-content: flex-end; }
.inscription { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.14); }
.inscription__titre { font-weight: 600; color: #fff; margin-bottom: 1rem; }
/* Une rangée par service ; dans chaque rangée, 2 boutons de même largeur côte à côte
   (Trans-Appel à gauche, STC des Sources à droite). Sous ~500 px, les boutons s'empilent. */
.inscription__groupe + .inscription__groupe { margin-top: 1.25rem; }
.inscription__actions {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr));
}
.inscription .btn { padding-inline: 1em; font-size: 1rem; }
.inscription__service {
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--pistache); margin: 0 0 .6rem;
}
.section--encre .inscription a.btn--pistache { color: var(--encre); }
.btn--blanc { background: #fff; border-color: #fff; color: var(--encre); }
.section--encre a.btn--blanc { color: var(--encre); }
.btn--blanc:hover, .section--encre a.btn--blanc:hover { background: var(--mer-50); border-color: var(--mer-50); color: var(--encre); }
.chiffres div { display: flex; flex-direction: column; }
.chiffres dt { order: 2; color: #c9d3d9; font-size: 1.05rem; }
.chiffres dd { order: 1; margin: 0; font-weight: 700; font-size: clamp(3rem, 2.2rem + 3vw, 4.6rem); line-height: 1; color: var(--mer); }
.chiffres div:nth-child(2) dd { color: var(--pistache); }
.chiffres div:nth-child(3) dd { color: #fff; }

.mrc-grille { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 28px); position: relative; z-index: 1; }
.mrc {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--rayon); padding: clamp(24px, 3vw, 36px);
}
.mrc h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.mrc h3 small { font-size: 1rem; font-weight: 600; color: var(--pistache); }
.mrc ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.5rem; }
.mrc li { padding: .3rem 0 .3rem 1.1rem; position: relative; break-inside: avoid; color: #e7ecef; }
.mrc li::before { content: ""; position: absolute; left: 0; top: .82em; width: .45em; height: .45em; border-radius: 50%; background: var(--mer); }
.mrc li:nth-child(even)::before { background: var(--pistache); }
.mrc__note { margin: 1.25rem 0 0; font-size: 1rem; color: #b8c4cb; }
.territoire__deco { position: absolute; right: -40px; bottom: -6px; width: min(440px, 50vw); opacity: .16; pointer-events: none; }

@media (max-width: 860px) {
  .territoire__tete, .mrc-grille { grid-template-columns: 1fr; }
  .territoire__tete .chiffres { padding-top: 0; justify-content: flex-start; }
}
@media (max-width: 420px) { .mrc ul { columns: 1; } }

/* --------------------------------------------------------------------------
   3. Services
   -------------------------------------------------------------------------- */
.services__tete { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.services-grille { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.service {
  background: var(--papier); border-radius: var(--rayon); overflow: hidden; position: relative;
  display: flex; flex-direction: column;
}
.service__photo { aspect-ratio: 16 / 10; overflow: hidden; margin: clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px) 0; border-radius: 999px 999px 0 0; }
.service__photo img { width: 100%; height: 100%; object-fit: cover; }
/* Tréma « l'humain » (modèle du client) : à hauteur du visage de la passagère, juste derrière sa tête.
   Position = centre du tréma, en % de la photo ; taille en cqw. */
.service__photo { position: relative; container-type: inline-size; }
.service__trema {
  position: absolute; left: 65.2%; top: 39.4%; z-index: 1;
  transform: translate(-50%, -50%); gap: .38em;
  font-size: clamp(16px, 2.2vw, 30px); /* repli */
  font-size: 7cqw;
}
.service__corps { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; flex: 1; }
.service__corps .eyebrow { margin-bottom: .5rem; }
.service ul { padding-left: 1.1em; margin: 0 0 1.25rem; }
.service li { margin-bottom: .25rem; }
.service li::marker { color: var(--mer); }
/* Présentation */
.presentation .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.5rem clamp(32px, 6vw, 96px); align-items: start; }
.presentation h2 { margin: 0; }
.fusion { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 1.75rem; font-weight: 600; }
.fusion span { background: var(--papier); border-radius: 999px; padding: .4em 1em; }
.fusion b { font-size: 1.4rem; color: var(--mer-texte); }
.fusion strong { background: var(--encre); color: #fff; border-radius: 999px; padding: .4em 1.1em; }
@media (max-width: 860px) { .presentation .wrap { grid-template-columns: 1fr; } }
.service__note {
  margin-top: auto; font-size: 1rem; color: var(--texte-doux);
  border-top: 1px solid rgba(49,63,72,.12); padding-top: 1rem; margin-bottom: 0;
}
@media (max-width: 860px) { .services-grille { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   4. Inscription et réservation
   -------------------------------------------------------------------------- */
.section--pistache { background: var(--pistache-50); }
.reserver__tete { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.regle {
  display: flex; gap: .9rem; align-items: center;
  background: var(--blanc); border-radius: var(--rayon); padding: 1rem 1.25rem; max-width: 420px;
  font-size: 1.05rem; line-height: 1.35; box-shadow: 0 1px 0 rgba(49,63,72,.06);
}
.regle strong { display: block; font-size: 1.25rem; }
.regle svg { width: 40px; height: 40px; flex: none; color: var(--encre); }

.reserver-grille { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
.carte-res {
  position: relative; background: var(--blanc); border-radius: calc(var(--rayon) + 4px);
  padding: clamp(26px, 3.5vw, 44px); overflow: hidden;
  display: flex; flex-direction: column;
}
/* Aucune couleur n'est associée à une organisation (normes) : même traitement pour les deux */
.carte-res::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: linear-gradient(90deg, var(--mer) 0 50%, var(--pistache) 50%); }
.carte-res__qui { font-weight: 600; color: var(--texte-doux); margin-bottom: .35rem; }
.carte-res h3 { font-size: clamp(1.8rem, 1.5rem + 1vw, 2.3rem); margin-bottom: .2em; }
.carte-res__org { margin-bottom: 1.5rem; }
.tel {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem); line-height: 1.1;
  color: var(--encre); text-decoration: none; margin-bottom: .35rem; width: fit-content;
}
.tel:hover { color: var(--mer-texte); }
.tel svg { width: .8em; height: .8em; color: var(--mer-texte); }
.tel-sec { margin: 0 0 1.5rem; color: var(--texte-doux); font-size: 1.05rem; }
.tel-sec a { font-weight: 700; color: var(--encre); text-decoration: none; }
.carte-res__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: auto; }
.carte-res__deco { position: absolute; right: -18px; top: 18px; width: 110px; opacity: .14; pointer-events: none; }
/* Note commune aux deux régions : pleine largeur, centrée, pour ne pas l'associer à une seule carte */
.reserver__note {
  margin: clamp(20px, 2.5vw, 28px) 0 0; padding: 1rem 1.5rem;
  border: 2px dashed rgba(49,63,72,.18); border-radius: var(--rayon);
  font-size: 1.05rem; color: var(--texte-doux); text-align: center;
}
.reserver__note p { margin: 0; }
.reserver__note p + p { margin-top: .3rem; }
.reserver__note strong { color: var(--encre); }
@media (max-width: 860px) {
  .reserver__tete, .reserver-grille { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   5. Pour nous joindre  +  6. Renseignements personnels
   -------------------------------------------------------------------------- */
.joindre-grille { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.responsable {
  background: var(--encre); color: #fff; border-radius: var(--rayon);
  padding: clamp(26px, 3.5vw, 40px); position: relative; overflow: hidden;
}
.responsable .eyebrow { color: var(--pistache); }
.responsable__nom { font-size: 1.9rem; font-weight: 700; line-height: 1.1; margin: 0; }
.responsable__titre { color: #c9d3d9; margin-bottom: 1.5rem; }
.responsable a { color: #fff; font-weight: 700; }
.responsable dl { margin: 0; display: grid; gap: .6rem; }
.responsable dt { font-size: .95rem; color: #b8c4cb; }
.responsable dd { margin: 0 0 .4rem; font-size: 1.2rem; }

.bureaux { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; margin-top: 2rem; }
.bureau h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.bureau address { font-style: normal; color: var(--texte-doux); }
.bureau p { margin: .35rem 0 0; }
@media (max-width: 860px) { .joindre-grille { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .bureaux { grid-template-columns: 1fr; } }

.prp {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem 2rem; align-items: center;
  border: 2px solid var(--mer-50); border-radius: var(--rayon); padding: clamp(22px, 3vw, 34px);
  background: linear-gradient(90deg, var(--mer-50), #fff 60%);
}
.prp__icone { width: 56px; height: 56px; border-radius: 50%; background: var(--blanc); display: grid; place-items: center; color: var(--mer-texte); }
.prp__icone svg { width: 28px; height: 28px; }
.prp h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem); margin-bottom: .3rem; }
.prp p { margin: 0; }
.prp p + p { margin-top: .4rem; }
.prp__mini { font-size: 1rem; color: var(--texte-doux); }
@media (max-width: 860px) { .prp { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.footer { background: var(--encre-900); color: #c9d3d9; padding-block: clamp(48px, 6vw, 72px) 28px; position: relative; overflow: hidden; }
.footer a { color: #fff; }
.footer__haut { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__logo { width: 220px; height: auto; }
.footer__slogan { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem); font-weight: 700; color: #fff; margin: 0; line-height: 1.1; }
.footer__bas { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.25rem; font-size: .95rem; }
.footer__bas p { margin: 0; }
.footer__arches { position: absolute; right: 4%; bottom: -4px; width: 220px; opacity: .1; pointer-events: none; }

/* --------------------------------------------------------------------------
   Page politique
   -------------------------------------------------------------------------- */
.politique { max-width: 820px; }
.politique h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); }
.politique h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem); margin-top: 2.2em; }
.politique .maj { color: var(--texte-doux); }
.retour { display: flex; width: fit-content; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; margin-bottom: 2rem; }
.retour svg { width: 1em; height: 1em; }
.encadre-attente {
  border: 2px dashed #e0c341; background: #fffbe8; border-radius: var(--rayon); padding: 1.25rem 1.5rem; margin: 2rem 0;
}

/* Impression : utile pour l'approbation papier */
@media print {
  .header, .epreuve, .hero__actions, .skip { display: none; }
  .section--encre, .responsable, .footer { background: #fff !important; color: #000 !important; }
  .section { padding-block: 24px; }
}
