/* Site jalonya.fr : palette et écriture de l'app (charte de marque Jalonya, DA « Lin »). Thème clair seulement. */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(assets/fonts/outfit-latin.woff2) format("woff2");
}

:root {
  --fond: #F1F4F0;
  --carte: #FBFCFA;
  --lin: #F5F1E8;
  --beige: #EDE5D4;
  --filet: #D8DED2;
  --filet-fort: #B7C0AA;
  --encre: #1F2924;
  --texte-doux: #46554A;
  --texte-discret: #5F6B60;
  --olive: #5B6C42;
  --olive-fort: #495838;
  --olive-doux: #EAEFD9;
  --profond: #14201C;
  --creme: #FAF1DC;
  --rayon: 18px;
  --rayon-petit: 12px;
  --ombre: 0 1px 2px rgb(31 41 36 / .06), 0 24px 48px -20px rgb(31 41 36 / .35);
  --largeur: 1180px;
}

*, *::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: "Outfit", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--fond);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--olive-fort); }
a:focus-visible, .bouton:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0; }
.mot-cle { color: var(--olive); }

.conteneur { width: min(100% - 2.5rem, var(--largeur)); margin-inline: auto; }

/* Lien d'évitement pour le clavier */
.evitement { position: absolute; left: -9999px; top: 0; }
.evitement:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--carte); padding: .6rem 1rem; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  min-height: 48px; padding: .7rem 1.35rem; border-radius: var(--rayon-petit);
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, transform .15s ease, border-color .2s ease;
}
.bouton:active { transform: translateY(1px); }
.bouton svg { width: 20px; height: 20px; flex: none; }
.bouton-plein { background: var(--olive); color: var(--creme); }
.bouton-plein:hover { background: var(--olive-fort); }
.bouton-contour { background: var(--carte); color: var(--encre); border: 1px solid var(--filet-fort); }
.bouton-contour:hover { border-color: var(--olive); }
.bouton-petit { min-height: 44px; padding: .5rem 1rem; font-size: .95rem; }
@media (max-width: 380px) { .bouton { white-space: normal; text-align: center; } }

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: 10;
  background: rgb(241 244 240 / .92);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--filet);
}
.entete .conteneur { display: flex; align-items: center; gap: 2rem; height: 72px; }
.entete .logo { display: inline-flex; align-items: center; min-height: 44px; }
.entete .logo img { height: 30px; width: auto; }
.entete nav { display: flex; gap: 1.75rem; margin-left: auto; }
.entete nav a { color: var(--texte-doux); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }
.entete nav a:hover { color: var(--encre); }
@media (max-width: 860px) { .entete nav { display: none; } .entete .bouton { margin-left: auto; } }

/* Ouverture : texte à gauche, un téléphone posé sur un panneau beige à droite */
.ouverture { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.ouverture .conteneur { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ouverture h1 { font-size: clamp(2.2rem, 3.7vw, 3.15rem); }
.ouverture .chapeau { margin-top: 1.4rem; font-size: 1.2rem; color: var(--texte-doux); max-width: 42ch; }
.ouverture .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.ouverture .precision { margin-top: 1.25rem; color: var(--texte-discret); font-size: .98rem; max-width: 46ch; }
.scene { background: var(--beige); border-radius: calc(var(--rayon) + 10px); padding: clamp(1.75rem, 4vw, 2.75rem) 1rem; display: grid; place-items: center; }
@media (max-width: 900px) {
  .ouverture .conteneur { grid-template-columns: 1fr; }
  .ouverture h1 .saut { display: none; }
}

/* Téléphone : coque arrondie, bordure régulière, îlot en haut de l'écran, boutons sur la tranche */
.telephone {
  position: relative; width: min(100%, 290px); aspect-ratio: 9 / 19.5;
  padding: 10px; border-radius: 48px; background: var(--profond);
  box-shadow: var(--ombre), inset 0 0 0 2px #2C3A33;
}
.telephone::before, .telephone::after { content: ""; position: absolute; width: 3px; background: #22302A; border-radius: 2px; }
.telephone::before { right: -3px; top: 25%; height: 13%; }
.telephone::after { left: -3px; top: 20%; height: 18%; box-shadow: 0 0 0 0 transparent; }
.ecran { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: var(--carte); padding-top: 30px; }
.ecran img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ilot { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 32%; height: 22px; border-radius: 12px; background: #0B1310; }
@media (max-width: 520px) { .telephone { width: min(100%, 240px); border-radius: 42px; } .ecran { border-radius: 33px; } }

/* Sections */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.titre-section { font-size: clamp(1.9rem, 3.4vw, 2.6rem); max-width: 24ch; }
.intro-section { margin-top: 1rem; color: var(--texte-doux); max-width: 58ch; font-size: 1.12rem; }

/* Un espace pour chacun : trois lignes rôle / phrase */
.roles { margin: 2.5rem 0 0; display: grid; }
.role { display: grid; grid-template-columns: minmax(180px, .45fr) 1fr; gap: 1.5rem; align-items: baseline; padding: 1.4rem 0; }
.role + .role { border-top: 1px solid var(--filet); }
.role dt { font-size: 1.5rem; font-weight: 600; display: flex; align-items: center; gap: .75rem; }
.role dt svg { width: 26px; height: 26px; color: var(--olive); flex: none; }
.role dd { margin: 0; color: var(--texte-doux); font-size: 1.15rem; }
@media (max-width: 640px) { .role { grid-template-columns: 1fr; gap: .4rem; } }

/* Ce que Jalonya prend en charge : six tuiles sur un panneau lin */
.fonctions {
  list-style: none; margin: 2.5rem 0 0; padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--lin); border-radius: calc(var(--rayon) + 6px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem);
}
.fonctions li { display: grid; grid-template-columns: 26px 1fr; column-gap: .9rem; row-gap: .25rem; }
.fonctions li svg { grid-row: span 2; width: 26px; height: 26px; color: var(--olive); margin-top: 1px; }
.fonctions strong { font-weight: 600; font-size: 1.1rem; }
.fonctions span { color: var(--texte-doux); }
@media (max-width: 900px) { .fonctions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fonctions { grid-template-columns: 1fr; } }

/* Contenus vérifiés : texte et deux repères chiffrés */
.contenus { padding-top: 0; }
.contenus .conteneur { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.reperes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.repere { background: var(--beige); border-radius: var(--rayon-petit); padding: 1.2rem 1.3rem; }
.repere strong { display: block; font-size: 2.2rem; font-weight: 700; color: var(--olive-fort); line-height: 1.1; font-variant-numeric: tabular-nums; }
.repere span { color: var(--texte-doux); font-size: .98rem; }
@media (max-width: 860px) { .contenus .conteneur { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .reperes { grid-template-columns: 1fr; } }

/* Qualiopi et données : deux colonnes séparées par un filet */
.confiance { border-top: 1px solid var(--filet); }
.confiance .conteneur { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.confiance article { padding: .5rem clamp(1.5rem, 4vw, 3.5rem) .5rem 0; }
.confiance article + article { padding: .5rem 0 .5rem clamp(1.5rem, 4vw, 3.5rem); border-left: 1px solid var(--filet); }
.confiance .icone { width: 44px; height: 44px; border-radius: 12px; background: var(--olive-doux); color: var(--olive); display: grid; place-items: center; margin-bottom: 1.2rem; }
.confiance .icone svg { width: 24px; height: 24px; }
.confiance h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
.confiance p { margin-top: .9rem; color: var(--texte-doux); max-width: 48ch; }
@media (max-width: 860px) {
  .confiance .conteneur { grid-template-columns: 1fr; gap: 2.5rem; }
  .confiance article, .confiance article + article { padding: 0; border-left: 0; }
}

/* Origine et ouverture à d'autres formations : bandeau beige */
.origine { padding-top: 0; }
.origine .bandeau { background: var(--beige); border-radius: calc(var(--rayon) + 6px); padding: clamp(2rem, 5vw, 3.75rem); display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.origine .bandeau img { width: clamp(64px, 9vw, 104px); height: auto; }
.origine h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.origine p { margin-top: .9rem; color: var(--texte-doux); max-width: 62ch; font-size: 1.1rem; }
@media (max-width: 640px) { .origine .bandeau { grid-template-columns: 1fr; } }

/* Démarrer : trois temps numérotés, puis l'appel */
.demarrer .temps { list-style: none; padding: 0; margin: 2.75rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.demarrer .temps li { padding: 0 1.75rem 0 0; }
.demarrer .temps li + li { padding-left: 1.75rem; border-left: 1px solid var(--filet); }
.demarrer .temps h3 { font-size: 1.25rem; display: flex; align-items: center; gap: .7rem; }
.demarrer .numero { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--beige); color: var(--olive-fort); font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.demarrer .temps p { margin-top: .5rem; color: var(--texte-doux); }
.appel { margin-top: 3.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.appel p { color: var(--texte-doux); }
@media (max-width: 860px) {
  .demarrer .temps { grid-template-columns: 1fr; gap: 1.75rem; }
  .demarrer .temps li, .demarrer .temps li + li { padding: 0; border-left: 0; }
}

/* Pied de page */
.pied { border-top: 1px solid var(--filet); padding: 2.5rem 0 3rem; color: var(--texte-discret); font-size: .95rem; }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; }
.pied img { height: 24px; width: auto; }
.pied nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.pied nav a { color: var(--texte-doux); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.pied nav a:hover { color: var(--encre); text-decoration: underline; }
.pied .droits { margin-left: auto; }
@media (max-width: 640px) { .pied .droits { margin-left: 0; } }

/* Entrée douce de l'ouverture */
@media (prefers-reduced-motion: no-preference) {
  .ouverture .texte > * { animation: monter .6s cubic-bezier(.16, 1, .3, 1) both; }
  .ouverture .texte > *:nth-child(2) { animation-delay: .06s; }
  .ouverture .texte > *:nth-child(3) { animation-delay: .12s; }
  .ouverture .texte > *:nth-child(4) { animation-delay: .18s; }
  .telephone { animation: monter .9s .15s cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes monter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Page de texte (mentions légales) */
.page-texte { padding: clamp(2.5rem, 6vw, 4.5rem) 0 4rem; }
.page-texte .conteneur { max-width: 760px; }
.page-texte h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.page-texte h2 { font-size: 1.3rem; margin-top: 2.5rem; }
.page-texte p { margin-top: .8rem; color: var(--texte-doux); }
.page-texte .retour { display: inline-flex; align-items: center; min-height: 44px; }
.page-texte .a-completer { background: #F6E4D7; color: #7A3E24; padding: 0 .3em; border-radius: 4px; }
