/* ============================================================
   En-tête, pied de page et bandeau cookies — communs à TOUTES les pages
   (chargé via <link> après la feuille propre à la page).

   Deux familles de pages le chargent :
   - les pages construites sur style.css (accueil, tarifs, démo, liste des
     ressources, pages légales) ;
   - les pages autonomes, qui portent leur propre style intégré (articles
     Ressources, simulateurs, À propos). Celles-ci n'ont ni le reset ni les
     boutons de style.css : les règles ci-dessous remettent donc à zéro les
     marges et redéfinissent les boutons, sans dépendre d'autre chose.

   Les classes utilisées (.header, .nav-links, .mobile-nav, .footer-links,
   .cookie-banner, .btn-cookie…) sont propres à ces blocs : ne pas les
   réemployer dans le contenu des pages.
   ============================================================ */

/* ========== RESET LOCAL ========== */
/* Taille et interligne de base de style.css (les pages autonomes sont en 17px). */
.header, .footer, .cookie-banner { font-size: 16px; line-height: 1.6; }
.header *, .footer *, .cookie-banner * { box-sizing: border-box; }
.header a, .footer a { text-decoration: none; }
.footer h4, .footer p, .footer ul, .cookie-banner p { margin: 0; padding: 0; }

/* ========== HEADER ========== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0 24px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
/* Pages autonomes : l'en-tête reste dans le flux et colle en haut au
   défilement, sans décaler le contenu qui suit. */
.header.header-sticky { position: sticky; }
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo-lockup {
  height: 36px; width: auto; display: block;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.95rem; font-weight: 500; color: #444;
  transition: color 0.2s;
}
.nav-links a:hover { color: #05b936; }
.nav-links a.active { color: #05b936; font-weight: 600; }
/* :where() garde ces règles au même poids que celles de style.css, pour que
   le menu mobile (.mobile-nav a) les surcharge exactement comme sur l'accueil. */
:where(.header) .btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 9999px; border: none;
  font-family: 'Sora', sans-serif; font-weight: 600;
  cursor: pointer; transition: all 0.3s ease;
}
:where(.header) .btn-primary {
  background: #05b936; color: #fff;
  box-shadow: 0 4px 14px rgba(5, 185, 54, 0.3);
}
:where(.header) .btn-primary:hover {
  background: #049a2d; transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 185, 54, 0.4);
}
.header-cta .btn { padding: 10px 24px; font-size: 0.9rem; }
.mobile-burger { display: none; }
.mobile-nav { display: none; }

/* ========== FOOTER ========== */
.footer {
  background: #00262d; color: #fff; padding: 60px 0 24px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.footer > .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px;
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.6); font-size: 0.9rem;
  margin-top: 16px; max-width: 300px;
}
.footer-logo { display: flex; align-items: center; }
.footer-logo-lockup {
  height: 56px; width: auto; max-width: 280px; display: block;
}
.footer h4 {
  font-family: 'Sora', sans-serif; font-size: 0.9rem;
  font-weight: 600; line-height: 1.2; margin-bottom: 16px; color: #fff;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255, 255, 255, 0.6); font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: #2de65a; }
/* Élément de liste sans lien (« Paris & Lyon ») : même aspect que les liens */
.footer-links span { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { color: rgba(255, 255, 255, 0.4); font-size: 0.8rem; }
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.9rem; transition: all 0.2s;
}
.footer-social a:hover { background: #05b936; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Menu burger jusqu'à 1 280 px, pour toutes les langues : en dessous, la
   barre complète (7 liens + « Demander une démo » + langue) ne tient pas. */
@media (max-width: 1280px) {
  .nav-links { display: none; }
  .header-cta { display: none; }
  /* Mobile burger */
  .mobile-burger {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none;
    cursor: pointer; padding: 8px; z-index: 1001;
  }
  .mobile-burger span {
    display: block; width: 24px; height: 2.5px; background: #00262d; border-radius: 2px;
    transition: all 0.3s ease;
  }
  .mobile-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .mobile-burger.open span:nth-child(2) { opacity: 0; }
  .mobile-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  /* Mobile nav */
  .mobile-nav {
    display: none; flex-direction: column; gap: 0;
    background: white; border-top: 1px solid #eee;
    padding: 16px 20px;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    padding: 12px 0; font-size: 1rem; color: #00262d; text-decoration: none;
    border-bottom: 1px solid #f0f0f0; font-weight: 500;
  }
  .mobile-nav a:last-child { border-bottom: none; }
  .mobile-nav a:hover { color: #05b936; }
  /* Bouton « Demander une démo » du menu : texte blanc centré, sans hériter du style des liens */
  .mobile-nav a.btn { justify-content: center; padding: 14px 24px; color: #fff; }
  .mobile-nav a.btn:hover { color: #fff; }
}
@media (max-width: 768px) {
  .header { padding: 0 16px; }
  .header-inner { height: 60px; gap: 12px; }
  .logo-lockup { height: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -8px 32px rgba(0, 38, 45, 0.15);
  border-top: 3px solid #05b936;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cookie-banner-content {
  flex: 1;
  min-width: 280px;
  color: #00262d;
  font-size: 0.92rem;
  line-height: 1.5;
}
.cookie-banner-content > strong {
  display: block;
  color: #384872;
  font-size: 1rem;
  margin-bottom: 4px;
}
.cookie-banner-content p { margin: 0; font-size: 1.05rem; color: #444; }
.cookie-banner-content a { color: #05b936; text-decoration: underline; }
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.btn-cookie {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  min-width: 110px;
}
.btn-cookie-reject {
  background: #ffffff;
  color: #384872;
  border-color: #d1d5db;
}
.btn-cookie-reject:hover {
  border-color: #384872;
  background: #f9fafb;
}
.btn-cookie-accept {
  background: #05b936;
  color: #ffffff;
  border-color: #05b936;
}
.btn-cookie-accept:hover {
  background: #049a2d;
  border-color: #049a2d;
}
@media (max-width: 640px) {
  .cookie-banner-inner { padding: 16px; gap: 16px; }
  .cookie-banner-actions { width: 100%; }
  .btn-cookie { flex: 1; padding: 12px 16px; }
}
