/* =============================
   VARIABLES CSS
   ============================= */
   :root {
    --primary-color: #004080;
    --secondary-color: #0065ca;
    --hover-color: #0074e8;
    --background-color: #f9f9f9;
    --light-gray: #f3f3f3;
    --text-color: #333;
    --footer-bg: #222;
    --footer-text: #ccc;
    --link-hover: #62bbff;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  
  /* =============================
     RESET + NORMALIZE
     ============================= */
  /* Normalize Box Model */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: var(--font-family);
    color: var(--text-color);
    background: var(--background-color);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  button, input, textarea {
    font-family: inherit;
    font-size: inherit;
  }
  
  h1, h2, h3, h4, h5, h6, p, ul, ol, li {
    margin: 0;
    padding: 0;
    font-weight: normal;
  }
  
  ul, ol {
    list-style:disc;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  button {
    background: none;
    border: none;
    cursor: pointer;
  }
  
  
  /* =============================
     GLOBAL CLASSES
     ============================= */
  .container {
    width: 80%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    line-height: 30px;
  }
  
  .text-center {
    text-align: center !important;
  }   

  h1 {
    font-size: 2.6em;
    margin-top: 20px;
    margin-bottom: 40px;
  }
  
  p {
    font-size: 1.2em;
    margin-top: 20px;
  }
  


  /* =============================
     LOADER
     ============================= */

    #loader-overlay {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    text-align: center;
}

    #loader-overlay .loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #0078D4;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin-bottom: 30px;
}

    .rocket-loader {
      height: 150px;
      margin: 50px auto 20px auto;
    }

    .message, h1 {
    margin-top: 0px;
    margin-bottom: 0px;
    }

  /* =============================
     HEADER
     ============================= */
  header {
    background: var(--primary-color);
    color: #fff;
    padding: 30px 0;
    text-align: center;
  }
  
  .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .rocket {
    height: 150px;
    margin: 0 auto 50px auto;
  }

  .grpd-title {
    color: rgb(169, 171, 240);
    font-size: 1.8em !important;
  }

  /* =============================
     LANG SWITCHER
     ============================= */
  .lang-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    margin-top: 50px;
  }
  
  .lang-switcher button {
    border-radius: 4px;
  }
  
  .lang-switcher img {
    width: 40px;
    height: 30px;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 4px;
  }
  
  .lang-switcher button:hover img {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }
  
  
  /* =============================
     SECTIONS
     ============================= */
  section {
    padding: 0px 0 20px;
    margin-bottom: 0px;
  }
  
  section h2 {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-size: 2em;
    font-weight: 500;
  }
  
  section h3 {
    text-align: left;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 600;
  }
  
  .service li {
    font-size: 1.2em;
    display: list-item;
    list-style-position: outside;
    line-height: 1.6;
    vertical-align: top;
}

    .services ul, .advantages ul {
      padding-left: 20px;
      list-style-position: outside;
    }

    .flaticones{
    height: 100px;
    margin: 50px auto 50px auto;
    }

  /* =============================
     CTA BUTTON
     ============================= */
  .cta-container {
    text-align: center;
    margin-top: 0px;
    margin-bottom: 50px;
  }
  
  .cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: #fff !important;
    font-size: 1.1em;
    border-radius: 5px;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
  }
  
  .cta-button:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
    background-color: var(--hover-color);
  }
  
  #about-anchor, #services-anchor {
     margin-bottom: -30px;  
  }
     
  #advantages-anchor {
    position: relative;
    padding-top: 40px; /* Espace pour le scroll */
    margin-top: -0px; /* Corrige le décalage visuel */
  }
  
  #form-anchor {
      margin-bottom: 30px;
      }


  /* =============================
     ABOUT & INTRO
     ============================= */
  .about .container, .intro-services .container {
    max-width: 800px;
    text-align: center;
    margin-bottom: 50px;
  }
  
  .intro-text, .intro-highlight {
    text-align: center !important;
    }
  
  .intro-highlight {
    color: var(--primary-color) !important;
    font-weight: 100;
    font-style: italic;
    font-size: 2.05em !important;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
  }
  
  .intro-services p {
    max-width: 600px;
    margin: 0 auto 15px;
    text-align: left;
    font-size: 1.2em;
    line-height: 1.8;
    color: #555;
  }
  
  /* =============================
     SERVICES
     ============================= */
  .service {
    background: #fff;
    margin-bottom: 50px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .service-light {
    background: var(--light-gray);
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 700px;
    margin: auto;
    text-align: left;
  }
  
  .service-light p {
    font-size: 1.15em;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 15px;
  }
  
  .advantages ul, .services ul {
    padding-left: 20px;
  }
  
  .advantages ul {
    list-style: none;
    margin: 0 auto;
    display: inline-block;
    text-align: left;
  }
  
  .advantages ul li {
    margin-bottom: 10px;
    font-size: 1.2em;
    display: flex;
    align-items: flex-start;
    gap: 30px;
}
  
  .advantages ul li::before {
    content: "\f058"; /* fa-circle-check */
    font-family: "Font Awesome 6 Free"; /* Important */
    font-weight: 900;
    display: inline-block;
    margin-right: 12px;
    font-size: 1em;
    color: #00C896; /* Vert frais et léger */
  }
  
  
  /* =============================
     CONTACT
     ============================= */
  .contactez-nous, .contactez-nous .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .service.blue {
    width: 100%;
    max-width: 600px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: #fff;
    text-align: center;
    margin-bottom: 40px;
  }
  
  .contactez-nous .service-light {
    width: 100%;
    max-width: 600px;
    padding: 30px;
    border-radius: 12px;
    background: var(--light-gray);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }
  
  
  /* =============================
     FORMULAIRE
     ============================= */
  form {
    width: 100%;
  }
  
  .form-group {
    margin-bottom: 20px;
    text-align: left;
  }
  
  label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color);
  }
  
  input[type="text"],
  input[type="email"],
  textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
  }
  
  button.submit-button {
    width: 50%;
    padding: 12px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    margin: 20px auto 0;
    transition: background 0.3s ease;
  }
  
  button.submit-button:hover {
    background: #0066cc;
  }
  
  
  /* =============================
     FOOTER
     ============================= */
  footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 20px 0;
  }
  
  footer a {
    color: #fff !important;
  }
  
  footer a:hover {
    color: #ccc !important;
  }
  
  
  /* =============================
     LIENS
     ============================= */
  a {
    color: var(--secondary-color);
    transition: color 0.3s ease, transform 0.1s ease;
  }
  
  a:hover, a:focus {
    color: var(--link-hover);
  }
  
  a:visited, a:active {
    color: var(--secondary-color);
  }
  
  
  /* =============================
     RESPONSIVE
     ============================= */
  @media (max-width: 768px) {
    .container {
      width: 90%;
    }
  
    header h1 {
      font-size: 2em;
    }
  
    .rocket {
      height: 120px;
      margin-bottom: 30px;
    }

    .rocket-loader {
      height: 120px;
      margin-bottom: 30px;
    }


    section h2 {
      font-size: 1.8em;
    }
  
    .intro-services p, .service-light p {
      font-size: 1em;
    }

    .advantages ul {
      padding-left: 10px;
    }
  
    .advantages ul li {
      gap: 10px;
      margin-bottom: 15px;
      flex-wrap: nowrap; /* Ne PAS autoriser de retour à la ligne */
      overflow-wrap: break-word;
      word-break: break-word;
    }
  
    .advantages ul li::before {
      font-size: 0.9em;
      flex-shrink: 0; /* Ne réduit pas l'icône */
    }
  
    .service-light {
      padding: 20px;
    }

    .burger {
      top: 15px !important;
      right: 15px !important;
    }

  }
  

/* Media query pour les écrans de 450px ou moins */
@media (max-width: 450px) {

  .rocket {
    height: 120px;
    margin-bottom: 20px;
  }

  .rocket-loader {
    height: 120px;
    margin-top: 50px;
    margin-bottom: 20px;
  }

  .close-button {
        top: 10px;
        right: 15px;
    }

    .burger {
      top: 10px !important;
      right: 10px !important;
    }


}

  /* =============================
     SPÉCIFIQUE INDEX PAGE
     ============================= */
  .index-body {
    height: 100vh;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;
    font-family: var(--font-family);
    text-align: center;
    overflow: hidden;
  }
  
  .index-body h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    animation: fadeIn 1s ease-in;
  }
  
  .index-body p {
    font-size: 1.2em;
    margin: 10px 0 30px;
    animation: fadeIn 1.5s ease-in;
  }
  
  .loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #0078D4;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    margin-bottom: 30px;
  }
  
  .enter-button {
    margin: 20px 0 30px;
    padding: 10px 20px;
    background: #0078D4;
    color: white;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .enter-button:hover {
    background-color: #005fa3;
  }
  
  
  /* =============================
     ANIMATIONS
     ============================= */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  

  /* =============================
     MENU BURGER
     ============================= */

     .burger {
      position: fixed;
      top: 30px;
      right: 30px;
      width: 40px; /* un peu plus large pour laisser respirer */
      height: 40px;
      padding: 8px;
      background: rgba(0, 0, 0, 0.4); /* fond noir transparent */
      border-radius: 8px;
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      cursor: pointer;
      z-index: 1001;
      backdrop-filter: blur(5px); /* petit effet de flou moderne */
    }

    .burger span {
      height: 3px;
      width: 100%;
      background: #fff; /* traits restent blancs */
      border-radius: 2px;
      transition: all 0.3s ease;
    }

  .burger:hover span {
    background: var(--footer-text);
  }
  

/* Bonus : Masquer le burger quand il est caché */
.burger.hide {
  display: none;
}

  .burger span {
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Positionne ton menu hors de l'écran au début */
.side-menu {
  position: fixed;
  top: 0;
  right: -300px; /* Cache-le à droite */
  width: 250px;
  height: 100%;
  background: var(--primary-color);
  box-shadow: -2px 0 5px rgba(0,0,0,0.5);
  transition: right 0.3s ease; /* Transition douce */
  z-index: 1000;
  padding-top: 60px; /* Pour ne pas coller le bouton X */
}

/* Quand il est ouvert, on le ramène à l'écran */
.side-menu.open {
  right: 0; /* Affiche-le */
}

  .side-menu ul {
    list-style: none;
    padding: 0;
    margin-top: 50px;
  }

  .side-menu ul li {
    margin: 20px 0;
  }

  .side-menu ul li.legal:first-of-type {
    margin-top: 160px; /* Seulement le premier des liens légaux */
  }

  .side-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.2s;
    padding-left: 25px;
  }

  .side-menu ul li.legal a {
    font-size: 0.9em; /* Plus petit */
    color: #cccccc; /* Gris clair */
    padding-left: 25px;
  }

  .side-menu ul li a:hover {
    color: var(--link-hover);
  }
 
  .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }

  /* L'overlay pour fond noir transparent */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 999;
}

 /* Quand l'overlay est actif */
.overlay.show {
  opacity: 1;
  visibility: visible;
}

/*--------------------------------------- Ettets icones ----------------------*/

/* =============================
   ANIMATION COSMONAUTE FLOTTANT + GRÉSILLEMENT
   ============================= */
   @keyframes floatInSpace {
    0% {
      transform: translateX(0) translateY(0) scale(1) rotate(0deg);
    }
    25% {
      transform: translateX(5px) translateY(-2px) scale(0.985) rotate(1deg);
    }
    50% {
      transform: translateX(0px) translateY(2px) scale(0.97) rotate(0deg);
    }
    75% {
      transform: translateX(-5px) translateY(-2px) scale(0.985) rotate(-1deg);
    }
    100% {
      transform: translateX(0) translateY(0) scale(1) rotate(0deg);
    }
  }
  
  @keyframes focusBlur {
    0%, 20%, 80%, 100% {
      filter: blur(0px);
    }
    45%, 55% {
      filter: blur(0.6px);
    }
  }
  
  .floating-cosmo {
    animation:
      floatInSpace 8s ease-in-out infinite,
      focusBlur 8s ease-in-out infinite;
    display: block; /* important */
    margin-left: auto;
    margin-right: auto;
    will-change: transform, filter;
  }
  
  