/* ============================================
   MEDIAIA — v2 statique
   Palette : navy #23277d / violet #5b3fb5 / cyan #3ab7e5
   ============================================ */
:root {
  --navy: #23277d;
  --navy-dark: #1a1d5c;
  --violet: #5b3fb5;
  --cyan: #3ab7e5;
  --ink: #1e2233;
  --muted: #59607a;
  --soft: #f4f6fb;
  --line: #e3e7f2;
  --white: #ffffff;
  --grad: linear-gradient(120deg, #23277d 0%, #5b3fb5 60%, #3ab7e5 130%);
  --radius: 14px;
  --shadow: 0 6px 24px rgba(30, 34, 90, .09);
  --maxw: 1120px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.25; color: var(--navy); font-weight: 800; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .6em; }
h3 { font-size: 1.2rem; margin-bottom: .4em; }
p { margin-bottom: 1em; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}
.logo img { height: 40px; width: auto; }
.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; font-size: 1.7rem; color: var(--navy); user-select: none; }
nav.main-nav { display: flex; align-items: center; gap: 26px; }
nav.main-nav a { color: var(--ink); font-weight: 600; font-size: .98rem; }
nav.main-nav a:hover { color: var(--violet); text-decoration: none; }
nav.main-nav a.active { color: var(--violet); }
/* bouton Audit gratuit : dégradé profond navy->violet pour un texte blanc bien lisible */
nav.main-nav a.btn-primary {
  background: linear-gradient(120deg, var(--navy) 0%, var(--violet) 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
}
nav.main-nav a.btn-primary:hover { color: #fff; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; cursor: pointer; border: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--grad); color: #fff; }
.btn-cyan { background: var(--cyan); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-white { background: #fff; color: var(--navy); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 120% at 50% 0%, #2b2f96 0%, #1a1d5c 55%, #12143f 100%);
  color: #fff; text-align: center;
  padding: 110px 24px 120px;
}
/* nappes lumineuses animées */
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 60vw; height: 60vw; min-width: 520px; min-height: 520px;
  border-radius: 50%; filter: blur(90px); opacity: .55;
}
.hero::before {
  background: radial-gradient(circle, #5b3fb5 0%, transparent 65%);
  top: -25%; left: -12%;
  animation: drift1 14s ease-in-out infinite alternate;
}
.hero::after {
  background: radial-gradient(circle, #3ab7e5 0%, transparent 65%);
  bottom: -35%; right: -15%;
  animation: drift2 17s ease-in-out infinite alternate;
}
@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(9vw, 6vh) scale(1.15); }
}
@keyframes drift2 {
  from { transform: translate(0, 0) scale(1.1); }
  to   { transform: translate(-8vw, -7vh) scale(.95); }
}
/* trame de points façon réseau */
.hero .hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.6px);
  background-size: 34px 34px;
  mask-image: radial-gradient(75% 90% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 90% at 50% 40%, #000 30%, transparent 100%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  font-size: .88rem; font-weight: 600; letter-spacing: .3px;
  color: rgba(255,255,255,.92); margin-bottom: 26px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(58,183,229,.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(58,183,229,.6); }
  70% { box-shadow: 0 0 0 9px rgba(58,183,229,0); }
  100% { box-shadow: 0 0 0 0 rgba(58,183,229,0); }
}
.hero h1 { color: #fff; margin-bottom: 20px; text-wrap: balance; }
.hero h1 .grad-text {
  background: linear-gradient(92deg, #7dd6ff 0%, #3ab7e5 45%, #9a7bff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { max-width: 720px; margin: 0 auto 30px; font-size: 1.15rem; color: rgba(255,255,255,.9); }
.hero .btn { margin: 6px; }
.hero .btn-white:hover { box-shadow: 0 8px 30px rgba(58,183,229,.45); }
.hero .btn-cyan:hover { box-shadow: 0 8px 30px rgba(58,183,229,.45); }
/* repères de réassurance */
.hero-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 34px; font-size: .9rem;
}
.hero-chips span {
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.85);
}
/* apparitions en cascade */
.hero .reveal { opacity: 0; transform: translateY(18px); animation: rise .7s ease forwards; }
.hero .reveal:nth-child(2) { animation-delay: .12s; }
.hero .reveal:nth-child(3) { animation-delay: .24s; }
.hero .reveal:nth-child(4) { animation-delay: .36s; }
.hero .reveal:nth-child(5) { animation-delay: .48s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .hero-badge .dot, .hero .reveal { animation: none; }
  .hero .reveal { opacity: 1; transform: none; }
}
.hero-sub {
  background: var(--navy-dark); color: #fff; text-align: center; padding: 56px 24px;
}
.hero-sub h2 { color: #fff; }
.hero-sub p { max-width: 780px; margin: 0 auto 1em; color: rgba(255,255,255,.88); }

/* ---------- Sections ---------- */
section.block { padding: 72px 0; }
section.block.soft { background: var(--soft); }
.center { text-align: center; }
.section-intro { max-width: 760px; margin: 0 auto 40px; text-align: center; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; box-shadow: var(--shadow);
}
.stat .num { font-size: 2.4rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .src { font-size: .85rem; color: var(--muted); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; margin-top: 36px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .18s ease;
}
.card:hover { transform: translateY(-4px); }
.card img.cover { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card .card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card .card-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.card a.card-link { font-weight: 700; }

/* ---------- Guides ---------- */
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; margin-top: 36px; }
.guide {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.guide img { max-height: 300px; width: auto; margin: 0 auto 16px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.guide h3 { font-size: 1.05rem; }
.guide p { font-size: .9rem; color: var(--muted); flex: 1; }
.guide .price { font-size: 1.3rem; font-weight: 800; color: var(--navy); margin: 10px 0; }
.guide .price .free { color: var(--cyan); }

/* ---------- Split (texte + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 42px; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split.reverse .media { order: 2; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 36px auto 0; }
details.faq {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 14px; box-shadow: var(--shadow);
}
details.faq summary {
  cursor: pointer; padding: 20px 24px; font-weight: 700; color: var(--navy);
  list-style: none; position: relative; padding-right: 52px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--cyan); font-weight: 700;
}
details.faq[open] summary::after { content: "–"; }
details.faq .answer { padding: 0 24px 20px; color: var(--muted); }

/* ---------- Formulaires ---------- */
form.contact-form { max-width: 640px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 600; font-size: .92rem; display: block; margin: 14px 0 6px; color: var(--navy); }
input, textarea, select {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--cyan); border-color: transparent; }
form .btn { margin-top: 22px; }
.phone-row { grid-template-columns: minmax(150px, 200px) 1fr; }
input:invalid:not(:placeholder-shown):not(:focus) { outline: 2px solid #d64545; border-color: transparent; }
label.check-line {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 18px; font-weight: 500; color: var(--ink); font-size: .95rem;
  cursor: pointer;
}
label.check-line input[type="checkbox"] {
  width: 20px; height: 20px; margin-top: 2px; accent-color: var(--violet); flex-shrink: 0;
}

/* ---------- Bandeau CTA ---------- */
.cta-band {
  background: var(--grad); color: #fff; text-align: center;
  padding: 64px 24px; border-radius: 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 700px; margin: 0 auto 26px; color: rgba(255,255,255,.92); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.85); padding: 56px 0 28px; font-size: .95rem; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
footer img.logo-footer { height: 44px; width: auto; margin-bottom: 14px; }
footer h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
footer a { color: rgba(255,255,255,.85); }
footer a:hover { color: var(--cyan); }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
footer .legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; text-align: center; font-size: .85rem; color: rgba(255,255,255,.6); }

/* ---------- Blog ---------- */
.badge-theme {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: rgba(58,183,229,.14); color: #1a7fa8;
  font-size: .8rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}
.card .card-meta { font-size: .85rem; color: var(--muted); margin: 10px 0 6px; }
.card .card-meta .badge-theme { margin-right: 10px; }
/* titres de cartes blog : hauteur réservée pour aligner le texte quel que soit le nombre de lignes */
.card .card-meta + h3 { min-height: 3em; }

.article { max-width: 800px; margin: 0 auto; }
.article-head { text-align: center; margin-bottom: 30px; }
.article-head .badge-theme { margin-bottom: 14px; }
.article-head .article-date { color: var(--muted); font-size: .92rem; margin: 10px 0 6px; }
.article-head h1 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); color: var(--navy); margin-bottom: 10px; }
.article-head .article-subtitle { font-size: 1.2rem; color: var(--muted); font-weight: 500; }
.article-cover {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 36px;
}
.article-body { font-size: 1.05rem; line-height: 1.75; }
.article-body h2 { font-size: 1.35rem; margin-top: 1.6em; }
.article-body h3 { font-size: 1.1rem; margin-top: 1.3em; }
.article-body ul { margin: 0 0 1em 1.3em; }
.article-footer {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
}

/* ---------- Mentions légales ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 2em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul { margin: 0 0 1em 1.3em; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .media { order: 0; }
  .stats { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-burger { display: block; }
  nav.main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 18px 24px 24px;
    border-bottom: 1px solid var(--line); gap: 16px; align-items: flex-start;
  }
  .nav-toggle:checked ~ nav.main-nav { display: flex; }
}
