/* ============================================================
   NotaBene Légal — feuille de style commune à toutes les pages
   ------------------------------------------------------------
   Palette et polices de la marque. Pour changer une couleur
   partout sur le site, modifiez les variables ci-dessous.
   ============================================================ */

:root {
  --navy: #252930;        /* texte principal */
  --slate: #5D6778;       /* texte secondaire */
  --bg-page: #F4F5F7;     /* fond des sections grises */
  --border: #E7E8EC;      /* bordures et séparateurs */
  --accent-1: #F65F34;    /* orange NotaBene */
  --accent-2: #E06167;    /* rose NotaBene */
  --gradient: linear-gradient(45deg, var(--accent-1), var(--accent-2));
  --radius: 12px;
  --shadow: 0 12px 32px rgba(37, 41, 48, 0.12);
  --shadow-sm: 0 4px 12px rgba(37, 41, 48, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: #FFFFFF;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent-1); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 16px; font-weight: 700; }
h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

@media (max-width: 640px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

.text-center { text-align: center; }
.muted { color: var(--slate); }

/* ------------------------------------------------------------
   Boutons
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: 0;
  border-radius: 30px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { opacity: 0.9; box-shadow: var(--shadow-sm); }

.btn-gradient { background: var(--gradient); color: #FFFFFF; }

.btn-outline {
  background: #FFFFFF;
  color: var(--navy);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent-1); }

.btn-inverse { background: #FFFFFF; color: var(--accent-1); }

/* ------------------------------------------------------------
   En-tête et navigation
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand img { display: block; width: 180px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: flex-end;
}

.nav-list, .nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a, .nav-actions .nav-link-plain, .nav-drop-btn {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}
.nav-list a:hover, .nav-drop-btn:hover { color: var(--accent-1); }
.nav-list a.active { color: var(--accent-1); font-weight: 700; }

/* Menu déroulant (À propos) */
.has-dropdown { position: relative; }
.nav-drop-btn {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.nav-drop-btn::after { content: " ▾"; font-size: 11px; color: var(--slate); }
.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  padding: 8px;
  display: none;
}
.has-dropdown.open .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
}
.dropdown a:hover { background: var(--bg-page); text-decoration: none; }

.lang-switch {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate) !important;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
}
.lang-switch:hover { color: var(--accent-1) !important; text-decoration: none; }

@media (max-width: 991px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 12px 24px 20px;
  }
  .site-nav.open { display: flex; }
  .nav-list, .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list a, .nav-drop-btn, .nav-actions .nav-link-plain {
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: left;
    border-bottom: 1px solid var(--bg-page);
  }
  .dropdown {
    position: static;
    transform: none;
    display: block;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 16px;
  }
  .nav-actions { padding-top: 12px; }
  .nav-actions .btn { text-align: center; margin: 8px 0; }
  .lang-switch { align-self: flex-start; }
}

/* ------------------------------------------------------------
   Sections génériques
   ------------------------------------------------------------ */
.section { padding: 64px 0; }
.section-gray { background: var(--bg-page); }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.section-intro {
  font-size: 17px;
  color: var(--slate);
  max-width: 640px;
}
.section-intro.centered { margin-left: auto; margin-right: auto; }

/* Hero de page */
.page-hero { padding: 56px 0 40px; }
.page-hero .tagline {
  font-size: 18px;
  color: var(--slate);
  max-width: 680px;
  margin: 0;
}
.page-hero.centered { text-align: center; }
.page-hero.centered .tagline { margin: 0 auto; }

/* Deux colonnes texte + image */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split .split-figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.figure-first-mobile .split-figure { order: -1; }
}

/* Listes à crochets */
.check-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.check-list li { color: var(--navy); font-size: 15px; }
.check-list li::before {
  content: "✓";
  color: var(--accent-1);
  font-weight: 700;
  margin-right: 10px;
}
@media (max-width: 640px) {
  .check-list { grid-template-columns: 1fr; }
}

/* Cartes */
.card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card-shadow { border: 0; box-shadow: var(--shadow-sm); }

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 800px) {
  .card-grid { grid-template-columns: 1fr; }
}

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.icon-badge i { color: #FFFFFF; font-size: 20px; }

/* Bande dégradée avec statistiques */
.cta-band {
  background: var(--gradient);
  color: #FFFFFF;
  text-align: center;
  padding: 72px 0;
}
.cta-band h2, .cta-band h3 { color: #FFFFFF; }
.cta-band .section-intro { color: rgba(255, 255, 255, 0.9); margin: 0 auto 40px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.stats-row .number { font-size: 34px; font-weight: 700; }
.stats-row .desc { font-size: 14px; opacity: 0.9; }
.stats-row .icon { font-size: 26px; margin-bottom: 8px; }
@media (max-width: 800px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------------------------
   Formulaires
   ------------------------------------------------------------ */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--navy);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(246, 95, 52, 0.15);
}
textarea.form-control { min-height: 140px; resize: vertical; }

.form-feedback {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 15px;
}
.form-feedback.success { display: block; background: #E8F6EE; color: #1E7B45; }
.form-feedback.error { display: block; background: #FCEBEA; color: #B3362C; }

/* Champ anti-robots : caché aux humains */
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* ------------------------------------------------------------
   Pied de page
   ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--border);
  background: #FFFFFF;
  padding: 56px 0 32px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand img { width: 170px; margin-bottom: 14px; }
.footer-brand p { color: var(--slate); font-size: 14px; margin: 0 0 18px; }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--slate);
}
.footer-social a:hover { color: var(--accent-1); border-color: var(--accent-1); text-decoration: none; }
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }

.footer-col h4 { font-size: 15px; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--slate); font-size: 14px; }
.footer-col a:hover { color: var(--accent-1); text-decoration: none; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--slate);
}
.footer-bottom a { color: var(--slate); }
.footer-bottom a:hover { color: var(--accent-1); }

/* ------------------------------------------------------------
   Contenu long (pages légales)
   ------------------------------------------------------------ */
.legal-content { font-size: 15px; color: var(--navy); }
.legal-content p { margin: 0 0 14px; }
.legal-content ol { margin: 24px 0 14px; padding-left: 20px; }
.legal-content ol li { font-weight: 700; font-size: 17px; }

/* Accessibilité : texte pour lecteurs d'écran uniquement */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
