/* =========================================
   CHARTE GRAPHIQUE & BASE
   ========================================= */
:root {
  --navy-blue: #0a192f;
  --navy-light: #112240;
  --cyan-tech: #00b4d8;
  --cyan-hover: #0077b6;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --text-main: #333333;
  --text-muted: #666666;
  --border-color: #e5e7eb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-light);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body::-webkit-scrollbar {
  display: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.container-pricing {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  position: relative;
  z-index: 3;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header {
  background-color: var(--bg-white);
  padding: 15px 0;
  border-bottom: 2px solid var(--cyan-tech);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
header img {
  height: 70px;
  width: auto;
  transition: height 0.3s;
}
nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
nav a {
  color: var(--navy-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  transition: color 0.3s;
}
nav a:hover,
nav a.active {
  color: var(--cyan-tech);
}

.nav-phone {
  background: var(--navy-light);
  color: var(--bg-white) !important;
  padding: 8px 15px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-phone:hover {
  background: var(--cyan-tech);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.burger span {
  width: 100%;
  height: 3px;
  background-color: var(--navy-blue);
  border-radius: 5px;
}

/* =========================================
   UTILITAIRES & BOUTONS
   ========================================= */
.with-pattern {
  position: relative;
  width: 100%;
}
.with-pattern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("pattern_safe.png");
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}
.with-pattern > .container {
  position: relative;
  z-index: 10;
}

.btn {
  display: inline-block;
  background-color: var(--cyan-tech);
  color: var(--bg-white) !important;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.05rem;
  transition: all 0.3s;
  border: 2px solid var(--cyan-tech);
  cursor: pointer;
  text-align: center;
}
.btn:hover {
  background-color: var(--cyan-hover);
  border-color: var(--cyan-hover);
  transform: translateY(-2px);
}
.btn-secondary {
  background-color: transparent;
  color: var(--cyan-tech) !important;
}
.btn-secondary:hover {
  background-color: var(--cyan-tech);
  color: var(--bg-white) !important;
}
.btn-outline {
  display: inline-block;
  padding: 10px 20px;
  color: var(--cyan-tech);
  border: 2px solid var(--cyan-tech);
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s;
  margin-top: auto;
}
.btn-outline:hover {
  background-color: var(--cyan-tech);
  color: var(--bg-white);
}

/* =========================================
   HERO ACCUEIL
   ========================================= */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero h1 {
  color: var(--navy-blue);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero p.lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 850px;
  margin: 0 auto 40px;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* =========================================
   ABONNEMENTS & VIDEO BACKGROUND
   ========================================= */
.sentinelle-section {
  position: relative;
  padding: 8vh 0 80px;
  overflow: hidden;
  background-color: var(--navy-blue);
}
.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  z-index: 1;
  object-fit: cover;
}
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 25, 47, 0.65);
  z-index: 2;
}

.pricing-header {
  text-align: center;
  margin-bottom: 5vh;
}
.pricing-header h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  color: var(--bg-white);
  margin-bottom: 15px;
}
.pricing-header p {
  font-size: 1.1rem;
  color: #d1d5db;
  max-width: 700px;
  margin: 0 auto;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}
.pricing-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}
.pricing-card.highlight {
  border: 3px solid var(--cyan-tech);
  transform: scale(1.02);
}
.pricing-card.highlight:hover {
  transform: scale(1.05) translateY(-5px);
}
.plan-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--navy-blue);
  margin-bottom: 5px;
}
.plan-price {
  font-size: 2.8rem;
  font-weight: bold;
  line-height: 1;
  color: var(--navy-blue);
  margin-bottom: 5px;
}
.plan-price span {
  font-size: 1rem;
  font-weight: normal;
}
.plan-features {
  list-style: none;
  text-align: left;
  margin: 25px 0;
  flex-grow: 1;
}
.plan-features li {
  margin-bottom: 15px;
  font-size: 0.95rem;
  position: relative;
  padding-left: 25px;
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan-tech);
  font-weight: bold;
}

.pricing-disclaimer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85rem;
  color: #a0aec0;
  opacity: 0.9;
  font-style: italic;
  padding: 0 20px;
  line-height: 1.6;
}

/* =========================================
   SERVICES & METHODOLOGIE
   ========================================= */
.services-section {
  background-color: rgba(249, 250, 251, 0.95);
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}
.section-title {
  text-align: center;
  color: var(--navy-blue);
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  margin-bottom: 50px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  align-items: center;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--cyan-tech);
}
.card h3 {
  color: var(--navy-light);
  font-size: 1.4rem;
  margin-bottom: 15px;
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 25px;
}

.methodology {
  padding: 50px 0;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border-color);
}
.methodology h4 {
  color: var(--navy-blue);
  margin-bottom: 30px;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.framework-logos {
  display: flex;
  justify-content: center;
  gap: 60px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.logo-item img {
  height: 65px;
  width: auto;
  transition: transform 0.3s;
}
.logo-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-light);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background-color: var(--navy-blue);
  color: #a0aec0;
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
footer a {
  color: var(--cyan-tech);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
.footer-info {
  margin-top: 30px;
  font-size: 0.85rem;
  line-height: 1.8;
}

/* Responsive */
@media (max-width: 900px) {
  header img {
    height: 50px;
  }
  .burger {
    display: flex;
  }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    border-top: 1px solid var(--border-color);
  }
  nav.active {
    display: flex;
  }
  nav a {
    padding: 15px;
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
  }
  .nav-phone {
    border-radius: 0;
    background: transparent;
    color: var(--navy-blue) !important;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pricing-card.highlight {
    transform: scale(1);
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .framework-logos {
    gap: 20px;
  }
  .logo-item img {
    height: 45px;
  }
}
/* STATS HERO */
.stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
  flex-wrap: wrap;
}
.stat-item {
  background: var(--bg-white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  flex: 1;
  min-width: 250px;
  max-width: 320px;
  border-top: 4px solid var(--navy-light);
}
.stat-item .number {
  display: block;
  font-size: 2.8rem;
  font-weight: bold;
  color: var(--cyan-tech);
  margin-bottom: 5px;
}
.stat-item p {
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 500;
}
.sources {
  font-size: 0.8rem;
  color: #999;
  font-style: italic;
  text-align: center;
  margin-bottom: 20px;
}

/* INDICATEUR SWIPE MOBILE */
.swipe-indicator {
  display: none;
}

/* CAROUSEL MOBILE (Remplace le comportement de la grille sur petit écran) */
@media (max-width: 900px) {
  .pricing-grid,
  .grid-2 {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 20px;
    margin-left: -20px;
    margin-right: -20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pricing-grid::-webkit-scrollbar,
  .grid-2::-webkit-scrollbar {
    display: none;
  }
  .pricing-card,
  .card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }

  .swipe-indicator {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-style: italic;
    animation: pulse 2s infinite;
  }
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}
/* Grille du blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

/* Carte article avec effet de survol */
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  position: relative;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer; /* Force l'affichage de la main sur toute la carte */
  will-change: transform, box-shadow;
}

.blog-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
  z-index: 2; /* S'assure que la carte reste au-dessus des autres */
}

.card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}
/* Correction de l'espacement dans les cartes du blog */
.card-content {
  padding: 30px; /* Ajoute de l'espace à l'intérieur */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card:hover .read-more-link {
  margin-left: 5px;
  color: var(
    --cyan-hover
  ); /* Assure-toi que cette variable existe bien dans ton code */
}
/* Nouveau style pour le lien "Lire l'article" */
.read-more-link {
  color: var(--cyan-tech);
  font-weight: bold;
  text-decoration: none;
  font-size: 1.05rem;
  transition:
    margin-left 0.3s ease,
    color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.read-more-link:hover {
  transform: translateX(5px); /* Petit effet de glissement vers la droite */
  color: var(--cyan-hover);
}
.read-more-link::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1; /* Le calque est bien présent */
}

/* Mise en page "Pro" pour le contenu des articles */
.article-img-full,
.article-img-inline {
  width: 100%;
  display: block;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.article-img-full {
  height: 350px;
}
.article-img-inline {
  height: auto;
  max-width: 100%;
}

/* Boîtes Avantages / Inconvénients */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}
.box-pros {
  background: rgba(46, 125, 50, 0.05);
  border-left: 4px solid #2e7d32;
  padding: 20px;
  border-radius: 0 8px 8px 0;
}
.box-cons {
  background: rgba(198, 40, 40, 0.05);
  border-left: 4px solid #c62828;
  padding: 20px;
  border-radius: 0 8px 8px 0;
}
.box-pros h4 {
  color: #2e7d32;
  margin-bottom: 10px;
}
.box-cons h4 {
  color: #c62828;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
}
