/* ==========================================================================
   INITIATIVE TARN — CHARTE VISUELLE OFFICIELLE RÉSEAU INITIATIVE
   Couleurs officielles : #72C91F (Vert Anis/Pomme), #E51968 (Rose Framboise), #004a99 (Bleu)
   Police : Ubuntu
   Structure : Fidèle au contenu réel de initiative-tarn.fr
   ========================================================================== */

@import './variables.css';
@import './animations.css';

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: #ffffff;
  color: var(--it-ink);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE & Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  min-height: 100vh;
  background-color: #ffffff;
  line-height: 1.6;
  color: var(--it-ink);
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE & Edge */
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --------------------------------------------------------------------------
   Top Bar Officielle
   -------------------------------------------------------------------------- */
.top-notice-bar {
  background: var(--it-blue-france);
  color: #ffffff;
  font-size: 0.82rem;
  padding: 0.55rem 1rem;
  text-align: center;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-notice-bar a {
  color: #a3e635;
  text-decoration: underline;
  font-weight: 700;
}

.top-notice-bar a:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Header Principal
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 2px solid var(--it-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}

.brand-logo-wrap img {
  height: 52px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--it-ink);
  padding: 0.4rem 0;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--it-primary-green);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--it-primary-green);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* Boutons */
.btn-primary {
  background: var(--it-primary-green);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-green);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background: var(--it-primary-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(114, 201, 31, 0.4);
}

.btn-tertiary {
  background: var(--it-tertiary-pink);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-pink);
  transition: var(--transition-smooth);
}

.btn-tertiary:hover {
  background: var(--it-tertiary-pink-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229, 25, 104, 0.4);
}

.btn-white {
  background: #ffffff;
  color: var(--it-ink);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: var(--transition-smooth);
}

.btn-white:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   HERO BANNER — Exact comme sur initiative-tarn.fr
   -------------------------------------------------------------------------- */
.hero-banner-section {
  position: relative;
  background-image: url('../images/banner-homepage.jpg');
  background-size: cover;
  background-position: center 20%;
  padding: 90px 0 140px 0;
  border-bottom: 5px solid var(--it-primary-green); /* Bordure signature charte */
}

.hero-banner-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.75) 60%, rgba(255, 255, 255, 0.6) 100%);
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 2.8rem 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--it-tertiary-pink); /* Titre en framboise officiel */
  line-height: 1.25;
  margin-bottom: 1.1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: #343a40;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   LES 4 PROMESSES (RÉSEAU INITIATIVE)
   -------------------------------------------------------------------------- */
.promesses-section {
  position: relative;
  margin-top: -65px;
  z-index: 10;
  margin-bottom: 3.5rem;
}

.promesses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  position: relative;
}

/* Ligne de connexion officielle */
.promesses-grid::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 12%;
  right: 12%;
  height: 3px;
  background: var(--it-primary-green);
  z-index: 1;
  transform: translateY(-50%);
}

.promesse-card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 2rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--it-border);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
}

.promesse-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--it-primary-green);
}

.promesse-badge {
  width: 30px;
  height: 30px;
  background: var(--it-tertiary-pink);
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
}

.promesse-icon {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.promesse-icon img {
  height: 48px;
  width: auto;
}

.promesse-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.promesse-desc {
  font-size: 0.88rem;
  color: var(--it-muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   LAYOUT PRINCIPAL 2 COLONNES (Identique à la structure de initiative-tarn.fr)
   -------------------------------------------------------------------------- */
.main-layout-section {
  padding-bottom: 5rem;
}

.main-layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* COLONNE GAUCHE */
.col-main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Bloc Actualité Réelle */
.actu-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--it-border);
  box-shadow: var(--shadow-card);
  padding: 1.8rem;
  display: flex;
  gap: 1.8rem;
  align-items: center;
  transition: var(--transition-smooth);
}

.actu-card:hover {
  border-color: var(--it-primary-green);
  box-shadow: var(--shadow-hover);
}

.actu-img-wrap {
  width: 140px;
  height: 120px;
  flex-shrink: 0;
  background: var(--it-bg-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.actu-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.actu-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--it-primary-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.actu-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--it-tertiary-pink);
  margin-bottom: 0.4rem;
}

.actu-excerpt {
  font-size: 0.92rem;
  color: var(--it-muted);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.actu-meta {
  font-size: 0.82rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Annuaire des Entreprises Soutenues (VRAIES DONNÉES) */
.directory-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--it-border);
  box-shadow: var(--shadow-card);
  padding: 2.2rem;
}

.directory-header {
  margin-bottom: 1.5rem;
}

.directory-header h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--it-ink);
  margin-bottom: 0.4rem;
}

.directory-header p {
  font-size: 0.92rem;
  color: var(--it-muted);
}

/* Filtres de l'annuaire */
.directory-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-btn {
  background: var(--it-bg-light);
  border: 1px solid var(--it-border);
  color: var(--it-ink);
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  border-color: var(--it-primary-green);
  color: var(--it-primary-green);
}

.filter-btn.active {
  background: var(--it-primary-green);
  color: #ffffff;
  border-color: var(--it-primary-green);
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--it-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  outline: none;
}

.search-input:focus {
  border-color: var(--it-primary-green);
  box-shadow: 0 0 0 3px rgba(114, 201, 31, 0.15);
}

.companies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.company-card {
  background: var(--it-bg-light);
  border: 1px solid var(--it-border);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.company-card:hover {
  background: #ffffff;
  border-color: var(--it-primary-green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.company-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--it-ink);
  margin-bottom: 0.3rem;
}

.company-sector {
  font-size: 0.82rem;
  color: var(--it-tertiary-pink);
  font-weight: 600;
  display: inline-block;
}

/* FORMULAIRE OFFICIEL DE CONTACT (100% FONCTIONNEL) */
.contact-form-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--it-border);
  box-shadow: var(--shadow-card);
  padding: 2.5rem;
}

.contact-form-header {
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--it-border);
}

.contact-form-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--it-ink);
  margin-bottom: 0.3rem;
}

.form-toggle-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.form-toggle-btn {
  flex: 1;
  background: var(--it-bg-light);
  border: 2px solid transparent;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--it-ink);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.form-toggle-btn.active {
  background: var(--it-primary-green-light);
  border-color: var(--it-primary-green);
  color: var(--it-primary-green-dark);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--it-ink);
  margin-bottom: 0.4rem;
}

.form-label span {
  color: var(--it-tertiary-pink);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--it-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.9rem;
  outline: none;
  background: #ffffff;
}

.form-control:focus {
  border-color: var(--it-primary-green);
  box-shadow: 0 0 0 3px rgba(114, 201, 31, 0.15);
}

/* Notification de confirmation */
.alert-box {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.alert-success {
  background: #eef9e4;
  color: #3b7e0c;
  border: 1px solid #a3e635;
}

/* COLONNE DROITE (SIDEBAR OFFICIELLE) */
.col-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

/* Module Chiffres clés */
.sidebar-module {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--it-border);
  box-shadow: var(--shadow-card);
  padding: 1.8rem;
}

.sidebar-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--it-ink);
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--it-primary-green);
}

.stat-item-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.stat-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-icon-circle {
  width: 52px;
  height: 52px;
  background: var(--it-primary-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-val {
  font-size: 2rem;
  font-weight: 700;
  color: var(--it-primary-green);
  line-height: 1;
}

.stat-text {
  font-size: 0.85rem;
  color: var(--it-muted);
  line-height: 1.35;
  margin-top: 0.2rem;
}

/* Module Contact Bannière Dégradé Framboise */
.mod-contact-gradient {
  background: linear-gradient(270deg, #b51452 0%, #e51968 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow-pink);
  text-align: center;
}

.mod-contact-gradient h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.mod-contact-gradient p {
  font-size: 0.92rem;
  opacity: 0.95;
  margin-bottom: 1.4rem;
}

/* Module Accompagnement (Image officielle) */
.mod-accompagnement {
  position: relative;
  background-image: url('../images/accompagnement.jpg');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 220px;
  display: flex;
  align-items: flex-end;
}

.mod-accompagnement::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.mod-accompagnement-content {
  position: relative;
  z-index: 2;
  padding: 1.8rem;
  color: #ffffff;
}

.mod-accompagnement-content h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.mod-accompagnement-content p {
  font-size: 0.88rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

/* Module Permanences & Adresses Réelles */
.mod-permanences {
  background: var(--it-bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--it-border);
  padding: 1.8rem;
}

.mod-permanences h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--it-ink);
  margin-bottom: 0.8rem;
}

.mod-permanences p {
  font-size: 0.88rem;
  color: var(--it-muted);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.phone-link {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--it-primary-green-dark);
  display: block;
}

/* --------------------------------------------------------------------------
   PARTENAIRES INSTITUTIONNELS (VRAIS LOGOS)
   -------------------------------------------------------------------------- */
.partners-section {
  padding: 4rem 0;
  background: #ffffff;
  border-top: 1px solid var(--it-border);
}

.partners-title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--it-muted);
  margin-bottom: 2rem;
}

.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.partner-card {
  padding: 0.8rem 1.2rem;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--it-border);
  height: 70px;
  width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.partner-card:hover {
  border-color: var(--it-primary-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.partner-card img {
  max-height: 48px;
  max-width: 110px;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   FOOTER OFFICIEL RÉSEAU INITIATIVE
   -------------------------------------------------------------------------- */
.site-footer {
  background: #23272b;
  color: #e2e8f0;
  padding: 4.5rem 0 2rem 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--it-primary-green);
  border-radius: var(--radius-full);
}

.footer-col p {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: #94a3b8;
}

.footer-col ul li a:hover {
  color: var(--it-primary-green);
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
}

.social-fb { background: #004a99; }
.social-in { background: #3588e0; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   Mobile Burger Button & Mobile Navigation Drawer
   -------------------------------------------------------------------------- */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--it-ink);
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
  background-color: var(--it-bg-light);
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 320px;
  height: 100vh;
  background: #ffffff;
  z-index: 10000;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.mobile-menu-drawer.open {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--it-border);
  margin-bottom: 1.5rem;
}

.mobile-drawer-close {
  background: var(--it-bg-light);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--it-ink);
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  list-style: none;
  margin-bottom: 2rem;
}

.mobile-drawer-nav a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--it-ink);
  padding: 0.5rem 0;
  display: block;
}

.mobile-drawer-nav a:hover,
.mobile-drawer-nav a.active {
  color: var(--it-primary-green);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .promesses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .promesses-grid::before {
    display: none;
  }
  .main-layout-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .map-layout-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  /* Top notice bar compacte */
  .top-notice-bar {
    font-size: 0.74rem;
    padding: 0.35rem 0.8rem;
    gap: 0.4rem;
    line-height: 1.3;
  }
  
  .top-notice-bar .top-sub-text {
    display: none;
  }

  .site-header {
    height: 68px;
  }

  .header-inner {
    height: 68px;
  }

  .brand-logo-wrap img {
    height: 38px;
  }

  .nav-menu {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Hero Banner compact & épuré sans boutons */
  .hero-banner-section {
    padding: 30px 0 45px 0;
  }

  .hero-banner-content {
    padding: 1.4rem 1.1rem;
  }

  .hero-title {
    font-size: 1.55rem;
    line-height: 1.25;
    margin-bottom: 0.4rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 0;
  }

  .promesses-section {
    margin-top: 1.5rem; /* Élimine tout chevauchement avec la bannière */
    margin-bottom: 2rem;
  }

  .promesses-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .companies-grid {
    grid-template-columns: 1fr;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  /* Page Map Responsive Mobile Optimisé */
  .map-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 1.8rem !important;
  }

  .map-card-mobile {
    padding: 1.3rem !important;
  }

  .map-iframe-mobile {
    height: 320px !important;
  }

  /* Footer Mobile Collapsible (Sections Déroulantes) */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
  }

  .footer-col {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
  }

  .footer-col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
  }

  .footer-col h4 {
    margin-bottom: 0;
    padding-bottom: 0;
    font-size: 0.98rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .footer-col h4::after {
    display: none;
  }

  .footer-toggle-icon {
    font-size: 1.1rem;
    color: var(--it-primary-green);
    transition: transform 0.25s ease;
  }

  .footer-col.active .footer-toggle-icon {
    transform: rotate(180deg);
  }

  .footer-col-body {
    display: none;
    padding-top: 1rem;
    margin-top: 0.8rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
  }

  .footer-col.active .footer-col-body {
    display: block;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
    font-size: 0.76rem;
  }
}
