/* =========================================
   STYLES CONNECT3S - PROTECTION CYBERATTAQUE
   Design moderne aux couleurs officielles
   Blanc, Bleu, Gris uniquement
   ========================================= */

:root { 
  /* Couleurs officielles Connect3S */
  --brand-blue: #1e3a8a;      /* Bleu Connect3S */
  --brand-gray: #4a4a4a;      /* Gris foncé Connect3S */
  --white: #ffffff;           /* Blanc */
  --light-gray: #f5f7fa;      /* Gris très clair pour fonds */
  --border-gray: #e0e4e9;     /* Gris bordures */
  --text-dark: #2d3748;       /* Texte principal */
  --text-medium: #4a5568;     /* Texte secondaire */
  --shadow: rgba(30, 58, 138, 0.1);
}

* { 
  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-dark);
  background: var(--white);
  line-height: 1.6;
}

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

/* ==================
   HEADER
   ================== */
header { 
  background: var(--white);
  border-bottom: 3px solid var(--brand-blue);
  box-shadow: 0 2px 12px var(--shadow);
}

header .wrap {
  padding: 24px;
}

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

header .brand img {
  max-width: 180px;
  height: auto;
}

header .brand-text {
  flex: 1;
  min-width: 300px;
}

header .brand-name { 
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-blue);
  margin-bottom: 4px;
}

header .brand-subtitle {
  font-size: 1.1rem;
  color: var(--text-medium);
  font-weight: 400;
}

/* ==================
   NAVIGATION
   ================== */
nav {
  background: var(--light-gray);
  border-bottom: 2px solid var(--border-gray);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px var(--shadow);
}

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

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

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

nav a:hover {
  background: var(--white);
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}

nav a.active {
  background: var(--white);
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}

/* ==================
   MAIN CONTENT
   ================== */
main { 
  padding: 48px 0;
  background: var(--light-gray);
  min-height: 60vh;
}

section { 
  margin-bottom: 60px;
}

h1, h2 {
  color: var(--brand-blue);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  border-left: 5px solid var(--brand-blue);
  padding-left: 20px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--brand-blue);
  font-weight: 600;
}

h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--brand-gray);
  font-weight: 600;
}

p {
  margin-bottom: 16px;
  color: var(--text-medium);
  line-height: 1.7;
}

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

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: var(--white);
}

.hero p {
  font-size: 1.2rem;
  max-width: 900px;
  margin: 0 auto 32px;
  color: var(--white);
  opacity: 0.95;
  line-height: 1.8;
}

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

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

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

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

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

.card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--brand-blue);
}

.card h4 {
  color: var(--brand-gray);
}

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

.card ul li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-medium);
}

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

.card p {
  margin: 16px 0;
  color: var(--text-medium);
}

.card a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
  display: inline-block;
  margin-top: 12px;
}

.card a:hover {
  color: var(--brand-gray);
  text-decoration: underline;
}

/* ==================
   CTA BOX
   ================== */
.cta-box {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-gray) 100%);
  color: var(--white);
  padding: 48px;
  border-radius: 12px;
  text-align: center;
  margin: 60px 0;
  box-shadow: 0 8px 24px var(--shadow);
}

.cta-box h3 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 20px;
}

.cta-box p {
  font-size: 1.1rem;
  margin-bottom: 28px;
  color: var(--white);
  opacity: 0.95;
  line-height: 1.8;
}

.cta-box a {
  display: inline-block;
  padding: 16px 40px;
  background: var(--white);
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.cta-box a:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ==================
   STICKY CTA BOTTOM
   ================== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand-blue);
  color: var(--white);
  padding: 16px 24px;
  box-shadow: 0 -4px 16px var(--shadow);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.sticky-cta p {
  margin: 0;
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
}

.sticky-cta .cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sticky-cta button {
  background: var(--white);
  color: var(--brand-blue);
  border: none;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sticky-cta button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sticky-cta .btn-close {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 10px 20px;
}

.sticky-cta .btn-close:hover {
  background: rgba(255,255,255,0.1);
}

.sticky-cta.hidden {
  display: none;
}

/* ==================
   INFO BOXES
   ================== */
.info-box {
  background: var(--light-gray);
  border-left: 4px solid var(--brand-blue);
  padding: 24px;
  border-radius: 8px;
  margin: 24px 0;
}

.info-box-highlight {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-gray) 100%);
  color: var(--white);
  padding: 32px;
  border-radius: 8px;
  margin: 24px 0;
}

.info-box-highlight h3,
.info-box-highlight h4 {
  color: var(--white);
}

.info-box-highlight p {
  color: var(--white);
  opacity: 0.95;
}

/* ==================
   FOOTER
   ================== */
footer {
  background: var(--brand-gray);
  color: var(--white);
  margin-top: 60px;
  padding-bottom: 80px; /* Space pour sticky CTA */
}

footer .wrap {
  padding: 40px 24px;
  text-align: center;
}

footer p {
  margin: 12px 0;
  color: var(--white);
}

footer a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  font-weight: 500;
}

footer a:hover {
  border-bottom-color: var(--white);
}

/* ==================
   NUMBERED STEPS
   ================== */
.numbered-steps {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.step-item {
  display: flex;
  gap: 20px;
  align-items: start;
}

.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--brand-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
}

.step-content h3 {
  margin: 0 0 8px 0;
  color: var(--brand-blue);
}

.step-content p {
  margin: 0;
  color: var(--text-medium);
}

/* ==================
   RESPONSIVE
   ================== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .grid { grid-template-columns: 1fr; }
  
  nav ul {
    flex-direction: column;
  }
  
  nav li {
    min-width: 100%;
  }
  
  header .brand {
    flex-direction: column;
    text-align: center;
  }
  
  header .brand-text {
    min-width: 100%;
  }
  
  .sticky-cta {
    flex-direction: column;
    text-align: center;
  }
  
  .sticky-cta .cta-buttons {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero { padding: 40px 24px; }
  .card { padding: 24px; }
  .cta-box { padding: 32px 24px; }
  h2 { font-size: 1.4rem; }
}
