/* Site public d'AB GLOBAL 26 (abglobal26.fr) : il présente l'application de la société, un CRM pour les apporteurs
   d'affaires de la rénovation énergétique (professionnels seulement, choix du gérant du 19/11). Sobre : noir et blanc comme
   le logo, une bande bleu nuit (la couleur d'une cellule photovoltaïque) et une seule touche de jaune (le départ de la
   tournée). Pas de carte, pas d'ombre : la grille et les blancs font la structure. Polices du logo et du CRM d'origine
   (Outfit, Manrope), hébergées ici (licence OFL). */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('/polices/outfit-latin.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/polices/manrope-latin.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --blanc: #ffffff;
  --noir: #000000;
  --texte-2: rgba(0, 0, 0, .66);
  --trait: rgba(0, 0, 0, .14);
  --ciel: #eef2f6;
  --cellule: #0b1730;
  --argent: #b9c2cc;
  --soleil: #f2b53a;
  --titre: 'Outfit', 'Avenir Next', 'Century Gothic', 'Segoe UI', sans-serif;
  --texte: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --marge: clamp(20px, 5vw, 56px);
  --rythme: clamp(56px, 8.5vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--blanc); color: var(--noir); font-family: var(--texte); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

.page { max-width: 1176px; margin-inline: auto; padding-inline: var(--marge); }

/* ——— En-tête ——— */
.entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 22px; }
.marque { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.marque img { height: 24px; width: auto; }
.marque span { font-family: var(--titre); font-weight: 600; font-size: 21px; letter-spacing: -.01em; line-height: 1; }
.menu { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 15px; font-weight: 500; }
.menu a { text-decoration: none; padding-block: 6px; }
.menu a:hover, .menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; }

/* ——— Titres et textes ——— */
h1, h2, h3 { font-family: var(--titre); font-weight: 600; }
/* Le grand titre de l'accueil tient sur deux lignes dès la mise en page large (« Le CRM des apporteurs d'affaires » fait
   14,05 em : la taille suit la largeur pour qu'il tienne toujours) ; sur téléphone, il se coupe tout seul. */
h1 { font-size: clamp(36px, 6.2vw, 72px); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
br.large { display: none; }
h2 { font-size: clamp(27px, 3.3vw, 40px); line-height: 1.1; letter-spacing: -.018em; text-wrap: balance; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.005em; }
.chapeau { font-size: clamp(19px, 1.9vw, 22px); line-height: 1.5; max-width: 34em; color: var(--texte-2); }
p, dd, li { text-wrap: pretty; }
.discret { color: var(--texte-2); }
.petit { font-size: 14px; line-height: 1.5; }

/* ——— Haut de page ——— */
.haut { padding-block: clamp(36px, 7vw, 92px) 0; }
.haut .chapeau { margin-top: clamp(20px, 2.6vw, 32px); }

/* ——— Blocs : le titre à gauche, le contenu à droite (l'un sous l'autre sur téléphone) ——— */
.bloc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(28px, 5vw, 80px); padding-block: var(--rythme) 0; }
.bloc > h2 { align-self: start; }
.bloc p + p { margin-top: 1em; }
.colonne { max-width: 40em; }

/* Plusieurs morceaux l'un sous l'autre dans la colonne de droite */
.pile > * + * { margin-top: clamp(26px, 3.2vw, 40px); }

/* Du lead au dossier payé : une vraie suite, donc numérotée */
.etapes { counter-reset: etape; border-top: 1px solid var(--trait); }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 0 12px; padding-block: 22px; border-bottom: 1px solid var(--trait); }
.etapes li::before { content: counter(etape); font-family: var(--titre); font-weight: 500; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.etapes p { margin-top: 6px; color: var(--texte-2); }

/* ——— Bande bleu nuit : la trame fine d'une cellule photovoltaïque ——— */
.bande { margin-top: var(--rythme); background-color: var(--cellule); color: var(--blanc);
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 38px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 152px); }
.bande .page { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px clamp(28px, 6vw, 96px); align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.bande p { margin-top: 18px; max-width: 30em; color: rgba(255, 255, 255, .78); font-size: 19px; line-height: 1.55; }
.bande .suite { display: inline-block; margin-top: 28px; font-family: var(--titre); font-weight: 500; font-size: 21px; }
.bande .ecran { justify-self: center; border-color: rgba(255, 255, 255, .22); }

/* Capture de l'application : l'écran d'un téléphone, sans décor */
.ecran { width: min(100%, 300px); height: auto; border-radius: 30px; border: 1px solid var(--trait); }

/* ——— L'entreprise (identité légale) et contact ——— */
.identite { display: grid; grid-template-columns: minmax(8.5em, auto) minmax(0, 1fr); gap: 10px 28px; }
.identite dt { color: var(--texte-2); }
.identite dd { font-weight: 500; }
.adresse-mel { font-family: var(--titre); font-weight: 500; font-size: clamp(24px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.015em; overflow-wrap: anywhere; }
.bloc .adresse-mel { display: inline-block; margin-top: 18px; }

/* ——— Pied de page ——— */
.pied { margin-top: var(--rythme); border-top: 1px solid var(--trait); }
.pied .page { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding-block: 26px 34px; font-size: 14px; color: var(--texte-2); }
.pied nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* ——— Accueil : la journée d'un commercial, d'un rendez-vous à l'autre (ce que l'application calcule) ——— */
.tournee { margin-top: clamp(40px, 6vw, 76px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; }
.tournee::before { content: ''; position: absolute; left: 6px; right: calc(100% / 6 - 6px); top: 6px; height: 2px; background: var(--noir); transform-origin: left center; }
.tournee li { position: relative; padding: 30px 14px 0 0; font-size: 15px; line-height: 1.4; }
.tournee li::before { content: ''; position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--noir); }
.tournee li:first-child::before { background: var(--soleil); box-shadow: 0 0 0 2px var(--noir); }
.tournee strong { display: block; font-family: var(--titre); font-weight: 600; font-size: 22px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tournee span { display: block; color: var(--texte-2); }
.tournee + .petit { margin-top: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .tournee::before { animation: avancer 1.8s cubic-bezier(.3, .1, .2, 1) both; }
  @keyframes avancer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

.fonction { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px clamp(28px, 6vw, 96px); align-items: center; padding-block: var(--rythme) 0; }
.fonction p { margin-top: 14px; max-width: 30em; color: var(--texte-2); }
.fonction .ecran { justify-self: center; }
.fonction.inverse > div { order: 2; }
.liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px clamp(28px, 5vw, 64px); }
.liste h3 { font-size: 19px; }
.liste p { margin-top: 4px; color: var(--texte-2); }

/* ——— Pages de texte (mentions légales, confidentialité, assistance) ——— */
.texte { padding-block: clamp(32px, 6vw, 72px) 0; }
.texte > * { max-width: 44rem; }
.texte h1 { font-size: clamp(36px, 5.6vw, 60px); }
.texte h2 { font-size: clamp(22px, 2.4vw, 27px); margin-top: 2em; }
.texte p, .texte ul, .texte dl { margin-top: .9em; }
.texte ul { padding-left: 1.2em; list-style: disc; }
.texte li + li { margin-top: .35em; }
.texte .chapeau { margin-top: 20px; }

@media (min-width: 781px) {
  br.large { display: inline; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  .marque span { font-size: 19px; }
  .menu { gap: 4px 20px; }
  .bloc, .bande .page, .fonction { grid-template-columns: minmax(0, 1fr); }
  .fonction.inverse > div { order: 0; }
  .liste { grid-template-columns: minmax(0, 1fr); }
  /* La tournée se lit de haut en bas */
  .tournee { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tournee::before { left: 6px; right: auto; top: 6px; bottom: 34px; width: 2px; height: auto; transform-origin: center top; }
  .tournee li { padding: 0 0 22px 34px; display: grid; grid-template-columns: 4.6em minmax(0, 1fr); column-gap: 10px; align-items: baseline; }
  .tournee li:last-child { padding-bottom: 0; }
  .tournee strong { font-size: 20px; grid-row: span 3; }
  @media (prefers-reduced-motion: no-preference) {
    @keyframes avancer { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  }
}
