/* ================================================
   Habillage commun aligné sur www.promptissime.fr
   Utilisé par : Découverte projet, Audit RGPD, Copieur-Killer
   ================================================ */

:root {
  --navy: #083B70;
  --yellow: #FCDD3D;
  --yellow-light: #FCF6D1;
  --yellow-text: #9A7F00;
  --pink: #EBB1B0;
  --text: #444444;
  --muted: #666666;
  --bg-soft: #FAFAFA;
  --border: #E8E8E8;
  --track: #E6E9EF;
  --shadow: 0 10px 30px rgba(8, 59, 112, 0.08);
  --radius: 10px;
  --row: 1080px;
  --ok: #1E6B3D;
  --ok-bg: #E3F4EA;
  --warn: #7A6400;
  --warn-bg: #FCF6D1;
  --bad: #9B3A39;
  --bad-bg: #FDECEC;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Mulish, Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  min-height: 100vh;
}
h1, h2, h3, h4 { font-family: Poppins, Helvetica, Arial, sans-serif; color: var(--navy); line-height: 1.2; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
.hidden { display: none !important; }

.row { max-width: var(--row); margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--yellow);
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(8, 59, 112, 0.12); }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 8px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.header-logo img { width: 110px; height: auto; }
.main-nav ul { list-style: none; display: flex; gap: 26px; }
.main-nav a {
  font-family: Poppins, sans-serif; font-weight: 500; font-size: 15px;
  color: var(--navy); text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent; transition: border-color 0.15s;
}
.main-nav a:hover, .main-nav a.current { border-bottom-color: var(--navy); }
.main-nav > ul > li { position: relative; display: flex; align-items: center; }

/* Menu déroulant « Nos applications » */
.dropdown-toggle {
  display: flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer;
  font-family: Poppins, sans-serif; font-weight: 500; font-size: 15px; color: var(--navy);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.dropdown-toggle svg { transition: transform 0.15s; }
.has-dropdown.open .dropdown-toggle svg { transform: rotate(180deg); }
.main-nav .dropdown {
  list-style: none; display: none;
  position: absolute; top: 100%; left: -16px; min-width: 250px; padding: 8px 0; margin-top: 8px;
  background: #fff; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(8, 59, 112, 0.15);
}
.main-nav .dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.has-dropdown.open .dropdown { display: block; }
@media (hover: hover) and (min-width: 901px) {
  .has-dropdown:hover .dropdown { display: block; }
}
.main-nav .dropdown a {
  display: block; padding: 10px 18px; border-bottom: none; font-size: 14px; white-space: nowrap;
}
.main-nav .dropdown a:hover, .main-nav .dropdown a.current { background: var(--yellow-light); }

.burger {
  display: none; width: 48px; height: 48px; border: none; border-radius: 5px;
  background: var(--navy); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }

@media (max-width: 900px) {
  .burger { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; box-shadow: 0 10px 20px rgba(8, 59, 112, 0.12);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .main-nav a:hover, .main-nav a.current { border-bottom-color: var(--border); }
  .main-nav > ul > li { display: block; }
  .dropdown-toggle { width: 100%; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .main-nav .dropdown {
    position: static; box-shadow: none; margin: 0; padding: 0 0 0 14px; min-width: 0; border-radius: 0;
  }
  .main-nav .dropdown a { padding: 10px 0; border-bottom: 1px solid var(--border); white-space: normal; }
  .main-nav .dropdown a:hover, .main-nav .dropdown a.current { background: none; }
}

/* ===== SECTIONS ===== */
.section { padding: 90px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p, .section-navy li { color: rgba(255, 255, 255, 0.85); }

.eyebrow {
  font-family: Poppins, sans-serif; font-weight: 500; font-size: 15px;
  letter-spacing: 4px; text-transform: uppercase; color: var(--yellow-text);
  margin-bottom: 14px;
}
.section-navy .eyebrow { color: var(--yellow); }
.hero .eyebrow { color: var(--navy); }
.section-title { font-size: 40px; font-weight: 700; margin-bottom: 20px; }
.section-intro { font-size: 18px; max-width: 760px; }
.center { text-align: center; }
.center .section-intro { margin: 0 auto; }

/* Mot surligné façon promptissime.fr */
.hl { position: relative; display: inline-block; padding: 0 8px; z-index: 0; }
.hl::before {
  content: ""; position: absolute; z-index: -1;
  left: 0; right: 0; top: 18%; bottom: 6%;
  background: var(--pink); transform: rotate(-1.5deg); border-radius: 3px;
}
.hl-yellow::before { background: var(--yellow); }
.hl-white::before { background: #fff; }

/* ===== HERO ===== */
.hero {
  background-color: var(--yellow);
  background-image: radial-gradient(at 0% 0%, var(--yellow-light) 0%, rgba(255, 255, 255, 0) 100%);
  padding: 80px 0 90px; text-align: center;
}
.hero h1 { font-size: 60px; font-weight: 700; line-height: 1.25; margin-bottom: 28px; }
.hero-sub { font-size: 20px; color: var(--text); max-width: 720px; margin: 0 auto 36px; }
.hero .btn-row { justify-content: center; }
.hero-compact { padding: 56px 0 60px; }
.hero-compact h1 { font-size: 46px; margin-bottom: 20px; }
.hero-compact .hero-sub { margin-bottom: 0; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 760px; margin: 56px auto 0;
}
.stat { background: #fff; border-radius: var(--radius); padding: 22px 16px; box-shadow: var(--shadow); }
.stat-number { font-family: Poppins, sans-serif; font-weight: 700; font-size: 26px; color: var(--navy); }
.stat-label { font-size: 14px; color: var(--muted); }

/* ===== BOUTONS ===== */
.btn {
  display: inline-block; font-family: Poppins, sans-serif; font-weight: 500; font-size: 15px;
  border-radius: 5px; padding: 20px 36px; border: none; cursor: pointer;
  text-decoration: none; text-align: center; line-height: 1.3;
  transition: transform 0.15s, opacity 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.35; cursor: default; transform: none; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-small { padding: 14px 24px; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

/* ===== CARTES ===== */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 28px; }
.card h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 15px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 50px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 50px; }
.icon-tile {
  width: 52px; height: 52px; border-radius: var(--radius); background: var(--yellow-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}

/* Étapes numérotées */
.steps { counter-reset: step; }
.step { position: relative; }
.step.card { padding-top: 96px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 28px; left: 28px;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--yellow); color: var(--navy);
  font-family: Poppins, sans-serif; font-weight: 700; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}

/* ===== PARCOURS (questionnaires) ===== */
.quiz { background: var(--bg-soft); padding: 50px 0 80px; min-height: 60vh; }
.quiz-wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

.progress-wrap { margin-bottom: 28px; }
.progress-bar { height: 8px; background: var(--track); border-radius: 100px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--yellow); border-radius: 100px; transition: width 0.4s ease; width: 0%; }
.progress-label {
  display: flex; justify-content: space-between;
  font-family: Poppins, sans-serif; font-size: 12px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 2px; margin-top: 8px;
}

.question-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px 32px; margin-bottom: 24px;
}
.question-step {
  font-family: Poppins, sans-serif; font-weight: 500; font-size: 13px;
  text-transform: uppercase; letter-spacing: 3px; color: var(--yellow-text); margin-bottom: 12px;
}
.question-text {
  font-family: Poppins, sans-serif; font-weight: 600; font-size: 22px;
  color: var(--navy); line-height: 1.35; margin-bottom: 10px;
}
.question-sub { font-size: 15px; color: var(--muted); margin-bottom: 24px; }

.tag {
  display: inline-block; font-family: Poppins, sans-serif; font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: 1px; border-radius: 4px; padding: 4px 10px;
  background: var(--yellow-light); color: var(--navy);
}
.tag-navy { background: var(--navy); color: var(--yellow); }

/* Champs de formulaire */
.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.field label { font-family: Poppins, sans-serif; font-weight: 500; font-size: 14px; color: var(--navy); }
.input {
  width: 100%; padding: 15px 16px; border: 2px solid var(--border); border-radius: 5px;
  font-size: 16px; color: var(--text); background: #fff; outline: none; transition: border-color 0.15s;
}
.input:focus { border-color: var(--navy); }
.input.error { border-color: #C0392B; }
.fine-print { font-size: 13px; color: var(--muted); }

.spinner {
  width: 52px; height: 52px; border: 4px solid var(--track); border-top-color: var(--navy);
  border-radius: 50%; animation: pp-spin 0.9s linear infinite; margin: 0 auto 20px;
}
@keyframes pp-spin { to { transform: rotate(360deg); } }

/* Bloc d'appel à l'action */
.cta-block { background: var(--yellow); border-radius: var(--radius); padding: 44px 32px; text-align: center; }
.cta-title { font-family: Poppins, sans-serif; font-weight: 700; font-size: 28px; color: var(--navy); margin-bottom: 12px; }
.cta-sub { font-size: 16px; color: var(--text); max-width: 560px; margin: 0 auto 26px; }
.cta-block .btn-row { justify-content: center; }

/* ===== FOOTER ===== */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid img { width: 130px; margin-bottom: 16px; }
.footer-grid p { font-size: 14px; color: var(--muted); }
.footer-grid h4 { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--navy); }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
  text-align: center; font-size: 13px; color: var(--muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .hero h1, .hero-compact h1 { font-size: 34px; }
  .hero-sub { font-size: 17px; }
  .section-title { font-size: 28px; }
  .section-intro { font-size: 16px; }
  .stats { grid-template-columns: 1fr; gap: 12px; margin-top: 40px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .question-card { padding: 28px 20px; }
  .question-text { font-size: 19px; }
  .btn { width: 100%; }
  .cta-block { padding: 36px 20px; }
  .cta-title { font-size: 23px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media print {
  .site-header, .site-footer, .btn, .btn-row, .no-print { display: none !important; }
  body { background: #fff; }
  .quiz { background: #fff; padding: 0; }
  .cta-block, .section-navy, [data-print-color] { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
