@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800&family=Barlow:wght@300;400;600&display=swap');

:root {
  /* 2.1 Couleurs Primaires */
  --navy: #1B3A6B;
  --navy-deep: #0F2347;
  --amber: #F5A800;
  --amber-light: #FFD166;
  --amber-dark: #D48C00;
  
  /* 2.2 Couleurs Secondaires & Neutres */
  --white: #FFFFFF;
  --light: #F4F6FB;
  --border: #E2E8F0;
  --border-dark: #4A5568;
  --slate: #6B7A99;
  --text-main: #1A2540;

  /* 2.3 Couleurs Fonctionnelles */
  --live-red: #FF3B3B;
  --teal: #14B8A6;
  --indigo: #6366F1;
  --blue-medium: #2A5298;

  /* 6. Espacements, Bordures & Effets */
  --radius: 14px;
}

/* =========================================
   Base & Typography 
   ========================================= */
body {
  font-family: 'Barlow', sans-serif;
  color: var(--text-main);
  background-color: var(--light);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', sans-serif;
  margin-top: 0;
}

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--amber-dark);
  margin-bottom: 8px;
  display: inline-block;
}

/* =========================================
   Animations 
   ========================================= */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes livepulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(255, 59, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
}

@keyframes carouselMove {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* =========================================
   UI Components
   ========================================= */

/* 5.1 Topbar */
.topbar {
  background-color: var(--navy-deep);
  border-bottom: 2px solid var(--amber);
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left {
  display: flex;
  align-items: center;
}

.topbar-logo {
  height: 70px;
}

.topbar-separator {
  width: 1px;
  height: 28px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 0 20px;
}

.topbar-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: 3px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-title em {
  font-style: normal;
  color: var(--amber);
}

.logo-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--amber);
  animation: pulse 2s ease-in-out infinite;
}

/* Topbar Right (User Info) */
.user-block {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
}

.user-agency {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.user-ref {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.38);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(to bottom, var(--amber-light), var(--amber));
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-deep);
}

/* 5.2 Bande Live */
.live-band {
  background-color: var(--navy);
  border-bottom: 1px solid rgba(245, 168, 0, 0.25);
  padding: 13px 40px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--live-red);
  animation: livepulse 1.2s ease-in-out infinite;
}

.live-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  border: 1px solid var(--live-red);
  color: var(--live-red);
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-join {
  background-color: var(--amber);
  color: var(--navy);
  border-radius: 7px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

/* 5.3 Bande Notification */
.notif-band {
  background-color: rgba(245, 168, 0, 0.06);
  border-bottom: 3px solid var(--amber);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.notif-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--amber);
  animation: pulse 1.5s ease-in-out infinite;
}

.notif-text {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.4;
  flex-grow: 1;
}

.notif-text strong {
  font-weight: 600;
  color: var(--amber-dark);
}

.btn-voir {
  background-color: var(--amber);
  color: var(--navy);
  border-radius: 7px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border: none;
  cursor: pointer;
}

/* 5.4 Cartes Modules (navy) */
.modules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 28px 40px;
}

.module-card {
  background-color: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(15, 35, 71, 0.20);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.module-card:hover {
  border-color: var(--amber);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15, 35, 71, 0.35);
}

.module-image-container {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.module-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: transform 0.4s;
}

.module-card:hover .module-image {
  transform: scale(1.06);
}

.module-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(15, 35, 71, 0.45));
}

.module-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  padding: 18px 18px 0;
  margin: 0;
}

.module-desc {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.60);
  padding: 8px 18px 18px;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

.module-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--amber);
  padding: 0 18px 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
  text-decoration: none;
}

.module-link:after {
  content: '→';
}

.module-card:hover .module-link {
  gap: 10px;
}

/* 5.5 Cartes Raccourcis */
.shortcuts-band {
  background-color: var(--light);
  padding: 24px 40px;
  display: flex;
  gap: 14px;
}

.shortcut-card {
  background-color: var(--light);
  border: 2px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: border-color 0.25s, transform 0.25s, background-color 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
}

.shortcut-card:hover {
  border-color: var(--amber-dark);
  transform: translateY(-2px);
  background-color: var(--white);
  box-shadow: 0 6px 24px rgba(27, 58, 107, 0.35);
}

.shortcut-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.shortcut-icon svg {
  stroke: var(--white);
  fill: none;
  width: 28px;
  height: 28px;
}

.icon-plateforme { background: linear-gradient(135deg, var(--navy), var(--blue-medium)); }
.icon-partenaires { background: linear-gradient(135deg, var(--amber-dark), var(--amber)); }
.icon-agenda { background: linear-gradient(135deg, #0F7A6E, var(--teal)); }
.icon-communaute { background: linear-gradient(135deg, #3730A3, var(--indigo)); }

.shortcut-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  margin: 0 0 4px 0;
}

.shortcut-sublabel {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--slate);
  margin: 0;
}

/* 5.6 Carrousel Actualités */
.carousel-band {
  background-color: var(--white);
  padding: 28px 0 28px 40px;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 16px;
}

/* Pause animation on hover */
.carousel-track:hover .news-card {
  animation-play-state: paused;
}

.news-card {
  width: 340px;
  min-width: 340px;
  height: 110px;
  background-color: var(--amber);
  border: 2px solid var(--amber-dark);
  border-radius: 8px; /* Assuming slight radius for elegance even if not purely stated */
  display: flex;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
}

.news-card:hover {
  border-color: var(--navy-deep);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(245, 168, 0, 0.35);
}

.news-image {
  width: 110px;
  height: 100%;
  object-fit: cover;
}

.news-content {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.news-badge {
  background-color: var(--navy-deep);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.58rem;
  padding: 2px 6px;
  text-transform: uppercase;
  align-self: flex-start;
  border-radius: 4px;
}

.news-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-excerpt {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 0.70rem;
  color: rgba(26, 37, 64, 0.65);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.news-date {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 0.65rem;
  color: rgba(26, 37, 64, 0.50);
}

.news-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--navy-deep);
}

/* 5.7 Bande & Carte Webinaire */
.webinar-band {
  background-color: var(--navy);
  padding: 28px 40px;
}

.webinar-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(15, 35, 71, 0.20);
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.webinar-thumb-wrapper {
  position: relative;
  width: 130px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
}

.webinar-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.webinar-thumb-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(15, 35, 71, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.btn-play svg {
  fill: var(--navy);
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

.webinar-content {
  flex-grow: 1;
}

.webinar-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 4px;
  display: block;
}

.webinar-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
  margin: 0 0 8px 0;
}

.webinar-meta {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--slate);
  margin: 0;
}

.btn-register {
  border: 2px solid var(--navy-deep);
  color: var(--navy-deep);
  background-color: transparent;
  padding: 8px 16px;
  border-radius: 7px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn-register:hover {
  background-color: var(--navy-deep);
  color: var(--white);
}

/* Footer */
.footer {
  background-color: var(--navy-deep);
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-ids {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 0.73rem;
  color: var(--white);
  display: flex;
  gap: 15px;
}

.footer-credits {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--amber);
}

/* Bande Separateur */
.separator-band {
  background-color: var(--white);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.separator-line {
  height: 1px;
  background-color: var(--border);
  width: 100%;
  position: absolute;
  top: 50%;
  z-index: 1;
}

.separator-badge {
  background-color: var(--light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--slate);
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}
