/* =========================================
   STYLES CONNECT3S PENTEST NICE
   Version refonte - Identité visuelle Connect3S
   Couleurs : Blanc, Bleu #1e3a8a, Gris #4a4a4a
   ========================================= */

:root { 
  /* Palette Connect3S stricte */
  --brand-blue: #1e3a8a;
  --brand-blue-light: #3b5998;
  --brand-blue-lighter: #e8f0ff;
  --text-dark: #1a1a1a;
  --text-gray: #4a4a4a;
  --text-light: #6b7280;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --border-light: #e2e8f0;
  --shadow-sm: rgba(30, 58, 138, 0.08);
  --shadow-md: rgba(30, 58, 138, 0.12);
  --shadow-lg: rgba(30, 58, 138, 0.16);
}

/* Reset de base */
* { 
  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(--bg-light);
  line-height: 1.7;
  font-size: 16px;
}

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

/* ========================================
   HEADER
   ======================================== */
header { 
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-light) 100%);
  color: white;
  box-shadow: 0 4px 12px var(--shadow-md);
  position: relative;
}

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

header .brand img {
  width: 180px;
  height: auto;
  background: white;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

header .brand img:hover {
  transform: scale(1.02);
}

header .brand-name { 
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: white;
  margin: 0;
}

header .brand p {
  font-size: 1.05rem;
  opacity: 0.95;
  margin-top: 6px;
  font-weight: 400;
  color: white;
}

/* ========================================
   NAVIGATION
   ======================================== */
nav {
  background: var(--bg-white);
  border-bottom: 3px solid var(--brand-blue);
  box-shadow: 0 2px 8px var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

nav a {
  display: block;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text-gray);
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  position: relative;
}

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

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

section { 
  margin-bottom: 70px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: white;
  margin-bottom: 24px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 28px;
  color: var(--brand-blue);
  font-weight: 700;
  border-left: 6px solid var(--brand-blue);
  padding-left: 20px;
  line-height: 1.3;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--brand-blue);
  font-weight: 600;
  line-height: 1.4;
}

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

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-light) 100%);
  color: white;
  padding: 70px 50px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 50px;
  box-shadow: 0 8px 24px var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent 60%);
  pointer-events: none;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 24px;
  color: white;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.25rem;
  max-width: 850px;
  margin: 0 auto 36px;
  opacity: 0.96;
  color: white;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ========================================
   CALL TO ACTION (CTA)
   ======================================== */
.cta {
  display: inline-block;
  padding: 16px 42px;
  background: white;
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  font-size: 1.15rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  border: 2px solid transparent;
  position: relative;
  z-index: 1;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.3);
  background: var(--bg-light);
}

.cta-secondary {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  border: 2px solid var(--brand-blue);
}

.cta-secondary:hover {
  background: var(--brand-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow-md);
}

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

.card {
  background: var(--bg-white);
  border-radius: 14px;
  padding: 36px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 12px var(--shadow-sm);
  transition: all 0.4s ease;
}

.card:hover {
  box-shadow: 0 12px 32px var(--shadow-md);
  transform: translateY(-6px);
  border-color: var(--brand-blue);
}

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

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

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

.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-gray);
}

.card a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.card a:hover {
  color: var(--brand-blue-light);
  border-bottom-color: var(--brand-blue-light);
}

/* ========================================
   CTA BOX (Call to Action en section)
   ======================================== */
.cta-box {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-light) 100%);
  color: white;
  padding: 50px 40px;
  border-radius: 16px;
  text-align: center;
  margin: 70px 0;
  box-shadow: 0 8px 24px var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-box h3 {
  font-size: 2.2rem;
  color: white;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.cta-box p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.96;
  color: white;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-box .cta {
  background: white;
  color: var(--brand-blue);
  margin: 0 10px;
}

.cta-box .cta:hover {
  background: var(--bg-light);
}

.cta-box .cta-secondary {
  border-color: white;
  color: white;
  margin: 0 10px;
}

.cta-box .cta-secondary:hover {
  background: white;
  color: var(--brand-blue);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background: var(--brand-blue);
  color: white;
  margin-top: 80px;
  box-shadow: 0 -4px 16px var(--shadow-md);
}

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

footer p {
  margin: 10px 0;
  color: white;
  opacity: 0.95;
}

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

footer a:hover {
  border-bottom-color: white;
  opacity: 1;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .hero h1 { 
    font-size: 2rem;
  }
  
  .hero p { 
    font-size: 1.05rem;
  }
  
  h2 { 
    font-size: 1.7rem;
  }
  
  .grid { 
    grid-template-columns: 1fr;
  }
  
  nav ul {
    flex-direction: column;
  }
  
  nav li {
    min-width: 100%;
  }
  
  .cta-box {
    padding: 40px 24px;
  }
  
  .cta-box h3 {
    font-size: 1.8rem;
  }
}

/* ========================================
   ACCESSIBILITÉ
   ======================================== */
a:focus, button:focus {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
