/* =========================================================
   Betelcom — feuille de style du site (2026)
   ========================================================= */
:root {
  --navy: #141B34;
  --navy-2: #1D2645;
  --navy-line: #2B3558;
  --red: #E5262F;
  --red-text: #C41D26;
  --red-soft: #FDECEC;
  --blue: #0B72D1;
  --blue-text: #0B6BC2;
  --blue-soft: #EAF3FC;
  --violet: #5B3FC4;
  --violet-soft: #F0EDFB;
  --text: #141B34;
  --muted: #4A5168;
  --muted-on-dark: #B9C0D4;
  --line: #E6E8EF;
  --field: #CDD3DF;
  --bg-soft: #F5F7FB;
  --white: #FFFFFF;
  --radius: 20px;
  --shadow: 0 24px 60px rgba(20, 27, 52, 0.14);
  --font-title: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-text); }
a:hover { color: #084F90; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; margin: 0; letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy); color: var(--white); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.logo:hover { color: var(--text); }
.logo__mark { display: flex; isolation: isolate; }
.logo__mark span {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-title); font-weight: 700; font-size: 22px; line-height: 1;
  mix-blend-mode: multiply;
}
.logo__mark span:first-child { background: var(--red); }
.logo__mark span:last-child { background: var(--blue); margin-left: -8px; }
.logo__word { font-family: var(--font-title); font-weight: 600; font-size: 28px; letter-spacing: -0.03em; }
.logo--small .logo__mark span { width: 30px; height: 30px; font-size: 16px; }
.logo--small .logo__mark span:last-child { margin-left: -6px; }
.logo--small .logo__word { font-size: 22px; }
.logo--light { color: #fff; }
.logo--light:hover { color: #fff; }
.logo--light .logo__mark span { mix-blend-mode: normal; }
.logo--light .logo__mark span:last-child { box-shadow: 0 0 0 3px var(--navy); }

/* ---------- En-tête ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 0; position: relative; }
.nav a:hover { color: var(--blue-text); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--red); border-radius: 2px; }
.nav .btn { padding: 11px 20px; font-size: 15px; }
.nav a.btn--dark, .nav a.btn--dark:hover { color: #fff; }
.nav .btn::after { display: none; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--text); }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; box-shadow: 0 16px 30px rgba(20,27,52,0.08); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--red-text); }
  .nav .btn { margin-top: 14px; border-bottom: 0; text-align: center; }
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; text-decoration: none; border-radius: 12px; padding: 15px 26px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #0961B3; color: #fff; }
.btn--dark { background: var(--navy); color: #fff; border-radius: 999px; }
.btn--dark:hover { background: #222B4D; color: #fff; }
.btn--ghost { background: #fff; color: var(--text); border-color: #D5DAE5; }
.btn--ghost:hover { color: var(--text); border-color: #B7BFD0; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Typo de section ---------- */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-text); }
.section--dark .eyebrow { color: #7DBDF5; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 18px; }
.section--dark .section-head p { color: var(--muted-on-dark); }
.lead { font-size: 19px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { background: var(--bg-soft); padding: 88px 0 96px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.03em; }
.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; background: #fff; border: 1px solid #E1E5EE; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500; color: #3D4560; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.screen { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.screen__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #EEF0F5; background: #FAFBFD; font-size: 13px; font-weight: 600; color: #3D4560; }
.screen__bar i { width: 11px; height: 11px; border-radius: 50%; background: #E1E4EC; display: block; }
.screen__bar span { margin-left: 8px; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } .hero { padding: 64px 0 72px; } }

/* Vagues en maillage */
.hero, .page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #F7F9FD 0%, #EEF3FB 100%); }
.hero > .container, .page-hero > .container { position: relative; z-index: 1; }
.waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 300px; pointer-events: none; z-index: 0; }
.hero { padding-bottom: 200px; }
.page-hero .waves { height: 200px; }
@media (max-width: 960px) {
  .hero { padding-bottom: 150px; }
  .waves { height: 200px; }
  .page-hero .waves { height: 140px; }
}

/* page intro (pages intérieures) */
.page-hero { padding: 72px 0 170px; border-bottom: 1px solid var(--line); }
@media (max-width: 960px) { .page-hero { padding: 56px 0 120px; } }
.page-hero .container { display: flex; flex-direction: column; gap: 16px; }
.page-hero h1 { font-size: clamp(34px, 4.5vw, 52px); max-width: 820px; }
.page-hero p { max-width: 720px; }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue-text); }

/* ---------- Bandeau chiffres ---------- */
.facts { border-bottom: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding: 40px 0; }
.fact strong { display: block; font-family: var(--font-title); font-weight: 600; font-size: 34px; letter-spacing: -0.02em; line-height: 1.2; }
.fact span { color: var(--muted); font-size: 15px; }

/* ---------- Cartes ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: #fff; display: flex; flex-direction: column; gap: 20px; }
.card h3 { font-size: 24px; letter-spacing: -0.01em; }
.card p { color: var(--muted); }
.card__kicker { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.card__link { margin-top: auto; font-weight: 600; text-decoration: none; }
.icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon svg { width: 26px; height: 26px; }
.icon--red { background: var(--red-soft); color: var(--red-text); }
.icon--blue { background: var(--blue-soft); color: var(--blue-text); }
.icon--violet { background: var(--violet-soft); color: var(--violet); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B6BC2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.checks--red li::before { background-color: var(--red-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C41D26' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.checks--violet li::before { background-color: var(--violet-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B3FC4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }

.dark-card { background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.dark-card svg { width: 28px; height: 28px; color: #7DBDF5; }
.dark-card h3 { font-size: 21px; }
.dark-card p { color: var(--muted-on-dark); font-size: 15px; }
.split-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.split-head .section-head { margin-bottom: 0; }
.split-head > p { color: var(--muted-on-dark); font-size: 17px; max-width: 420px; }

/* ---------- Deux colonnes ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.two-col--center { align-items: center; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.12; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { border: 1px solid #D5DAE5; border-radius: 999px; padding: 6px 14px; font-size: 14px; background: #fff; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.steps li { display: flex; gap: 18px; align-items: flex-start; background: var(--bg-soft); border-radius: 16px; padding: 20px 22px; counter-increment: step; }
.steps li::before { content: counter(step); flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-title); font-weight: 600; display: flex; align-items: center; justify-content: center; }
.steps strong { display: block; font-size: 17px; }
.steps span { color: var(--muted); font-size: 15px; }

/* ---------- Produits (page logiciels) ---------- */
.product { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding: 72px 0; border-bottom: 1px solid var(--line); }
.product:last-child { border-bottom: 0; }
.product:nth-child(even) .product__media { order: 2; }
.product__body { display: flex; flex-direction: column; gap: 20px; }
.product__body h2 { font-size: clamp(28px, 3.4vw, 38px); }
.product__body > p { color: var(--muted); font-size: 17px; }
.product__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tags span { font-size: 13px; font-weight: 500; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; color: #3D4560; }
.product__media img { width: 100%; }
@media (max-width: 960px) { .product { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; } .product:nth-child(even) .product__media { order: 0; } }

/* ---------- Formation ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.info { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.info strong { display: block; font-family: var(--font-title); font-size: 22px; font-weight: 600; }
.info span { color: var(--muted); font-size: 15px; }
.modules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; counter-reset: mod; }
.modules li { counter-increment: mod; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.modules li::before { content: "Module " counter(mod); font-size: 13px; font-weight: 600; color: var(--red-text); }
.modules strong { font-size: 16px; }
.modules span { color: var(--muted); font-size: 14px; }

/* ---------- CTA ---------- */
.cta { background: var(--navy); color: #fff; border-radius: 28px; padding: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { font-size: clamp(28px, 3.4vw, 38px); max-width: 620px; }
.cta p { color: var(--muted-on-dark); margin-top: 12px; max-width: 620px; }
@media (max-width: 600px) { .cta { padding: 36px 24px; } }

/* ---------- Contact ---------- */
.contact-box { background: var(--bg-soft); border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; }
@media (max-width: 960px) { .contact-box { grid-template-columns: 1fr; padding: 32px 20px; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; color: var(--red-text); flex-shrink: 0; margin-top: 3px; }
.contact-list a { color: var(--text); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--blue-text); }
.contact-list small { display: block; color: var(--muted); font-size: 13px; }
.form { background: #fff; border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 8px 24px rgba(20,27,52,0.06); }
@media (max-width: 600px) { .form { padding: 22px; } }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 10px; background: #fff; color: var(--text); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,114,209,0.18); }
.field textarea { resize: vertical; min-height: 130px; }
.field small { font-weight: 400; color: var(--muted); }
.req { color: var(--red-text); }
.form .btn { width: 100%; }
.form-status { border-radius: 12px; padding: 14px 16px; font-size: 15px; font-weight: 500; }
.form-status--ok { background: #E5F5EC; color: #145C37; border: 1px solid #B9E2CB; }
.form-status--err { background: var(--red-soft); color: #9B1720; border: 1px solid #F5C2C5; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.map-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; text-decoration: none; }

/* ---------- Pied de page ---------- */
.footer { background: var(--navy); color: var(--muted-on-dark); padding: 64px 0 28px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--navy-line); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h3 { font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a { color: var(--muted-on-dark); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__about p { margin-top: 16px; max-width: 320px; }
.footer__bottom { padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }

/* Accueil : capture en grand, sous le texte */
.hero__grid--stack { grid-template-columns: 1fr; gap: 48px; }
.hero__grid--stack .hero__text { align-items: center; text-align: center; max-width: 860px; margin: 0 auto; }
.hero__grid--stack .pill { align-self: center; }
.hero__grid--stack .lead { max-width: 720px; }
.hero__grid--stack .btn-row { justify-content: center; }
.hero__grid--stack .screen { max-width: 1152px; width: 100%; margin: 0 auto; }

/* Badge « En cours de création » */
.badge-wip { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #8A4B00; background: #FFF3DC; border: 1px solid #F5D9A3; }
.badge-wip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #E08A00; animation: wip-pulse 1.6s ease-in-out infinite; }
@keyframes wip-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .badge-wip::before { animation: none; } }

/* Galerie du projet de formation */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 28px; }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.gallery figcaption { color: var(--muted); font-size: 15px; }
.gallery figcaption strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 2px; }
