/* =======================================================================
   LE DOCTEUR WEB — Feuille de style principale
   Direction : clair, rassurant, accessible. Bleu lumineux + orange.
   Typographies : Fraunces (display, caractère) + Outfit (texte, moderne).
   ======================================================================= */

/* ---------- Variables ---------- */
:root {
  --bleu:        #3a9bdf;   /* bleu clair lumineux — accent principal */
  --bleu-profond:#427497;   /* bleu-gris profond */
  --orange:      #e68035;   /* accent / call-to-action */
  --orange-fonce:#c8691f;
  --nuit:        #393a4c;   /* anthracite (texte fort, fonds sombres) */
  --encre:       #2b2c38;
  --gris:        #6b7280;
  --gris-clair:  #f4f7fb;   /* fonds de section doux, teinté bleu */
  --ligne:       #e3e9f2;
  --blanc:       #ffffff;

  --rayon:       14px;
  --rayon-sm:    8px;
  --ombre-sm:    0 2px 10px rgba(57,58,76,.06);
  --ombre:       0 14px 40px rgba(57,58,76,.12);
  --ombre-bleu:  0 16px 40px rgba(58,155,223,.22);

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-texte:   'Outfit', system-ui, sans-serif;

  --contenu: 1180px;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-texte);
  color: var(--encre);
  background: var(--blanc);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--bleu); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.14; color: var(--nuit); letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

.container { width: 100%; max-width: var(--contenu); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5.5rem 0; }
.section--doux { background: var(--gris-clair); }
.section--nuit { background: var(--nuit); color: #fff; }
.section--nuit h2, .section--nuit h3 { color: #fff; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-texte); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 10px 26px rgba(230,128,53,.32); }
.btn--primary:hover { background: var(--orange-fonce); color: #fff; transform: translateY(-2px); }
.btn--bleu { background: var(--bleu); color: #fff; box-shadow: var(--ombre-bleu); }
.btn--bleu:hover { background: var(--bleu-profond); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--bleu); border-color: var(--bleu); }
.btn--ghost:hover { background: var(--bleu); color: #fff; }
.btn--blanc { background: #fff; color: var(--nuit); }
.btn--blanc:hover { transform: translateY(-2px); color: var(--nuit); box-shadow: var(--ombre); }

/* ---------- Topbar ---------- */
.topbar { background: var(--nuit); color: #fff; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; padding: .5rem 1.5rem; max-width: var(--contenu); margin: 0 auto; flex-wrap: wrap; gap: .4rem; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--orange); }
.topbar__tel { font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.topbar__right { display: flex; gap: 1.2rem; align-items: center; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ligne); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .7rem 1.5rem; max-width: var(--contenu); margin: 0 auto; }
.header__logo img { max-height: 46px; width: auto; }
.header__logo .img-placeholder { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--bleu); }
.header__logo .img-placeholder b { color: var(--orange); }

.nav { display: flex; }
.nav__list { list-style: none; display: flex; align-items: center; gap: .3rem; padding: 0; }
.nav__list > li > a { display: block; padding: .55rem .9rem; border-radius: var(--rayon-sm); font-weight: 500; color: var(--encre); }
.nav__list > li > a:hover, .nav__list > li > a.is-active { background: var(--gris-clair); color: var(--bleu); }
.nav__cta { background: var(--orange); color: #fff !important; border-radius: 100px; padding: .6rem 1.3rem !important; }
.nav__cta:hover { background: var(--orange-fonce); }

.nav__has-children { position: relative; }
.nav__dropdown { position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: var(--ombre); padding: .5rem; min-width: 240px; list-style: none; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; }
.nav__has-children:hover .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown li a { display: block; padding: .6rem .8rem; border-radius: var(--rayon-sm); color: var(--encre); }
.nav__dropdown li a:hover { background: var(--gris-clair); color: var(--bleu); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span { width: 26px; height: 2px; background: var(--nuit); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 4.5rem 0 5rem; overflow: hidden; background:
  radial-gradient(1100px 500px at 85% -10%, rgba(58,155,223,.12), transparent 60%),
  radial-gradient(800px 400px at 5% 110%, rgba(230,128,53,.10), transparent 55%); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(58,155,223,.12); color: var(--bleu-profond); font-weight: 600; font-size: .85rem; padding: .4rem 1rem; border-radius: 100px; margin-bottom: 1.4rem; }
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 .accent { color: var(--bleu); }
.hero__sub { font-size: 1.18rem; color: var(--gris); max-width: 33ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__visual { position: relative; }
.hero__card { background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.6rem; }

/* Carte "diagnostic" décorative dans le hero */
.diag-card { display: grid; gap: 1rem; }
.diag-card__row { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; background: var(--gris-clair); border-radius: var(--rayon-sm); }
.diag-card__ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.diag-card__ico--ok { background: var(--bleu); }
.diag-card__ico--warn { background: var(--orange); }
.diag-card__txt strong { display: block; font-weight: 600; color: var(--nuit); }
.diag-card__txt span { font-size: .9rem; color: var(--gris); }
.diag-card__pulse { margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 rgba(52,199,89,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(52,199,89,.5);} 70%{box-shadow:0 0 0 10px rgba(52,199,89,0);} 100%{box-shadow:0 0 0 0 rgba(52,199,89,0);} }

/* ---------- Bandeau confiance ---------- */
.trust { border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); background: #fff; }
.trust__inner { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 1.5rem; padding: 1.8rem 1.5rem; max-width: var(--contenu); margin: 0 auto; text-align: center; }
.trust__item { display: flex; flex-direction: column; }
.trust__num { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--bleu); }
.trust__label { font-size: .9rem; color: var(--gris); }

/* ---------- Grille de services (cartes) ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.svc-card { position: relative; background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 2rem 1.8rem; transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--ombre); border-color: transparent; }
.svc-card__ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: rgba(58,155,223,.12); color: var(--bleu); margin-bottom: 1.2rem; }
.svc-card:hover .svc-card__ico { background: var(--bleu); color: #fff; }
.svc-card h3 { margin-bottom: .6rem; }
.svc-card p { color: var(--gris); margin-bottom: 1.1rem; font-size: .98rem; }
.svc-card__link { font-weight: 600; color: var(--bleu); display: inline-flex; align-items: center; gap: .35rem; }
.svc-card__link::after { content: '→'; transition: transform .2s; }
.svc-card:hover .svc-card__link::after { transform: translateX(4px); }
.svc-card--accent { background: linear-gradient(160deg, var(--bleu), var(--bleu-profond)); border: none; color: #fff; }
.svc-card--accent h3, .svc-card--accent p { color: #fff; }
.svc-card--accent .svc-card__ico { background: rgba(255,255,255,.18); color: #fff; }
.svc-card--accent .svc-card__link { color: #fff; }

/* ---------- En-tête de section ---------- */
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head .eyebrow { display: inline-block; color: var(--orange); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .7rem; }
.section-head p { color: var(--gris); margin-top: .8rem; font-size: 1.08rem; }

/* ---------- Étapes (process) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding: 2rem 1.5rem; background: #fff; border-radius: var(--rayon); border: 1px solid var(--ligne); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 1.5rem; width: 40px; height: 40px; background: var(--orange); color: #fff; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; box-shadow: 0 6px 16px rgba(230,128,53,.35); }
.step h3 { margin: .6rem 0 .5rem; font-size: 1.15rem; }
.step p { color: var(--gris); font-size: .95rem; }

/* ---------- Bandeau CTA ---------- */
.cta-band { position: relative; background: linear-gradient(135deg, var(--nuit), #2a2b39); border-radius: 22px; padding: 3.5rem; text-align: center; color: #fff; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 280px at 110% -20%, rgba(58,155,223,.3), transparent 60%), radial-gradient(400px 240px at -10% 120%, rgba(230,128,53,.25), transparent 60%); pointer-events: none; z-index: 0; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: .8rem; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 50ch; margin: 0 auto 1.8rem; }
.cta-band .hero__actions { justify-content: center; }

/* ---------- Avis clients ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 1.5rem; }
.review { background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1.8rem; box-shadow: var(--ombre-sm); }
.review__stars { color: var(--orange); margin-bottom: .8rem; letter-spacing: 2px; }
.review__text { color: var(--encre); font-style: italic; margin-bottom: 1.2rem; }
.review__author { display: flex; align-items: center; gap: .7rem; }
.review__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--bleu); color: #fff; display: grid; place-items: center; font-weight: 600; }
.review__name { font-weight: 600; color: var(--nuit); font-size: .95rem; }
.review__meta { font-size: .82rem; color: var(--gris); }

/* ---------- Footer ---------- */
.footer { background: var(--nuit); color: rgba(255,255,255,.75); padding: 4rem 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; max-width: var(--contenu); margin: 0 auto; padding: 0 1.5rem; }
.footer__about { margin: 1rem 0; font-size: .95rem; max-width: 30ch; }
.footer__brand-logo { font-family: var(--font-display); font-size: 1.4rem; color: #fff; }
.footer__brand-logo b { color: var(--orange); }
.footer h4 { color: #fff; font-family: var(--font-texte); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.footer__list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer__list a { color: rgba(255,255,255,.75); font-size: .95rem; }
.footer__list a:hover { color: var(--orange); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding: 1.5rem; text-align: center; font-size: .85rem; }
.footer__bottom a { color: var(--bleu); }
.footer__parent { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.06); padding: .5rem 1rem; border-radius: 100px; margin-top: .6rem; }

/* ---------- Fil d'Ariane & hero de page ---------- */
.page-hero { background: var(--gris-clair); padding: 3rem 0; border-bottom: 1px solid var(--ligne); }
.breadcrumb { font-size: .9rem; color: var(--gris); margin-bottom: .8rem; }
.breadcrumb a { color: var(--bleu); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: var(--gris); margin-top: .8rem; max-width: 60ch; }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose p { margin-bottom: 1.2rem; color: var(--encre); }
.prose h2 { margin: 2.2rem 0 1rem; }
.prose h3 { margin: 1.8rem 0 .8rem; }
.prose ul { margin: 0 0 1.4rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }

.img-placeholder { display: inline-grid; place-items: center; min-height: 60px; padding: 1rem; background: var(--gris-clair); border: 1px dashed var(--ligne); border-radius: var(--rayon-sm); color: var(--gris); font-size: .85rem; text-align: center; width: 100%; }

/* ---------- Formulaires ---------- */
label { font-weight: 600; color: var(--nuit); font-size: .92rem; display: block; }
input, select, textarea {
  font-family: var(--font-texte); font-size: 1rem; color: var(--encre);
  width: 100%; padding: .75rem .9rem; margin-top: .35rem;
  border: 1px solid var(--ligne); border-radius: var(--rayon-sm); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(58,155,223,.15); }
textarea { resize: vertical; }
fieldset legend { font-size: .92rem; }
label input[type="checkbox"] { width: auto; }

/* ---------- Section services + photo fondateur à droite ---------- */
.svc-layout { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: end; }
.svc-layout__main { min-width: 0; }
.services--2col { grid-template-columns: repeat(2, 1fr); }
.svc-layout__photo { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; }
.svc-photo__img, .svc-layout__photo .img-placeholder {
  width: 100%; height: auto; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 18px 30px rgba(57,58,76,.28));
}
.svc-layout__photo .img-placeholder { min-height: 300px; display: grid; place-items: center; }
.svc-photo__badge {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--ligne); border-radius: 100px;
  padding: .55rem 1.2rem; box-shadow: var(--ombre); text-align: center; white-space: nowrap;
}
.svc-photo__badge strong { display: block; font-family: var(--font-display); color: var(--nuit); font-size: .95rem; }
.svc-photo__badge span { font-size: .78rem; color: var(--gris); }

@media (max-width: 1024px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-layout__photo { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .services--2col { grid-template-columns: 1fr; }
}

/* ---------- Menu flottant latéral (services) — modèle BA Formation ---------- */
.float-menu {
  position: fixed; top: 50%; right: 0; transform: translateY(-50%);
  z-index: 90; display: flex; align-items: stretch;
  font-family: var(--font-display);
}
.float-menu__toggle {
  background: var(--orange); color:#fff; border:none; cursor:pointer;
  writing-mode: vertical-rl; text-orientation: mixed;
  padding: 1rem .55rem; border-radius: 12px 0 0 12px;
  display:flex; align-items:center; gap:.6rem; font-family: var(--font-display);
  font-weight:700; font-size:.9rem; letter-spacing:.02em;
  box-shadow: -6px 0 20px -10px rgba(0,0,0,.4); transition: background .2s;
}
.float-menu__toggle:hover { background: var(--orange-fonce); }
.float-menu__chevron { transform: rotate(90deg); transition: transform .3s ease; }
.float-menu.is-open .float-menu__chevron { transform: rotate(-90deg); }
.float-menu__list {
  width: 0; overflow: hidden; background:#fff;
  border-radius: 0 0 0 12px; box-shadow: -10px 0 30px -14px rgba(0,0,0,.35);
  transition: width .32s ease, padding .32s ease;
  max-height: 80vh; overflow-y: auto; padding: 0;
}
.float-menu.is-open .float-menu__list { width: 250px; padding: 1.2rem 1.1rem; border:1px solid var(--ligne); border-right:none; }
.float-menu__title {
  margin:0 0 .8rem; font-size:.72rem; letter-spacing:.12em; text-transform:uppercase;
  color: var(--gris); font-weight:700; white-space:nowrap;
}
.float-menu__list ul { list-style:none; margin:0; padding:0; display:grid; gap:.25rem; }
.float-menu__list a {
  display:block; padding:.6rem .8rem; border-radius:8px; color: var(--nuit);
  font-size:.92rem; font-weight:500; line-height:1.3; white-space:normal; transition: background .2s, color .2s;
}
.float-menu__list a:hover { background: var(--gris-clair); color: var(--bleu); }
.float-menu__list a.is-active { background: var(--bleu); color:#fff; }
.float-menu__devis { background: var(--orange); color:#fff !important; margin-top:.4rem; text-align:center; font-weight:700 !important; }
.float-menu__devis:hover { background: var(--orange-fonce) !important; color:#fff !important; }
@media (max-width: 820px) {
	body.nav-open .float-menu { display: none; }
  .float-menu { top:auto; bottom: 80px; transform:none; }
  .float-menu__toggle { writing-mode: horizontal-tb; border-radius:10px 0 0 10px; padding:.7rem 1rem; }
  .float-menu__chevron { transform: rotate(-90deg); }
  .float-menu.is-open .float-menu__chevron { transform: rotate(90deg); }
  .float-menu__list { position:fixed; bottom: 130px; right:0; }
  .float-menu.is-open .float-menu__list { width: min(80vw, 280px); }
}
@media print { .float-menu { display:none; } }

/* ---------- Sous-menu du menu flottant ---------- */
.float-menu__sub { list-style: none; margin: .25rem 0 .25rem .8rem; padding-left: .7rem; border-left: 2px solid var(--ligne); display: grid; gap: .15rem; }
.float-menu__sub a { font-size: .86rem; color: var(--gris); padding: .4rem .7rem; }
.float-menu__sub a:hover { color: var(--bleu); background: var(--gris-clair); }
.float-menu__sub a.is-active { background: var(--bleu); color: #fff; }

/* ---------- Page Tarifs : blocs de prix ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.3rem; align-items: stretch; }
.price-card { position: relative; background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 2rem 1.5rem; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.price-card:hover { transform: translateY(-5px); box-shadow: var(--ombre); border-color: transparent; }
.price-card--featured { border-color: var(--bleu); box-shadow: var(--ombre-bleu); }
.price-card__tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .3rem .9rem; border-radius: 100px; white-space: nowrap; }
.price-card__name { font-size: 1.15rem; margin-bottom: .6rem; }
.price-card__price { display: flex; align-items: baseline; gap: .2rem; margin-bottom: .8rem; }
.price-card__amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--bleu); line-height: 1; }
.price-card__per { color: var(--gris); font-size: .85rem; font-weight: 600; }
.price-card__accroche { color: var(--gris); font-size: .9rem; margin-bottom: 1.2rem; min-height: 2.4em; }
.price-card__cles { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; }
.price-card__cles li { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--encre); }
.price-card__cles svg { color: var(--bleu); flex-shrink: 0; }
.price-card__btn { margin-top: auto; justify-content: center; }
.pricing__note { color: var(--gris); font-size: .82rem; margin-top: 1.8rem; text-align: center; }

/* ---------- Tableaux de specs ---------- */
.specs-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre-sm); }
.specs-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--ligne); font-size: .95rem; vertical-align: middle; }
.specs-table tr:last-child td { border-bottom: none; }
.specs-table tr:nth-child(even) { background: var(--gris-clair); }
.specs-table__num { width: 40px; color: var(--gris); font-weight: 600; text-align: center; }
.specs-table__label { color: var(--encre); }
.specs-table__val { width: 110px; text-align: center; }
.specs-table--options .specs-table__label { font-weight: 500; }
.badge { display: inline-block; padding: .2rem .7rem; border-radius: 100px; font-size: .78rem; font-weight: 700; }
.badge--oui { background: #e8f7ee; color: #1b6b3a; }
.badge--option { background: #fff4e6; color: var(--orange-fonce); }

/* ---------- Bannière promo ---------- */
.promo-banner { position: relative; background: linear-gradient(120deg, var(--orange), #f0a04b); color: #fff; border-radius: var(--rayon); padding: 1.2rem 1.6rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; box-shadow: 0 12px 30px rgba(230,128,53,.3); overflow: hidden; }
.promo-banner::after { content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; background: rgba(255,255,255,.12); border-radius: 50%; }
.promo-banner__icon { width: 52px; height: 52px; background: rgba(255,255,255,.2); border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; position: relative; z-index: 1; }
.promo-banner__text { flex: 1; min-width: 200px; position: relative; z-index: 1; }
.promo-banner__title { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; line-height: 1.2; }
.promo-banner__sub { font-size: .9rem; opacity: .95; }
.promo-banner__cta { position: relative; z-index: 1; }
.promo-banner__dates { display: inline-block; background: rgba(255,255,255,.2); padding: .2rem .7rem; border-radius: 100px; font-size: .8rem; font-weight: 600; margin-top: .3rem; }

/* ---------- Formulaire reprise (page reprise-site-web) ---------- */
.repform { background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 2rem; box-shadow: var(--ombre-sm); }
.repform fieldset { border: 1px solid var(--ligne); border-radius: var(--rayon-sm); padding: 1.4rem; margin-bottom: 1.6rem; }
.repform legend { font-family: var(--font-display); font-weight: 700; color: var(--bleu-profond); padding: 0 .5rem; font-size: 1.05rem; }
.repform .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.repform .grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.repform label { margin-bottom: .9rem; display: block; }
.tva-feedback { font-size: .85rem; margin-top: .3rem; min-height: 1.2em; }
.tva-feedback.ok { color: #1b6b3a; }
.tva-feedback.ko { color: #a02020; }
.tva-feedback.checking { color: var(--gris); }
.credit-fields { display: none; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--ligne); }
.credit-fields.is-visible { display: block; }
.toggle-credit { display: flex; gap: 1.5rem; margin: .5rem 0; }
.toggle-credit label { display: flex; align-items: center; gap: .4rem; margin: 0; font-weight: 500; cursor: pointer; }
.toggle-credit input { width: auto; }
.repform input[readonly] { background: var(--gris-clair); color: var(--gris); }
.repform__file { border: 2px dashed var(--ligne); border-radius: var(--rayon-sm); padding: 1.4rem; text-align: center; transition: border-color .2s; }
.repform__file:hover { border-color: var(--bleu); }
.repform__file input { width: auto; }
@media (max-width: 640px) {
  .repform .grid2, .repform .grid3 { grid-template-columns: 1fr; }
}


/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav { position: fixed; inset: 0 0 0 auto; height: 100vh; width: min(80vw, 320px); background: #fff !important; z-index: 99; flex-direction: column; padding: 5rem 1.5rem 2rem; box-shadow: -10px 0 40px rgba(0,0,0,.1); transform: translateX(100%); transition: transform .3s; overflow-y: auto; }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: .2rem; width: 100%; }
  .nav__dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 1rem; display: none; }
  .nav__has-children.is-open .nav__dropdown { display: block; }
  .nav-toggle { display: flex; z-index: 101; }
}
@media (max-width: 560px) {
  .section { padding: 3.5rem 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-band { padding: 2.2rem 1.4rem; }
  .topbar__right { display: none; }
  .container > div[style*="grid-template-columns:1.4fr"] { grid-template-columns: 1fr !important; }
  div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* ---------- 4 blocs d'accès rapide (accueil) ---------- */
.quick-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.3rem; }
.qblock { display: flex; flex-direction: column; padding: 1.8rem; border-radius: var(--rayon); color: #fff; text-decoration: none; transition: transform .2s, box-shadow .2s; min-height: 200px; }
.qblock:hover { transform: translateY(-5px); box-shadow: var(--ombre); color: #fff; }
.qblock__ico { width: 56px; height: 56px; border-radius: 14px; background: rgba(255,255,255,.18); display: grid; place-items: center; margin-bottom: 1.1rem; }
.qblock h3 { color: #fff; font-size: 1.15rem; margin-bottom: .6rem; line-height: 1.2; }
.qblock p { color: rgba(255,255,255,.9); font-size: .92rem; margin: 0; }
.qblock--nuit { background: linear-gradient(155deg, #4a4d63, var(--nuit)); }
.qblock--orange { background: linear-gradient(155deg, #f0a04b, var(--orange)); }
.qblock--bleu { background: linear-gradient(155deg, #4eb0ec, var(--bleu)); }
.qblock--bleu-profond { background: linear-gradient(155deg, #4f7f9f, var(--bleu-profond)); }

/* ---------- Actu Cometik (accueil) ---------- */
.actu-cometik { display: flex; gap: 1.5rem; align-items: center; background: #fff; border: 1px solid var(--ligne); border-left: 5px solid var(--orange); border-radius: var(--rayon); padding: 1.8rem 2rem; box-shadow: var(--ombre-sm); flex-wrap: wrap; }
.actu-cometik__badge { background: var(--orange); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .4rem .9rem; border-radius: 100px; flex-shrink: 0; align-self: flex-start; }
.actu-cometik__body { flex: 1; min-width: 260px; }
.actu-cometik__body h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.actu-cometik__body p { color: var(--gris); margin-bottom: 1.2rem; }

/* ---------- Contacts page Cometik ---------- */
.cometik-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.5rem 0; }
.cometik-contact { background: var(--gris-clair); border-radius: var(--rayon); padding: 1.5rem; }
.cometik-contact h3 { font-size: 1.05rem; margin-bottom: .8rem; color: var(--bleu-profond); }
.cometik-contact p { font-size: .92rem; margin-bottom: 1rem; }
@media (max-width: 640px) { .cometik-contacts { grid-template-columns: 1fr; } }

/* ---------- Bloc Cometik dans le hero ---------- */
.hero__card--cometik { text-align: center; }
.hero__card--cometik .actu-cometik__badge { display: inline-block; margin-bottom: 1rem; }
.cometik-hero__img { margin: 0 0 1.2rem; border-radius: var(--rayon-sm); overflow: hidden; }
.cometik-hero__img img, .cometik-hero__img .cometik-gif { width: 100%; height: auto; display: block; border-radius: var(--rayon-sm); }
.hero__card--cometik h3 { font-size: 1.3rem; margin-bottom: .7rem; line-height: 1.2; }
.hero__card--cometik p { color: var(--gris); font-size: .95rem; margin-bottom: 1.3rem; }

/* ---------- Image d'illustration en haut de page ---------- */
.page-illustr { border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.page-illustr__img { width: 100%; height: auto; max-height: 340px; object-fit: cover; display: block; }

/* ---------- Forcer 4 colonnes (page dépannage) ---------- */
.services--4col { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .services--4col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .services--4col { grid-template-columns: 1fr; } }

/* forcer 3 colones page creation-site-web.php--------------*/
.services--3col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .services--3col { grid-template-columns: 1fr; } }

/* ---------- Bloc AnyDesk ---------- */
.anydesk-block { display: flex; align-items: center; gap: 2rem; background: linear-gradient(135deg, #fff, var(--gris-clair)); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 2rem; box-shadow: var(--ombre-sm); flex-wrap: wrap; }
.anydesk-block__logo { flex-shrink: 0; display: block; transition: transform .2s; }
.anydesk-block__logo:hover { transform: scale(1.05); }
.anydesk-logo { width: 140px; height: auto; }
.anydesk-block__text { flex: 1; min-width: 260px; }
.anydesk-block__text h3 { margin-bottom: .6rem; }
.anydesk-block__text p { color: var(--gris); margin-bottom: 1.2rem; }
@media (max-width: 560px) { .anydesk-block { justify-content: center; text-align: center; } }

/* ---------- FAQ (modèle BA Formation : groupes + boutons) ---------- */
.faq-layout { max-width: 820px; margin-inline: auto; }
.faq-group { margin-bottom: 2.5rem; }
.faq-group__title { font-size: 1.4rem; padding-bottom: .7rem; border-bottom: 2px solid var(--orange); margin-bottom: 1rem; }
.faq-item { background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon-sm); margin-bottom: .7rem; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--orange); box-shadow: var(--ombre-sm); }
.faq-item summary { cursor: pointer; padding: 1.1rem 1.4rem; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--nuit); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: color .2s; }
.faq-item summary:hover { color: var(--orange); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex-shrink: 0; font-size: 1.6rem; font-weight: 400; color: var(--orange); transition: transform .25s ease; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__answer { padding: 0 1.4rem 1.2rem; }
.faq-item__answer p { margin: 0; color: var(--gris); }

/* ---------- Carte fondateur (qui sommes-nous) ---------- */
.founder-card { display: flex; align-items: center; gap: 1.2rem; background: var(--gris-clair); border-radius: var(--rayon); padding: 1.2rem 1.5rem; margin: 2rem 0; }
.founder-card__img { width: 90px; height: auto; border-radius: var(--rayon-sm); flex-shrink: 0; }
.founder-card strong { display: block; font-family: var(--font-display); color: var(--nuit); }
.founder-card span { font-size: .9rem; color: var(--gris); }

/* ---------- Article news ---------- */
.news-article__meta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: .8rem; }
.news-article__tag { background: var(--orange); color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .3rem .8rem; border-radius: 100px; }
.news-article__date { color: var(--gris); font-size: .9rem; }
.news-article__title { margin-bottom: .6rem; }
.news-article__lead { font-size: 1.15rem; color: var(--bleu-profond); margin-bottom: 1rem; }

/* ---------- Liens légaux footer ---------- */
.footer__legal-links { margin-bottom: .6rem; }
.footer__legal-links a { color: rgba(255,255,255,.75); }
.footer__legal-links a:hover { color: var(--orange); }

/* ---------- Réalisations (liens clients) ---------- */
.realisations { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.realisation { display: flex; flex-direction: column; gap: .2rem; background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon-sm); padding: 1.1rem 1.3rem; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; }
.realisation:hover { transform: translateY(-3px); box-shadow: var(--ombre-sm); border-color: var(--bleu); }
.realisation span { font-family: var(--font-display); font-weight: 600; color: var(--nuit); }
.realisation small { color: var(--gris); font-size: .85rem; }
.realisation::after { content: '↗'; position: absolute; top: .8rem; right: 1rem; color: var(--bleu); opacity: .5; }

/* ---------- Liste fonctionnalités CRM ---------- */
.crm-features ul { columns: 2; column-gap: 2rem; list-style: none; padding: 0; margin: 0; }
.crm-features li { padding: .5rem .5rem .5rem 1.6rem; position: relative; break-inside: avoid; font-size: .92rem; color: var(--encre); border-bottom: 1px solid var(--ligne); }
.crm-features li::before { content: '✓'; position: absolute; left: 0; color: var(--bleu); font-weight: 700; }
@media (max-width: 640px) { .crm-features ul { columns: 1; } }

/* ---------- Fix menu mobile : fond opaque garanti ---------- */
@media (max-width: 900px) {
  .header .nav.is-open,
  .nav.is-open {
    background-color: #ffffff !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
  }
  .nav.is-open .nav__list,
  .nav.is-open .nav__list > li {
    background-color: #ffffff !important;
  }
}

/* ---------- Fix menu mobile : sortir du contexte backdrop-filter du header ---------- */
@media (max-width: 900px) {
  .header { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .nav.is-open {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
/* SECOURS TEMPORAIRE - force affichage si JS reveal cassé */
.reveal { opacity: 1 !important; transform: none !important; }
