/* ===================================================
   ACFL Chauffage - Home CSS v5.1
   Design Timeline - Maison / Travaux / Énergie
   Couleurs plates uniquement, zéro dégradé
   =================================================== */

/* --- HERO SECTION --- */
.hero {
  background-color: #0f2d6e;
  padding: 80px 0 60px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background-color: #1a3a82;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #9a3412;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__title span {
  color: #fdba74;
}

.hero__description {
  font-size: 17px;
  color: #bfdbfe;
  line-height: 1.75;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #9a3412;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.15s;
}

.hero__btn-primary:hover {
  background-color: #7c2d12;
  color: #fff;
  transform: translateY(-2px);
}

.hero__btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: transparent;
  color: #bfdbfe;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #3b5fa0;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.hero__btn-secondary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.hero__image-block {
  position: relative;
}

.hero__image-block img {
  width: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  height: 380px;
  border: 3px solid #1d4ed8;
}

.hero__stat-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background-color: #fff7ed;
  border: 2px solid #9a3412;
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.hero__stat-badge .stat-num {
  font-size: 28px;
  font-weight: 800;
  color: #9a3412;
  line-height: 1;
}

.hero__stat-badge .stat-label {
  font-size: 12px;
  color: #78350f;
  font-weight: 600;
  line-height: 1.4;
}

/* --- STATS BAR --- */
.stats-bar {
  background-color: #1d4ed8;
  padding: 0;
}

.stats-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats-bar__item {
  padding: 24px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.stats-bar__item:last-child {
  border-right: none;
}

.stats-bar__num {
  font-size: 28px;
  font-weight: 800;
  color: #fdba74;
  line-height: 1;
  margin-bottom: 6px;
}

.stats-bar__label {
  font-size: 13px;
  color: #bfdbfe;
  font-weight: 500;
}

/* --- INTRO PASSIONNÉ --- */
.intro-section {
  background-color: #fff7ed;
  padding: 60px 0;
}

.intro-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: center;
}

.intro-section__avatar {
  text-align: center;
}

.intro-section__avatar img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #9a3412;
  margin: 0 auto 16px;
}

.intro-section__avatar-name {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.intro-section__avatar-role {
  font-size: 13px;
  color: #9a3412;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.intro-section__content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #0f2d6e;
  margin-bottom: 16px;
  font-weight: 800;
}

.intro-section__content p {
  font-size: 16px;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 16px;
}

.intro-section__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.intro-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #fff;
  border: 2px solid #1d4ed8;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}

/* --- TIMELINE ARTICLES SECTION --- */
.timeline-section {
  background-color: #f8fafc;
  padding: 72px 0;
}

.timeline-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.timeline-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}

.timeline-header__left h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #0f2d6e;
  font-weight: 800;
  margin-bottom: 8px;
}

.timeline-header__left p {
  color: #64748b;
  font-size: 15px;
}

.timeline-header__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s;
  white-space: nowrap;
}

.timeline-header__link:hover {
  color: #9a3412;
}

/* Featured article + recent grid */
.timeline-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.article-card-featured {
  background-color: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.article-card-featured:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.article-card-featured__img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.article-card-featured__body {
  padding: 24px;
}

.article-card-featured__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.article-card-featured__cat {
  display: inline-block;
  background-color: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-card-featured__date,
.article-card-featured__time {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-card-featured__title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #0f2d6e;
}

.article-card-featured__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.article-card-featured__title a:hover {
  color: #9a3412;
}

.article-card-featured__excerpt {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
}

/* Side stack of 2 articles */
.timeline-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-card-side {
  background-color: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 120px 1fr;
  transition: box-shadow 0.2s, transform 0.2s;
}

.article-card-side:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.article-card-side__img {
  width: 120px;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  display: block;
}

.article-card-side__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.article-card-side__cat {
  display: inline-block;
  background-color: #fff7ed;
  color: #9a3412;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: fit-content;
}

.article-card-side__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f2d6e;
}

.article-card-side__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.article-card-side__title a:hover {
  color: #9a3412;
}

.article-card-side__meta {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Grid of 3 recent articles */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card-grid {
  background-color: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.article-card-grid:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

.article-card-grid__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.article-card-grid__body {
  padding: 20px;
}

.article-card-grid__cat {
  display: inline-block;
  background-color: #dcfce7;
  color: #15803d;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.article-card-grid__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  color: #0f2d6e;
}

.article-card-grid__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.article-card-grid__title a:hover {
  color: #9a3412;
}

.article-card-grid__meta {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- CATEGORIES SECTION --- */
.categories-section {
  background-color: #0f2d6e;
  padding: 64px 0;
}

.categories-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.categories-section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.categories-section__subtitle {
  color: #93c5fd;
  font-size: 15px;
  margin-bottom: 40px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  background-color: #1a3a82;
  border-radius: 12px;
  padding: 28px 20px;
  border: 1px solid #2d4f9e;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
  cursor: pointer;
  text-align: center;
}

.category-card:hover {
  background-color: #1d4ed8;
  border-color: #3b82f6;
  transform: translateY(-4px);
}

.category-card__icon {
  width: 52px;
  height: 52px;
  background-color: #9a3412;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: background-color 0.2s;
}

.category-card:hover .category-card__icon {
  background-color: #7c2d12;
}

.category-card__name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.category-card__count {
  font-size: 13px;
  color: #93c5fd;
}

.category-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* --- ROI CALCULATOR --- */
.roi-section {
  background-color: #fff7ed;
  padding: 72px 0;
}

.roi-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.roi-section__header {
  text-align: center;
  margin-bottom: 48px;
}

.roi-section__header h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: #0f2d6e;
  font-weight: 800;
  margin-bottom: 10px;
}

.roi-section__header p {
  color: #64748b;
  font-size: 16px;
}

.roi-calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background-color: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.roi-form__title {
  font-size: 18px;
  font-weight: 700;
  color: #0f2d6e;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.roi-form__group {
  margin-bottom: 20px;
}

.roi-form__group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.roi-form__group select,
.roi-form__group input[type="range"],
.roi-form__group input[type="number"] {
  width: 100%;
  font-size: 15px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #1e293b;
  background-color: #f8fafc;
  transition: border-color 0.2s;
}

.roi-form__group select:focus,
.roi-form__group input:focus {
  border-color: #1d4ed8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(29,78,216,0.12);
}

.roi-form__range-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.roi-form__range-val {
  font-size: 18px;
  font-weight: 700;
  color: #1d4ed8;
  min-width: 60px;
  text-align: right;
}

input[type="range"] {
  padding: 0;
  height: 6px;
  accent-color: #1d4ed8;
  cursor: pointer;
}

.roi-results__title {
  font-size: 18px;
  font-weight: 700;
  color: #0f2d6e;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.roi-result-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.roi-result-card {
  background-color: #f1f5f9;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid #1d4ed8;
}

.roi-result-card.accent {
  border-left-color: #9a3412;
  background-color: #fff7ed;
}

.roi-result-card.green {
  border-left-color: #16a34a;
  background-color: #f0fdf4;
}

.roi-result-card__label {
  font-size: 14px;
  color: #475569;
  font-weight: 500;
}

.roi-result-card__value {
  font-size: 22px;
  font-weight: 800;
  color: #0f2d6e;
}

.roi-result-card.accent .roi-result-card__value {
  color: #9a3412;
}

.roi-result-card.green .roi-result-card__value {
  color: #16a34a;
}

.roi-disclaimer {
  margin-top: 20px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
  font-style: italic;
}

/* --- AIDES TABLE SECTION --- */
.aides-section {
  background-color: #fff;
  padding: 72px 0;
}

.aides-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.aides-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.aides-section__header h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #0f2d6e;
  margin-bottom: 6px;
}

.aides-section__header p {
  font-size: 15px;
  color: #64748b;
}

.aides-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.aides-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.aides-table thead th {
  background-color: #0f2d6e;
  color: #fff;
  padding: 14px 18px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.aides-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #374151;
  vertical-align: middle;
}

.aides-table tbody tr:last-child td {
  border-bottom: none;
}

.aides-table tbody tr:hover td {
  background-color: #f8fafc;
}

.aides-table .tag-aide {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.tag-aide-blue {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.tag-aide-green {
  background-color: #dcfce7;
  color: #15803d;
}

.tag-aide-orange {
  background-color: #fff7ed;
  color: #9a3412;
}

.aides-table .montant-cell {
  font-weight: 700;
  color: #16a34a;
  font-size: 15px;
}

/* --- ACCORDION SECTION --- */
.accordion-section {
  background-color: #f8fafc;
  padding: 72px 0;
}

.accordion-section__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.accordion-section__header {
  text-align: center;
  margin-bottom: 40px;
}

.accordion-section__header h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #0f2d6e;
  margin-bottom: 8px;
}

.accordion-section__header p {
  color: #64748b;
  font-size: 15px;
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background-color: #fff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.accordion-item:hover {
  border-color: #1d4ed8;
}

.accordion-item.is-open {
  border-color: #1d4ed8;
  box-shadow: 0 2px 16px rgba(29,78,216,0.10);
}

.accordion-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s;
}

.accordion-btn:hover {
  background-color: #f1f5f9;
}

.accordion-btn:focus {
  outline: 3px solid #1d4ed8;
  outline-offset: -3px;
}

.accordion-btn__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.accordion-btn__icon {
  width: 40px;
  height: 40px;
  background-color: #dbeafe;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s;
}

.accordion-item.is-open .accordion-btn__icon {
  background-color: #1d4ed8;
}

.accordion-item.is-open .accordion-btn__icon svg {
  color: #fff;
}

.accordion-btn__question {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

.accordion-item.is-open .accordion-btn__question {
  color: #0f2d6e;
}

.accordion-btn__preview {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 400;
  margin-top: 4px;
  display: block;
}

.accordion-chevron {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #94a3b8;
  transition: transform 0.3s, color 0.2s;
}

.accordion-item.is-open .accordion-chevron {
  transform: rotate(180deg);
  color: #1d4ed8;
}

.accordion-body {
  display: none;
  padding: 0 24px 24px;
  border-top: 1px solid #f1f5f9;
}

.accordion-item.is-open .accordion-body {
  display: block;
}

.accordion-body p {
  font-size: 15px;
  color: #475569;
  line-height: 1.75;
  margin-top: 16px;
}

.accordion-body ul {
  margin: 12px 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.accordion-body ul li {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.accordion-body .tip-box {
  background-color: #fff7ed;
  border-left: 4px solid #9a3412;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin-top: 16px;
  font-size: 14px;
  color: #7c2d12;
  line-height: 1.65;
}

/* --- GALLERY SECTION --- */
.gallery-section {
  background-color: #fff;
  padding: 72px 0;
}

.gallery-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gallery-section__header {
  text-align: center;
  margin-bottom: 40px;
}

.gallery-section__header h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #0f2d6e;
  margin-bottom: 8px;
}

.gallery-section__header p {
  color: #64748b;
  font-size: 15px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background-color: #e2e8f0;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(15, 45, 110, 0.88);
  color: #fff;
  padding: 16px;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery-item:hover .gallery-item__overlay {
  transform: translateY(0);
}

.gallery-item__overlay-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.gallery-item__overlay-sub {
  font-size: 12px;
  color: #93c5fd;
}

.gallery-item__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background-color: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: #0f2d6e;
  transition: background-color 0.2s, color 0.2s;
}

.gallery-item__zoom:hover {
  background-color: #1d4ed8;
  color: #fff;
}

/* --- MODAL GALLERY --- */
.gallery-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 15, 40, 0.93);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  pointer-events: none;
}

.gallery-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

.gallery-modal__inner {
  position: relative;
  max-width: 860px;
  width: 100%;
  background-color: #0f2d6e;
  border-radius: 14px;
  overflow: hidden;
}

.gallery-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color 0.2s;
}

.gallery-modal__close:hover {
  background-color: #9a3412;
}

.gallery-modal__img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.gallery-modal__caption {
  padding: 20px 24px;
}

.gallery-modal__caption h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.gallery-modal__caption p {
  font-size: 14px;
  color: #93c5fd;
}

.gallery-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 16px;
  pointer-events: none;
}

.gallery-modal__nav-btn {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  background-color: rgba(29,78,216,0.8);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.gallery-modal__nav-btn:hover {
  background-color: #9a3412;
}

/* --- NEWSLETTER SECTION --- */
.newsletter-section {
  background-color: #1d4ed8;
  padding: 64px 0;
}

.newsletter-section__inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.newsletter-section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.newsletter-section p {
  font-size: 16px;
  color: #bfdbfe;
  margin-bottom: 32px;
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 16px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.3);
  background-color: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 15px;
  transition: border-color 0.2s;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.6);
}

.newsletter-form input[type="email"]:focus {
  border-color: #fff;
  outline: none;
  background-color: rgba(255,255,255,0.18);
}

.newsletter-form button {
  padding: 14px 24px;
  background-color: #9a3412;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.newsletter-form button:hover {
  background-color: #7c2d12;
  transform: translateY(-1px);
}

.newsletter-section .newsletter-legal {
  font-size: 12px;
  color: rgba(191,219,254,0.7);
}

.newsletter-success {
  display: none;
  background-color: #16a34a;
  color: #fff;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  margin-top: 16px;
}

/* --- RESPONSIVE HOME --- */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero::before {
    display: none;
  }

  .hero__image-block img {
    height: 240px;
  }

  .hero__stat-badge {
    bottom: -12px;
    left: 12px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__btn-primary,
  .hero__btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .stats-bar__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar__item:nth-child(2) {
    border-right: none;
  }

  .stats-bar__item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .stats-bar__item:nth-child(3),
  .stats-bar__item:nth-child(4) {
    border-bottom: none;
  }

  .intro-section__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .intro-section__tags {
    justify-content: center;
  }

  .timeline-featured {
    grid-template-columns: 1fr;
  }

  .article-card-side {
    grid-template-columns: 100px 1fr;
  }

  .article-card-side__img {
    width: 100px;
  }

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

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .roi-calculator {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }

  .aides-section__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .stats-bar__inner {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .gallery-item img {
    height: 200px;
  }

  .article-card-side {
    grid-template-columns: 1fr;
  }

  .article-card-side__img {
    width: 100%;
    height: 160px;
    min-height: unset;
  }

  .hero__stat-badge {
    position: static;
    margin-top: 16px;
    justify-content: center;
  }
}