/* =========================================
   STYLES CONNECT3S FORMATIONS NICE
   Externalisation pour CSP stricte
   Design harmonisé avec identité Connect3S
   ========================================= */

:root { 
  --brand-red: #c41e3a;
  --brand-blue: #1e3a8a;
  --text: #1a1a1a;
  --bg: #f7f9fc;
  --card: #ffffff;
  --border: #e6eef6;
  --shadow: rgba(30, 58, 138, 0.08);
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.wrap { 
  max-width: 1100px; 
  margin: 0 auto; 
  padding: 24px;
}

/* ========== HEADER ========== */
header { 
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-red) 100%);
  color: white;
  box-shadow: 0 2px 8px var(--shadow);
}

header .brand { 
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
}

header .brand img {
  max-width: 180px;
  height: auto;
  border-radius: 8px;
  background: white;
  padding: 10px;
}

header .brand-name { 
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
}

header p {
  font-size: 1rem;
  opacity: 0.95;
  margin-top: 4px;
  color: white;
}

/* ========== NAVIGATION ========== */
nav {
  background: var(--card);
  border-bottom: 2px solid var(--brand-red);
  box-shadow: 0 1px 4px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

nav li { 
  flex: 1; 
  min-width: 150px;
}

nav a {
  display: block;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  text-align: center;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
}

nav a:hover, 
nav a.active {
  background: var(--bg);
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
}

/* ========== MAIN CONTENT ========== */
main {
  padding: 40px 0;
}

h1, h2, h3 {
  color: var(--brand-blue);
  margin-bottom: 16px;
  line-height: 1.2;
}

h2 { 
  font-size: 2rem; 
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 24px;
  border-left: 5px solid var(--brand-red);
  padding-left: 16px;
}

h3 { 
  font-size: 1.4rem; 
  font-weight: 600;
  color: var(--brand-red);
  margin-bottom: 12px;
}

p {
  margin-bottom: 16px;
  color: #333;
}

strong {
  color: var(--brand-red);
  font-weight: 600;
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-red) 100%);
  color: white;
  padding: 60px 40px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 4px 16px var(--shadow);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: white;
  border: none;
  padding: 0;
  margin-top: 0;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
  opacity: 0.95;
  color: white;
}

.hero .cta {
  display: inline-block;
  padding: 16px 40px;
  background: white;
  color: var(--brand-red);
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  font-size: 1.1rem;
  transition: transform 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* ========== COUNTDOWN TIMER ========== */
#countdown {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 4px solid #f59e0b;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 32px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
}

#countdown p {
  color: #92400e;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
}

#countdown #timer {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-red);
  margin: 8px 0;
}

/* ========== CARDS & GRID ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
  border-color: var(--brand-red);
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card h3::before {
  content: "●";
  color: var(--brand-red);
  font-size: 1.5rem;
}

.card ul {
  list-style: none;
  margin-top: 16px;
}

.card ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: #555;
}

.card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-red);
  font-weight: bold;
  font-size: 1.2rem;
}

/* ========== ALERT BOX ========== */
.alert {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-left: 4px solid var(--brand-blue);
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 32px;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.15);
}

.alert h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--brand-blue);
  font-size: 1.3rem;
}

.alert p {
  margin-bottom: 12px;
  color: #1e3a8a;
  line-height: 1.5;
}

.alert ul {
  list-style: none;
  margin: 16px 0;
}

.alert ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: #1e40af;
}

.alert ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--brand-red);
  font-weight: bold;
}

/* ========== SECTIONS ========== */
section {
  margin-bottom: 48px;
}

/* ========== FOOTER ========== */
footer {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-red) 100%);
  color: white;
  padding: 32px 0;
  margin-top: 64px;
  box-shadow: 0 -2px 8px var(--shadow);
}

footer p {
  margin: 8px 0;
  color: white;
}

footer a {
  color: white;
  text-decoration: underline;
  transition: opacity 0.2s;
}

footer a:hover {
  opacity: 0.8;
}

footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 24px;
}

footer h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin: 8px 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  header .brand-name { 
    font-size: 1.4rem; 
  }
  
  /* Logo SVG responsive */
  header .brand img[src$=".svg"] {
    width: 140px !important;
  }
  
  .hero h2 { 
    font-size: 1.8rem; 
  }
  
  .hero p { 
    font-size: 1rem; 
  }
  
  h2 { 
    font-size: 1.5rem; 
  }
  
  nav ul { 
    flex-direction: column; 
  }
  
  nav li { 
    min-width: 100%; 
  }
  
  .grid { 
    grid-template-columns: 1fr; 
  }
  
  #countdown #timer {
    font-size: 1.5rem;
  }
}