/* =========================
   Base
========================= */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: #e0e0e0;
}

header, footer {
  background-color: #0d1b2a;
  color: #ffffff;
  text-align: center;
  padding: 1.5rem 0;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

nav li { margin: 0 1rem; }

nav a {
  color: #66b2ff;
  text-decoration: none;
  font-weight: bold;
}
nav a:hover { text-decoration: underline; }

/* Section “carte” principale, unique */
section {
  background-color: #1a1a1a;
  padding: 2rem;
  max-width: 1200px;
  margin: 4rem auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease;
}

/* Titres */
h2 {
  color: #66b2ff;
  border-bottom: 2px solid #1a73e8;
  padding-bottom: 0.3rem;
}
.section-title { /* variante stylée réutilisable */
  color: #66b2ff;
  text-align: center;
  margin: 0 0 1.2rem;
  border-bottom: 2px solid #1a73e8;
  padding-bottom: .4rem;
}
.section-title--left { text-align: left; }

h3 {
  color: #88c5ff;
  margin-top: 2.5rem; /* espace avant chaque sous-titre */
}

/* =========================
   Blocs Tableaux (page dédiée)
========================= */
#tableaux .theme {
  margin-bottom: 3rem;
  padding: 1.5rem;
  background-color: #1e1e1e;
  border-left: 4px solid #1a73e8;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
#tableaux .theme h3 { margin-top: 0; }

/* =========================
   Galeries d’images (compat FR/EN)
========================= */
.galerie,
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.galerie img,
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid #2a2a2a;
  background: #000;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.galerie img:hover,
.gallery img:hover {
  transform: scale(1.04);
  box-shadow: 0 0 15px #1a73e8;
}

/* =========================
   Page “articles” (empilement vertical)
========================= */
.wrapper { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; }

.articles {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: block;          /* empile les <article> verticalement */
}

.card {
  background-color: #1e1e1e;
  border-left: 4px solid #1a73e8;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,.35);
  padding: 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
  margin-bottom: 40px;      /* espace entre articles */
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(26,115,232,.35);
}
.card .desc {
  margin: 0 0 .9rem;
  color: #cfd8e3;
  font-size: .95rem;
  line-height: 1.35rem;
}

/* =========================
   Médias (images/vidéos)
========================= */
.media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.media video,
.media img {
  display: block;
  width: 100%;
  height: auto;        /* conserve les proportions */
  object-fit: contain; /* pas de rognage par défaut */
  max-height: 70vh;    /* évite une vidéo trop haute sur desktop */
  margin: 0 auto;
  border-radius: 10px;
}

/* Variantes à ratio fixe (si besoin) */
.media.ratio-16x9 { aspect-ratio: 16 / 9; }
.media.ratio-9x16 { aspect-ratio: 9 / 16; }
.media.square     { aspect-ratio: 1 / 1; }

/* Quand on veut remplir le cadre défini par le ratio (et accepter le recadrage) */
.media.ratio-16x9 > video,
.media.ratio-9x16 > video,
.media.square     > video,
.media.ratio-16x9 > img,
.media.ratio-9x16 > img,
.media.square     > img {
  height: 100%;
  object-fit: cover;
}

/* Paire d’images côte à côte, non déformées */
.media-pair {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.media-pair img {
  display: block;
  width: auto !important;   /* annule un éventuel img { width:100% } global */
  height: auto !important;  /* ratio préservé */
  max-width: 300px;         /* taille raisonnable */
  max-height: 220px;        /* borne la hauteur */
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0,0,0,.4);
}
@media (max-width: 700px) {
  .media-pair img {
    max-width: 46vw;
    max-height: 32vh;
  }
}

/* =========================
   Formulaires / Boutons
========================= */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin-top: 1rem;
}
input, textarea {
  padding: 0.8rem;
  background-color: #1f1f1f;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 1rem;
}
button {
  background-color: #1a73e8;
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
button:hover { background-color: #1665c1; }

/* =========================
   Footer
========================= */
footer p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

/* ======================
   LOGOS (simple & pro)
====================== */

/* ===== Logo principal ===== */
.logo-brillant {
  max-height: 170px;
  height: auto;
  width: auto;

  display: block;
  margin: 0 auto;

  border-radius: 18px;
  background: #ffffff;

  transition: transform 0.25s ease;
}

.logo-brillant:hover {
  transform: scale(1.06);   /* effet loupe propre */
}


/* ======================
   RETOUR HAUT
====================== */

.retour-haut {
  text-align: center;
  margin: 3rem 0 2rem;
}


/* ===== Logos retour ===== */
.logo-retour-haut,
.logo-retour {
  max-height: 130px;
  height: auto;
  width: auto;

  display: block;
  margin: 0 auto;

  border-radius: 16px;
  background: #ffffff;

  cursor: pointer;
  transition: transform 0.25s ease;
}

.logo-retour {
  max-height: 80px;
}

.logo-retour-haut:hover,
.logo-retour:hover {
  transform: scale(1.08);
}


/* ======================
   BLOC RETOUR BAS
====================== */

.retour-logo {
  text-align: center;
  margin-top: 3rem;
}


/* =========================
   Liens vers articles
========================= */
.lien-article {
  color: #cce0ff;          /* bleu clair */
  text-decoration: underline;
  font-weight: 500;
}
.lien-article:hover { color: #99ccff; }

/* =========================
   Sommaire (liens internes)
========================= */
.sommaire {
  background-color: #1e1e1e;
  border: 1px solid #1a73e8;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 2rem auto;
  max-width: 900px;
  box-shadow: 0 0 10px rgba(26,115,232,.35);
  text-align: left;
}

.sommaire h3 {
  margin-top: 0;
  color: #66b2ff;
}

.sommaire ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column; /* un lien par ligne */
  gap: 0.4rem;
}

.sommaire li {
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
}

.sommaire li::before {
  content: "●";
  color: #1a73e8;
  font-size: 0.9rem;
  margin-right: 6px; /* espace entre la puce et le texte */
  line-height: 1;
}

/* === Fond page accueil (paysage) === */
.bg-accueil {
  background: url("images/fond page acceuil.jpg") no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
}
/* === Fond page Automatisation (paysage) === */
.bg-automatisation {
  background: url("images/fond2.jpg") no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
}


/* === Bloc texte translucide === */
.glass-text {
  background: rgba(0, 0, 0, 0.85);   /* noir semi-transparent */
  border-radius: 18px;               /* coins arrondis */
  padding: 1.2rem;                   /* espace interne */
  color: #ffffff;                    /* texte blanc */
 /* backdrop-filter: blur(6px); */
/* -webkit-backdrop-filter: blur(6px); */

  border: 1px solid rgba(255, 255, 255, 0.15);
 box-shadow: 0 2px 8px rgba(0,0,0,0.2);

   text-shadow: 0 1px 4px rgba(0,0,0,0.8);

}
html { scroll-behavior: smooth; }
.section-title { scroll-margin-top: 90px; } /* ajuste à la hauteur du header */

/* Bloc texte + image horizontale */
.inline-note.horizontal {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 10px 14px;
  background: #1e1e1e;
  border-left: 4px solid #1a73e8;
  border-radius: 10px;
}

.inline-note.horizontal .inline-note__img {
  width: 160px;     /* passe de 120px à 160px */
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}


.inline-note.horizontal .inline-note__text {
  margin: 0;
  color: #cfd8e3;
  line-height: 1.5rem;
  font-size: 0.95rem;
  text-align: justify;
   flex: 1;
}

/* Responsive : sur mobile, l'image passe au-dessus */
@media (max-width: 600px) {
  .inline-note.horizontal {
    flex-direction: column;
    text-align: center;
  }
  .inline-note.horizontal .inline-note__img {
    width: 60%;
    max-width: 220px;
  }
}
/* Lightbox */
.lightbox-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.85);
  display: none; align-items: center; justify-content: center;
  z-index: 9999; padding: 24px;
}
.lightbox-backdrop.open { display: flex; }
.lightbox-image {
  max-width: 92vw; max-height: 92vh; border-radius: 10px;
  box-shadow: 0 0 24px rgba(0,0,0,.6);
  background: #111; object-fit: contain;
  animation: lb-zoom .15s ease;
}
@keyframes lb-zoom { from { transform: scale(.96); opacity: .6; } to { transform: scale(1); opacity: 1; } }
/* Curseur et focus */
.lightbox-trigger { outline: none; display: inline-block; }
.lightbox-trigger img { display:block; }
.lightbox-backdrop { cursor: zoom-out; }

/* === Fond page Fondamentaux === */
.bg-fondamentaux {
  background: url("images/fond%20fondamentaux.jpg") no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  position: relative; /* nécessaire pour le ::before propre */
}

/* Voile sombre par-dessus l'image (améliore la lisibilité) */
.bg-fondamentaux::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6); /* ajuste l'opacité: 0.3=léger, 0.6=sombre */
  pointer-events: none;          /* ne bloque pas les clics */
  z-index: 0;
}

/* S'assure que le contenu passe au-dessus du voile */
header, main, footer {
  position: relative;
  z-index: 1;
}
.comparatif-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

/* TEXTE à gauche */
.grid {
  flex: 1.4;
  order: 1;
}

/* IMAGE à droite */
.comparatif-image {
  flex: 1;
  order: 2;
  text-align: center;
}

.comparatif-image img {
  max-width: 100%; /* IMPORTANT pour responsive */
  height: auto;
  border-radius: 20px;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.3),
    0 0 25px rgba(80,200,120,0.15);
}

/* Mobile */
@media (max-width: 900px) {
  .comparatif-wrapper {
    flex-direction: column;
  }

  .grid,
  .comparatif-image {
    order: unset;
  }
}

.zoomable {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.zoomable:hover {
  transform: scale(1.02);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
  z-index: 9999;

  padding: 20px;
  overflow: hidden;
}

/* image toujours contenue dans l'écran */
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

nav {
  background: rgba(13, 27, 42, 0.95); /* bleu foncé cohérent avec ton header */
  backdrop-filter: blur(4px);         /* léger glass propre (optionnel) */
  padding: 0.6rem 0;
}

/* CTA liens type bouton (pour <a class="btn">) */
.btn {
  display: inline-block;
  background-color: #1a73e8;
  color: #fff;
  padding: 0.8rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover {
  background-color: #1665c1;
  transform: translateY(-1px);
}

/* Liste de bénéfices compacte */
.benefices {
  margin: .8rem 0 0;
  padding-left: 1.1rem;
}
.benefices li { margin: .35rem 0; }

/* === Fond page Alarmes === */
.bg-alarmes {
  background: url("images/photo-page-alarme.jpg") no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  position: relative;
}

/* Voile sombre pour lisibilité */
.bg-alarmes::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65); /* 🔥 réglage clé */
  pointer-events: none;
  z-index: 0;
}

/* Assure que le contenu passe au-dessus */
.bg-alarmes header,
.bg-alarmes main,
.bg-alarmes footer {
  position: relative;
  z-index: 1;
}
.hero-image {
  text-align: center;
  margin-top: 30px;
}

.hero-image {
  text-align: center;
  margin-top: 30px;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  cursor: zoom-in;
  transition: transform 0.4s ease;
}

/* état zoomé */
.hero-image img.zoomed {
  transform: scale(1.8);
  cursor: zoom-out;
  z-index: 10;
  position: relative;
}
