/* =======================================
   PAGE CARPORTS BOIS (carports.php)
   Cohérente avec accueil / abris / garages
======================================= */

/* --- HERO --- */
.carport-hero {
  background: linear-gradient(160deg, #00457C, #00A676);
  color: #ffffff;
  padding: 120px 20px 100px;
  text-align: center;
}

.carport-hero .container {
  max-width: 880px;
}

.carport-hero h1 {
  font-family: var(--font-title);
  font-size: 2.6rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
  margin-bottom: 16px;
}

.carport-hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #f1f5f9;
  margin-bottom: 28px;
}

/* bouton principal */
.carport-btn-primary {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 9999px;
  background: #00A676;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: 0.25s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.carport-btn-primary:hover {
  background: #008c63;
  transform: translateY(-3px);
}

/* --- INTRO --- */
.carport-intro {
  background: #ffffff;
  color: #0f172a;
  padding: 80px 0;
}

.carport-intro-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.carport-intro-text h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 16px;
  color: #0f172a;
}

.carport-intro-text p {
  margin-bottom: 16px;
  color: #475569;
}

.carport-intro-highlight {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px 18px;
  border: 1px solid #e5e7eb;
}

.carport-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.carport-list li {
  margin-bottom: 8px;
  font-size: 0.98rem;
  color: #374151;
}

/* --- TYPES DE CARPORTS --- */
.carport-types {
  background: #f9fafb;
  color: #0f172a;
  padding: 80px 0;
}

.carport-types h2 {
  text-align: center;
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 35px;
}

.carport-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.carport-type-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 22px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.carport-type-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

.carport-type-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 10px;
}

.carport-type-card p {
  font-size: 0.96rem;
  color: #4b5563;
  line-height: 1.6;
}

/* --- AVANTAGES --- */
.carport-advantages {
  background: #ffffff;
  color: #0f172a;
  padding: 80px 0;
}

.carport-advantages h2 {
  text-align: center;
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 35px;
}

.carport-adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.carport-adv-card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 24px 22px;
  border: 1px solid #e5e7eb;
}

.carport-adv-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #0f172a;
}

.carport-adv-card p {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
}

/* --- CTA FINALE --- */
.carport-cta {
  background: linear-gradient(160deg, #00457C, #00A676);
  color: #ffffff;
  text-align: center;
  padding: 90px 20px;
}

.carport-cta .container {
  max-width: 720px;
}

.carport-cta h2 {
  font-family: var(--font-title);
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.carport-cta p {
  color: #e2e8f0;
  margin-bottom: 22px;
  line-height: 1.7;
  font-size: 1rem;
}

.carport-btn-secondary {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 9999px;
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.03rem;
  transition: 0.25s ease;
}

.carport-btn-secondary:hover {
  background: #e5e7eb;
  transform: translateY(-3px);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .carport-hero {
    padding: 90px 20px 70px;
  }

  .carport-hero h1 {
    font-size: 2.2rem;
  }

  .carport-intro {
    padding: 60px 0;
  }

  .carport-intro-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .carport-hero h1 {
    font-size: 1.9rem;
  }

  .carport-hero p {
    font-size: 1rem;
  }

  .carport-cta h2 {
    font-size: 1.8rem;
  }
}
/* ===== SECTION CARPORT INFO ===== */
.carport-section {
    background: #f8fafc;
    padding: 80px 20px;
}

.carport-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.carport-text h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #00457C;
}

.carport-text p {
    margin-bottom: 15px;
    color: #475569;
    line-height: 1.6;
}

.carport-list {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.carport-list li {
    margin-bottom: 8px;
    font-weight: 500;
}

.carport-list li::before {
    content: "✔ ";
    color: #00A676;
    font-weight: bold;
}

.carport-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.btn-demande {
    display: inline-block;
    background: #00A676;
    color: white;
    padding: 12px 28px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
}

.btn-demande:hover {
    background: #00885c;
}

.carport-contact {
    margin-top: 20px;
    font-size: 0.95rem;
}
/* ===== CAROUSEL ===== */

.carport-hero-carousel {
    padding: 60px 20px;
    background: #f8fafc;
    text-align: center;
}

.carousel-title {
    font-size: 1.9rem;
    color: #00457C;
    margin-bottom: 20px;
}

.carousel {
    position: relative;
    max-width: 1100px;
    margin: auto;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.carousel-item {
    min-width: 300px;
    margin: 0 10px;
}

.carousel-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

.carousel-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: #00A676;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px 15px;
    border-radius: 6px;
}

.carousel-btn.prev { left: -25px; }
.carousel-btn.next { right: -25px; }

/* ===== TEXT BLOCK ===== */

.carport-text-block {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    line-height: 1.6;
}

.carport-text-block h2 {
    text-align: center;
    font-size: 2rem;
    color: #00457C;
    margin-bottom: 25px;
}

.btn-devis {
    display: block;
    width: fit-content;
    margin: 20px auto;
    padding: 12px 24px;
    background: #00A676;
    border-radius: 9999px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.contact-note {
    margin-top: 30px;
    text-align: center;
}
/* =========================
   CARROUSEL CARPORTS
========================= */

.carports-slider {
    background: #f8fafc;
    padding: 70px 20px;
}

.slider-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.slider-frame {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease;
}

.slide {
    min-width: 100%;
}

.slide img {
    width: 100%;
    display: block;
    max-height: 420px;
    object-fit: cover;
}

/* Navigation arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: none;
    background: #00A676;
    color: #fff;
    border-radius: 50%;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s;
}

.slider-nav.prev { left: 18px; }
.slider-nav.next { right: 18px; }

.slider-nav:hover {
    background: #008959;
    transform: translateY(-50%) scale(1.05);
}
/* =========================
   RESPONSIVE – CARPORTS
========================= */

/* TABLETTE */
@media (max-width: 1024px) {

  .carport-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .carport-image {
    order: -1; /* image au-dessus du texte */
  }

  .carport-text h2 {
    font-size: 2rem;
  }

  .slide img {
    max-height: 360px;
  }
}

/* MOBILE */
@media (max-width: 768px) {

  /* HERO */
  .carport-hero {
    padding: 80px 15px 65px;
  }

  .carport-hero h1 {
    font-size: 1.9rem;
  }

  .carport-hero p {
    font-size: 0.95rem;
  }

  /* SECTION TEXTE */
  .carport-section {
    padding: 60px 15px;
  }

  .carport-text h2 {
    font-size: 1.6rem;
  }

  .carport-text p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  /* BOUTON */
  .btn-demande {
    padding: 11px 24px;
    font-size: 0.95rem;
  }

  /* CARROUSEL */
  .carports-slider {
    padding: 55px 15px;
  }

  .slide img {
    max-height: 300px;
  }

  .slider-nav {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .slider-nav.prev { left: 10px; }
  .slider-nav.next { right: 10px; }
}

/* PETITS MOBILES */
@media (max-width: 480px) {

  .carport-hero h1 {
    font-size: 1.6rem;
  }

  .carport-text h2 {
    font-size: 1.4rem;
  }

  .slide img {
    max-height: 240px;
  }
}
