:root {
    --gradient-start: #5286cb;
    --gradient-end: #59d4a9;
    --font-sans: 'Poppins';
    --text-dark: #222;
    --bg-light: #f9f9fb;
    --color1:#235279;
    --color2:#93c432;
    --color3:#75a1c5;
    --color4:#6ebfbf;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-padding-top: 100px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
}

.logo {
  font-size: 1.7rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

header {
  z-index: 100;
  position: fixed;
  top: 10px;
  left: 10rem;
  right: 10rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 16px;
  box-shadow: 0 12px 12px rgba(0,0,0,0.1);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-menu {
  flex: 1 1 auto;  
  display: flex;
  justify-content: center; 
  gap: 10px;
}

.header-menu a {
  color: black;
  padding: 6px 15px;
  text-decoration: none;
  border-radius: 16px;
  transition: all 0.2s;
}
.header-menu a:hover {
  background-color: rgba(7, 47, 96, 0.1);
  transform: translateY(-2px);
}

.header-menu a.active {
    color: var(--gradient-start);               
}

.header-menu a.active:hover {
    background: none;         
    transform: none;
}

.header-right a:last-child {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 7px 17px;
}

.header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-switcher {
    display: flex;
    gap: 5px;
}
.language-switcher button {
  font-family: 'Poppins';
    cursor: pointer;
    border:none;
    position: relative;
    background: none;
    font-size: 16px;
    padding: 6px 14px;
    color: #5286cb;
    transition: transform 0.2s;
}
.language-switcher button:hover {
    transform: translateY(-2px);
    color:black;
}
.language-switcher button.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 3px;
    background-color: var(--gradient-start);
    border-radius: 2px;
}
.language-switcher button.active:hover{
    transform: none;
    color:#5286cb;
    cursor:default;
}

.contact-btn {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    padding: 7px 17px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
    }
.contact-btn:hover {
    transform: translateY(-2px);
}
.header-tel{
    display: none;
}
/*Titre*/
.hero {
  background-image: url('images/background.webp');
  background-size: cover;
  background-repeat: no-repeat; 
  height: 95vh;     
  width: 100%;
  gap:90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color:#fff;
  padding: 10rem;
}

.titre {
    padding-top: 2rem;
    flex: 2;
    text-align: left;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/*section*/
.section {
    margin: 4rem 12rem;    
}

.section h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: left;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.flex{
    display: flex;
}

.flex-column{
    flex-direction: column;
}
.center{
    justify-content: center;
}
.gap{
    gap:20px;
}

/*Pour commencer*/
.blocs{
    flex:1;
}
.card {
  opacity: 0;
  transform: translateX(100px);
}

.card.visible {
  animation: slideInRight 1s ease forwards;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.card:nth-child(1).visible { animation-delay: 0.2s; }
.card:nth-child(2).visible { animation-delay: 0.4s; }
.card:nth-child(3).visible { animation-delay: 0.6s; }
.card:nth-child(4).visible { animation-delay: 0.8s; }

.section1{
    flex:1;
}

.mission-intro {
    font-size: 1rem;
    line-height: 1.2;
    color: #333;
    margin-bottom: 2rem;
}
.mission-list {
    list-style: none;
    padding: 0;
    gap: 1rem;
    margin-bottom: 2rem;
}

.mission-list li {
    font-size: 1rem;
    border-radius: 10px;
    text-align: left;
    line-height: 1.8;
    padding-left: 1.5em;
    position: relative;
}

.mission-list li::before {
    content: '✔';
    color: var(--gradient-end);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}
.pillars-container {
  display: flex;
  gap:20px;
  justify-content: center;
  margin-top: 2rem;
}

.bloc {
  position: relative;     
  margin-top: 20px;
  background: linear-gradient(40deg, var(--gradient-start), var(--gradient-end));
  border-radius: 16px;
  color: white;
  padding: 3rem 2rem 2rem; 
  display: flex;
  flex-direction: column;
}
.card{
  width: 100%;
}
.bloc::before {
  content: attr(data-num);
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,0.8);
}

.bloc h3 {
  font-size: 1.5rem;
  margin-left: 2.5rem;
  padding-bottom: 0.5rem; 
  position: relative;
}


.bloc h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.6);
}

.bloc p {
  margin-top: 1rem;
  text-align: left;
  flex: 1;
  font-size:1rem;
  line-height: 1.4;
}

/* Solution*/
.features{
    background-color: #111;
    color:white;
    padding: 0.5rem 0rem 1rem 0rem;
}

.features h2{
    font-size: 3rem;
    text-align: center;
}

.espace{
    margin:3rem;
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    gap:30px;
}

.feature-card {
    flex: 1 1 calc(50% - 2rem); 
    color: #fff;
    display: flex;
    flex-direction: column;
    padding:1rem;
}

.feature-img {
    width:100%;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin: 0 0 0.75rem;
    font-size: 2.25rem;
}

.feature-card p {
    margin: 0 0 1rem;
    line-height: 1.4;
    font-size: 1rem;
    flex: 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.feature-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--gradient-end);
    font-size: 1.3rem;
    line-height: 1;
}

.btn.primary {
  font-family: 'Poppins';
  align-self: flex-start;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  opacity: 0.9;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn.primary:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.detail-panel {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 90%; max-width: 600px;
  background: #fff;
  color:#111;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 200;
}

.detail-panel.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.detail-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.detail-content h3 {
  margin-top: 0;
  font-size: 1.75rem;
}
.detail-content p {
  line-height: 1.4;
  margin-bottom: 1rem;
}

.hidden {
  display: none;
}

/*CONTACT*/
.contact-banner {
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  text-align: center;
  padding: 1rem 1rem;
}

.contact-banner h2{
    margin-bottom:1rem;
}

.socials a {
    margin: 0 0.5rem;
    text-decoration: none;
    color: #fff;
}
.socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
}

.material-symbols-outlined {
  font-size: 1.2rem;
}
footer {
    font-size: 0.875rem;
    padding: 0.2rem;
    text-align: center;
    color: #666;
}

@media (max-width: 968px) {
  * {
    box-sizing: border-box;
  }

  body {
    max-width: 100%;
    overflow-x: hidden;
  }
  .logo {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
  }

  header{display: none;}

  #mobile-menu{
    right: 25px;
    align-items:end;
    overflow: hidden;
    max-height: 0;
    gap:10px;
    transition: max-height 0.4s ease;
    display: flex;
    flex-direction: column;
  }

  #mobile-menu a{
    font-size: 0.8rem;
    padding:0.3rem;
    text-align: center;
    text-decoration: none;
    color:#5286cb;
  }

  #mobile-menu.menu-open{
    max-height: 300px;
  }
  #mobile-menu .contact-btn {
    color:white;
  }
  #sommaire-icon{
    position: fixed;
    right: 25px;
    border-color: none;
    border: none;
    color: rgb(0, 130, 252);
    cursor: pointer;
    z-index: 1000;
  }
  .header-tel{
    z-index: 100;
    position:fixed;
    top:10px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 10px); 
    background: rgba(255, 255, 255);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem;
    border-radius: 16px;
    box-shadow: 0 12px 12px rgba(0,0,0,0.1);
  }
  
  .header-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
  .hero {
    flex-direction: column;
    padding: 7rem 1rem 2rem 1rem;
    height: auto;
    gap:30px;
  }

  .hero-image {
    justify-content: center;
  }

  .hero-image img {
    width: 200px;
  }
  .titre{
    padding-top: 0rem;
  }
  .titre h1 {
    font-size: 2rem;
    text-align: center;
  }

  .titre p {
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .section {
    margin: 2rem 1rem;
  }

  .mission-intro,
  .mission-list {
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .mission-list {
    padding-left: 1rem;
  }

  .mission-list li {
    font-size: 0.9rem;
  }

  .flex.center.gap {
    flex-direction: column;
    gap: 1rem;
  }
  .pillars-container {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
    gap:10px;
  }

  .bloc {
    width: 100%;
    padding: 1rem;
    text-align: left;
    margin-top: 0;
    position: relative;
  }

  .bloc h3 {
    font-size: 1rem;
    margin-left: 2rem;
  }

  .bloc::before {
    content: attr(data-num);
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.8);
  }

  .bloc h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
  }
  .gap{
    gap:10px;
  }
  .bloc p {
    margin-top: 1rem;
    text-align: left;
    font-size: 0.8rem;
  }

  .section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .features-container {
    flex-direction: column;
    gap: 1rem;
  }

  .feature-card h3 {
    font-size: 1.2rem;
  }

  .feature-img {
    width: 100%;
  }

  .feature-card p,
  .feature-list li {
    font-size: 0.9rem;
  }

  .btn.primary {
    font-size: 1rem;
  }

  .contact-banner h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .socials{
    display: inline-flex;
    gap:10px;
    font-size: 0.9rem;
  }
  .social-text{
    display:none;
  }

  footer {
    font-size: 0.7rem;
  }

  /* Supprime toute animation/transition sur les blocs */
  .card,
  .card.visible,
  .card:nth-child(1).visible,
  .card:nth-child(2).visible,
  .card:nth-child(3).visible,
  .card:nth-child(4).visible {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
