/* Site vitrine AFUSIO (afusio.com) : une seule feuille de style, aucun script.
   Thème clair ; polices auto-hébergées (aucun appel à un service tiers). */
@font-face { font-family: "Outfit"; src: url("../polices/outfit.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../polices/public-sans.woff") format("woff"); font-weight: 100 900; font-display: swap; }

:root {
  --fond: #F6F9FE; --surface: #FFFFFF; --bleu-pale: #EAF2FD;
  --encre: #0B1B33; --doux: #3E4D63; --discret: #56657C;
  --marque: #0062AE; --bleu: #1A66E0; --bleu-2: #0057B8; --ciel: #4C9BF5; --violet: #6B5BE6;
  --trait: #DCE5F2; --trait-fort: #C9D7EB;
  --ombre: 0 18px 50px -24px rgba(16, 52, 110, 0.28);
  --titre: "Outfit", system-ui, sans-serif;
  --texte: "Public Sans", system-ui, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 1.0625rem/1.6 var(--texte); }
img { max-width: 100%; height: auto; }
a { color: var(--marque); }
a:hover { color: var(--bleu-2); }
a:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { font-family: var(--titre); color: var(--encre); }
.conteneur { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.evitement { position: absolute; left: -9999px; top: 0; z-index: 10; padding: 10px 16px; background: var(--encre); color: #fff; border-radius: 0 0 10px 0; }
.evitement:focus { left: 0; }

/* ----- En-tête et accroche ----- */
.haut-de-page { position: relative; overflow-x: clip; background:
    radial-gradient(ellipse 60% 55% at 85% 20%, rgba(76, 155, 245, 0.28), transparent 70%),
    radial-gradient(ellipse 45% 40% at 10% 90%, rgba(107, 91, 230, 0.12), transparent 70%),
    linear-gradient(180deg, #FFFFFF 0%, var(--bleu-pale) 100%); }
.entete { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.entete-logo { display: flex; align-items: center; text-decoration: none; }
.entete-logo img { height: 38px; width: auto; display: block; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.menu a { padding: 10px 12px; text-decoration: none; color: var(--doux); font-weight: 500; }
.menu a:hover { color: var(--marque); }
.menu a.bouton-contour { margin-left: 8px; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 22px; border: 1.5px solid var(--marque);
  border-radius: 999px; color: var(--marque); font-family: var(--titre); font-weight: 600; background: rgba(255, 255, 255, 0.7); }
.menu a.bouton-contour:hover { background: var(--marque); color: #fff; }
@media (max-width: 920px) { .menu .lien-section { display: none; } }
@media (max-width: 420px) { .entete { flex-wrap: nowrap; gap: 10px; } .entete-logo img { height: 30px; } .menu a.bouton-contour { margin-left: 0; padding: 10px 16px; } }

.accroche { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; padding-top: 28px; padding-bottom: 32px; }
.accroche-texte { flex: 1 1 420px; min-width: 0; padding: 20px 0; }
.surtitre { margin: 0 0 14px; color: var(--marque); font-family: var(--titre); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase; }
.accroche-mot { display: block; height: clamp(52px, 6.5vw, 86px); width: auto; margin-bottom: 20px; }
.accroche h1 { margin: 0 0 20px; font-weight: 300; font-size: clamp(2.1rem, 3.8vw, 3.3rem); line-height: 1.15; letter-spacing: -0.01em; }
.trait-lumineux { width: 92px; height: 5px; border-radius: 999px; background: linear-gradient(90deg, var(--bleu), var(--ciel)); box-shadow: 0 0 16px rgba(26, 102, 224, 0.45); margin-bottom: 26px; }
.accroche-intro { margin: 0 0 30px; font-size: 1.15rem; color: var(--doux); max-width: 33em; }
.accroche-intro b { color: var(--encre); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.bouton { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 14px 26px; border-radius: 14px; text-decoration: none; font-family: var(--titre); font-size: 1.05rem; font-weight: 600; }
.bouton-plein { background: linear-gradient(135deg, var(--bleu), var(--bleu-2)); color: #fff; box-shadow: 0 12px 30px -12px rgba(26, 102, 224, 0.8); }
.bouton-plein:hover { color: #fff; filter: brightness(1.08); }
.bouton-clair { background: #fff; color: var(--encre); border: 1px solid var(--trait-fort); }
.bouton-clair:hover { color: var(--marque); border-color: var(--marque); }
.atouts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--discret); font-size: 0.94rem; }
.atouts li { display: flex; align-items: center; gap: 8px; }

/* ordinateur portable dessiné en CSS autour d'une capture du planning */
.portable { flex: 1.35 1 540px; min-width: 0; margin: 0; position: relative; padding: 24px 4% 60px; perspective: 1800px; }
.portable-halo { position: absolute; left: -5%; right: -10%; bottom: 0; height: 55%; background: radial-gradient(ellipse 55% 45% at 50% 75%, rgba(26, 102, 224, 0.35), transparent 70%); filter: blur(10px); }
.portable-corps { position: relative; transform: rotateY(-13deg) rotateX(4deg) rotateZ(0.5deg); transform-origin: 45% 50%; }
.portable-ecran { background: #10151D; border-radius: 18px 18px 6px 6px; padding: 14px 12px 16px; border: 1px solid #2A3341;
  box-shadow: 0 50px 100px -35px rgba(16, 52, 110, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.5); }
.portable-camera { width: 6px; height: 6px; border-radius: 50%; background: #2A3240; margin: -6px auto 6px; }
.portable-ecran img { display: block; width: 100%; border-radius: 4px; }
.portable-socle { height: 18px; margin: 0 -7%; border-radius: 2px 2px 18px 18px; background: linear-gradient(180deg, #D7DEE8 0%, #AEB8C6 50%, #7C8797 100%);
  box-shadow: 0 30px 40px -20px rgba(16, 52, 110, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.8); }
.portable-socle::after { content: ""; display: block; width: 16%; height: 6px; margin: 0 auto; border-radius: 0 0 8px 8px; background: #98A3B3; }
.portable figcaption { position: relative; margin-top: 20px; text-align: center; font-size: 0.875rem; color: var(--discret); }
@media (max-width: 700px) { .portable-corps { transform: rotateY(-7deg) rotateX(3deg); } .portable { padding-bottom: 36px; } }

.vague { display: block; width: 100%; height: 100px; position: relative; z-index: 0; margin-top: -10px; }

/* ----- Sections ----- */
.section { padding-top: 80px; padding-bottom: 80px; }
.section-titre { max-width: 760px; margin-bottom: 48px; }
.section h2 { margin: 0 0 16px; font-weight: 300; font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.15; }
.section h2 b { font-weight: 600; color: var(--marque); }
.chapeau { margin: 0; font-size: 1.12rem; color: var(--doux); }
.blanc { background: var(--surface); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }

/* le planning : blocs texte + capture, en alternance */
.atout-planning { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; margin-bottom: 72px; }
.atout-planning:last-of-type { margin-bottom: 56px; }
.atout-planning.inverse { flex-direction: row-reverse; }
.atout-texte { flex: 1 1 360px; min-width: 0; }
.atout-texte h3 { margin: 0 0 14px; font-weight: 600; font-size: 1.55rem; line-height: 1.25; }
.atout-texte ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.atout-texte li { display: flex; gap: 12px; color: var(--doux); }
.atout-texte li svg { flex: none; margin-top: 3px; }
.atout-texte li b { color: var(--encre); font-weight: 600; }
.capture { flex: 1.4 1 480px; min-width: 0; margin: 0; }
.capture img { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--trait-fort); box-shadow: var(--ombre); }
.capture figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--discret); text-align: center; }

.grille { display: grid; gap: 18px; }
.grille-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grille-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.carte { padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--trait); box-shadow: 0 10px 30px -24px rgba(16, 52, 110, 0.35); }
.carte h3 { margin: 14px 0 6px; font-weight: 600; font-size: 1.15rem; }
.carte p { margin: 0; color: var(--doux); font-size: 0.97rem; }
.pastille-icone { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--bleu-pale); }

.etapes { list-style: none; margin: 0; padding: 0; }
.etape { padding: 26px; border-radius: 18px; background: var(--fond); border: 1px solid var(--trait); }
.etape h3 { margin: 12px 0 8px; font-weight: 600; font-size: 1.2rem; }
.etape p { margin: 0; color: var(--doux); font-size: 0.97rem; }
.numero { display: block; font-family: var(--titre); font-weight: 200; font-size: 3rem; line-height: 1; background: linear-gradient(180deg, var(--ciel), var(--bleu-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* options : liste compacte */
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.option { display: flex; gap: 14px; padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--trait); }
.option svg { flex: none; margin-top: 2px; }
.option h3 { margin: 0 0 4px; font-weight: 600; font-size: 1.05rem; }
.option p { margin: 0; color: var(--doux); font-size: 0.94rem; line-height: 1.5; }
.note-options { margin: 18px 0 0; color: var(--discret); font-size: 0.94rem; }

.securite { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 26px;
  background: linear-gradient(160deg, var(--bleu-pale), #FFFFFF); border: 1px solid var(--trait); }
.securite-texte { flex: 1 1 340px; min-width: 0; }
.securite-texte h2 { margin-bottom: 14px; }
.securite-texte p { margin: 0; color: var(--doux); }
.securite-liste { flex: 1.3 1 440px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.securite-liste li { padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--trait); }
.securite-liste b { display: block; margin-bottom: 4px; font-family: var(--titre); font-weight: 600; }
.securite-liste span { color: var(--doux); font-size: 0.94rem; }

.contact { padding-top: 16px; padding-bottom: 96px; }
.contact-carte { position: relative; overflow: hidden; border-radius: 30px; padding: clamp(36px, 5vw, 72px); text-align: center; color: #fff;
  background: radial-gradient(ellipse 80% 90% at 50% 120%, rgba(76, 155, 245, 0.75), transparent 70%), linear-gradient(135deg, #0B3F8C, #0A2A5E); }
.contact-carte h2 { margin: 0 0 14px; color: #fff; font-weight: 300; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.15; }
.contact-carte h2 b { font-weight: 600; color: #fff; }
.contact-carte p { margin: 0 auto 30px; max-width: 34em; color: #DCE7F7; font-size: 1.1rem; }
.bouton-blanc { min-height: 56px; padding: 14px 30px; background: #fff; color: #0A2A5E; border-radius: 999px; font-size: 1.08rem; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4); }
.bouton-blanc:hover { color: var(--marque); }
.contact-carte .contact-adresse { margin: 18px auto 0; font-size: 0.94rem; }
.contact-adresse a { color: #fff; font-weight: 600; }

/* ----- Pied de page ----- */
.pied { border-top: 1px solid var(--trait); background: var(--surface); }
.pied-corps { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 26px; padding-bottom: 26px; font-size: 0.94rem; color: var(--discret); }
.pied-marque { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.pied-marque img { height: 26px; width: auto; }
.pied nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.pied nav a { padding: 10px 0; color: var(--doux); }

/* ----- Pages de texte (mentions légales, confidentialité, 404) ----- */
.page-texte { max-width: 820px; padding-top: 24px; padding-bottom: 80px; }
.page-texte h1 { font-weight: 300; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; margin: 16px 0 8px; }
.page-texte h2 { font-weight: 600; font-size: 1.35rem; margin: 40px 0 10px; color: var(--marque); }
.page-texte p, .page-texte li { color: var(--doux); }
.page-texte .mise-a-jour { color: var(--discret); font-size: 0.94rem; margin-top: 0; }
.a-completer { background: #FFF1C7; color: #6B4A00; border-radius: 6px; padding: 1px 6px; font-weight: 600; }
.retour { display: inline-block; padding: 10px 0; text-decoration: none; }
