/* ASFD Informatique – feuille de style v2 (responsive, sans framework) */

:root {
  /* Couleurs reprises du logo */
  --violet: #8e3fa8;
  --bleu:   #2f6fd6;
  --orange: #f07c1e;
  --vert:   #3f9a3c;

  --ink:     #16181d;
  --ink-2:   #4a505c;
  --line:    #e3e6eb;
  --bg:      #ffffff;
  --bg-soft: #f5f6f8;
  --dark:    #1d1d1d; /* = fond du logo */
  --accent:  var(--orange);
  --accent-ink: #b85a0c; /* orange lisible sur fond clair (contraste AA) */

  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --wrap: 1140px;
  font-size: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
  transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: #d96a10; border-color: #d96a10; color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--sm { padding: .55em 1.1em; font-size: .95rem; }

/* ---------- Bandeau haut ---------- */
.topbar { background: #111; color: #b9bec8; font-size: .9rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1rem; padding: .4rem 0; flex-wrap: wrap; }
.topbar__tagline { color: #fff; font-weight: 600; }

/* ---------- En-tête / navigation ---------- */
/* Fond « hexagones » : alvéoles fines + lueur orange à droite (en-tête et pied de page) */
.header, .footer {
  background:
    url(../img/bg-hexa.svg) 0 0 / 28px 49px,
    radial-gradient(ellipse 60% 160% at 100% 50%, rgba(240,124,30,.22), transparent 70%),
    #1b1c1f;
}
.header { position: sticky; top: 0; z-index: 50; border-bottom: 2px solid var(--orange); }
.header__in { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.brand { flex-shrink: 0; }
.brand img { height: 68px; width: auto; }
.nav { display: flex; align-items: center; gap: .4rem; }
/* Liens du menu en « bulles » : texte centré, contour lumineux au survol */
.nav a:not(.btn):not(.nav__aside) {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 38px; padding: .4rem .95rem; border-radius: 999px; white-space: nowrap;
  color: #e6e9ee; font-size: .95rem; font-weight: 600; line-height: 1.2; letter-spacing: .01em; text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 6px rgba(0,0,0,.25);
  transition: background .15s, border-color .15s, box-shadow .15s, transform .15s, color .15s;
}
.nav a:not(.btn):not(.nav__aside):hover, .nav a:not(.btn):not(.nav__aside):focus-visible {
  color: #fff; background: rgba(240,124,30,.18); border-color: rgba(240,124,30,.75);
  box-shadow: 0 0 0 1px rgba(240,124,30,.25), 0 0 14px rgba(240,124,30,.35); transform: translateY(-1px);
}
/* Page en cours : bulle bleue (couleur du logo) */
.nav a[aria-current="page"]:not(.btn):not(.nav__aside) {
  color: #fff; background: linear-gradient(180deg, rgba(91,143,230,.55), rgba(47,111,214,.45));
  border-color: #7aa6f0; box-shadow: 0 0 12px rgba(47,111,214,.45), inset 0 1px 0 rgba(255,255,255,.2);
}
.nav .btn { margin-left: .4rem; justify-content: center; text-align: center; white-space: nowrap; }
/* Lien annexe « Qui sommes-nous » : petit lien orange, séparé des bulles */
.nav__aside {
  margin-left: .6rem; padding: .2rem 0 .2rem .9rem; border-left: 1px solid rgba(255,255,255,.25);
  color: #ffb070; font-size: .9rem; font-weight: 600; white-space: nowrap; text-decoration: none;
}
.nav__aside:hover, .nav__aside:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.nav__aside[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }

/* Écrans moyens et petits : le menu reste une barre de liens toujours visible,
   le logo au-dessus et les bulles réparties sur une ou plusieurs lignes, centrées */
@media (max-width: 1140px) {
  .header { position: static; }
  .header__in { flex-direction: column; justify-content: center; gap: .7rem; padding: .7rem 0 .9rem; min-height: 0; }
  .nav { flex-wrap: wrap; justify-content: center; gap: .45rem; }
  .nav .btn { margin-left: 0; }
}
@media (max-width: 600px) {
  .brand img { height: 56px; }
  .nav { gap: .4rem; }
  .nav a:not(.btn):not(.nav__aside) { min-height: 36px; padding: .35rem .8rem; font-size: .9rem; }
  .nav .btn { flex-basis: 100%; }
  .nav__aside { flex-basis: 100%; text-align: center; border-left: 0; margin: .2rem 0 0; padding: .2rem 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; background: var(--dark);
  overflow: hidden; isolation: isolate;
}
.hero::before { /* halo aux couleurs du logo */
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle at 30% 30%, rgba(142,63,168,.55), transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(47,111,214,.45), transparent 55%),
              radial-gradient(circle at 40% 80%, rgba(240,124,30,.35), transparent 55%);
  filter: blur(40px); z-index: -1;
}
.hero__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding: 5rem 0; }
.hero p.lead { font-size: 1.2rem; color: #c9ced8; max-width: 38ch; }
.hero__cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero__img { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.hero__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .8rem; }
.hero .eyebrow { color: #ffb070; }
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; padding: 3rem 0; gap: 2rem; }
}

/* ---------- Chiffres clés ---------- */
.stats { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.stats__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.5rem 0; text-align: center; }
.stats strong { display: block; font-size: 1.5rem; color: var(--ink); }
.stats span { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 700px) { .stats__in { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin: 0 auto 2.2rem; text-align: center; }
.section__head p { color: var(--ink-2); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s;
  border-top: 4px solid var(--c, var(--accent));
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 16px 40px rgba(0,0,0,.1); }
.card p { color: var(--ink-2); flex: 1; }
.card a.more { font-weight: 600; text-decoration: none; }
.card a.more::after { content: " →"; }
.card__icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 1rem;
  background: color-mix(in srgb, var(--c, var(--accent)) 14%, white); color: var(--c, var(--accent)); }
.card__icon svg { width: 24px; height: 24px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checks li { padding-left: 1.8rem; position: relative; margin-bottom: .6rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: .55rem;
  border-left: 3px solid var(--vert); border-bottom: 3px solid var(--vert); transform: rotate(-45deg); }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; list-style: none; padding: 0; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; margin-bottom: .8rem; }

.c-violet { --c: var(--violet); }
.c-bleu   { --c: var(--bleu); }
.c-orange { --c: var(--orange); }
.c-vert   { --c: var(--vert); }

/* ---------- Grilles de contenu ---------- */
/* Les encadrés sont des « tuiles » de largeur raisonnable, posées côte à côte et centrées */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 800px; margin-inline: auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; max-width: 1040px; margin-inline: auto; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 18px rgba(0,0,0,.05);
  transition: transform .15s, box-shadow .15s;
}
.box:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 12px 28px rgba(0,0,0,.09); }
.box h2 { font-size: 1.3rem; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
.box h3 { margin-bottom: .4rem; }
.box--accent { border-top: 4px solid var(--c, var(--accent)); }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: var(--bg-soft); color: var(--ink-2); border-radius: 999px; padding: .2rem .7rem; margin-bottom: .6rem; }
.split--top { align-items: start; }
.mt { margin-top: 2rem; }
.wrap > p.mt { text-align: center; max-width: 760px; margin-inline: auto; }
.btn + .btn { margin-left: .5rem; }

/* Tableau (catalogue de formations) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); max-width: 900px; margin-inline: auto; background: #fff; }
table.table { width: 100%; border-collapse: collapse; background: #fff; min-width: 520px; }
.table th, .table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--bg-soft); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.table tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: -.1rem; font-size: 1.4rem; color: var(--accent-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .7rem 0 0; color: var(--ink-2); }

/* ---------- Bandeau d'appel ---------- */
.section--cta { margin-top: 1rem; }
.cta { background: var(--dark); color: #fff; border-radius: 20px; padding: 3rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta p { color: #c9ced8; margin: 0; }

/* ---------- Pages intérieures ---------- */
.page-head { background: var(--dark); color: #fff; padding: 3.5rem 0 3rem; }
.page-head p { color: #c9ced8; max-width: 60ch; margin: 0; }
.prose { max-width: 75ch; }
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }

.highlight { display: inline-block; background: color-mix(in srgb, var(--orange) 12%, white); border-left: 4px solid var(--orange); border-radius: 8px; padding: .6rem 1rem; }

/* ---------- Zone d'intervention (page Intervention) ---------- */
.zone { max-width: 900px; margin-inline: auto; text-align: center; padding: 2rem 1.6rem; }
.zone .zone__title { font-size: clamp(2rem, 5vw, 3rem); margin: .2rem 0 .4rem; color: var(--ink); letter-spacing: -.02em; }
.zone p { color: var(--ink-2); }
.city-chips { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.city-chips a {
  display: inline-block; padding: .3rem .85rem; border-radius: 999px; font-size: .9rem; font-weight: 600; white-space: nowrap; text-decoration: none;
  background: color-mix(in srgb, var(--orange) 10%, white); border: 1px solid color-mix(in srgb, var(--orange) 35%, white); color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.city-chips a:hover, .city-chips a:focus-visible { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); transform: translateY(-1px); color: var(--ink); }
.city-chips a[aria-current="page"] { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }

/* ---------- Page tarifs ---------- */
.price-grid { max-width: 760px; }
.price { text-align: center; }
.price .checks { display: inline-block; text-align: left; margin: 0; }
.price__amount { font-size: 3rem; font-weight: 800; line-height: 1; margin: .4rem 0 1.2rem; color: var(--ink); }
.price__amount small { font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.price-table { max-width: 560px; margin-inline: auto; }
.price-table .table { min-width: 0; }
.price-table td:last-child, .price-table th:last-child { text-align: right; }

/* ---------- Bulles téléphone (fixe + mobile) ---------- */
.tel-bubbles { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; vertical-align: middle; }
.tel-bubble {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .3rem 1rem .3rem .3rem; border-radius: 999px; white-space: nowrap;
  font-weight: 700; font-size: 1rem; line-height: 1.2; letter-spacing: .02em; text-decoration: none;
  color: var(--ink); background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.06);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tel-bubble:hover { color: var(--ink); transform: translateY(-1px); border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 6px 16px rgba(0,0,0,.12); }
.tel-bubble--fixe   { --c: var(--orange); }
.tel-bubble--mobile { --c: var(--bleu); }
.tel-bubble__ico {
  display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--c); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.tel-bubble__ico svg { width: 1.05rem; height: 1.05rem; }
/* Sur fond sombre (bandeau, en-tête, pied de page, accroche) */
.tel-bubbles--dark .tel-bubble {
  color: #fff; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border-color: rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.tel-bubbles--dark .tel-bubble:hover { color: #fff; box-shadow: 0 0 0 1px var(--c), 0 0 14px color-mix(in srgb, var(--c) 45%, transparent); }
/* Tailles */
.tel-bubbles--sm { gap: .35rem; }
.tel-bubbles--sm .tel-bubble { font-size: .85rem; padding: .15rem .7rem .15rem .15rem; gap: .4rem; }
.tel-bubbles--sm .tel-bubble__ico { width: 1.5rem; height: 1.5rem; }
.tel-bubbles--sm .tel-bubble__ico svg { width: .8rem; height: .8rem; }
.tel-bubbles--lg { gap: .7rem; }
.tel-bubbles--lg .tel-bubble { font-size: 1.2rem; padding: .4rem 1.3rem .4rem .4rem; gap: .7rem; }
.tel-bubbles--lg .tel-bubble__ico { width: 2.5rem; height: 2.5rem; }
.tel-bubbles--lg .tel-bubble__ico svg { width: 1.3rem; height: 1.3rem; }
.footer .tel-bubbles { flex-direction: column; align-items: flex-start; }
.contact-call { text-align: center; padding: 2.5rem 1.5rem; max-width: 680px; margin-inline: auto; }
.contact-call .tel-bubbles { justify-content: center; }

/* ---------- Pied de page ---------- */
.footer { color: #a9afba; margin-top: 5rem; font-size: .95rem; }
.footer a { color: #e1e4ea; }
.footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .35rem; }
.footer__area { margin-top: 1rem; }
.footer__claim { color: #fff; }
.cta strong { color: #ffb070; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; padding: 3.5rem 0 2rem; }
.footer__grid img { margin-bottom: 1rem; }
.footer__legal { border-top: 1px solid #23262c; padding: 1.2rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
