
:root {
  --primary: #0057ff;
  --accent: #002a85;
  --bg: #f5f7fa;
  --text: #222;
  --light: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Header */
.navbar {
  background-color: var(--light);
  box-shadow: 0 2px 10px var(--shadow);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar h1 {
  font-size: 1.8rem;
  color: var(--accent);
}

.navbar .dot {
  color: var(--primary);
}

.navbar nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navbar nav ul li a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar nav ul li a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, #dbeafe, #eff6ff);
  padding: 100px 20px;
  text-align: center;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--light);
  padding: 0.75rem 1.5rem;
  border: none;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: var(--accent);
}

/* Section Styling */
section {
  padding: 80px 20px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Grid Layout */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Cards */
.card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 10px 20px var(--shadow);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* Timeline */
.timeline {
  border-left: 3px solid var(--primary);
  padding-left: 20px;
}

.timeline-item {
  margin-bottom: 40px;
}

.timeline-item h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

/* === Bloc Réalisation Ceph === */
.timeline-item {
  background-color: #ffffff;
  padding: 2rem;
  margin-bottom: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.timeline-item h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--primary, #0057ff);
}

.timeline-item p {
  margin-bottom: 1.2rem;
  text-align: justify;
}

.timeline-item ul {
  margin-left: 2.5rem;
  padding-left: 1rem;
  list-style-type: disc;
  line-height: 1.8;
}

.timeline-item img.timeline-img {
  display: block;
  margin: 30px auto;
  max-width: 200px; /* 👈 Réduit la taille */
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.download-doc {
  display: inline-block;
  margin-top: 1rem;
  background-color: var(--primary, #0057ff);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
}

.download-doc:hover {
  background-color: #0047cc;
}

/* === Mode sombre === */
body.dark .timeline-item {
  background-color: #1f1f1f;
  color: #e0e0e0;
}

body.dark .timeline-item ul li {
  color: #dddddd;
}

body.dark .download-doc {
  background-color: #1976d2;
}

body.dark .download-doc:hover {
  background-color: #125bb2;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

form input, form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

form button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

form button:hover {
  background-color: var(--accent);
}

.social a {
  color: var(--primary);
  text-decoration: none;
}

footer {
  background-color: var(--accent);
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Images */
.illustration {
  position: absolute;
  max-width: 100%;
  border-radius: 12px;
  height: 200px;
  margin-top: 120px;
  left: 50%;
  transform: translate(-50%,-50%);
  box-shadow: 0 10px 20px var(--shadow);
}


/* === Fond animé === */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  background: radial-gradient(circle at 20% 30%, #aaccff 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, #ffccaa 0%, transparent 40%);
  animation: backgroundMove 15s ease infinite;
  background-size: 200% 200%;
}

@keyframes backgroundMove {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* === Dark Mode === */
/* === Dark Mode Amélioré === */
body.dark {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark .navbar {
  background-color: #1e1e1e;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}

body.dark .navbar h1,
body.dark .navbar nav ul li a {
  color: #e0e0e0;
}

body.dark .navbar nav ul li a:hover {
  color: #90caf9;
}

body.dark section,
body.dark .card,
body.dark form input,
body.dark form textarea {
  background-color: #1e1e1e;
  color: #e0e0e0;
  border: 1px solid #333;
}

body.dark .card {
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.05);
}

body.dark .btn-primary,
body.dark form button {
  background-color: #1976d2;
  color: #fff;
}

body.dark .btn-primary:hover,
body.dark form button:hover {
  background-color: #1565c0;
}

body.dark footer {
  background-color: #0d0d0d;
  color: #ccc;
}

body.dark .download-cv,
body.dark .toggle-theme {
  background-color: #333;
  color: #fff;
}

body.dark .download-cv:hover,
body.dark .toggle-theme:hover {
  background-color: #555;
}

body.dark .hero {
  background: linear-gradient(to right, #1e1e1e, #121212);
}

body.dark .hero-content h2,
body.dark .hero-content p {
  color: #f0f0f0;
}

body.dark .btn-primary {
  background-color: #1976d2;
  color: #fff;
}

body.dark .btn-primary:hover {
  background-color: #1565c0;
}

body.dark .entreprise-section {
  background-color: #1c1c1c;
  border-top-color: #1976d2;
}

body.dark .entreprise-section .entreprise-block {
  background-color: #2a2a2a;
  color: #f0f0f0;
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.05);
}

body.dark .entreprise-section ul li {
  color: #e0e0e0;
}

/* Dark mode pour section entreprise */
body.dark .entreprise-section {
  background-color: #1c1c1c;
  border-top-color: #1976d2;
}

body.dark .entreprise-section .entreprise-block {
  background-color: transparent;
  color: #f0f0f0;
}

body.dark .entreprise-section ul li {
  color: #e0e0e0;
}

/* === Toggle + CV === */
.toggle-theme {
  cursor: pointer;
  background-color: var(--primary);
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  border: none;
  font-size: 0.9rem;
  transition: background-color 0.3s;
  margin-left: 15px;
}

.toggle-theme:hover {
  background-color: var(--accent);
}

.download-cv {
  display: inline-block;
  margin-left: 10px;
  background: #111;
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
}

.download-cv:hover {
  background-color: #333;
}

#genre {
  height: 300px;
}

/* === Veille Technologique === */
#veille article {
  background-color: white;
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  line-height: 1.8;
  margin-top: 2rem;
}

#veille article ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

#veille article ul li {
  margin-bottom: 1rem;
}

#veille article img {
  display: block;
  margin: 2rem auto 0;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.img-delay {
  margin-top: 60px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.timeline-img {
  display: block;
  margin: 30px auto 0; /* centre l'image + ajoute de l'espace au-dessus */
  max-width: 20%;       /* réduit la taille de l’image à 60% de la largeur du conteneur */
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar nav ul {
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .illustration {
    height: auto;
    width: 90%;
    margin-top: 30px;
    position: relative;
    transform: none;
    left: 0;
  }

  form {
    width: 100%;
  }

  .timeline {
    padding-left: 10px;
  }

  .timeline-item h3 {
    font-size: 1.2rem;
  }
}

#entreprise ul {
  margin-left: 3rem;
  padding-left: 2.5rem;
  list-style-type: disc;
}

/* Espacement uniforme entre toutes les sections */
section {
  margin-bottom: 500px;
}

footer {
  margin-top: 0px;
}

section {
  scroll-margin-top: 500px; /* ou ajuste selon la hauteur de ta navbar */
}

.anchor-offset {
  display: block;
  height: 100px; /* ou adapte à la hauteur de ta navbar */
  margin-top: -100px;
  visibility: hidden;
}

section.reveal > h2 {
  text-align: center;
  margin-bottom: 40px;
}

.zero-trust-container {
  text-align: center;
  margin-top: 30px;
}

.zero-trust-container .img-delay {
  margin-top: 30px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.zero-trust-container .source {
  font-size: 0.9rem;
  margin-top: 10px;
  color: #0057ff;
}

.zero-trust-container .source a {
  color: inherit;
  text-decoration: underline;
}

.zero-trust-container .img-delay {
  max-width: 30%;  /* Réduction à 50% de la largeur du conteneur */
  height: auto;
  margin-top: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.burger span {
  width: 25px;
  height: 3px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar nav {
  display: flex;
  gap: 2rem;
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .navbar nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--light);
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .navbar nav.open {
    display: flex;
  }
}

#rss-feed-zero-trust {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
  background-color: #f0f4ff;
  border-left: 5px solid #0057ff;
  border-radius: 10px;
  padding: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

#rss-feed-zero-trust li {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.4;
}

#rss-feed-zero-trust a {
  color: #0057ff;
  text-decoration: none;
  font-weight: 500;
}

#rss-feed-zero-trust a:hover {
  text-decoration: underline;
}


.brand-link {
  text-decoration: none;
  color: inherit;
}

.brand-link:hover {
  color: var(--primary);
}

.download-doc {
  display: block;
  width: fit-content;
  margin: 20px auto 0; /* espace + centrage */
  background-color: #0057ff;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  text-align: center;
}

.download-doc:hover {
  background-color: #002a85;
}


/* === Entreprise Section === */
.entreprise-section {
  background-color: #f9fbff;
  border-top: 4px solid var(--primary);
  padding: 60px 20px;
  margin-top: 160px; /* 🔽 AJOUT ICI pour remonter la section */
  transition: background-color 0.3s;
}

.entreprise-section .entreprise-block {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  margin-top: 30px;
  transition: background-color 0.3s;
}

.entreprise-section ul {
  margin-left: 2.5rem;
  padding-left: 1rem;
  list-style-type: disc;
  line-height: 1.8;
}

/* Ajout d’images en responsive */
/* === Entreprise Section === */
.entreprise-section {
  background-color: #f9fbff;
  border-top: 4px solid var(--primary);
  padding: 60px 20px;
  transition: background-color 0.3s;
}

.entreprise-section .entreprise-block {
  padding: 2rem;
  border-radius: 12px;
  margin-top: 30px;
  transition: background-color 0.3s;
}

.entreprise-section ul {
  margin-left: 2.5rem;
  padding-left: 1rem;
  list-style-type: disc;
  line-height: 1.8;
}

/* Dark mode pour section entreprise */
body.dark .entreprise-section {
  background-color: #1c1c1c;
  border-top-color: #1976d2;
}

body.dark .entreprise-section .entreprise-block {
  background-color: transparent;
  color: #f0f0f0;
}

body.dark .entreprise-section ul li {
  color: #e0e0e0;
}

/* Ajout d’images en responsive */
.entreprise-gallery {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 200px;
  flex-wrap: wrap;
}

.entreprise-gallery .entreprise-img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* === Bloc The Kooples === */
.kooples-block {
  margin-top: 100px;
  padding-top: 60px;
  border-top: 2px solid rgba(0, 0, 0, 0.1);
  clear: both;
}

.kooples-block h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.kooples-logo {
  height: 24px;
  width: auto;
}

body.dark .kooples-block {
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  color: #f0f0f0;
}

body.dark .kooples-block ul li {
  color: #e0e0e0;
}

/* === Outils The Kooples === */
.kooples-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

.kooples-tools .tool {
  background-color: #eef3fd;
  color: #002a85;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid #d0dff7;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
}

.kooples-tools .tool:hover {
  transform: translateY(-2px);
}

body.dark .kooples-tools .tool {
  background-color: #263c6b;
}

.tool {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #eef3fd;
  color: #002a85;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid #d0dff7;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
}

.tool:hover {
  transform: translateY(-2px);
}

.tool-icon {
  width: 18px;
  height: 18px;
}

body.dark .tool {
  background-color: #263c6b;
  color: #dce8ff;
  border: 1px solid #365a9b;
}

.kooples-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1rem;
}

.kooples-logo {
  height: 30px;
  width: auto;
}

.synthese-preview {
  margin-top: 300px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
