/* Page d'accueil publique GTMLS : univers du transport (bleu nuit, orange signalisation). */
:root {
  --nuit: #0f1f33;
  --nuit-2: #16304d;
  --signal: #f28c18;
  --signal-fonce: #c96f0a;
  --clair: #f4f6f8;
  --gouttiere: clamp(1rem, 4vw, 3.5rem);
}

.page-accueil { background: #fff; color: var(--texte); }
.page-accueil a { color: inherit; }

/* Bandeau */
.vitrine-barre {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 2rem;
  padding: 1.1rem clamp(1rem, 4vw, 3.5rem); color: #fff;
}
.vitrine-marque { display: inline-flex; color: #fff; text-decoration: none; }
.logo-gtmls { height: 38px; width: auto; color: currentColor; }
.logo-gtmls.petit { height: 30px; }
.vitrine-barre nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.4rem; font-weight: 500; }
.vitrine-barre nav a { text-decoration: none; opacity: .88; }
.vitrine-barre nav a:hover { opacity: 1; }

.bouton-signal {
  display: inline-block; padding: .55rem 1.1rem; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--signal); color: var(--nuit) !important; font: inherit; font-weight: 700; text-decoration: none;
  opacity: 1 !important;
}
.bouton-signal:hover { background: #ffa236; }
.bouton-signal.grand { padding: .85rem 1.5rem; font-size: 1.05rem; }
.bouton-signal.plein { width: 100%; padding: .75rem; margin-top: .4rem; font-size: 1rem; }
.bouton-contour {
  display: inline-block; padding: .85rem 1.4rem; border: 2px solid rgba(255,255,255,.45); border-radius: 6px;
  color: #fff; font-weight: 600; text-decoration: none;
}
.bouton-contour:hover { border-color: #fff; }

/* En-tête de page */
.heros {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(242,140,24,.18), transparent 60%),
    linear-gradient(160deg, var(--nuit) 0%, var(--nuit-2) 70%, #1d3c5f 100%);
  padding: clamp(6.5rem, 12vw, 8.5rem) var(--gouttiere) 0;
}
.heros::before {
  /* Quadrillage discret, comme un plan de quai ou une carte routière */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 44px 44px;
}
.heros-contenu {
  position: relative; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 400px); gap: 2.5rem 4rem; align-items: center;
}
.sur-titre {
  margin: 0 0 .8rem; color: var(--signal); font-size: .85rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase;
}
.sur-titre.sombre { color: var(--signal-fonce); }
.heros h1 { margin: 0; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.01em; }
.heros .accent { color: var(--signal); }
.chapeau { max-width: 38rem; margin: 1.3rem 0 2rem; font-size: 1.12rem; line-height: 1.6; color: #d5dee8; }
.heros-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.carte-connexion {
  background: #fff; color: var(--texte); border-radius: 12px; padding: 1.6rem 1.6rem 1.2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35); border-top: 5px solid var(--signal);
}
.carte-connexion h2 { margin: 0 0 .3rem; font-size: 1.35rem; }
.carte-connexion > p { margin: 0 0 1rem; color: var(--discret); font-size: .9rem; }
.carte-connexion label { color: var(--texte); font-weight: 600; font-size: .85rem; }
.carte-connexion .note { margin: .8rem 0 0; color: var(--discret); font-size: .78rem; text-align: center; }

/* La route traverse toute la largeur : l'illustration déborde de la gouttière de l'en-tête. */
.heros-illustration {
  position: relative; display: block; width: calc(100% + 2 * var(--gouttiere));
  height: clamp(150px, 20vw, 230px); margin: 2.5rem calc(-1 * var(--gouttiere)) 0;
}

/* Sections */
.vitrine { max-width: none; padding: 0; margin: 0; }
.bloc { max-width: 1200px; margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 3.5rem); }
.bloc h2 { margin: 0 0 2.2rem; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--nuit); }
.bloc-clair { max-width: none; background: var(--clair); }
.bloc-clair > * { max-width: 1200px; margin-left: auto; margin-right: auto; }

.parcours {
  list-style: none; margin: 0; padding: 0; counter-reset: etape;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.2rem; position: relative;
}
.parcours::before {
  /* Le fil de l'itinéraire qui relie les étapes */
  content: ''; position: absolute; top: 34px; left: 6%; right: 6%; border-top: 3px dashed #f6c48a;
}
.parcours li { position: relative; text-align: center; counter-increment: etape; }
.parcours svg {
  width: 68px; height: 68px; padding: 12px; border-radius: 50%; background: var(--nuit);
  fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  box-shadow: 0 0 0 6px #fff;
}
.parcours li::after {
  content: counter(etape); position: absolute; top: -4px; left: calc(50% + 18px);
  width: 24px; height: 24px; border-radius: 50%; background: var(--signal); color: var(--nuit);
  font-size: .8rem; font-weight: 800; line-height: 24px;
}
.parcours h3 { margin: .9rem 0 .4rem; font-size: 1.02rem; color: var(--nuit); }
.parcours p { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--discret); }

.espaces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.espaces article {
  background: #fff; border-radius: 10px; padding: 1.5rem 1.5rem 1.2rem; border: 1px solid var(--bord);
  border-top: 4px solid var(--nuit);
}
.espaces h3 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .9rem; font-size: 1.2rem; color: var(--nuit); }
.pastille-espace {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--signal); color: var(--nuit); font-size: .95rem; font-weight: 800;
}
.espaces ul { margin: 0; padding: 0; list-style: none; }
.espaces li { position: relative; padding: .45rem 0 .45rem 1.4rem; border-top: 1px solid #edf0f3; font-size: .93rem; line-height: 1.45; }
.espaces li:first-child { border-top: 0; }
.espaces li::before { content: ''; position: absolute; left: 0; top: .95rem; width: 8px; height: 8px; border-radius: 2px; background: var(--signal); }

.normes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.normes li { padding: 1.2rem; border: 1px solid var(--bord); border-left: 5px solid var(--signal); border-radius: 8px; }
.normes strong { display: block; margin-bottom: .3rem; font-size: 1.1rem; color: var(--nuit); }
.normes span { font-size: .88rem; color: var(--discret); line-height: 1.45; }

.vitrine-pied {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 2rem;
  padding: 1.8rem clamp(1rem, 4vw, 3.5rem); background: var(--nuit); color: #b9c6d3; font-size: .88rem;
}
.vitrine-pied p { margin: 0; }
.vitrine-pied .logo-gtmls { color: #fff; }
.vitrine-pied a { color: #fff; }

@media (max-width: 980px) {
  .heros-contenu { grid-template-columns: 1fr; }
  .carte-connexion { max-width: 440px; }
  .parcours { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.2rem; }
  .parcours::before { display: none; }
  .espaces, .normes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .vitrine-barre nav a:not(.bouton-signal) { display: none; }
  .parcours { grid-template-columns: 1fr 1fr; }
  .espaces, .normes { grid-template-columns: 1fr; }
}

/* Pages légales */
.legal-barre { position: static; background: var(--nuit); }
.page-legale .legal { max-width: 820px; margin: 0 auto; padding: 2.5rem var(--gouttiere) 3.5rem; line-height: 1.65; }
.page-legale .legal h1 { margin: 0 0 .2rem; font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--nuit); }
.page-legale .legal h2 { margin: 2rem 0 .6rem; font-size: 1.15rem; color: var(--nuit); }
.page-legale .legal ul { padding-left: 1.2rem; }
.page-legale .legal li + li { margin-top: .4rem; }
.page-legale .legal a { color: var(--primaire); }
.a-completer { padding: 0 .3rem; border-radius: 4px; background: #fff1d6; color: #8a4b00; font-weight: 600; }
.carte-connexion .note a { color: var(--primaire); }

/* Manuels */
.manuel { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2.5rem; max-width: 1200px; margin: 0 auto;
          padding: 2.5rem var(--gouttiere) 4rem; }
.manuel-sommaire { position: sticky; top: 1rem; align-self: start; }
.manuel-sommaire ol { margin: 0 0 1.2rem; padding-left: 1.3rem; line-height: 1.9; }
.manuel-sommaire a { color: var(--nuit); text-decoration: none; }
.manuel-sommaire a:hover { color: var(--signal-fonce); text-decoration: underline; }
.manuel-contenu { line-height: 1.65; max-width: 860px; }
.manuel-contenu h1 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--nuit); }
.chapeau-manuel { font-size: 1.1rem; margin: .5rem 0 2rem; }
.manuel-chapitre { padding-top: 1.5rem; border-top: 1px solid var(--bord); margin-top: 1.5rem; scroll-margin-top: 1rem; }
.manuel-chapitre h2 { display: flex; align-items: center; gap: .7rem; margin: 0 0 1rem; font-size: 1.45rem; color: var(--nuit); }
.manuel-chapitre .numero { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px;
                           background: var(--signal); color: var(--nuit); font-size: 1rem; font-weight: 800; }
.manuel-chapitre ol.etapes { counter-reset: etape; list-style: none; padding-left: 0; }
.manuel-chapitre ol.etapes li { counter-increment: etape; position: relative; padding: .35rem 0 .35rem 2.4rem; }
.manuel-chapitre ol.etapes li::before { content: counter(etape); position: absolute; left: 0; top: .35rem; width: 1.6rem; height: 1.6rem;
                                         border-radius: 50%; background: var(--nuit); color: #fff; font-size: .85rem; font-weight: 700;
                                         display: grid; place-items: center; }
.manuel-chapitre figure { margin: 1.4rem 0; }
.manuel-chapitre figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--bord); border-radius: 8px; box-shadow: 0 6px 18px rgba(15, 31, 51, .08); }
.manuel-chapitre figcaption { margin-top: .5rem; font-size: .85rem; color: var(--discret); font-style: italic; text-align: center; }
.encadre { margin: 1rem 0; padding: .8rem 1rem; border-left: 4px solid; border-radius: 6px; }
.encadre strong:first-child { display: block; margin-bottom: .2rem; }
.encadre.conseil { background: #e8f1fb; border-color: #1b5fa8; }
.encadre.attention { background: #fff4e0; border-color: #b06000; }
.manuel-chapitre table.liste td { vertical-align: top; }
.page-manuel .vitrine-barre nav a[aria-current] { text-decoration: underline; opacity: 1; }
@media (max-width: 900px) {
  .manuel { grid-template-columns: 1fr; }
  .manuel-sommaire { position: static; }
}

/* Plaquette et demande d'informations */
.heros-liens { margin: 1.2rem 0 0; font-size: .95rem; color: #d5dee8; }
.heros-liens a { color: #fff; }
.bouton-contour.sombre { color: var(--nuit); border-color: var(--nuit); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2.5rem; align-items: start; }
.contact-texte h2 { margin-bottom: 1rem; }
.contact-points { padding-left: 1.2rem; line-height: 1.9; }
.carte-contact { background: #fff; border-radius: 12px; padding: 1.6rem; border-top: 5px solid var(--signal);
                 box-shadow: 0 12px 30px rgba(15, 31, 51, .1); }
.carte-contact label { color: var(--texte); font-weight: 600; font-size: .85rem; }
.carte-contact label.case { font-weight: 400; }
.carte-contact .note { margin: .2rem 0 .8rem; color: var(--discret); font-size: .8rem; }
.carte-contact .note a { color: var(--primaire); }
/* Champ piège des robots, invisible et inaccessible aux humains. */
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
