/* ===================================================
   1. DESIGN TOKENS
=================================================== */

:root {

  /* BRAND */
  --color-primary: #002855;       /* bleu très soutenu pour le header et titres */
  --color-primary-dark: #001f3d;  /* version foncée pour hover et boutons */
  --color-accent: #553DE9;

  /* NEUTRALS */
  --color-bg-page: #d8d8e9;
  --color-bg-section: #f6f6fb;
  --color-white: #ffffff;
  --color-text: #333;
  --color-border: #ddd;

  /* SPACING SCALE */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 80px;

  /* LAYOUT */
  --max-width: 1200px;
  --radius: 8px;

  /* EFFECTS */
  --shadow-soft: 0 6px 20px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}


/* ===================================================
   2. BASE
=================================================== */

body {
  font-family: Arial, sans-serif;
  background: var(--color-bg-page);
  color: var(--color-text);
  margin: 0;
}

h1, h2, h3 {
  color: var(--color-primary);
  margin-top: 0;
}

.page-title {
  font-size: 2.2em;
  margin-bottom: var(--space-3);
  text-align: left;
}

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

a:hover {
  color: var(--color-accent);
}

button:focus,
a:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}


/* ===================================================
   3. LAYOUT
=================================================== */
/* Contenu principal centré avec largeur limitée */
.contentLeft {
  max-width: 1000px;   /* largeur maximale */
  margin: 0 auto;      /* centre horizontalement */
  padding: 20px;       /* espace intérieur */
  box-sizing: border-box; /* inclut padding dans la largeur */
}
.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 30px 60px;
  text-align: center;
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-5) var(--space-4);
}

.section {
  background: none;
  padding: var(--space-4);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: var(--space-4);
}

.section--center {
  text-align: center;
}

.section--narrow {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.image-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 360px;
  max-width: 100%;
  margin: 0 auto;
}

.image-stack img:first-child {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  transform: none;
  transition: none;
  pointer-events: auto;
}

.image-stack a img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-stack a img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(85, 61, 233, 0.4);
}


/* ===================================================
   4. COMPONENTS
=================================================== */
/* ===================================================
   MENU BAR COMPACTE – 1 seule ligne
=================================================== */
.menu-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  height: 25px;
  display: flex;
  justify-content: flex-end;   /* force à droite */
  align-items: center;
  padding: 0 16px;
  width: 100%;                 /* <-- important */
  box-sizing: border-box;
}

.menu-compte {
  position: relative;
  display: inline-block;
  height: 100%;
}
.menu-bar-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}
/* Responsive – écran ≤ 768px */
@media (max-width: 768px) {
  .menu-bar {
        display: none;
      }
    }
/* Bouton principal */
.menu-compte button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;               /* bouton transparent */
  color: var(--color-text, #004080);
  border: none;
  padding: 0 10px;                /* réduit la hauteur */
  height: 100%;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  font-weight: bold;
  transition: background 0.2s ease;
}

.menu-compte button:hover {
  background: #dcdcdc; /* gris moyen au hover */
}

/* Image dans le bouton */
.menu-compte button img {
  height: 18px;
  width: 18px;
}

/* Dropdown */
.menu-compte-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%; /* juste en dessous de la ligne */
  background: var(--color-white);
  min-width: 220px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 1000;
  overflow: hidden;
}

.menu-compte-content a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--color-text, #004080);
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.menu-compte-content a:hover {
  background: #dcdcdc; /* gris moyen au survol */
}

/* Affichage au hover */
.menu-compte:hover .menu-compte-content {
  display: block;
}
/*  HEADER */.site-header {
  background: var(--color-primary);
  color: var(--color-white);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
}

.header-left {
  max-width: 60%;
}

.header-title {
  margin: 0;
  font-size: 1.6em;
  color: var(--color-white);
}

.header-subtitle {
  margin: var(--space-1) 0 0 0;
  font-size: 0.95em;
  opacity: 0.9;
  color: #cfd3da; /* gris moyen */
}

.header-right {
  display: flex;
  align-items: center;
}

/* Animation logo */
.header-logo {
  height: 60px;
  max-width: 100%;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-logo:hover {
  transform: scale(1.08) rotate(-2deg);
  opacity: 0.95;
}
/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-white);
  transition: var(--transition);
}

.btn:hover {
  background: var(--color-primary-dark);
  color: #66ccff;  /* bleu clair */
}

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

.btn--small {
  padding: var(--space-1) var(--space-2);
  font-size: 0.9em;
}
.bottom-image {
  display: block;
  margin: var(--space-5) auto;
  max-width: 100%;
}

/* ---------- Cards ---------- */

.card {
  background: var(--color-white);
  padding: var(--space-3);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}


/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2) 0;
}

.faq-question {
  font-weight: bold;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.faq-item.active .faq-answer {
  display: block;
}


/* ---------- Colonnes ---------- */

.columns {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.columns.intro-apropos {
  align-items: center;
}
.col {
  flex: 1;
  min-width: 280px;
}


/* ---------- Images ---------- */
.img-responsive {
  max-width: 100%;      /* s’adapte à la largeur du conteneur */
  width: 100%;          /* force l’image à prendre 100% si le conteneur est plus petit */
  height: auto;         /* garde les proportions */
  max-width: 300px;     /* largeur maximale souhaitée */
  display: block;       /* pour centrer plus facilement */
  margin-left: auto;    /* centrage horizontal */
  margin-right: auto;   /* centrage horizontal */
}

.img-rounded {
  border-radius: var(--radius);
}
.img-responsive:hover {
  transform: scale(1.01);     /* léger zoom */
  box-shadow: 0 8px 20px rgba(0,0,0,0.2); /* ombre au survol */
}

/* ===================================================
   5. UTILITIES
=================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-small {
  font-size: 0.8em;       /* un peu plus petit que le texte normal */
  font-style: italic;      /* italique */
  color: #333333;          /* gris foncé */
  line-height: 1.4;        /* pour garder une bonne lisibilité */
  margin: 0;               /* pas de marge par défaut */
}

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }

.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }

.pt-4 { padding-top: var(--space-4); }
.pb-4 { padding-bottom: var(--space-4); }

.pricing-item {
  margin-top: 0px;
  margin-bottom: 20px;
}
/* Logos partenaires réduits et alignés */
.logos-adresses {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.logos-adresses .logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 180px;
}

.logos-adresses .logo-block img {
  max-width: 120px;
  height: auto;
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 600px) {
  .logos-adresses {
    flex-direction: column;
    align-items: center;
  }

  .logos-adresses .logo-block {
    flex: none;
    width: 80%;
  }
}
/* Images bottom côte à côte */
.images-bottom {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 40px 0;
}

.images-bottom .image-wrapper {
  flex: 1 1 200px; /* largeur minimum et flexible */
  max-width: 250px; /* limite la taille sur grand écran */
  text-align: center;
}

.images-bottom .image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: var(--radius); /* conserve le style img-rounded */
}
/* ===== Modales ===== */
#modalAssistant, #modalDrones {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 12px;
  padding: 20px;
  max-width: 500px;
  width: 90%;
  z-index: 10001;
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

#modalDrones {
  max-width: 700px;
  height: 50%;           /* réduit la hauteur globale à moitié de l'écran */
  padding: 15px;         /* optionnel : réduit un peu le padding */
}
/* ===== Assistant fixe à droite ===== */
.assistant-box {
  position: fixed;
  top: 200px;
  right: 30px;
  width: 120px;
  background: #f6f6fb;
  border: 1px solid #d0d0e0;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  text-align: center;
  z-index: 500;
}

.assistant-box img {
  max-width: 100%;
  height: auto;
  cursor: pointer;
}

.assistant-box .title {
  font-weight: bold;
  font-size: 0.75em;
  margin: 6px 0 4px;
  color: #004080;
}

.assistant-box .help-text {
  font-size: 0.7em;
  line-height: 1.3;
  color: #333;
  margin-bottom: 6px;
}

.assistant-box .avis-text {
  font-size: 0.6em;
  font-style: italic;
  color: #555;
  margin-top: 4px;
}
.assistant-box img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(85, 61, 233, 0.4);
  transition: all 0.2s ease;
}
@media (max-width: 900px) {
  .assistant-box {
    display: none;
  }
}
/* ===================================================
   6. FOOTER
=================================================== */
.site-footer {
  position: fixed;       /* fixé par rapport à la fenêtre */
  bottom: 0;             /* toujours en bas */
  left: 0;
  width: 100%;           /* prend toute la largeur */
  background-color: #49536f;
  color: var(--color-white);
  font-size: 12px;
  border-top: 1px solid #333;
  padding: 10px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  z-index: 1200;         /* au-dessus du contenu */
}

.site-footer a {
  color: var(--color-white);
  text-decoration: none;
  margin-right: var(--space-2);
  transition: var(--transition);
}

.site-footer a:hover {
  color: #66ccff;
}

.footer-left {
  flex: 1 1 150px;
}

.footer-center {
  flex: 2 1 400px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.footer-right {
  flex: 1 1 150px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-2);
}

.footer-right img {
  height: 35px;
  width: auto;
  transition: transform 0.3s ease;
}

.footer-right img:hover {
  transform: scale(1.05);
}

/* Responsive – écran ≤ 768px */
@media (max-width: 768px) {
  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 8px 16px;
  }
  .footer-left, .footer-right {
    justify-content: center;
    flex: unset;
  }
  .footer-center {
    display: none; /* masque la partie centrale */
  }
  .footer-right img {
    height: 30px;
  }
}

/* ===================================================
   7. BOUTON FIXE ACCUEIL
=================================================== */

.fixed-home-button {
  position: fixed;          /* fixe par rapport au viewport */
  top: 140px;                /* juste sous le menu */
  right: 20px;              /* aligné à droite avec un peu de marge */
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 1100;
}

.fixed-home-button svg {
  width: 18px;
  height: 18px;
  fill: var(--color-primary);
  transition: var(--transition);
}

.fixed-home-button:hover svg {
  transform: scale(1.1);
}


/* ===================================================
   8. RESPONSIVE
=================================================== */

@media (max-width: 768px) {

  .container {
    padding: var(--space-4) var(--space-2);
  }

  .page-title {
    font-size: 1.4em;
  }

  .columns {
    flex-direction: column;
  }
  .Xheader-inner {
     flex-direction: column;
     text-align: center;
     gap: var(--space-2);
   }
   .header-subtitle { display: none; }
   .Xheader-left {
     max-width: 100%;
   }

   .header-logo {
     height: 30px;
   }
   .logos-adresses {
    flex-direction: column;
    align-items: center;
  }
}
/* =============================
   STYLE AERONAUTIQUE PRO
============================= */

/* Titres – plus typés cockpit / technique */
h1, h2, h3 {
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
}

/* Paragraphes – lisibles et “techniques” */
p, li {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--color-text);
}

/* Accent important (rouge/orange aéronautique) pour alertes ou boutons secondaires */
.text-accent {
  color: #E63946; /* rouge type alerte cockpit */
  font-weight: bold;
}

/* Sections avec encadrés rappelant un cockpit */
.section {
  background: none; /* var(--color-bg-section); */
  padding: var(--space-4);
  border-radius: var(--radius);
  box-shadow: 0 4px 15px rgba(0,0,0,0.12); /* ombre plus “tech” */
}

/* Boutons – type cockpit board, cohérents avec existants */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;

  font-family: "Roboto", Arial, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;

  background: linear-gradient(135deg, #004080, #0059b3);
  color: #ffffff;

  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}
/* ===== Boutons stylés page index===== */
a.btnIndex {
  display: inline-block;
  width: 220px;
  padding: 12px 0;
  margin: 8px auto;
  border-radius: 30px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #553DE9, #7B5DE9);
  box-shadow: 0 6px 15px rgba(85, 61, 233, 0.4);
  transition: all 0.3s ease;
}

a.btnIndex:hover {
  color: white;   /* ← important */
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 20px rgba(85, 61, 233, 0.5);
}
a.btnIndex:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}
a.btnIndex.secondary {
  background: linear-gradient(135deg, #004080, #0066A0);
  box-shadow: 0 6px 15px rgba(0, 64, 128, 0.4);
}

a.btnIndex.secondary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 64, 128, 0.5);
}

/*
.btn {
  font-family: "Roboto", Arial, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.btn:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
} *

/* FAQ – plus technique */
.faq-question {
  font-family: "Roboto Mono", monospace;
  font-weight: bold;
  color: var(--color-primary-dark);
  cursor: pointer;
  border-left: 3px solid var(--color-primary);
  padding-left: 10px;
  margin-bottom: 5px;
}

.faq-answer {
  font-family: Arial, sans-serif;
  font-size: 0.95em;
  color: var(--color-text);
  line-height: 1.5;
  padding-left: 12px;
  border-left: 2px solid var(--color-border);
}

/* Logos partenaires – plus “cockpit pro” */
.logos-adresses .logo-block img {
  max-width: 100px; /* logos plus petits */
  transition: transform 0.3s ease;
}

.logos-adresses .logo-block img:hover {
  transform: scale(1.05);
}

/* Images bottom côte à côte – ajout style cockpit */
.images-bottom .image-wrapper img {
  border: 2px solid var(--color-primary);
  border-radius: 6px;
}

/* Modales – style aéronautique */
#modalAssistant, #modalDrones {
  border: 2px solid var(--color-primary);
  border-radius: 10px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.35);
  background: var(--color-bg-section);
}

/* Texte petit technique – pour adresses et notes */
.text-small {
  font-size: 0.8em;
  font-style: italic;
  color: #444; /* gris foncé */
  line-height: 1.4;
}

/* Boutons image / validation style cockpit */
.btn-img {
  display: inline-block;
  background: none;
  border: none;
  cursor: pointer;
}

.btn-img img {
  width: 32px;       /* taille petite */
  height: auto;
  transition: transform 0.2s ease;
}

.btn-img img:hover {
  transform: scale(1.1);
}
.intro-image {
  flex: 0 0 220px;
}

.intro-image img {
  max-width: 220px;
  width: 100%;
  height: auto;
}
/* Responsive – pas de rupture du style aéronautique */
@media (max-width: 768px) {
  h1, h2, h3 {
    font-size: 1.5em;
  }

  .images-bottom {
    flex-direction: column;
    gap: 20px;
  }
  .intro-apropos .col:first-child {
    flex: 0 0 100px !important;   /* 50% de 200px */
  }

  .intro-apropos .col:first-child img {
    max-width: 150px;  /* 50% de 300px */
  }
}
/* Image smartphone page */
.section--center img.img-responsive {
  max-width: 180px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
}
/* Burger button – style cockpit pro */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.burger span {
  display: block;
  height: 3px;
  background: var(--color-primary-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animation burger → croix */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Menu déroulant style carte cockpit */
/* ===== MENU HAMBURGER ===== */
.menu-deroulant {
  width: 180px;
  margin: 15px auto 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-toggle {
  background: transparent;
  border: none;
  padding: 12px;
  cursor: pointer;
}

.burger {
  width: 22px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.burger span {
  height: 3px;
  background: #004080;
  border-radius: 2px;
}

.menu-contenu {
  background-color: #004080;
  border-radius: 8px;
  margin-top: 8px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
  width: 100%;
}

.menu-contenu a {
  display: block;
  padding: 14px;
  color: #fff;
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,0.25);
}

.menu-contenu a:hover {
  background-color: rgba(255,255,255,0.15);
}

.menu-contenu.open {
  max-height: 400px;
}
