/* ==========================
   PAGE PORTES DE GARAGE
========================== */

/* ===== HERO ===== */

.sub-hero {
  background: linear-gradient(135deg, var(--blue), var(--green));
  text-align: center;
  padding: 90px 20px 80px;
  color: #ffffff;
}

.sub-hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.sub-hero p {
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto 30px;
  opacity: 0.95;
}

.sub-hero-btn {
  display: inline-block;
  background: #ffffff;
  color: var(--blue);
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease;
}

.sub-hero-btn:hover {
  background: #f1f5f9;
  transform: translateY(-3px);
}

/* ===== SECTION TEXTE + IMAGE ===== */

/* SECTION INTRO */
.section-abris {
    background: white;
    padding: 80px 20px;
}

.abris-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 45px;
    align-items: center;
}

.abris-text h2 {
    color: var(--blue);
    font-size: 1.9rem;
    margin-bottom: 18px;
}

.abris-text p {
    margin-bottom: 12px;
    color: #444;
}

.abris-list {
    list-style: none;
    margin: 18px 0;
}

.abris-list li {
    margin-bottom: 6px;
    padding-left: 22px;
    position: relative;
}

.abris-list li::before {
    content: "✔";
    color: var(--green);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.abris-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.link-partner {
    color: var(--green);
    font-weight: bold;
    text-decoration: none;
}








.garage-section {
  padding: 90px 0;
  background: #ffffff;
}

.garage-section.alt {
  background: #f8fafc;
}

.garage-layout,
.garage-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding: 0 20px;
}

.garage-grid.reverse {
  direction: rtl;
}

.garage-grid.reverse * {
  direction: ltr;
}

/* ===== TEXTE ===== */

.garage-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
}

.garage-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 16px;
  position: relative;
}

.garage-text h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: var(--green);
  display: block;
  margin-top: 14px;
  border-radius: 2px;
}

.garage-text p {
  margin-bottom: 14px;
}

.garage-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}

.garage-list li {
  margin-bottom: 8px;
  font-size: 1rem;
}

/* ===== IMAGE ===== */

.garage-img img,
.garage-image img {
  width: 100%;
  max-width: 900px;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}


/* ===== CTA SECTION ===== */

.cta-btn {
  display: inline-block;
  margin-top: 26px;
  padding: 14px 26px;
  background: var(--green);
  color: #ffffff;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease;
}

.cta-btn:hover {
  background: #008c63;
  transform: translateY(-3px);
}

/* ===== TYPES DE PORTES ===== */

.garage-types {
  background: #f6f7f9;
  padding: 90px 0;
}

.garage-types h2 {
  text-align: center;
  font-size: 2.2rem;
  color: var(--blue);
  margin-bottom: 50px;
}

.types-grid {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.card {
  background: #ffffff;
  padding: 28px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 18px;
}

/* ===== GALERIE ===== */

.garage-gallery {
  background: #f9fafb;
  padding: 90px 0;
  text-align: center;
}

.garage-gallery h2 {
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 40px;
}

.garage-gallery-grid {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.garage-gallery-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {

  .sub-hero h1 {
    font-size: 2.1rem;
  }

  .garage-layout,
  .garage-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: center;
  }

  .garage-text h2::after {
    margin-left: auto;
    margin-right: auto;
  }
}
.garage-img,
.garage-image {
  margin-top: 35px;
}
.garage-text::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--green);
  margin: 30px 0;
  border-radius: 2px;
}
/* ==========================
   CORRECTION TEXTE + IMAGE
========================== */

/* Texte bien contenu */
.garage-text {
  max-width: 720px;
}

/* Séparateur après le texte */
.garage-text::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--green);
  margin: 30px 0;
  border-radius: 2px;
}

/* Image = bloc éditorial centré */
.garage-img,
.garage-image {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* Image propre, volontairement large */
.garage-img img,
.garage-image img {
  width: 100%;
  max-width: 900px;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}
/* ==========================
   AJUSTEMENT ESPACEMENTS
========================== */

/* Réduire l'espace après le texte */
.garage-text::after {
  margin: 20px 0;
}

/* Rapprocher l'image du texte */
.garage-img,
.garage-image {
  margin-top: 15px; /* au lieu de 40px */
}

/* Réduire le padding global de la section texte */
.garage-section {
  padding-top: 50px;
  padding-bottom: 70px;
}
/* ==========================
   FIX LAYOUT TEXTE + IMAGE
========================== */

.garage-layout,
.garage-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

/* =========================
   RESPONSIVE – PORTES DE GARAGE
========================= */

/* TABLETTE */
@media (max-width: 1024px) {

  .abris-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .abris-img {
    order: -1; /* image au-dessus */
    text-align: center;
  }

  .abris-img img {
    max-width: 520px;
  }

  .abris-text {
    text-align: center;
  }
}

/* MOBILE */
@media (max-width: 768px) {

  /* HERO */
  .sub-hero {
    padding: 70px 15px 60px;
  }

  .sub-hero h1 {
    font-size: 1.9rem;
  }

  .sub-hero p {
    font-size: 0.95rem;
  }

  /* SECTION TEXTE */
  .section-abris {
    padding: 60px 15px;
  }

  .abris-text h2 {
    font-size: 1.6rem;
  }

  .abris-text p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  /* GALERIE */
  .garage-gallery {
    padding: 70px 15px;
  }

  .garage-gallery h2 {
    font-size: 1.7rem;
  }

  .garage-gallery-grid img {
    height: 220px;
  }
}

/* PETITS MOBILES */
@media (max-width: 480px) {

  .sub-hero h1 {
    font-size: 1.6rem;
  }

  .abris-text h2 {
    font-size: 1.4rem;
  }

  .garage-gallery-grid img {
    height: 200px;
  }
}
