/* Site de Tournée Tracée. Mêmes couleurs et mêmes polices que l'appli.
   Le fil conducteur : la route. Une ligne qui relie des arrêts, comme le pied du T du logo. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("polices/bricolage-800.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("polices/bricolage-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("polices/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("polices/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("polices/inter-600.woff2") format("woff2"); }

:root {
  --marine: #14304A;
  --marine-fonce: #0E2438;
  --orange: #F4622A;
  --fond: #F4F6F8;
  --blanc: #FFFFFF;
  --ligne: #D5DCE4;
  --doux: #51606F;
  --vert-fond: #DFF0E4;
  --vert-texte: #1B6336;
  --gris-fond: #E7ECF1;
  --titre: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --texte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --large: 70rem;
  --marge: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--fond); color: var(--marine); font: 400 1.0625rem/1.6 var(--texte); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2 { font-family: var(--titre); font-weight: 800; letter-spacing: -0.022em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 3vw + 1rem, 3.25rem); line-height: 1.06; text-wrap: pretty; }
h1 span { display: block; }
h1 span + span { margin-top: 0.12em; }
h2 { font-size: clamp(1.85rem, 2.4vw + 1rem, 2.9rem); line-height: 1.08; }
h3 { font-family: var(--titre); font-weight: 700; font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.01em; }

.cadre { max-width: var(--large); margin-inline: auto; padding-inline: var(--marge); }
.doux { color: var(--doux); }

/* ---------- En-tête ---------- */
.entete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.entete .logo img { height: 2.75rem; width: auto; }
.entete nav { display: flex; align-items: center; gap: clamp(0.75rem, 2.5vw, 1.75rem); font-weight: 500; font-size: 1rem; }
.entete nav a { text-decoration: none; }
.entete nav a:not(.bouton):hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Boutons ---------- */
.bouton { display: inline-flex; align-items: center; gap: 0.65rem; min-height: 3.25rem; padding: 0.7rem 1.4rem; border-radius: 0.9rem;
  background: var(--marine); color: var(--blanc); font: 600 1.0625rem/1.2 var(--texte); text-decoration: none; transition: background-color 0.15s; }
.bouton::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--orange); flex: none; }
.bouton:hover { background: var(--marine-fonce); }
.bouton.petit { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: 1rem; }
.bouton.clair { background: var(--blanc); color: var(--marine); }
.bouton.clair:hover { background: var(--fond); }
.bouton .court { display: none; }
/* « Se connecter » : un vrai bouton à côté de « Essayer », pour que les abonnés retrouvent leur compte d'un geste */
.entete nav a.connexion { white-space: nowrap; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 1rem; border-radius: 0.9rem; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--marine); }
.entete nav a.connexion:hover { text-decoration: none; background: var(--blanc); }
.lien { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* ---------- Ouverture ---------- */
.ouverture { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(1.5rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem); }
.ouverture .chapo { margin-top: 1.4rem; font-size: clamp(1.1rem, 0.6vw + 1rem, 1.3rem); line-height: 1.5; color: var(--doux); max-width: 34rem; }
.ouverture .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.ouverture .mention { margin-top: 1rem; font-size: 0.95rem; color: var(--doux); }
.ouverture .mention + .mention { margin-top: 0.35rem; }
.ouverture .mention .lien { color: var(--marine); }
@media (min-width: 62rem) { .ouverture { grid-template-columns: 1.08fr 1fr; } }

/* Le plan : une tournée du jour, et le nouveau client posé dessus */
.plan { background: var(--blanc); border-radius: 1.75rem; padding: clamp(1rem, 2.5vw, 1.5rem); box-shadow: 0 1px 0 var(--ligne), 0 24px 60px -30px rgba(20, 48, 74, 0.35); }
.plan figcaption { font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 0.55rem; }
.plan figcaption::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--marine); }
.plan svg { width: 100%; height: auto; margin-block: 0.25rem 0.5rem; }
.plan .ville { font: 500 11.5px var(--texte); fill: var(--doux); }
.plan .heure { font: 600 11px var(--texte); fill: var(--marine); }
.plan .nouveau { font: 600 11.5px var(--texte); fill: var(--blanc); }
.plan .route { fill: none; stroke: var(--marine); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 0; }
.plan .chemin { fill: none; stroke: var(--ligne); stroke-width: 2; stroke-linecap: round; }
.plan .arret { fill: var(--marine); stroke: var(--blanc); stroke-width: 2.5; }
.plan .client { fill: var(--orange); stroke: var(--blanc); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; }
.plan .halo { fill: none; stroke: var(--orange); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  .plan .route { animation: tracer 1.5s 0.25s cubic-bezier(0.6, 0, 0.2, 1) both; }
  .plan .client, .plan .etiquette { animation: poser 0.45s 1.65s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
  .plan .halo { animation: onde 1.4s 2.05s ease-out 2; }
  @keyframes tracer { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
  @keyframes poser { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: scale(1); } }
  @keyframes onde { from { opacity: 0.8; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }
}
.plan .etiquette { transform-box: fill-box; transform-origin: center bottom; }

/* Les dates proposées, comme dans l'appli */
.dates { display: grid; gap: 0.6rem; }
.dates li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.25rem 0.9rem; padding: 0.8rem 1rem; border-radius: 1rem; background: var(--fond); }
.dates li.choix { background: var(--blanc); box-shadow: inset 0 0 0 2px var(--marine); }
.dates .jour { font-family: var(--titre); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.dates .raison { grid-column: 1; font-size: 0.92rem; color: var(--doux); line-height: 1.35; }
.dates .route { grid-column: 2; grid-row: 1 / span 2; }
.pastille { display: inline-block; padding: 0.35rem 0.7rem; border-radius: 999px; font-weight: 600; font-size: 0.88rem; white-space: nowrap; background: var(--vert-fond); color: var(--vert-texte); }
.pastille.neutre { background: var(--gris-fond); color: var(--marine); }
.dates .meilleur { grid-column: 1 / -1; grid-row: 1; justify-self: start; margin-bottom: 0.15rem; }
.dates li.choix .route { grid-row: 2 / span 2; }
.exemple { margin-top: 0.75rem; font-size: 0.85rem; color: var(--doux); }

/* ---------- Sections ---------- */
.partie { padding-block: clamp(3rem, 7vw, 6rem); }
.partie > .cadre > h2 { max-width: 44rem; }
.partie .intro { margin-top: 1rem; max-width: 40rem; font-size: 1.15rem; color: var(--doux); }

/* Comment ça marche : trois arrêts sur une même route */
.etapes { margin-top: clamp(2rem, 5vw, 3.5rem); position: relative; display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); counter-reset: etape; }
.etapes::before { content: ""; position: absolute; left: 1.25rem; top: 1.25rem; bottom: 1.25rem; width: 5px; margin-left: -2.5px; border-radius: 3px; background: var(--marine); }
.etape { position: relative; padding-left: 4.25rem; display: grid; gap: 1.5rem; align-items: start; counter-increment: etape; }
.etape::before { content: counter(etape); position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--marine); color: var(--blanc); font: 800 1.15rem var(--titre); box-shadow: 0 0 0 5px var(--fond); }
.etape:last-child::before { background: var(--orange); }
.etape:last-child::after { content: ""; position: absolute; left: 0; top: 2.5rem; bottom: -1.25rem; width: 2.5rem; background: var(--fond); }
.etape h3 { font-size: clamp(1.4rem, 1.2vw + 1rem, 1.8rem); padding-top: 0.2rem; }
.etape p { margin-top: 0.6rem; color: var(--doux); max-width: 30rem; }
@media (min-width: 56rem) { .etape { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 3rem; } }

/* Petits morceaux d'écran de l'appli, redessinés avec un exemple */
.ecran { background: var(--blanc); border-radius: 1.25rem; padding: 1.1rem; box-shadow: 0 1px 0 var(--ligne), 0 18px 40px -28px rgba(20, 48, 74, 0.4); font-size: 0.95rem; position: relative; z-index: 1; }
.ecran .etiquette-champ { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; }
.ecran .etiquette-champ span { font-weight: 400; color: var(--doux); font-size: 0.85rem; }
.ecran .champ { margin-top: 0.5rem; padding: 0.7rem 0.9rem; border: 1.5px solid var(--ligne); border-radius: 0.8rem; font-size: 1rem; }
.ecran .fiche { margin-top: 0.6rem; padding: 0.8rem 0.9rem; border-radius: 0.8rem; background: var(--fond); display: grid; gap: 0.2rem; }
.ecran .fiche strong { font-weight: 600; font-size: 1rem; }
.ecran .fiche span { color: var(--doux); font-size: 0.88rem; }
.ecran .choix-creneaux { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ecran .creneau { padding: 0.5rem 0.75rem; border-radius: 0.7rem; background: var(--marine); color: var(--blanc); font-weight: 600; font-size: 0.9rem; }
.ecran .creneau.vide { background: var(--blanc); color: var(--marine); box-shadow: inset 0 0 0 1.5px var(--ligne); }
.liste-pastilles { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }

.semaine { display: grid; grid-template-columns: 2rem repeat(5, minmax(0, 1fr)); gap: 3px; font-size: 0.72rem; }
.semaine .tete { text-align: center; font-weight: 600; color: var(--doux); padding-bottom: 0.3rem; }
.semaine .tete b { display: block; font: 700 1rem var(--titre); color: var(--marine); }
.semaine .h { color: var(--doux); text-align: right; padding-right: 0.3rem; line-height: 1; }
.semaine .case { min-height: 1.55rem; border-top: 1px solid var(--gris-fond); }
.semaine .rdv { border-radius: 0.35rem; padding: 0.2rem 0.3rem; color: var(--blanc); background: var(--marine); font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1.15rem; }
.semaine .rdv.clair { background: #6E8296; }
.semaine .rdv.neuf { background: var(--orange); }
.semaine .long { grid-row: span 2; }

/* Ce que l'appli fait déjà : une liste, pas des cartes */
.atouts { margin-top: clamp(2rem, 4vw, 3rem); display: grid; gap: 0 clamp(2rem, 5vw, 4rem); border-top: 2px solid var(--marine); }
.atouts > div { padding-block: 1.25rem; border-bottom: 1px solid var(--ligne); }
.atouts dt { font-family: var(--titre); font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
.atouts dd { margin-top: 0.35rem; color: var(--doux); }
@media (min-width: 48rem) { .atouts { grid-template-columns: 1fr 1fr; } }

.bientot { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: clamp(1.25rem, 3vw, 2rem); border-radius: 1.5rem; background: var(--gris-fond); display: grid; gap: 1rem; }
.bientot h3 { font-size: 1.35rem; }
.bientot ul { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; }
.bientot li { padding: 0.45rem 0.85rem; border-radius: 999px; background: var(--blanc); font-weight: 500; font-size: 0.97rem; }

/* Les métiers : une liste qui se lit comme une phrase, ponctuée d'arrêts */
.metiers { margin-top: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-wrap: wrap; gap: 0.2rem 0; font: 700 clamp(1.5rem, 2.4vw + 0.8rem, 2.5rem)/1.25 var(--titre); letter-spacing: -0.015em; }
.metiers li { display: inline-flex; align-items: center; }
.metiers li { margin-right: 0.7em; }
.metiers li::before { content: ""; width: 0.36em; height: 0.36em; border-radius: 50%; background: var(--orange); margin-right: 0.4em; flex: none; }

/* Le prix : une bande pleine, marine */
.essai { background: var(--marine); color: var(--blanc); }
.essai .cadre { display: grid; gap: 2rem; align-items: center; }
.essai p { margin-top: 1rem; max-width: 36rem; font-size: 1.15rem; color: #C9D4DF; }
.essai .prix { font-size: 1.3rem; color: var(--blanc); }
.essai .prix strong { font-weight: 700; }
.essai .prix.second { margin-top: 0.35rem; font-size: 1.15rem; color: #C9D4DF; }
.essai .prix.second + p { margin-top: 0.9rem; font-size: 1.05rem; }
@media (min-width: 56rem) { .essai .cadre { grid-template-columns: 1fr auto; } }

/* Questions */
.questions { margin-top: clamp(1.5rem, 4vw, 2.5rem); max-width: 46rem; border-top: 2px solid var(--marine); }
.questions details { border-bottom: 1px solid var(--ligne); }
.questions summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.1rem; font-family: var(--titre); font-weight: 700; font-size: 1.2rem; line-height: 1.3; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: ""; flex: none; width: 0.7rem; height: 0.7rem; margin: -0.3rem 0.3rem 0 0; border-right: 3px solid var(--marine); border-bottom: 3px solid var(--marine); transform: rotate(45deg); transition: transform 0.2s; }
.questions details[open] summary::after { margin-top: 0.4rem; transform: rotate(225deg); }
.questions details p { padding-bottom: 1.25rem; color: var(--doux); max-width: 40rem; }
.questions details p + p { margin-top: -0.5rem; }

/* Page d'aide */
.page { padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); }
.page h1 { font-size: clamp(2.2rem, 3.5vw + 1rem, 3.4rem); }
.page .intro { margin-top: 1rem; max-width: 40rem; font-size: 1.15rem; color: var(--doux); }
.page h2 { margin-top: clamp(2.5rem, 6vw, 4rem); font-size: clamp(1.6rem, 1.6vw + 1rem, 2.2rem); }
.pas { margin-top: 1.5rem; max-width: 44rem; display: grid; gap: 1.1rem; counter-reset: pas; }
.pas li { position: relative; padding-left: 3.25rem; counter-increment: pas; }
.pas li::before { content: counter(pas); position: absolute; left: 0; top: 0.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--marine); color: var(--blanc); font: 800 1rem var(--titre); }
.pas strong { font-weight: 600; }
.contact { margin-top: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 1.5rem; background: var(--blanc); max-width: 44rem; display: grid; gap: 0.6rem; }
.contact .adresse { font: 700 clamp(1.25rem, 2vw + 0.8rem, 1.75rem) var(--titre); word-break: break-word; }

.bloc { margin-top: 1rem; max-width: 44rem; display: grid; gap: 0.9rem; }
.bloc strong { font-weight: 600; }
.bloc a { text-underline-offset: 4px; }

/* Pied de page */
.pied { border-top: 1px solid var(--ligne); padding-block: 2rem 2.5rem; font-size: 0.95rem; color: var(--doux); }
.pied .cadre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.pied img { height: 2.1rem; width: auto; }
.pied nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.pied a { text-underline-offset: 4px; }

/* Sur téléphone, les morceaux d'écran prennent toute la largeur : la route passe derrière */
@media (max-width: 55.99rem) {
  .etape > .ecran { margin-left: -4.25rem; }
  .semaine { font-size: 0.66rem; }
}

@media (max-width: 30rem) {
  .entete .logo img { height: 2rem; }
  .entete nav .secondaire { display: none; }
  .entete { gap: 0.5rem; }
  .entete nav { font-size: 0.9rem; gap: 0.4rem; }
  .entete nav a.connexion { padding-inline: 0.6rem; }
  .entete .bouton.petit { padding-inline: 0.75rem; font-size: 0.9rem; gap: 0.45rem; }
  .bouton .long { display: none; }
  .bouton .court { display: inline; }
  .dates li { grid-template-columns: 1fr; }
  .dates .route, .dates li.choix .route { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 0.3rem; }
}
