@charset "UTF-8";
/* ==========================================================================
   TYE — Transport Yonne Express
   Feuille de styles unique, pensée d'abord pour le mobile. Site sur fond blanc.
   Couleurs tirées du logo : rouge #C00000 (principal), rouge foncé #AA0000,
   gris-brun #483737. Le rouge vif #FF0000 reste réservé au logo.
   ========================================================================== */

/* Police auto-hébergée (Open Sans, licence SIL OFL) — aucun appel à Google */
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-variable.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --fond: #fff;
  --fond-alt: #f4f2f1;
  --surface: #fff;
  --surface-champ: #fff;
  --bordure: #e2dcda;
  --bordure-champ: #8a7f7d;
  --texte: #2b2727;
  --texte-doux: #5a4f4f;
  --titre: #2b2727;
  --anthracite: #2b2727;
  --sur-sombre: #d9d2d0;
  --rouge: #c00000;
  --rouge-fonce: #aa0000;
  --rouge-vif: #ff2020;
  --accent: #c00000;
  --accent-clair: #aa0000;
  --accent-fond: #fbeaea;
  --gris-brun: #483737;
  --ombre: 0 1px 2px rgba(43, 39, 39, .06), 0 8px 24px rgba(43, 39, 39, .08);
  --police: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --largeur: 1160px;
  --gouttiere: 16px;
  --rayon: 10px;
  --hauteur-entete: 68px;
}

@media (min-width: 768px) {
  :root { --gouttiere: 24px; --hauteur-entete: 72px; }
}

@media (min-width: 1280px) {
  :root { --hauteur-entete: 80px; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hauteur-entete) + 16px);
  background: var(--fond);
}

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

body {
  margin: 0;
  font-family: var(--police);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--fond);
}

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

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  line-height: 1.15;
  font-weight: 800;
  color: var(--titre);
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
figure { margin: 0; }
figcaption { font-size: .875rem; color: var(--texte-doux); margin-top: 10px; }

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-clair); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.icone { width: 24px; height: 24px; flex: none; }

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

.lien-evitement {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--rouge);
  color: #fff;
}

.lien-evitement:focus { top: 12px; color: #fff; }

/* Repère des informations manquantes : à faire disparaître avant la mise en ligne */
.a-completer {
  background: #fff3c4;
  color: #5c4400;
  border: 1px dashed #b38600;
  border-radius: 4px;
  padding: 0 .35em;
  font-weight: 600;
  font-style: normal;
}

.visuel-a-completer {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 24px;
  border: 2px dashed #c9bfbc;
  border-radius: var(--rayon);
  background: repeating-linear-gradient(-45deg, var(--fond-alt), var(--fond-alt) 12px, var(--surface) 12px, var(--surface) 24px);
  text-align: center;
}

/* ---------- Mise en page ---------- */

.conteneur {
  width: 100%;
  max-width: calc(var(--largeur) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.section { padding-block: 64px; }
.section--grise { background: var(--fond-alt); }

@media (min-width: 900px) {
  .section { padding-block: 104px; }
}

.etroit { max-width: 760px; }

.grille { display: grid; gap: 20px; }
ul.grille { margin: 0; padding: 0; list-style: none; }
.espace-haut { margin-top: 40px; }
.phrase-fin { margin: 32px 0 0; font-size: 1.1rem; font-weight: 600; color: var(--titre); }

@media (min-width: 640px) {
  .grille--2, .grille--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grille--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grille--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Texte + visuel côte à côte */
.bloc-media { display: grid; gap: 32px; align-items: center; }

@media (min-width: 900px) {
  .bloc-media { grid-template-columns: 1fr 1fr; gap: 64px; }
  .bloc-media--inverse .bloc-media__visuel { order: -1; }
}

.bloc-media__visuel img { width: 100%; border-radius: var(--rayon); }
.bloc-media__texte > :last-child { margin-bottom: 0; }

/* Bandeau Zone de chalandise : la France en trame de points (tirée de la carte de la plaquette),
   la zone TYE en rouge et des arcs d'envoi au départ de l'Yonne. */
.bandeau-carte {
  --carte-h: min(96vw, 460px);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding-bottom: calc(var(--carte-h) + 40px);
}

/* Même boîte et même cadrage (contain = meet) pour la carte et les arcs, pour qu'ils restent superposés.
   Sur mobile, la carte se place sous le texte. */
.bandeau-carte__fond,
.bandeau-carte__fleches { position: absolute; right: 0; bottom: 24px; left: 0; z-index: -1; width: 100%; height: var(--carte-h); }

.bandeau-carte__fond { object-fit: contain; }
.bandeau-carte__fleches { overflow: visible; }

.bandeau-carte__arcs path { vector-effect: non-scaling-stroke; }
.bandeau-carte__cometes path { stroke-dasharray: 7 100; stroke-dashoffset: 7; opacity: 0; }
.bandeau-carte__arrivees circle { opacity: .9; }
.bandeau-carte__arrivees .anneau { fill: none; stroke: var(--anthracite); stroke-width: 3; opacity: .3; }
.bandeau-carte__depart .point { fill: var(--rouge); stroke: #fff; stroke-width: 5; }
.bandeau-carte__depart .onde { fill: none; stroke: var(--rouge); stroke-width: 4; opacity: 0; transform-box: fill-box; transform-origin: center; }

/* Un éclat parcourt chaque arc, et des ondes partent de l'Yonne (sauf si le visiteur limite les animations) */
@media (prefers-reduced-motion: no-preference) {
  .bandeau-carte__cometes path { animation: comete 3.6s cubic-bezier(.45, 0, .25, 1) infinite; }
  .bandeau-carte__depart .onde { animation: onde 2.8s ease-out infinite; }
  .bandeau-carte__depart .onde--2 { animation-delay: 1.4s; }
}

@keyframes comete {
  0% { stroke-dashoffset: 7; opacity: 0; }
  10%, 85% { opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}

@keyframes onde {
  from { transform: scale(1); opacity: .8; }
  to { transform: scale(4.5); opacity: 0; }
}

.bandeau-carte__texte { position: relative; max-width: 560px; }
.bandeau-carte__texte > :last-child { margin-bottom: 0; }

@media (min-width: 900px) {
  .bandeau-carte { min-height: 660px; padding-bottom: 104px; }
  .bandeau-carte__fond,
  .bandeau-carte__fleches { top: 24px; bottom: auto; left: 42%; width: 58%; height: calc(100% - 48px); }
  /* Les arcs vers l'ouest s'estompent en approchant du texte */
  .bandeau-carte__fleches { -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3) 10%, #000 30%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3) 10%, #000 30%); }
  .bandeau-carte__texte { max-width: 50%; }
}

.photo-portrait img { aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Titres de section : surtitre en bulle ovale rouge (comme la plaquette) + grand titre ---------- */

.etiquette {
  display: inline-block;
  margin-bottom: 14px;
  padding: .4em 1.25em;
  border-radius: 999px;
  background: var(--rouge);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.titre-section { margin-bottom: 40px; }

.titre-section > p:not(.etiquette) {
  max-width: 62ch;
  color: var(--texte-doux);
  font-size: 1.05rem;
}

.titre-section--centre { text-align: center; }
.titre-section--centre > p:not(.etiquette) { margin-inline: auto; }

.intro { font-size: 1.1rem; color: var(--texte-doux); max-width: 62ch; }

/* ---------- Boutons ---------- */

.boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 52px;
  padding: .8em 1.6em;
  border: 2px solid transparent;
  border-radius: 5px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}

.btn .icone { width: 20px; height: 20px; }
.btn--petit { min-height: 42px; padding: .5em 1.1em; font-size: .95rem; }
.btn--petit .icone { width: 18px; height: 18px; }

.btn--principal { background: var(--rouge); color: #fff; }
.btn--principal:hover { background: var(--rouge-fonce); color: #fff; }

.btn--contour { border-color: var(--accent); background: transparent; color: var(--accent); }
.btn--contour:hover { background: var(--rouge); border-color: var(--rouge); color: #fff; }

.btn--clair { background: #fff; color: var(--rouge); }
.btn--clair:hover { background: #f1ecea; color: var(--rouge-fonce); }

.btn--contour-clair { border-color: rgba(255, 255, 255, .85); background: transparent; color: #fff; }
.btn--contour-clair:hover { background: #fff; color: var(--anthracite); }

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
}

.lien-fleche .icone { width: 18px; height: 18px; transition: transform .15s; }
.lien-fleche:hover .icone { transform: translateX(3px); }

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

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--fond);
  border-bottom: 1px solid var(--bordure);
}

.entete__barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 16px;
  min-height: var(--hauteur-entete);
}

.entete__logo { display: block; padding-block: 10px; }
.entete__logo img { width: 156px; }

.entete__actions { display: flex; align-items: center; gap: 8px; }

.entete__tel-mobile,
.menu-bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.entete__tel-mobile { background: var(--rouge); color: #fff; }
.entete__tel-mobile:hover { background: var(--rouge-fonce); color: #fff; }

.menu-bouton {
  border: 1px solid var(--bordure);
  background: var(--surface);
  color: var(--titre);
  cursor: pointer;
}

.menu-bouton .icone-fermer,
.menu-bouton[aria-expanded="true"] .icone-menu { display: none; }
.menu-bouton[aria-expanded="true"] .icone-fermer { display: block; }

/* Sans JavaScript, le menu reste visible ; avec, il se replie sur mobile */
html:not(.js) .menu-bouton { display: none; }

.nav { flex-basis: 100%; }
.js .nav { display: none; }
.js .nav.est-ouvert { display: block; }

.nav__liste { list-style: none; margin: 0; padding: 4px 0 12px; }

.nav__liste a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid var(--bordure);
  color: var(--texte);
  font-weight: 600;
  text-decoration: none;
}

.nav__liste a:hover,
.nav__liste a[aria-current="page"] { color: var(--accent); }

.nav__extra {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 20px;
}

.entete__tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--titre);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.entete__tel:hover { color: var(--accent-clair); }
.entete__tel .icone { color: var(--accent); width: 20px; height: 20px; }

/* Accueil : en-tête transparent posé sur la photo, qui devient blanc dès qu'on fait défiler */
.entete__logo .logo-clair { display: none; }

.js .entete--transparent {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
}

.js .entete--transparent.est-defile {
  background: #fff;
  border-bottom-color: var(--bordure);
  box-shadow: 0 4px 16px rgba(43, 39, 39, .08);
}

.js .entete--transparent:not(.est-defile) .logo-sombre { display: none; }
.js .entete--transparent:not(.est-defile) .logo-clair { display: block; }

.js .entete--transparent:not(.est-defile) .nav__liste a,
.js .entete--transparent:not(.est-defile) .entete__tel,
.js .entete--transparent:not(.est-defile) .entete__tel .icone { color: #fff; }

.js .entete--transparent:not(.est-defile) .menu-bouton {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

/* Sur grand écran, en haut de l'accueil, seuls le logo et la bulle « menu » sont posés sur la photo :
   le menu apparaît au défilement ou d'un clic sur la bulle, qui devient alors une croix pour le
   refermer. Il reste joignable au clavier (il s'affiche dès qu'un de ses liens reçoit le focus). */
@media (min-width: 1024px) {
  .js .entete--transparent:not(.est-defile) .nav { opacity: 0; pointer-events: none; }
  .js .entete--transparent:not(.est-defile) .nav:focus-within { opacity: 1; pointer-events: auto; }

  .js .entete--transparent:not(.est-defile) .entete__actions,
  .js .entete--transparent.est-menu-ouvert .entete__actions { display: flex; order: 2; }
  .js .entete--transparent .entete__tel-mobile { display: none; }
}

/* Menu en ligne dès la tablette ; seul le mobile garde le menu repliable.
   L'en-tête se compacte par paliers pour tenir sur une ligne. */
@media (min-width: 768px) {
  .entete__barre { flex-wrap: nowrap; }
  .entete__logo img { width: 120px; }
  .entete__actions { display: none; }

  .nav,
  .js .nav,
  .js .nav.est-ouvert {
    display: flex;
    flex-basis: auto;
    align-items: center;
    gap: 12px;
    margin-left: auto;
  }

  .nav__liste { display: flex; gap: 0; padding: 0; }

  .nav__liste a {
    position: relative;
    padding: 8px 6px;
    border: 0;
    font-size: .875rem;
    white-space: nowrap;
  }

  .nav__liste a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 0;
    height: 3px;
    border-radius: 2px;
    background: var(--accent);
  }

  .nav__extra { flex-direction: row; align-items: center; gap: 8px; padding: 0; }

  /* Téléphone et « Accès client » réduits à leur pictogramme (texte gardé pour les lecteurs d'écran) */
  .entete__numero,
  .nav__libelle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .nav__extra .btn--petit { min-width: 42px; padding-inline: .7em; }
  .entete__tel { justify-content: center; min-width: 40px; min-height: 40px; }
}

@media (min-width: 1024px) {
  .entete__logo img { width: 150px; }
  .nav { gap: 16px; }
  .nav__liste a { padding-inline: 8px; font-size: .9375rem; }
  .nav__liste a[aria-current="page"]::after { left: 8px; right: 8px; }
  .nav__extra { gap: 12px; }

  .nav__libelle { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .nav__extra .btn--petit { padding-inline: 1.1em; }
}

@media (min-width: 1280px) {
  .entete__logo img { width: 176px; }
  .nav { gap: 20px; }
  .nav__liste a { padding-inline: 9px; font-size: 1rem; }
  .nav__liste a[aria-current="page"]::after { left: 9px; right: 9px; }
  .nav__extra { gap: 16px; }

  .entete__numero { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

/* ---------- Bandeau principal (accueil) : plein écran, titre centré, chiffres clés ---------- */

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--anthracite);
  color: #fff;
  text-align: center;
}

.hero__image { position: absolute; inset: 0; }
.hero__image picture { height: 100%; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(13, 12, 12, .6) 0%, rgba(13, 12, 12, .72) 45%, rgba(13, 12, 12, .9) 100%);
}

.hero__contenu {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-block: calc(var(--hauteur-entete) + 40px) 32px;
}

.hero__texte { max-width: 920px; margin: auto; }

.hero__titre {
  margin: 0 0 22px;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.hero__titre-1 {
  display: block;
  font-size: clamp(2.5rem, 1.1rem + 6.2vw, 5.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.hero__titre-2 {
  display: block;
  margin-top: .3em;
  color: var(--rouge-vif);
  font-size: clamp(1.5rem, 1rem + 2.6vw, 3rem);
  line-height: 1.1;
}

.hero__accroche {
  max-width: 42ch;
  margin: 0 auto 28px;
  color: #f1ecea;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
}

.hero .boutons { justify-content: center; }

/* Mobile : 2 – 1 – 2, « + 20 ans » seul sur la rangée du milieu.
   Dès 640 px, les cinq chiffres tiennent sur une seule ligne. */
.hero__chiffres {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 16px;
  margin: 48px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .25);
  list-style: none;
}

.hero__chiffres li:last-child { grid-column: 1 / -1; grid-row: 2; }

.chiffre__valeur {
  display: block;
  color: #fff;
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
}

.chiffre__libelle { display: block; margin-top: 4px; color: #e6e0de; font-size: .92rem; line-height: 1.35; }

@media (min-width: 640px) {
  .hero__chiffres { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hero__chiffres li:last-child { grid-column: auto; grid-row: auto; }
  .chiffre__valeur { font-size: clamp(1.55rem, .6rem + 2.4vw, 2.6rem); }
}

/* ---------- Bandeau des pages intérieures ---------- */

.bandeau-page {
  padding-block: 40px 44px;
  background: var(--fond-alt);
  border-bottom: 1px solid var(--bordure);
}

.bandeau-page h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 2.85rem); }
.bandeau-page .intro { margin-bottom: 0; }

@media (min-width: 900px) {
  .bandeau-page { padding-block: 64px; }
}

.sommaire { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; }

.sommaire a {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--bordure);
  border-radius: 5px;
  background: var(--surface);
  color: var(--texte);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}

.sommaire a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Principe des deux passages : le cercle de la plaquette ---------- */

.cycle-figure { max-width: 360px; margin: 28px auto; }
.cycle { width: 100%; height: auto; }
.cycle__enlevement { fill: var(--gris-brun); }
.cycle__livraison { fill: var(--rouge); }
.cycle__texte { fill: #fff; font-size: 18px; font-weight: 700; }
.cycle__centre { fill: var(--anthracite); font-size: 36px; font-weight: 800; }

/* Délais en bulles : enlèvement → livraison (mêmes couleurs que le cercle) */
.flux { display: grid; gap: 12px; max-width: 520px; margin: 0 0 1.5em; padding: 0; list-style: none; }

.flux__ligne {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.flux__etape {
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.flux__etape small { display: block; font-size: .8rem; font-weight: 600; opacity: .92; }
.flux__etape--enlevement { background: var(--gris-brun); }
.flux__etape--livraison { background: var(--rouge); }
.flux__fleche { display: flex; color: var(--texte); }

/* ---------- Cartes ---------- */

.carte {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--rayon);
  background: var(--surface);
  box-shadow: var(--ombre);
}

.carte h3 { margin: 0; }
.carte p { margin: 0; color: var(--texte-doux); }
.carte .lien-fleche { margin-top: auto; padding-top: 8px; }
.carte--centre { align-items: center; text-align: center; }

.carte__icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 5px;
  background: var(--rouge);
  color: #fff;
}

.carte__icone .icone { width: 28px; height: 28px; }

/* Nos valeurs : une photo d'ambiance à côté de quatre cartes, l'exemple concret détaché en bas */
.valeurs { display: grid; gap: 32px; }

.valeurs__photo { margin: 0; }
.valeurs__photo picture { display: block; height: 100%; }

.valeurs__photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 30% 62%;
  border-radius: var(--rayon);
}

/* Icône, titre, texte et exemple alignés d'une carte à l'autre (sous-grille) */
.valeur { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 12px; }
.valeur > .carte__icone { justify-self: start; }

@supports not (grid-template-rows: subgrid) {
  .valeur { grid-template-rows: auto auto 1fr auto; }
}

.valeur__exemple {
  padding-top: 14px;
  border-top: 1px solid var(--bordure);
  font-size: .95rem;
}


@media (min-width: 640px) {
  .valeurs__photo img { aspect-ratio: 2 / 1; }
}

/* Côte à côte : photo en portrait qui reste visible au défilement, puis sur toute la hauteur
   des cartes quand elles ont assez de largeur (sinon la photo serait trop étroite) */
@media (min-width: 900px) {
  .valeurs { grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: 40px; align-items: start; }
  .valeurs__photo { position: sticky; top: calc(var(--hauteur-entete) + 24px); }
  .valeurs__photo img { aspect-ratio: 3 / 4; }
}

@media (min-width: 1200px) {
  .valeurs { grid-template-columns: minmax(0, 5fr) minmax(0, 9fr); gap: 56px; align-items: stretch; }
  .valeurs__photo { position: static; }
  .valeurs__photo img { height: 100%; aspect-ratio: auto; }
}

/* Points forts */
.atout { display: flex; gap: 16px; align-items: flex-start; }
.atout h3 { margin-bottom: .3em; }
.atout p { margin: 0; color: var(--texte-doux); }

.atout__icone {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 2px solid var(--texte);
  border-radius: 50%;
  color: var(--texte);
}

/* Niveaux de délai */
.niveaux { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }

.niveau {
  padding: 16px 18px;
  border-left: 6px solid var(--niveau, var(--accent));
  border-radius: 0 var(--rayon) var(--rayon) 0;
  background: var(--surface);
}

.niveau strong { display: block; color: var(--titre); }
.niveau span { color: var(--texte-doux); }
/* Mêmes couleurs que la carte de France de la plaquette */
.niveau--partenaires { --niveau: #1f3e83; }
.niveau--nationaux { --niveau: #f2bb39; }

/* Secteurs des tournées : noms à la suite, dans la police du texte, séparés par des points rouges.
   Un nom et son point restent ensemble : une ligne ne commence jamais par un point. */
.liste-points {
  display: flex;
  flex-wrap: wrap;
  row-gap: 4px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.liste-points li { white-space: nowrap; }
.liste-points li:not(:last-child)::after { content: "\2022"; margin-inline: 12px; color: var(--rouge); }

/* Secteurs d'activité des clients : hexagones en nid d'abeille repris de la plaquette.
   Écran étroit : rosace de 6 hexagones autour du monogramme TYE, nom dans l'hexagone.
   À partir de 640 px : zigzag de la plaquette sur une ligne, noms reliés par une tige. */
.secteurs {
  --l: clamp(96px, 34vw, 150px);           /* largeur d'un hexagone */
  --h: calc(var(--l) * .8667);             /* sa hauteur */
  --col: calc(var(--l) * .82);             /* pas horizontal : les hexagones s'imbriquent */
  --ecart: calc(var(--l) * .06);
  --pas-v: calc(var(--h) + var(--ecart));  /* distance verticale entre deux hexagones empilés */
  position: relative;
  width: calc(var(--col) * 2 + var(--l));
  height: calc(var(--pas-v) * 2 + var(--h));
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

/* Hexagone central : monogramme TYE */
.secteurs::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--l);
  height: var(--h);
  background:
    url("../apple-touch-icon.png") center / 42% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 104'%3E%3Cpolygon points='31.5,3.5 88.5,3.5 116.5,52 88.5,100.5 31.5,100.5 3.5,52' fill='%23fff' stroke='%23c00000' stroke-width='6' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform: translate(-50%, -50%);
}

.secteur {
  position: absolute;
  top: calc(50% + var(--dy) - var(--h) / 2);
  left: calc(50% + var(--dx) - var(--l) / 2);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--l);
  text-align: center;
}

/* Les 6 secteurs autour du centre, dans le sens des aiguilles d'une montre en partant du haut */
.secteur:nth-child(1) { --dx: 0px; --dy: calc(var(--pas-v) * -1); }
.secteur:nth-child(2) { --dx: var(--col); --dy: calc(var(--pas-v) / -2); }
.secteur:nth-child(3) { --dx: var(--col); --dy: calc(var(--pas-v) / 2); }
.secteur:nth-child(4) { --dx: 0px; --dy: var(--pas-v); }
.secteur:nth-child(5) { --dx: calc(var(--col) * -1); --dy: calc(var(--pas-v) / 2); }
.secteur:nth-child(6) { --dx: calc(var(--col) * -1); --dy: calc(var(--pas-v) / -2); }

.secteur__hexa { position: relative; flex: none; width: var(--l); }
.secteur__hexa .hexa { display: block; width: 100%; fill: #fff; stroke: var(--rouge); stroke-width: 6; stroke-linejoin: round; }

.secteur__icone {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12%;
}

.secteur__icone svg { width: 36%; height: auto; }

.secteur__nom {
  position: absolute;
  top: calc(var(--h) * .6);
  left: 50%;
  z-index: 1;
  color: var(--titre);
  font-size: clamp(.72rem, 3.2vw, .85rem);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transform: translateX(-50%);
}

.secteur__tige { display: none; }

@media (min-width: 640px) {
  .secteurs {
    --l: clamp(96px, 16vw, 160px);
    --nom: clamp(20px, 1.2vw + 12px, 26px);  /* hauteur de ligne des noms */
    --tige: calc(var(--h) / 2 + clamp(4px, 1vw, 10px)); /* les noms passent au-dessus / au-dessous des hexagones voisins */
    --z: calc(var(--nom) + var(--tige));
    position: static;
    display: grid;
    grid-template-columns: repeat(6, var(--col));
    justify-content: center;
    width: auto;
    height: auto;
  }

  .secteurs::before { content: none; }
  .secteur { position: static; width: auto; }
  .secteur__hexa { margin-inline: calc((var(--col) - var(--l)) / 2); }

  /* Hexagones du haut (2e, 4e, 6e) : remontés d'une demi-hauteur, nom en dessous */
  .secteur:nth-child(even) { margin-top: calc(var(--z) - var(--h) / 2); }
  .secteur:nth-child(even) .secteur__hexa { order: 1; }
  .secteur:nth-child(even) .secteur__tige { order: 2; }
  .secteur:nth-child(even) .secteur__nom { order: 3; }

  .secteur__hexa .hexa { stroke-width: 7; }
  .secteur__icone { align-items: center; padding-top: 0; }
  .secteur__icone svg { width: 48%; }

  .secteur__nom {
    position: static;
    height: var(--nom);
    font-size: clamp(.8rem, .55rem + .6vw, 1rem);
    line-height: var(--nom);
    transform: none;
  }

  .secteur__tige { position: relative; display: block; width: 2px; height: var(--tige); background: var(--texte); }

  .secteur__tige::after {
    content: "";
    position: absolute;
    left: 50%;
    width: clamp(7px, .6vw + 4px, 13px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--texte);
    transform: translateX(-50%);
  }

  .secteur:nth-child(odd) .secteur__tige::after { bottom: 2px; }
  .secteur:nth-child(even) .secteur__tige::after { top: 2px; }
}

@media (min-width: 900px) {
  .secteur__tige { width: 3px; }
}

/* Faits chiffrés (flotte) */
.faits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }

@media (min-width: 900px) {
  .faits { grid-template-columns: repeat(4, 1fr); }
}

.fait {
  padding: 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  background: var(--surface);
}

.fait strong { display: block; color: var(--titre); font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.fait span { color: var(--texte-doux); font-size: .95rem; }

/* Labels et engagements */
.labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 32px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 196 px par label : les cinq tiennent sur une ligne en grand écran */
.labels li { display: flex; flex-direction: column; align-items: center; max-width: 196px; text-align: center; }

.labels img,
.engagement__logos img { width: auto; object-fit: contain; }

/* Les logos sont centrés dans une bande de 124 px, la hauteur du logo vertical */
.labels img { height: 96px; margin: 14px auto; }
.labels img.logo-vertical { height: 124px; margin-block: 0; }
.labels .badge-mobilic img { height: 110px; margin-block: 7px; }
.labels p { margin: 12px 0 0; color: var(--texte-doux); font-size: .92rem; line-height: 1.45; }

/* Dès 768 px, les labels se rangent sur une seule ligne, en colonnes égales ;
   les logos rapetissent un peu tant que la place est comptée. */
@media (min-width: 768px) {
  .labels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 20px; }
  .labels li { max-width: none; }
  .labels img { height: 76px; margin: 11px auto; }
  .labels img.logo-vertical { height: 98px; margin-block: 0; }
  .labels .badge-mobilic img { height: 88px; margin-block: 5px; }
  .labels p { font-size: .85rem; }
}

@media (min-width: 1024px) {
  .labels { gap: 32px 36px; }
  .labels img { height: 96px; margin: 14px auto; }
  .labels img.logo-vertical { height: 124px; margin-block: 0; }
  .labels .badge-mobilic img { height: 110px; margin-block: 7px; }
  .labels p { font-size: .92rem; }
}

.engagement__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; min-height: 120px; }
.engagement__logos img { height: 80px; }
.engagement__logos img.logo-vertical { height: 104px; }

/* Certificat Mobilic : image servie par Mobilic, mise à jour chaque mois */
.badge-mobilic { display: block; border-radius: 12px; }
.engagement__logos .badge-mobilic img { height: 120px; }

/* Frise chronologique : une route sinueuse (dessinée par main.js) descend en passant par chaque date,
   et un petit VUL la parcourt au fil du défilement. Sur mobile, la route est à gauche ; sur grand écran,
   elle serpente au milieu et les dates alternent à gauche et à droite.
   Sans JavaScript, un simple trait remplace la route et toutes les dates restent en rouge. */
.histoire { overflow: hidden; }
.frise-route { position: relative; }

.frise-route__trace,
.frise-route__vul {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.frise-route__vul { z-index: 2; }

.route-chaussee { fill: none; stroke: var(--anthracite); stroke-width: 20; stroke-linecap: round; }
.route-ligne { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 10 10; }

.frise { position: relative; margin: 0; padding: 0; list-style: none; }

.frise::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: var(--anthracite);
}

.frise-route--dessinee .frise::before { display: none; }

.frise li { position: relative; min-height: 56px; padding: 0 0 36px 96px; }
.frise li:last-child { padding-bottom: 0; }

.frise__point {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 14px;
  width: 26px;
  height: 26px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--rouge);
  box-shadow: 0 2px 8px rgba(43, 39, 39, .35);
  transition: background-color .3s, transform .3s;
}

.frise li:nth-child(even) .frise__point { left: 48px; }

/* Le VUL passe sous les points : une date s'allume en rouge quand il l'atteint */
.frise-route--animee .frise__point { background: #b9b1af; }
.frise-route--animee .est-atteinte .frise__point { background: var(--rouge); transform: scale(1.12); }

.frise__annee { display: block; color: var(--accent); font-size: 1.3rem; font-weight: 800; line-height: 1.3; }
.frise p { margin: 4px 0 0; }

/* Le VUL, vu du dessus (dessiné par main.js) */
.route-vul__ombre { fill: rgba(0, 0, 0, .25); }
.route-vul__caisse { fill: #fff; stroke: var(--anthracite); stroke-width: 1.2; }
.route-vul__vitres, .route-vul__retros { fill: var(--anthracite); }
.route-vul__bande { fill: var(--rouge); }
.route-vul__portes { stroke: var(--anthracite); stroke-width: 1.2; }

@media (min-width: 900px) {
  .route-chaussee { stroke-width: 24; }

  /* La route serpente au milieu ; les dates alternent à gauche et à droite et se chevauchent
     légèrement en hauteur pour garder la frise compacte */
  .frise { max-width: 980px; margin-inline: auto; }
  .frise::before { left: calc(50% - 2px); }
  .frise li { display: grid; grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr); column-gap: 24px; min-height: 0; padding: 0 0 28px; }
  .frise li + li { margin-top: -24px; }

  .frise__point { position: relative; top: auto; left: auto; grid-column: 2; grid-row: 1; justify-self: start; margin-left: 20px; }
  .frise li:nth-child(even) .frise__point { left: auto; justify-self: end; margin: 0 20px 0 0; }

  .frise__texte { grid-column: 1; grid-row: 1; text-align: right; }
  .frise li:nth-child(even) .frise__texte { grid-column: 3; text-align: left; }
}

/* ---------- Traçabilité : bouton et logo du partenaire ---------- */

.tracabilite__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.logo-partenaire { width: auto; height: 72px; }

/* ---------- Bandeau « Ce qui nous distingue » (page Services, sur fond blanc) ---------- */

.liste-atouts {
  display: grid;
  gap: 18px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.liste-atouts li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; line-height: 1.45; }

.liste-atouts .icone {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 50%;
  background: var(--rouge);
  color: #fff;
  stroke-width: 2.4;
}

@media (min-width: 640px) {
  .liste-atouts { grid-template-columns: repeat(2, 1fr); }
}

/* Variante dans un bloc de texte (rubrique Distribution) : une colonne, texte courant */
.liste-atouts.liste-atouts--texte { grid-template-columns: 1fr; gap: 10px; margin-bottom: 24px; }
.bloc-media__texte > .liste-atouts--texte:last-child { margin-bottom: 0; }
.liste-atouts--texte li { gap: 10px; font-weight: 400; }
.liste-atouts--texte .icone { flex: none; width: 22px; height: 22px; margin-top: 1px; padding: 4px; }

@media (min-width: 1024px) {
  .liste-atouts { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Appel à l'action ---------- */

.appel { padding-block: 56px; background: var(--rouge); color: #fff; text-align: center; }
.appel h2 { color: #fff; }
.appel p { max-width: 56ch; margin-inline: auto; font-size: 1.1rem; }
.appel .boutons { justify-content: center; }
.appel a:not(.btn) { color: #fff; }

@media (min-width: 900px) {
  .appel { padding-block: 72px; }
}

/* ---------- Contact ---------- */

.contact-grille { display: grid; gap: 40px; align-items: start; }

@media (min-width: 960px) {
  .contact-grille { grid-template-columns: 1.35fr 1fr; gap: 56px; }
}

.formulaire {
  padding: 24px;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--surface);
  box-shadow: var(--ombre);
}

@media (min-width: 640px) {
  .formulaire { padding: 32px; }
}

.formulaire__note { color: var(--texte-doux); font-size: .95rem; }

.champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.champ label, .champ .libelle { font-weight: 600; }
.obligatoire { color: var(--accent); }

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid var(--bordure-champ);
  border-radius: 8px;
  background: var(--surface-champ);
  color: var(--texte);
  font: inherit;
}

.champ textarea { min-height: 150px; resize: vertical; }

.champ input:focus,
.champ select:focus,
.champ textarea:focus { border-color: var(--accent); outline: 3px solid rgba(192, 0, 0, .2); outline-offset: 0; }

.champs-duo { display: grid; gap: 0 16px; }

@media (min-width: 600px) {
  .champs-duo { grid-template-columns: 1fr 1fr; }
}

.devis {
  margin: 0 0 18px;
  padding: 16px 16px 0;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  background: var(--fond-alt);
}

.devis legend { padding: 0 6px; font-weight: 700; }
.devis p { color: var(--texte-doux); font-size: .92rem; }

.consentement { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.consentement input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--rouge); }

/* Champ piège anti-robots, invisible pour les visiteurs */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formulaire__statut { margin-top: 16px; padding: 14px 16px; border-radius: 8px; font-weight: 600; }
.formulaire__statut[data-etat="succes"] { background: #e6f4ea; color: #1d5b33; }
.formulaire__statut[data-etat="erreur"],
.formulaire__statut[data-etat="info"] { background: #fff3c4; color: #5c4400; }

.coordonnees h2 { font-size: 1.4rem; }
.coordonnees h3 { margin: 0 0 .25em; font-size: 1.05rem; }
.coordonnees h4 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--titre); }
.coordonnees figure img { border-radius: var(--rayon); }

.coordonnee { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--bordure); }
.coordonnee:first-of-type { padding-top: 0; }
.coordonnee > .icone { margin-top: 2px; color: var(--accent); }
.coordonnee p { margin: 0; }
/* Le logo prend la place de l'icône : même largeur et même écart, le texte reste aligné */
.lien-reseau { display: inline-flex; align-items: center; gap: 14px; }
.logo-linkedin { flex: none; width: 24px; height: 24px; }
.coordonnee ul { margin: 0; padding: 0; list-style: none; }

.service-contact + .service-contact { margin-top: 14px; }
.service-contact a { display: inline-block; padding-block: 2px; }

/* ---------- Pages de texte (mentions, confidentialité) ---------- */

.prose { max-width: 74ch; }
.prose h2 { margin-top: 2em; font-size: 1.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose dl { margin: 0 0 1em; }
.prose dt { font-weight: 700; color: var(--titre); }
.prose dd { margin: 0 0 .6em; }

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

.pied {
  padding-block: 56px 24px;
  background: var(--anthracite);
  color: var(--sur-sombre);
  font-size: .95rem;
}

.pied a { color: #fff; }
.pied a:hover { color: #fff; text-decoration-thickness: 2px; }

.pied__grille { display: grid; gap: 32px; }

@media (min-width: 700px) {
  .pied__grille { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .pied__grille { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}

.pied__logo img { width: 190px; margin-bottom: 16px; }

.pied h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pied ul { margin: 0; padding: 0; list-style: none; }
.pied li { margin-bottom: 8px; }
.pied p { margin-bottom: .6em; }

.pied__lien-icone { display: inline-flex; align-items: center; gap: 8px; }
.pied__lien-icone .icone { width: 20px; height: 20px; }

.pied__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: .85rem;
}

.pied__bas ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.pied__bas li { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
