/* ============================================================
   HOME — Styles spécifiques à la page d'accueil
   ============================================================ */

/* ============================================================
   SHARED — Éléments partagés entre sections
   ============================================================ */

/* Bouton dégradé rouge → orange (hero, section 2, actus, agenda) */
.btn-gradient-primary {
  background: transparent linear-gradient(80deg, #e50c2a 0%, #ee731c 100%) 0% 0% no-repeat padding-box;
}

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */

#section-hero {
  margin-top: -128px;
  background-color: #fdf5f2;
  background-image: url("/images/portrait-woman-glasses-holding-laptop-pointing-screen-showing-her-work-computer-standing.webp");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: auto 100%;
  min-height: 100vh;
}

/* Dégradé gauche pour lisibilité du texte */
#section-hero .hero-gradient {
  background: linear-gradient(90deg, #fdf5f2 25%, rgba(253, 245, 242, 0.6) 35%, transparent 45%);
}

/* padding-top = margin navbar (42px) + hauteur navbar (86px) + espace respiration (40px) */
#section-hero .hero-content {
  padding-top: 200px;
  padding-bottom: 80px;
}

#section-hero .hero-accent {
  color: #e50c2a;
  font-style: italic;
}

/* ============================================================
   SECTION 2 — THÈMES / MARCHÉS
   ============================================================ */

/* La section clippe la pill orange sous les cartes thème */
#section-2 {
  overflow: hidden;
}

#section-2 .section-subtitle {
  color: #697277;
}

/* Wrapper cards : référence pour le positionnement de la pill */
.themes-wrap {
  position: relative;
  margin-top: 1.75rem;
}

/* Pill orange fine, statique, comme sur la maquette */
.themes-pill {
  position: absolute;
  left: -120px;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  height: 72px;
  background: transparent linear-gradient(86deg, #e50c2a 0%, #ee731c 100%) 0% 0% no-repeat padding-box;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.themes-grid {
  position: relative;
  z-index: 1;
}

/* Toutes les cards section 2 (thèmes + "Voir tous") : radius 50px (maquette Adobe XD) */
#section-2 .themes-grid > a {
  border-radius: 50px;
}

@media (max-width: 767px) {
  .themes-pill {
    display: none;
  }
  .themes-wrap {
    margin-top: 1.5rem;
  }
}

/* Cards thèmes */
#section-2 .home-themes-card {
  position: relative;
}

/* Texte de description */
#section-2 .home-themes-card-desc {
  margin-top: 0.75rem;
  margin-bottom: 3.25rem;
  font-size: 0.75rem;
  line-height: 1.7;
  color: #9ca3af;
}

/* Oeil positionné en bas à droite de la card */
#section-2 .home-themes-card-eye {
  position: absolute;
  right: 0.75rem;
  bottom: 0.9rem;
}

/* Titre centré */
#section-2 .home-themes-card h3 {
  text-align: center;
}

/* Couleurs des titres par thème */
#section-2 .theme-title-connectic { color: #9b27af; }
#section-2 .theme-title-editif    { color: #d4a012; }
#section-2 .theme-title-educatif  { color: #f07c00; }
#section-2 .theme-title-geolif    { color: #1b3a6b; }
#section-2 .theme-title-infogerif { color: #1a3a5c; }
#section-2 .theme-title-luminif   { color: #52a827; }
#section-2 .theme-title-securif   { color: #c41230; }

/* ============================================================
   SECTION 3 — AVANTAGES
   ============================================================ */

#section-avantages {
  background-color: #f5f5f5;
  background-image: url("/images/arrows-with-copy-space.webp");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: cover;
}

/* Dégradé droite (miroir de la section 1) pour lisibilité du texte */
#section-avantages .avantages-gradient {
  background: linear-gradient(to left, #f5f5f5 25%, rgba(245, 245, 245, 0.6) 35%, transparent 45%);
}

/* ============================================================
   SECTION 4 — ACTUALITÉS
   ============================================================ */

/* La section clippe la pill qui déborde → demi-cercles sur les bords */
#section-actus {
  overflow: hidden;
  background-color: #f6f6f6;
}

#section-actus .actus-title {
  color: #363636;
}

#section-actus .actus-accent {
  color: #e50c2a;
}

#section-actus .section-subtitle {
  color: #697277;
}

/* Wrapper cards : référence pour le positionnement de la pill */
.news-wrap {
  position: relative;
}

/* Pill : fine, statique, déborde pour être clippée en demi-cercles */
.news-pill {
  position: absolute;
  left: -120px;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  height: 68px;
  background: transparent linear-gradient(86deg, #e50c2a 0%, #ee731c 100%) 0% 0% no-repeat padding-box;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.news-cards {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  min-height: 480px;
}

.news-card {
  flex: 1;
  min-width: 0;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  transition: flex 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-cards:hover .news-card       { flex: 0.65; }
.news-cards:hover .news-card:hover { flex: 1.7; }

.news-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.04);
}

.news-card-cta {
  color: #ee731c;
}

@media (max-width: 767px) {
  .news-pill {
    display: none;
  }
  .news-cards {
    flex-direction: column;
    min-height: 0;
  }
  .news-card {
    min-height: 0;
  }
  .news-cards:hover .news-card,
  .news-cards:hover .news-card:hover {
    flex: unset;
  }
}

/* ============================================================
   PAGE HERO — Générique (Actualités, Agenda, Présentation…)
   ============================================================ */

.page-hero {
  margin-top: -128px;
  background: linear-gradient(135deg, #fdf5f2 0%, #fff8f5 50%, #fdf0ec 100%);
  border-bottom: 1px solid #ffe4dc;
}

.page-hero-bg {
  background: linear-gradient(90deg, rgba(229, 12, 42, 0.06) 0%, rgba(238, 115, 28, 0.04) 100%);
}

.page-hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #701f2a;
  margin-bottom: 0.75rem;
}

.page-hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #111827;
  margin-bottom: 1rem;
}

.page-hero-accent {
  color: #e50c2a;
}

.page-hero-subtitle {
  font-size: 1.125rem;
  color: #697277;
  line-height: 1.6;
}

.page-hero-search-bar {
  display: flex;
  width: 100%;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.page-hero-search-btn {
  min-width: max-content;
  padding: 0.75rem 1.5rem;
}

/* ============================================================
   SECTION 5 — AGENDA
   ============================================================ */

#section-agenda {
  background-color: #f0f1f1;
}

#section-agenda .agenda-heading {
  color: #363636;
}

#section-agenda .agenda-accent {
  color: #e50c2a;
}

#section-agenda .agenda-desc {
  color: #697277;
}

.agenda-event-card {
  display: flex;
  align-items: center;
  background: #ffffff;
  box-shadow: 5px 3px 13px #0000001c;
  border-radius: 100px;
  padding: 16px 26px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.agenda-event-card:hover {
  box-shadow: 8px 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.agenda-event-card-img {
  flex: 0 0 auto;
  width: 160px;
  min-width: 160px;
  height: 90px;
  max-width: min(200px, 28vw);
  max-height: min(100px, 18vw);
  margin-right: 20px;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
}

.agenda-event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.agenda-event-date {
  min-width: 64px;
}

.agenda-event-day {
  font-size: 58px;
  line-height: 1;
  color: #e50c2a;
  font-weight: 400;
}

.agenda-event-month {
  font-size: 13px;
  font-weight: 700;
  color: #697277;
  line-height: 1.4;
}

.agenda-event-sep {
  width: 1px;
  height: 58px;
  background-color: #e0e0e0;
}

.agenda-event-meta {
  font-size: 11px;
  color: #697277;
}
