/* 0. Style du skip-link (accessible au clavier) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #005f66;
  color: #fff;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}


/* 0. Smooth scrolling pour tous les ancres */
html {
  scroll-behavior: smooth;
}

/* global box-sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* === Structure de base === */
body {
  font-family: Arial, sans-serif;
  background: #f4f8fb;
  color: #222;
  margin: 0;
  padding: 0;
}

/* === En-tête === */
header {
  background: #002b45;
  color: white;
  text-align: center;
  padding: 40px 20px 20px;
  position: relative;
}
header img.logo {
  height: 140px;
  margin-bottom: 10px;
  cursor: pointer;
}
header h1 {
  color: white;
  margin-bottom: 5px;
}
header p {
  color: #dde5eb;
  font-style: italic;
}

/*Bouton vertical zone intervention flottant*/
:root {
  --zone-button-top: 160px; /* valeur par défaut de secours */
}



nav a:hover {
  text-decoration: underline;
}

/* === Zones de contenu === */
.container,
main,
section {
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px;
  background: white;
  border-radius: 8px;
}
h1, h2, h3 {
  color: #002b45;
  margin-top: 30px;
}
p, li {
  line-height: 1.6;
}
ul {
  padding-left: 20px;
}
a {
  color: #007B8A;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* === Pied de page === */
footer {
  background: #002b45;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
}
footer a {
  color: #ddeeff;
}
footer a:hover {
  text-decoration: underline;
}
footer img {
  vertical-align: middle;
  height: 20px;
  margin-left: 5px;
}

/* === Formulaires === */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
input, textarea {
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
}
button {
  background: #007B8A;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
}
button:hover {
  background: #005f66;
}

/* === Bouton style appel à action === */
.cta {
  display: inline-block;
  background: #007B8A;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 15px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s ease-in-out;
}
.cta:hover {
  background: #005f66;
  transform: translateY(-2px);
}

/* === Iframe responsive === */
.iframe-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}
.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* === Mise en page pour "a_propos" en deux colonnes === */
.container {
  display: flex;
  flex-wrap: wrap;
}
.photo {
  flex: 1 1 250px;
  text-align: center;
  margin-bottom: 20px;
}
.photo img {
  max-width: 100%;
  border-radius: 10px;
}
.bio {
  flex: 2 1 400px;
  padding-left: 20px;
}


/* ===  ’animation subtile et élégante pour  footer  */
footer p {
  opacity: 0;
  animation: fadeInFooter 1.2s ease-in-out forwards;
  animation-delay: 0.4s;
}

@keyframes fadeInFooter {
  to {
    opacity: 1;
  }
}

footer img:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease-in-out;
}

/* === Breadcrumb === */
.breadcrumb {
  font-size: 0.9em;
  color: #444;
  margin: 20px 20px 0;
  padding: 6px 0 5px;
  font-weight: 500;
  border-bottom: 1px solid #e0e0e0;
}
.breadcrumb a {
  color: #004d71;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span {
  color: #777;
}


/* ==== Styles spécifiques à cybersecurite.html ==== */

  body { font-family: Arial, sans-serif; background: #f4f8fb; margin: 0; padding: 0; color: #222; }
    header { background: #002b45; color: white; text-align: center; padding: 40px 20px 20px; position: relative; }
    header img.logo { height: 140px; margin-bottom: 10px; cursor: pointer; }
    .breadcrumb { font-size: 0.9em; color: #444; margin: 20px; padding: 6px 0; font-weight: 500; border-bottom: 1px solid #e0e0e0; }
    .breadcrumb a { color: #004d71; text-decoration: none; }
    .breadcrumb a:hover { text-decoration: underline; }
    .breadcrumb span { color: #777; }
    section {  padding: 40px 20px;  max-width: 900px;  margin: 0 auto 20px;  background: white;  border-radius: 8px;}
    h1 { color: white; }
    h2 { color: #002b45; margin-top: 0; }
    h3 { color: #002b45; }
    .intro { font-size: 1.1em; margin-bottom: 30px; }
    ul, ol { padding-left: 20px; }
    table { width: 100%; border-collapse: collapse; margin-top: 20px; }
    table th, table td { border: 1px solid #ddd; padding: 10px; text-align: left; }
    table th { background: #f0f0f0; }
    .cta { display: inline-block; background: #007B8A; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; margin-top: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.15); transition: transform 0.2s ease-in-out; }
    .cta:hover { background: #005f66; transform: translateY(-2px); }
    footer { text-align: center; padding: 20px; font-size: 0.9em; color: #666; }
   
  /* Titre de section */
  #pourquoi-cybersecurite h2 {
    color: #002b45;
    text-align: center;
    margin-bottom: 20px;
  }

  /* Conteneur de chaque raison */
  .reason {
    max-width: 900px;
    margin: 10px auto;
  }
  .reason summary {
    display: block;
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    list-style: none; /* supprime le marker */
    text-decoration: underline; /* invite au clic */
    color: #002b45;
    font-weight: bold;
  }
  .reason summary::-webkit-details-marker {
    display: none;
  }

  /* Quand c’est ouvert, on retire le souligné et ajoute “(Réduire)” */
  .reason[open] summary {
    text-decoration: none;
  }
  .reason[open] summary::after {
    content: " (Réduire)";
    color: #007B8A;
    font-weight: normal;
    font-size: 0.9em;
  }

  /* Style du contenu étendu */
  .details-content {
    padding: 12px 16px;
    background: #fafafa;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-radius: 0 0 6px 6px;
    color: #444;
    font-size: 0.95em;
  }

   /*- pour activer bouton Haut -*/
.back-to-top {
  text-align: right;
  margin: 10px 0 30px;
}
.back-to-top a {
  color: #007B8A;
  font-size: 0.9em;
  text-decoration: none;
}
.back-to-top a:hover {
  text-decoration: underline;
}


  /* Note certifications */
  .certifications {
    max-width: 900px;
    margin: 0 auto 20px;
    font-size: 0.95em;
    color: #007B8A;
    text-align: center;
  }

   /* FAQ interactif */
  #faq h2 {
    color: #002b45;
    text-align: center;
    margin-bottom: 20px;
  }
  .question {
    max-width: 900px;
    margin: 8px auto;
  }
  .question summary {
    display: block;
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: underline;
    color: #002b45;
    font-weight: bold;
    list-style: none;
  }
  .question summary::-webkit-details-marker {
    display: none;
  }
  .question[open] summary {
    text-decoration: none;
  }
  .question[open] summary::after {
    content: " (Réduire)";
    color: #007B8A;
    font-size: 0.9em;
    font-weight: normal;
  }
  .answer {
    padding: 12px 16px;
    background: #fafafa;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-radius: 0 0 6px 6px;
    color: #444;
    font-size: 0.95em;
  }

    /* Formulaire de contact dans la FAQ */
  #contact-faq {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  #contact-faq h2 {
    color: #002b45;
    text-align: center;
    margin-bottom: 20px;
  }
  .faq-form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: #004d71;
  }
  .faq-form input,
  .faq-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    font-family: Arial, sans-serif;
  }
  .faq-form textarea { min-height: 120px; resize: vertical; }
  .faq-form .cta {
    display: inline-block;
    margin-top: 20px;
    background: #007B8A;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    transition: background 0.2s, transform 0.2s;
  }
  .faq-form .cta:hover {
    background: #005f66;
    transform: translateY(-2px);
  }

 
  /* adapter les CTA sur mobile */
  .cta {
    font-size: 1em;      /* taille de texte normale */
    padding: 12px 24px;  /* plus de zone cliquable */
  }

  /* conserver ta colonne unique pour a_propos 
  .container {
    flex-direction: column;
  }
  .bio {
    padding-left: 0;
  } */



  /* Boutons CTA */
  .cta {
    font-size: 0.95em;     /* légèrement plus petit */
    padding: 10px 20px;    /* zone cliquable toujours confortable */
  }

/* centre et espace le paragraphe sous Méthodologie */
.intro-cta {
  text-align: center;
  margin-top: 20px;
}

/* centre et espace le paragraphe sous Tarifs & formules */
.tarifs-cta {
  text-align: center;
  margin-top: 20px;
}

.notes {
  font-size: 0.9em;
  color: #555;
  text-align: center; /* optionnel */
}

/* ==== Ajustement RDV : agrandir le Bookings iframe ==== */
.iframe-container {
  /* largeur : 100% du container, ajouté à 100% de .container */
  width: 100%;
  /* hauteur : ratio plus généreux (16:9 → 56.25%, 4:3 → 75%) */
  padding-bottom: 75%;      /* ou passe à 80% pour encore plus de hauteur */
  /* tu peux aussi fixer un min-height sur desktop */
  min-height: 600px;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.container .photo {
  flex: 1 1 300px;
  max-width: 350px;
}

.container .bio {
  flex: 2 1 600px;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .container .photo,
  .container .bio {
    max-width: 100%;
    width: 100%;
  }

  .container .photo img {
    display: block;
    margin: 0 auto;
  }
  /* === Fleche sous menu selection ville === */
  .submenu-details ul li {
  list-style: none;
  padding-left: 28px;
  position: relative;
}

.submenu-details ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("https://www.ndsi-consult-pro.fr/images/fleche-droite.png");
  background-size: contain;
  background-repeat: no-repeat;
}
}

/* === Mini-sections par ville === */
.detail-ville {
  background: #ffffff;
  border-left: 4px solid #007B8A;
  padding: 20px 24px;
  margin-bottom: 32px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.detail-ville h3 {
  margin-top: 0;
  color: #005f66;
  font-size: 1.3em;
}

.detail-ville p {
  margin: 8px 0 0;
  color: #333;
  line-height: 1.5;
}

.toc-ville {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: #fff;
  border-left: 4px solid #007B8A;
  padding: 12px 16px;
  margin: 24px 0 40px;
  border-radius: 6px;
  font-size: 0.95em;
}

.toc-ville strong {
  color: #005f66;
}

.toc-ville a {
  color: #007B8A;
  text-decoration: none;
}

.toc-ville a:hover {
  text-decoration: underline;
}

/* === Section FAQ : fond et encadrement === */
.faq-section {
  background: #f0fafc;        /* bleu très pâle */
  border: 1px solid #d0e7ed;  /* liseré clair */
  border-radius: 8px;
  padding: 30px 20px;
  margin-bottom: 40px;
}

.faq-section h2 {
  margin-top: 0;
  color: #005f66;
}

/* --- Mini-menu FAQ --- */
.faq-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: center;
  margin: 20px 0;
}

.faq-nav a {
  font-size: 0.95em;
  color: #007B8A;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.faq-nav a:hover {
  background: rgba(0,123,138,0.1);
}

/* --- Accordéon Questions --- */
.faq-list details {
  margin-bottom: 12px;
  background: #ffffff;
  border: 1px solid #aad6e4;
  border-radius: 6px;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: bold;
  color: #005f66;
  list-style: none;  
  position: relative;
}

.faq-list summary::marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  font-size: 1.2em;
  line-height: 1;
  transition: transform 0.2s;
}

.faq-list details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

/* Réponse */
.faq-list .answer {
  padding: 14px 18px 18px;
  border-top: 1px solid #aad6e4;
  color: #333;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .faq-nav {
    flex-direction: column;
    align-items: center;
  }
  .faq-nav a {
    width: auto;
  }
}

/* === Mise en page 2 colonnes image + texte zone intervention === */
.ville-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.ville-photo {
  flex: 1 1 30%;
  max-width: 300px;
  text-align: center;
}
.ville-photo img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}
.ville-photo figcaption {
  font-size: 0.85em;
  color: #555;
  margin-top: 6px;
}

.ville-texte {
  flex: 2 1 65%;
}

.ville-texte h3 {
  margin-top: 0;
  color: #005f66;
  font-size: 1.3em;
}

.ville-texte p {
  margin-top: 8px;
  line-height: 1.6;
  color: #333;
}

/* Responsive : stack vertical en mobile */
@media (max-width: 768px) {
  .ville-flex {
    flex-direction: column;
    text-align: center;
  }
  .ville-texte {
    flex: 1 1 100%;
  }
}

/* === Bouton retour haut avec flèche SVG === */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 180px;
  z-index: 999;
  background: #007B8A;
  padding: 12px;
  border-radius: 50px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.back-to-top:hover {
  background: #005f66;
  transform: translateY(-2px);
}

.back-to-top svg {
  display: block;
  margin: auto;
}

/* Mobile adaptation */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 16px;
    right: 16px;
    padding: 10px;
  }
  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* === Bouton flottant Zone d’intervention === */
.zone-float {
  position: fixed;
  top: 40%;
  right: 0;
  z-index: 999;
}


.zone-toggle img {
  width: 28px;
  height: 28px;
  filter: invert(1);
  transition: transform 0.3s ease;
}


/* Hover effect */
.zone-toggle:hover {
  width: 280px;
  background: #005f66;
}

.zone-toggle:hover img {
  transform: scale(1.1);
}


.zone-toggle img {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

.zone-label {
  color: white;
  font-size: 0.95em;
  white-space: nowrap;
}

.zone-toggle img {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

.zone-label {
  color: white;
  font-size: 0.95em;
  white-space: nowrap;
}

.zone-panel {
  display: none;
  margin-top: 8px;
  background: white;
  padding: 10px;
  border-radius: 8px;
  width: 280px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  overflow: hidden;
  transition: transform 0.3s ease, width 0.3s ease;
}

.zone-panel a {
  display: block;
  text-align: center;
}

.zone-panel a img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  transition: transform 0.3s ease;
  transform-origin: center center;
}


@media (max-width: 768px) {
  .zone-label {
    display: none;
  }
}

.nav-offres {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px auto;
  padding: 10px 0;
}

.nav-offres a {
  background: #007B8A;
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1em;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-offres a:hover {
  background: #005f66;
  transform: translateY(-2px);
}

@media (max-width: 520px) {
  .nav-offres {
    flex-direction: column;
    align-items: center;
  }

  .nav-offres a {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}



.zone-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #007B8A;
  padding: 10px 14px;
  border-radius: 30px 0 0 30px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}

.zone-float.vertical {
  position: fixed;
  top: var(--zone-button-top, 160px);
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 999;
}



@media (max-width: 768px) {
  .zone-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    justify-content: center;
    padding: 10px;
  }

  .zone-label {
    display: none;
  }
}
.zone-toggle img {
  width: 24px;
  height: 24px;
  filter: invert(1);
  transition: transform 0.3s ease;
}

.zone-float.vertical:hover .zone-panel {
  display: block;
  animation: fadeInMap 0.3s ease-in-out;
}

@keyframes fadeInMap {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================================================
   MENU – nav-hamburger / toggle checkbox / details-submenu
   =================================================================== */

/* Nettoyage de base */
.nav-hamburger .menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 1. Mobile (≤768px) : bouton SVG+MENU centré + toggle CSS only */
@media (max-width: 768px) {
  .nav-hamburger {
    background: #004d71;
  }

  /* cache la checkbox, on ne l’affiche pas */
  .menu-toggle {
    display: none;
  }

  /* bouton hamburger (SVG + texte) */
  .menu-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px;
    margin: 0 auto;
    cursor: pointer;
  }
  .menu-icon img {
    width: 32px;
    height: auto;
  }
  .menu-label {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    user-select: none;
  }

  /* menu vertical masqué par défaut */
  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #004d71;
  }
  /* s’ouvre quand on coche la checkbox */
  .menu-toggle:checked ~ .menu {
    display: flex;
  }

  /* sépare visuellement les items */
  .menu li + li {
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  /* style des liens et summary */
  .menu a,
  .submenu-details summary {
    display: block;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    font-weight: bold;
  }
  .menu a:hover,
  .submenu-details summary:hover {
    background: rgba(255,255,255,0.1);
  }

  /* sous-menu <details> */
  .submenu-details summary {
    list-style: none;
    cursor: pointer;
  }
  .submenu-details ul {
    display: none;
    background: #055a8c;
  }
  .submenu-details[open] ul {
    display: block;
  }
  .submenu-details ul li + li {
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .submenu-details ul li a {
    padding: 10px 20px;
    color: #e0f7fa;
  }
}

/* 2. Desktop (≥769px) : menu horizontal + dropdown au hover */
@media (min-width: 769px) {
  .nav-hamburger {
    background: #004d71;
    }
  .submenu-details summary {
  padding: 12px 16px;
  list-style: none;
  cursor: pointer;
  color: white; /* ← couleur texte corrigée */
  font-weight: bold;
  background: none;
}
.submenu-details summary:hover {
  background: rgba(255,255,255,0.2);
}

  /* plus de bouton hamburger en large */
  .menu-toggle,
  .menu-icon,
  .menu-label {
    display: none;
  }

  /* menu horizontal */
   .menu {
    display: flex !important;
    justify-content: center;
    align-items: center; 
    flex-wrap: wrap;
    background: none;
  }
  /* ... autres styles ... */

  .menu li {
    position: relative;
  }
  .menu a {
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    font-weight: bold;
  }
  .menu a:hover {
    background: rgba(255,255,255,0.2);
  }

  /* dropdown <details> au hover */
  .submenu-details {
    position: relative;
  }
  .submenu-details summary {
    padding: 12px 16px;
    list-style: none;
    cursor: pointer;
  }
  .submenu-details summary::after {
    content: " ▾";
    margin-left: 4px;
    font-size: 0.9em;
  }

   /* ajustement libre sous menu 
  .submenu-details ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    display: none;
    background: #004d71;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;        
  }  */

  /* ajustement libre sous menu .submenu-details   */
.submenu-details ul {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  width: max-content;               /* largeur auto selon contenu */
  min-width: 220px;                 /* largeur minimum confort */
  margin: 0;
  padding: 0;
  list-style: none;
  background: #004d71;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.submenu-details:hover ul {
  display: block;
}

/* ✅ Élément de sous-menu avec flèche + texte */
.submenu-details ul li {
  list-style: none;
  padding-left: 36px;              /* place pour l’icône */
  position: relative;
  white-space: nowrap;            /* empêche les retours à la ligne */
  display: flex;
  align-items: center;
  height: auto;
}

.submenu-details ul li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("https://www.ndsi-consult-pro.fr/images/fleche-droite.png");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ✅ Style du lien */
.submenu-details ul li a {
  color: white;
  text-decoration: none;
  padding: 12px 16px 12px 0;
  display: block;
  font-weight: normal;
}

.submenu-details ul li a:hover {
  background: rgba(255, 255, 255, 0.2);
}

  .submenu-details:hover ul {
    display: block;
  }
  .submenu-details ul li a {
    padding: 10px 16px;
    color: white;
  }
  .submenu-details ul li a:hover {
    background: rgba(255,255,255,0.2);
  }
/* === fleche sous menu Mini-sections par ville === */
.submenu-details ul li {
  list-style: none;
  padding-left: 28px;
  position: relative;
}

.submenu-details ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("https://www.ndsi-consult-pro.fr/images/fleche-droite.png");
  background-size: contain;
  background-repeat: no-repeat;
}


.page-layout {
  display: flex;
  gap: 2rem;
}

/* Sidebar en sticky */
.sidebar-toc {
  flex: 0 0 250px;
  position: sticky;
  top: 1rem;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 4px;
}
 }

/* Sur mobile, on repasse en block */
@media (max-width: 767px) {
  .page-layout { display: block; }
  .sidebar-toc { position: static; margin-bottom: 1.5rem; }
}

/* === Zone-intervention : layout en 2 colonnes sticky === */
.zone-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.zone-layout .sidebar-toc {
  flex: 0 0 250px;
  position: sticky;
  top: 1.5rem;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 0.95em;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.zone-layout .sidebar-toc strong {
  display: block;
  margin-bottom: 0.6em;
  color: #005f66;
}

.zone-layout .sidebar-toc ul {
  padding-left: 20px;
}

.zone-layout .sidebar-toc li {
  margin-bottom: 6px;
}

.zone-layout .sidebar-toc a {
  color: #007B8A;
  text-decoration: none;
}

.zone-layout .sidebar-toc a:hover {
  text-decoration: underline;
}

/* Colonne droite = contenu page */
.zone-layout .content {
  flex: 1;
  min-width: 0;
}

/* Responsive : une seule colonne */
@media (max-width: 768px) {
  .zone-layout {
    display: block;
  }
  .zone-layout .sidebar-toc {
    position: static;
    margin-bottom: 2rem;
    max-height: none;
    overflow: visible;
  }
}
/* indiquer visuellement la cliquabilité Villes principales*/
/* Image cliquable : transition et opacité au hover */
.detail-ville .ville-photo a img {
  transition: opacity 0.2s;
}
.detail-ville .ville-photo a:hover img {
  opacity: 0.85;
}

/* Titre cliquable : style de base et hover */
.detail-ville h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.detail-ville h3 a:hover {
  text-decoration: underline;
  color: #005f66;
}

/* point de focalisation quand un utilisateur  au clavier touch TAB */
a:focus, button:focus {
  outline: 2px solid #005f66;
  outline-offset: 2px;
}

/* Menus risques */

.risques-cyber h2 {
  margin-top: 2rem;
  font-size: 1.5em;
  color: #005f66;
  border-bottom: 2px solid #005f66;
  padding-bottom: 0.5em;
}

.risques-cyber details {
  border: 1px solid #cdd9e5;
  border-radius: 6px;
  margin: 1rem 0;
  background: #f8fafc;
  transition: all 0.3s ease;
}

.risques-cyber summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  font-weight: bold;
  cursor: pointer;
  color: #003c47;
  list-style: none;
}

.risques-cyber summary svg {
  width: 1rem;
  height: 1rem;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
  stroke: #005f66;
  stroke-width: 2;
  fill: none;
}

.risques-cyber details[open] summary svg {
  transform: rotate(180deg);
}

.risques-cyber ul {
  padding: 0.75rem 1.5rem;
  margin: 0;
}

.risques-cyber li {
  margin-bottom: 0.5em;
  color: #333;
  font-size: 0.95em;
}


/* pour sous Menus risques */
.mobile-toc-toggle {
  display: none;
}

@media (max-width: 767px) {
  .mobile-toc-toggle {
    display: block;
    background: #eaf2f6;
    padding: 0.75rem 1rem;
    margin: 1rem auto;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    color: #005f66;
    font-weight: bold;
  }

  .mobile-toc {
    display: none;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .mobile-toc.show {
    display: block;
  }

  .mobile-toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
  }

  .mobile-toc li {
    margin-bottom: 0.5em;
  }

  .mobile-toc a {
    color: #007B8A;
    text-decoration: none;
  }

  .mobile-toc a:hover {
    text-decoration: underline;
  }
}

/* pour sous boutton flottant pages offres detailles  */
.page-strategie .zone-float.vertical {
  top: auto;
  bottom: 550px;
}

@media screen and (max-width: 767px) {
  .page-strategie .zone-float.vertical {
    top: auto;
    bottom: 230px; /* au lieu de 120px, plus raisonnable pour mobile */
  }
}

/* 🧭 Bouton d'ouverture du tableau détaillé */
details.comparatif-details summary {
  font-weight: bold;
  font-size: 1em;
  color: #006699;
  cursor: pointer;
  margin-top: 20px;
}

/* 🎯 Icône dynamique dans le bouton summary */
details.comparatif-details summary::after {
  content: " ▼";
  font-size: 1em;
  color: #006699;
  margin-left: 6px;
}

details.comparatif-details[open] summary::after {
  content: " ▲";
}

/* 🎨 Fond clair pour la section comparatif */
.section-light {
  background-color: #f2f7fb; /* plus visible que #f9fbfc */
  padding: 40px 20px;
  border-top: 1px solid #dde5eb;
}

/* 🎬 Animation d’ouverture du tableau détaillé */
details.comparatif-details[open] .table-wrapper {
  animation: fadeIn 0.6s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* ombre légère */
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🖱️ Hover sur les lignes du tableau */
table.comparatif-services tbody tr:hover {
  background-color: #eaf4fc;
  transition: background-color 0.3s ease;
}

/* 📱 Version mobile-friendly du tableau synthétique */
@media screen and (max-width: 767px) {
  table.tableau-synthese {
    display: block;
    width: 100%;
    border: none;
  }

  table.tableau-synthese thead {
    display: none;
  }

  table.tableau-synthese tbody {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  table.tableau-synthese tr {
    display: block;
    background-color: #ffffff;
    border: 1px solid #dde5eb;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }

  table.tableau-synthese td {
    display: block;
    padding: 6px 0;
    font-size: 0.95em;
  }

  table.tableau-synthese td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    color: #2c3e50;
    margin-bottom: 4px;
  }
}

/* 🧩 Cartes cliquables offres */
.cartes-offres {
  background-color: #f9fbfc;
  padding: 40px 20px;
  border-top: 1px solid #dde5eb;
  text-align: center;
}

.cartes-offres h2 {
  margin-bottom: 10px;
}

/* Alignement des cartes sur mobile */
.cartes-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

@media screen and (max-width: 767px) {
  .carte-offre {
    width: 100%;
    max-width: 320px;
  }
}

.carte-offre {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 280px;
  background-color: #ffffff;
  border: 1px solid #dde5eb;
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  color: #2c3e50;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.carte-offre:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.carte-offre img {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.carte-offre h3 {
  margin-bottom: 10px;
  font-size: 1.2em;
}

.carte-offre p {
  font-size: 0.95em;
  margin-bottom: 15px;
}

.cta-carte {
  font-weight: bold;
  color: #006699;
  text-decoration: underline;
}

/* Espacement entre les cartes et le texte d’intro */
.cartes-offres {
  margin-bottom: 40px;
}

/* 🛡️ Badge NIS2-ready */
.badge-nis2 {
  background-color: #006699;
  color: #ffffff;
  font-size: 0.75em;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
}

/* distinguer visuellement  dans offres “Vue d’ensemble” des autres */
.submenu .menu-overview {
  font-weight: bold;
  color: #006699;
  background-color: #f0f8ff;
  padding: 6px 12px;
  border-radius: 4px;
}

/* Effet de survol */
.submenu .menu-overview:hover {
  background-color: #e0f0ff;
  text-decoration: underline;
}