/* =======================================
   PAGE PORTAILS & AUTOMATISMES
   Cohérente avec accueil / abris / garages
======================================= */

/* --- HERO --- */
.portail-hero {
  background: linear-gradient(160deg, #00457C, #00A676);
  color: #ffffff;
  padding: 120px 20px 100px;
  text-align: center;
}

.portail-hero .container {
  max-width: 880px;
}

.portail-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;
}

.portail-hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #f1f5f9;
  margin-bottom: 28px;
}

/* bouton principal */
.portail-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);
}

.portail-btn-primary:hover {
  background: #008c63;
  transform: translateY(-3px);
}

/* --- INTRO --- */
.portail-intro {
  background: #ffffff;
  color: #0f172a;
  padding: 80px 0;
}

.portail-intro-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.portail-intro-text h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 16px;
  color: #0f172a;
}

.portail-intro-text p {
  margin-bottom: 16px;
  color: #475569;
}

.portail-intro-highlight {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px 18px;
  border: 1px solid #e5e7eb;
}

.portail-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.portail-list li {
  margin-bottom: 8px;
  font-size: 0.98rem;
  color: #374151;
}

/* --- TYPES DE PORTAILS --- */
.portail-types {
  background: #f9fafb;
  color: #0f172a;
  padding: 80px 0;
}

.portail-types h2 {
  text-align: center;
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 35px;
}

.portail-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.portail-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;
}

.portail-type-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

.portail-type-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 10px;
}

.portail-type-card p {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
}

/* --- AUTOMATISMES --- */
.portail-auto {
  background: #ffffff;
  color: #0f172a;
  padding: 80px 0;
}

.portail-auto-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.portail-auto-text h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 16px;
  color: #0f172a;
}

.portail-auto-text p {
  margin-bottom: 14px;
  color: #475569;
}

.portail-auto-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 10px;
}

.portail-auto-list li {
  margin-bottom: 6px;
  font-size: 0.96rem;
  color: #374151;
}

.portail-auto-note {
  font-size: 0.95rem;
  color: #6b7280;
  font-style: italic;
}

.portail-auto-box {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px 18px;
  border: 1px solid #e5e7eb;
}

.portail-auto-badge {
  display: inline-block;
  background: #00A676;
  color: #ffffff;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* --- CTA FINALE --- */
.portail-cta {
  background: linear-gradient(160deg, #00457C, #00A676);
  color: #ffffff;
  text-align: center;
  padding: 90px 20px;
}

.portail-cta .container {
  max-width: 720px;
}

.portail-cta h2 {
  font-family: var(--font-title);
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.portail-cta p {
  color: #e2e8f0;
  margin-bottom: 22px;
  line-height: 1.7;
  font-size: 1rem;
}

.portail-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;
}

.portail-btn-secondary:hover {
  background: #e5e7eb;
  transform: translateY(-3px);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .portail-hero {
    padding: 90px 20px 70px;
  }

  .portail-hero h1 {
    font-size: 2.2rem;
  }

  .portail-intro,
  .portail-auto {
    padding: 60px 0;
  }

  .portail-intro-grid,
  .portail-auto-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .portail-hero h1 {
    font-size: 1.9rem;
  }

  .portail-hero p {
    font-size: 1rem;
  }

  .portail-cta h2 {
    font-size: 1.8rem;
  }
}
.bloc-portails {
    max-width: 1300px;
    margin: 80px auto;
    padding: 0 20px;
}

.titre-portail {
    text-align: center;
    font-size: 2.2rem;
    color: #58B322;
    font-weight: 700;
    margin-bottom: 30px;
}

.info-tel {
    text-align: left;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.tel-number {
    background: #85C800;
    padding: 4px 12px;
    border-radius: 12px;
    color: white;
    font-weight: bold;
}

.bloc-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.bloc-texte {
    flex: 1;
    font-size: 1.05rem;
}

.bloc-texte h3 {
    margin: 25px 0 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

.texte-rouge {
    color: #E10000;
    font-weight: 600;
}

.bloc-img {
    flex: 1;
}

.bloc-img img {
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
  

.divider {
    width: 60px;
    height: 3px;
    background: red;
    margin: 25px 0;
    border: none;
}

.conclusion {
    font-weight: 600;
}

/* Responsive */
@media(max-width: 950px) {
    .bloc-content {
        flex-direction: column;
        text-align: center;
    }

    .info-tel { text-align: center; }
}
/* === GALERIE PORTAILS === */


.gallery-abris {
  background: #f8fafc;
  padding: 90px 20px;
}

.gallery-abris h2 {
  text-align: center;
  font-family: var(--font-title);
  font-size: 2.1rem;
  color: var(--blue);
  margin-bottom: 50px;
  position: relative;
}

/* petit trait décoratif */
.gallery-abris h2::after {
  content: "";
  width: 70px;
  height: 4px;
  background: var(--green);
  display: block;
  margin: 18px auto 0;
  border-radius: 2px;
}

/* GRID */
.gallery-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* CARTE IMAGE */
.gallery-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;

  border-radius: 16px;
  background: #fff;

  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover premium */
.gallery-grid img:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 220px;
  }
}
/* =========================
   RESPONSIVE – PORTAILS
========================= */

/* TABLETTE */
@media (max-width: 1024px) {

  .titre-portail {
    font-size: 2rem;
  }

  .bloc-content {
    flex-direction: column;
    gap: 40px;
  }

  .bloc-img {
    order: -1; /* image au-dessus du texte */
    text-align: center;
  }

  .bloc-img img {
    max-width: 520px;
  }
}

/* MOBILE */
@media (max-width: 768px) {

  /* HERO */
  .portail-hero {
    padding: 80px 15px 65px;
  }

  .portail-hero h1 {
    font-size: 1.9rem;
  }

  .portail-hero p {
    font-size: 0.95rem;
  }

  /* TITRES */
  .titre-portail {
    font-size: 1.7rem;
    margin-bottom: 22px;
  }

  .bloc-texte h3 {
    font-size: 1.15rem;
  }

  /* TEXTE */
  .bloc-texte {
    font-size: 0.95rem;
  }

  /* SECTION */
  .bloc-portails {
    margin: 60px auto;
    padding: 0 15px;
  }

  .divider {
    margin: 20px auto;
  }

  .conclusion {
    font-size: 0.95rem;
  }

  /* GALERIE */
  .gallery-abris {
    padding: 70px 15px;
  }
}

/* PETITS MOBILES */
@media (max-width: 480px) {

  .portail-hero h1 {
    font-size: 1.6rem;
  }

  .titre-portail {
    font-size: 1.5rem;
  }

  .bloc-texte h3 {
    font-size: 1.05rem;
  }
}
