/* =======================================
   PAGE AUTOMATISMES (automatismes.php)
   Cohérente avec le reste du site
======================================= */

/* --- HERO --- */
.auto-hero {
  background: linear-gradient(160deg, #00457C, #00A676);
  color: #ffffff;
  padding: 120px 20px 100px;
  text-align: center;
}

.auto-hero .container {
  max-width: 880px;
}

.auto-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;
}

.auto-hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #f1f5f9;
  margin-bottom: 28px;
}

/* bouton principal */
.auto-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);
}

.auto-btn-primary:hover {
  background: #008c63;
  transform: translateY(-3px);
}

/* --- INTRO --- */
.auto-intro {
  background: #ffffff;
  color: #0f172a;
  padding: 80px 0;
}

.auto-intro-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.auto-intro-text h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 16px;
  color: #0f172a;
}

.auto-intro-text p {
  margin-bottom: 16px;
  color: #475569;
}

.auto-intro-highlight {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px 18px;
  border: 1px solid #e5e7eb;
}

.auto-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.auto-list li {
  margin-bottom: 8px;
  font-size: 0.98rem;
  color: #374151;
}

/* --- TYPES D'AUTOMATISMES --- */
.auto-types {
  background: #f9fafb;
  color: #0f172a;
  padding: 80px 0;
}

.auto-types h2 {
  text-align: center;
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 35px;
}

.auto-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.auto-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;
}

.auto-type-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

.auto-type-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 10px;
}

.auto-type-card p {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
}

/* --- CONTROLE D'ACCES --- */
.auto-access {
  background: #ffffff;
  color: #0f172a;
  padding: 80px 0;
}

.auto-access-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.auto-access-text h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 16px;
  color: #0f172a;
}

.auto-access-text p {
  margin-bottom: 14px;
  color: #475569;
}

.auto-access-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 10px;
}

.auto-access-list li {
  margin-bottom: 6px;
  font-size: 0.96rem;
  color: #374151;
}

.auto-access-box {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px 18px;
  border: 1px solid #e5e7eb;
}

.auto-access-badge {
  display: inline-block;
  background: #00A676;
  color: #ffffff;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* --- ETAPES --- */
.auto-steps {
  background: #f9fafb;
  color: #0f172a;
  padding: 80px 0;
}

.auto-steps h2 {
  text-align: center;
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 30px;
}

.auto-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.auto-step {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 22px;
  border: 1px solid #e5e7eb;
}

.auto-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: #00A676;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.auto-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #0f172a;
}

.auto-step p {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
}

/* --- CTA FINALE --- */
.auto-cta {
  background: linear-gradient(160deg, #00457C, #00A676);
  color: #ffffff;
  text-align: center;
  padding: 90px 20px;
}

.auto-cta .container {
  max-width: 720px;
}

.auto-cta h2 {
  font-family: var(--font-title);
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.auto-cta p {
  color: #e2e8f0;
  margin-bottom: 22px;
  line-height: 1.7;
  font-size: 1rem;
}

.auto-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;
}

.auto-btn-secondary:hover {
  background: #e5e7eb;
  transform: translateY(-3px);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .auto-hero {
    padding: 90px 20px 70px;
  }

  .auto-hero h1 {
    font-size: 2.2rem;
  }

  .auto-intro,
  .auto-access,
  .auto-steps {
    padding: 60px 0;
  }

  .auto-intro-grid,
  .auto-access-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .auto-hero h1 {
    font-size: 1.9rem;
  }

  .auto-hero p {
    font-size: 1rem;
  }

  .auto-cta h2 {
    font-size: 1.8rem;
  }
}
.auto-hero {
    padding: 80px 0;
}

.auto-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 60px 40px;
}

.auto-text {
    max-width: 500px;
}


.auto-text h2 {
    font-size: 2rem;
    color: #00A676;
    margin-bottom: 20px;
}

.auto-text p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 18px;
}

.auto-btn {
    display: inline-block;
    padding: 12px 26px;
    background: #00A676;
    color: white;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
}

.auto-btn:hover {
    background: #007e59;
}

.auto-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.auto-text-image {
    background: #fff;
    padding: 80px 0;
}
.auto-hero-custom {
    padding: 120px 0;
    background: #fff;
}

.auto-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center; /* 🔥 CENTRAGE */
    gap: 120px; /* 🔥 PLUS D’ESPACE ENTRE TEXTE & IMAGE */
    padding: 0 60px; /* 🔥 MARGES LATERALES */
}

.auto-text {
    max-width: 480px; /* 🔥 largeur idéale */
}

.auto-text h2 {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 25px;
}

.auto-text p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.auto-image img {
    max-width: 620px; /* 🔥 limite la taille */
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

/* =========================
   RESPONSIVE – AUTOMATISMES
========================= */

/* TABLETTE */
@media (max-width: 1024px) {

  .auto-container {
    flex-direction: column;
    gap: 50px;
    padding: 0 30px;
  }

  .auto-image {
    order: -1; /* image au-dessus */
    text-align: center;
  }

  .auto-image img {
    max-width: 520px;
  }

  .auto-text {
    max-width: 100%;
    text-align: center;
  }

  .auto-text h2 {
    font-size: 2rem;
  }
}

/* MOBILE */
@media (max-width: 768px) {

  /* HERO */
  .auto-hero {
    padding: 70px 15px 60px;
  }

  .auto-hero h1 {
    font-size: 1.9rem;
  }

  .auto-hero p {
    font-size: 0.95rem;
  }

  /* SECTION TEXTE + IMAGE */
  .auto-text-image {
    padding: 60px 0;
  }

  .auto-container {
    gap: 35px;
    padding: 0 20px;
  }

  .auto-text h2 {
    font-size: 1.6rem;
  }

  .auto-text p {
    font-size: 0.95rem;
    line-height: 1.55;
  }
}

/* PETITS MOBILES */
@media (max-width: 480px) {

  .auto-hero h1 {
    font-size: 1.6rem;
  }

  .auto-text h2 {
    font-size: 1.4rem;
  }

  .auto-image img {
    max-width: 100%;
  }
}
