* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth; /* permet le défilement fluide */
}
*:focus {
  outline: none;
}

html, body{
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body, button, input {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  color: #444;
}

hr {
  width: 50%;
  border-top: 2px solid #ffffff; /* couleur + épaisseur du trait */        
  margin-top: 40px;  
  margin-bottom: 20px;  
}

h2{
  font-size: 28px;
}

h3{
  font-size: 25px;
}

h4{
  font-size: 30px;
}

.lettreVerte{
  color: #1ccc97;
}

.lettreGrise{
  color: #444;
}

.surligne-anim {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.surligne-anim::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 40%;
  background-color: #a8e6b2;
  z-index: -1;
  transition: width 0.6s ease;
}

.surligne-anim:hover::before {
  width: 100%;
}

.stabilo {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.stabilo::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 35%;
  background: #a8e6b2; /* couleur du stabilo a8e6cf */
  z-index: -1;
}

.bold{
  font-weight: bold;
}

/* -------------------- HEADER -------------------- */
header {
  padding-bottom: 40px;
  background-color: #009588;
}


.logo-pharmy{
  display: inline-block;
  background-color: #000000;
  color: white;
  text-decoration: none;
  padding: 1px 18px;
  border-radius: 100px 100px 100px 100px;
  font-weight: 600;
}

.logo {
  display: flex;
  font-size: 1.3rem;
  font-weight: bold;
  align-items: center;
}

.container-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  position: fixed; /* le header reste collé en haut */
  color: black;

  width: 90%;            /* Largeur sur petits écrans (ex: tablettes) */
  max-width: 1000px;     /* Taille maximale sur très grands écrans */
  
  /* 2. Centrage horizontal parfait */
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  top: 25px;

  padding-bottom: 12px;
  padding-top: 12px;
  padding-left: 20px;
  padding-right: 20px;
  z-index: 10; /* devant la vidéo */
  background-color: rgb(255, 255, 255);
  border-radius: 50px;
  box-sizing: border-box;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 
              0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.4s ease,
              border-radius 0.4s ease-in-out;;
  will-change: transform; /* Optimisation de la performance */
}

.container-header:hover {
  /* On soulève la carte */
  transform: translateY(-5px); 
  
  /* On accentue l'ombre pour simuler l'éloignement du sol */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.btn-header {
  display: inline-block;
  background-color: #009588;
  color: white;
  text-decoration: none;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-header:hover {
  background-color: #028075;
  transform: scale(1.1);
}

/* -------------------- NAVIGATION -------------------- */
nav {
  display: flex;
  justify-content: center;
  flex: 2; /* le centre prend plus de place */
  gap: 2rem;
  transition: all 0.4s ease-in-out;
}


nav a {
  color: black;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  font-weight:800;
}

/* --- Lien actif dans le menu --- */
nav a.active {
  font-weight: 800;
  color: black;
  /*transition: all 0.3s ease;*/
}

#menu-espace-client{
  display: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    justify-content: flex-start; /* le contenu commence en haut */
    align-items: flex-start; /* alignement à gauche */
    padding: 4rem 2rem; /* espace depuis le haut et la gauche */
    font-size: large;
    gap: 1rem;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    flex: initial;
    height: 100vh; /* prend tout l’écran */
    pointer-events: none;
  }

  nav.active {
    max-height: 100vh;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  #menu-espace-client{
    display: block;
  }
}

/* -------------------- BOUTON HAMBURGER -------------------- */

#menu-btn {
  width: 39px;
  overflow: hidden;
  cursor: pointer;
  display: none; /* caché sur grand écran */
}

@media (max-width: 768px) {
  #menu-btn {
    display: block;
  }
  .btn-header{
    display: none;
  }
}

#menu-checkbox {
  display: none;
}

#menu-label {
  position: relative;
  display: block;
  height: 29px;
}

#menu-label:before,
#menu-label:after,
#menu-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: #009588;
}

#menu-label:before,
#menu-label:after {
  content: "";
  transition: 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) left;
}

#menu-label:before {
  top: 0;
}

#menu-label:after {
  top: 12px;
}

#menu-bar {
  top: 24px;
}

#menu-bar:before {
  content: "MENU";
  position: absolute;
  top: 5px;
  right: 0;
  left: 0;
  color: #009588;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
}

/* --- Animation quand coché --- */
#menu-checkbox:checked + #menu-label:before {
  left: -39px;
}

#menu-checkbox:checked + #menu-label:after {
  left: 39px;
}

#menu-checkbox:checked + #menu-label #menu-bar:before {
  animation: moveUpThenDown 0.8s ease 0.2s forwards,
    shakeWhileMovingUp 0.8s ease 0.2s forwards,
    shakeWhileMovingDown 0.2s ease 0.8s forwards;
}

@keyframes moveUpThenDown {
  0% {
    top: 0;
  }
  50% {
    top: -27px;
  }
  100% {
    top: -14px;
  }
}

@keyframes shakeWhileMovingUp {
  0% {
    transform: rotateZ(0);
  }
  25% {
    transform: rotateZ(-10deg);
  }
  50% {
    transform: rotateZ(0deg);
  }
  75% {
    transform: rotateZ(10deg);
  }
  100% {
    transform: rotateZ(0);
  }
}

@keyframes shakeWhileMovingDown {
  0% {
    transform: rotateZ(0);
  }
  80% {
    transform: rotateZ(3deg);
  }
  90% {
    transform: rotateZ(-3deg);
  }
  100% {
    transform: rotateZ(0);
  }
}

/* -------------------- section -------------------- */

section{
  background-color: none;
  scroll-margin-top: 80px;
  padding-left: 10px;
  padding-right: 10px;
}

.center{
  text-align: center;
}

/* -------------------- FOOTER -------------------- */
.site-footer {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 60px 20px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.footer-brand p {
  margin-top: 15px;
  color: #aaaaaa;
  line-height: 1.6;
}

.footer-nav, .footer-social {
  flex: 1;
  min-width: 200px;
}

h5 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
}

h5::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: #1ccc97;
  margin-top: 8px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #aaaaaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.social-icons a {
  display: inline-block;
  margin-right: 15px;
  color: #fff;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  transition: background 0.3s ease;
}

/* Barre de Copyright */
.footer-bottom {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #777;
  font-size: 14px;
}

/* Adaptabilité Mobile */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  
  h4::after {
    margin: 8px auto 0;
  }
}

/* ========================= */
/*         IMAGE FOND        */
/* ========================= */

/* IMAGE DE FOND */
#accueil {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #009588;
  box-sizing: border-box;
}

/* Conteneur principal */
#accueil .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  gap: 50px;
  flex-wrap: wrap;
  margin-left: 20px;
}

/* Texte */
.text-zone {
  flex: 1 1 400px;
  color: #ffffff;
  padding: 0 10px 0 10px;
}

/* Utilisation de clamp() pour adapter la taille automatiquement */
.text-zone h2 {
  font-size: clamp(1.8rem, 2.5vw + 1rem, 3rem);
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.3;
}

.text-zone p {
  margin-bottom: 25px;
  max-width: 800px;
  font-size: clamp(0.9rem, 1vw + 0.6rem, 1.1rem);
}

.btn-scroll {
  display: inline-block;
  background-color: white;
  color: #009588;
  text-decoration: none;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 600;
  transition:  0.3s;
}

.btn-scroll:hover {
  transform: scale(1.1);
}

/* Image + bulle */
.image-bulle {
  position: relative;
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Blob fluide */
.image-bulle .blob {
  position: absolute;
  width: clamp(150px, 30vw, 800px);
  height: clamp(150px, 25vw, 700px);
  background-color: #04ad83;
  border-radius: 50%;
  z-index: 0;
  animation: morph 8s ease-in-out infinite;
  transition: transform 0.7s ease;
}

.image-bulle:hover .blob{
    transform: scale(0.9);
}

/* SVG adaptatif */
.image-bulle .png-image {
  width: clamp(150px, 17vw, 350px);
  height: auto;
  position: relative;
  z-index: 1;
}

/* Animation du blob */
@keyframes morph {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

/* 💻 GRAND ÉCRAN - à partir de 1400px */
@media (min-width: 1400px) {
  #accueil {
    padding: 80px;
  }

  #accueil .content {
    max-width: 1600px; /* on agrandit un peu la zone de contenu */
    gap: 100px;
  }

  .text-zone h2 {
    font-size: clamp(2.5rem, 1.5vw + 1rem, 4rem);
    line-height: 1.3;
  }

  .text-zone p {
    font-size: 1.3rem;
    max-width: 650px;
  }

  .btn-scroll {
    padding: 14px 35px;
    font-size: 1.1rem;
  }

  .image-bulle .blob {
    width: clamp(150px, 30vw, 1000px);
    height: clamp(150px, 25vw, 1000px);
  }

  .image-bulle .png-image {
    width: clamp(200px, 17vw, 360px);
  }
}



/* Responsive pour tablettes et mobiles */
@media (max-width: 887px) {
  #accueil .content {
    flex-direction: column;
    text-align: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 20px;
    margin: 0px;
  }

  .text-zone p {
    margin-bottom: 50px;
  }

  .image-bulle {
    display: none;
  }
}


/* ==================================== */
/*         FORMULAIRE DE CONTACT        */
/* ==================================== */
#contact-section {
  width: 100%;                /* Obligatoire pour que le fond prenne toute la page */
  display: flex;
  flex-direction: column;     /* Titre au-dessus du formulaire */
  align-items: center;        /* Centre horizontalement les enfants flex */
  
  /* Ta couleur Lab (assure-toi qu'elle est assez foncée pour être vue) */
  background-color: lab(98.2596% -.247031 -.706708);
  
  padding: 40px 0;            /* Espace interne pour voir la couleur en haut/bas */
  box-sizing: border-box;
  scroll-margin-top: 50px;
}

.contact-card {
  width: 90%;                 /* Largeur sur mobile */
  max-width: 900px;           /* Largeur max sur PC */
  
  /* LA CORRECTION ICI : */
  margin: 0 auto 50px auto;             /* 0 en haut/bas, auto à gauche/droite pour centrer */
  
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  background-color: white;    /* La carte elle-même reste blanche */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* --- PARTIE GAUCHE (Infos / Visuel) --- */
.contact-info {
    background-color: var(--primary-green);
    color: white;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-info p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

.info-item svg {
    margin-right: 12px;
    width: 20px;
    height: 20px;
}

/* --- PARTIE DROITE (Le Formulaire) --- */
.contact-form-wrapper {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    border: 1px solid #e5e7eb;
    background-color: var(--input-bg);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-sizing: border-box; /* Important pour ne pas casser la largeur */
}

/* L'effet focus vert */
.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    background-color: var(--white);
    /* Petit halo vert autour */
    box-shadow: 0 0 0 4px var(--light-green-bg);
}

.form-textarea {
    resize: vertical; /* L'utilisateur peut agrandir en hauteur seulement */
    min-height: 120px;
}

/* --- BOUTON D'ENVOI --- */
.btn-submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-green);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .contact-card {
        grid-template-columns: 1fr; /* Empile les colonnes */
    }
    .contact-info {
        padding: 2rem;
    }
    .contact-form-wrapper {
        padding: 2rem;
    }
}

/* ========================= */
/*         LOADER            */
/* ========================= */
:root {
    --EASE_INOUT_QUAD: cubic-bezier(0.455, 0.03, 0.515, 0.955);
    --EASE_IN_QUAD: cubic-bezier(0.55, 0.085, 0.68, 0.53);
    --EASE_OUT_QUAD: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    --COLOR_UI_PHARMACY: #1ccc97;
    --loaderPill_DURATION: 1800ms;
}

.absCenter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loaderPill {
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loaderPill.hidden {
  opacity: 0;
  visibility: hidden;
}

.loaderPill-anim {
    height: 160px;
}

.loaderPill-anim-bounce {
    animation: loaderPillBounce var(--loaderPill_DURATION) linear infinite;
}

.loaderPill-anim-flop {
    transform-origin: 50% 50%;
    animation: loaderPillFlop var(--loaderPill_DURATION) linear infinite;
}

.loaderPill-pill {
    display: inline-block;
    box-sizing: border-box;
    width: 80px;
    height: 30px;
    border-radius: 15px;
    border: 1px solid var(--COLOR_UI_PHARMACY);
    background-image: linear-gradient(to right, var(--COLOR_UI_PHARMACY) 50%, #ffffff 50%);
}

.loaderPill-floor {
    display: block;
    text-align: center;
}

.loaderPill-floor-shadow {
    display: inline-block;
    width: 70px;
    height: 7px;
    border-radius: 50%;
    background-color: rgba(35, 125, 181, 0.26);
    transform: translateY(-15px);
    animation: loaderPillScale var(--loaderPill_DURATION) linear infinite;
}

.loaderPill-text {
    font-weight: bold;
    color: var(--COLOR_UI_PHARMACY);
    text-transform: uppercase;
}

@keyframes loaderPillBounce {
    0% {
        transform: translateY(123px);
        animation-timing-function: var(--EASE_OUT_QUAD);
    }
    25% {
        transform: translateY(40px);
        animation-timing-function: var(--EASE_IN_QUAD);
    }
    50% {
        transform: translateY(120px);
        animation-timing-function: var(--EASE_OUT_QUAD);
    }
    75% {
        transform: translateY(20px);
        animation-timing-function: var(--EASE_IN_QUAD);
    }
    100% {
        transform: translateY(120px);
    }
}

@keyframes loaderPillFlop {
    0% {
        transform: rotate(0);
    }
    25% {
        transform: rotate(90deg);
    }
    50% {
        transform: rotate(180deg);
    }
    75% {
        transform: rotate(450deg);
    }
    100% {
        transform: rotate(720deg);
    }
}

@keyframes loaderPillScale {
    0%   {
        transform: translateY(-15px) scale(1, 1);
        animation-timing-function: var(--EASE_OUT_QUAD);
    }
    25%  {
        transform: translateY(-15px) scale(0.7, 1);
        animation-timing-function: var(--EASE_IN_QUAD);
    }
    50%  {
        transform: translateY(-15px) scale(1, 1);
        animation-timing-function: var(--EASE_OUT_QUAD);
    }
    75%  {
        transform: translateY(-15px) scale(0.6, 1);
        animation-timing-function: var(--EASE_IN_QUAD);
    }
    100% {
        transform: translateY(-15px) scale(1, 1);
    }
}

/* ========================= */
/*         CARTE             */
/* ========================= */

.carousel-section {
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
  background-color: lab(98.2596% -.247031 -.706708);
}

.carousel-section h4{
  margin-bottom: 5px;
}

.card-carousel {
  display: flex;
  overflow-x: auto;            
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding: 2rem 1rem;    
  margin-left: 15px;     
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; 
  touch-action: pan-x pan-y;        
  box-sizing: border-box;
  z-index: 1; 
  scrollbar-width: none;  
  align-items: stretch;
}

.card-carousel::-webkit-scrollbar {
  /* Cacher la scrollbar sur les navigateurs */
  display: none;
}

.card-carousel::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

/* Les cartes */
.card {
  /*flex: 0 0 80%;*/ /* largeur de chaque card sur mobile */
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: center;
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 0 0 85%;
  display: flex;           /* AJOUTÉ : Pour activer Flexbox sur la carte */
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card svg {
    margin-top: auto; /* C'est la ligne "magique" qui aligne les icônes en bas */
    align-self: center; /* Pour centrer l'icône horizontalement */
    padding-top: 20px;  /* Optionnel : pour laisser un peu d'air avec le texte */
    width: 60px;       /* Ajuste cette valeur selon tes besoins (ex: 80px, 120px...) */
    height: auto;
}

.card-carousel::after {
  content: "";
  flex: 0 0 5rem; /* même valeur que le gap */
}

/* Contenu */
.card-title {
  color: #1ccc97;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.card-description {
  color: #444;
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  text-align: left;
}

.card-image {
  width: 70%;
  border-radius: 10px;
  object-fit: cover;
}

#card-utilisateur{
  margin-top: 12%;
}

.reseaux-sociaux{
  width: 90%;
}

@media (min-width: 600px) {
  .card {
    flex: 0 0 70%;
  }
}

@media (min-width: 850px) {
  .card {
    flex: 0 0 40%;
  }
}

/* Sur écrans plus larges : 2 cartes visibles et une qui dépasse */
@media (min-width: 768px) {
  /* Afficher le bouton uniquement en desktop et au hover sur le carrousel */
  .card-carousel-wrapper:hover .carousel-scroll-btn {
    display: flex;
  }
}

@media (min-width: 1200px) {
  .card {
    flex: 0 0 30%;
  }
}

.card-carousel-wrapper {
  position: relative;
  
  /* --- AJOUTS --- */
  width: 100%;           /* Prend toute la largeur disponible sur mobile */
  max-width: 1500px;     /* Largeur maximale bloquée (à ajuster selon tes besoins) */
  margin: 0 auto;        /* La magie : 0 en haut/bas, auto à gauche/droite pour centrer */
  /* ---------------- */
  padding: 10px 10px 0px 0px;
}

.carousel-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  cursor: pointer;
  display: none; /* par défaut invisible */
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background-color 0.3s;

  /* Centrage horizontal et vertical du contenu */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Supprime l’espace intérieur par défaut du texte */
  line-height: 1;
  padding: 0;
  box-sizing: border-box;
}

/* Position boutons */
#scroll-left {
  right: 10%;
  top: 320px;
}
#scroll-right {
  right: 10%;
  top: 385px;
}

.carousel-scroll-btn:hover {
  background-color: rgba(0,0,0,0.8);
}

.titre2_carte {
  font-weight: bolder;
}

/* ========================= */
/*         A PROPOS          */
/* ========================= */
:root {
  --primary-green: rgb(0, 149, 136);      /* Un vert émeraude moderne */
  --dark-green: #047857;          /* Pour les titres */
  --light-green-bg: #ecfdf5;      /* Fond très léger */
  --text-dark: #1f2937;           /* Gris foncé (jamais de noir pur) */
  --text-light: #4b5563;          /* Gris moyen pour le texte */
  --shadow-soft: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --radius: 16px;

  --primary-hover: #059669;
  --input-bg: #f9fafb;
  --text-light: #6b7280;
}
#a-propos{
  background-color: white;
  scroll-margin-top: 140px;
}

.about-container {
  max-width: 1200px;
  margin: auto auto 60px auto;
}

/* --- EN-TÊTE --- */
.about-header {
  text-align: center;
  max-width: 800px;
  margin: 3rem auto 3rem auto;
}

.badge {
  display: inline-block;
  background-color: var(--light-green-bg);
  color: rgb(0, 149, 136);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.main-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* --- GRILLE DE CONTENU --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 colonnes égales */
  gap: 3rem;
  align-items: center; /* Centré verticalement */
}

/* --- COLONNE GAUCHE : CONTEXTE --- */
.context-block h3 {
  font-size: 1.25rem;
  color: rgb(0, 149, 136);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.context-block p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* --- COLONNE DROITE : LA CARTE SOLUTION --- */
.solution-card {
  background: linear-gradient(135deg, var(--light-green-bg) 0%, #ffffff 100%);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid #d1fae5;
  /* Utilisation de l'ombre douce dont on a parlé */
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.1), 
              0 8px 10px -6px rgba(16, 185, 129, 0.1);
  position: relative;
  overflow: hidden;
}

/* Petite décoration visuelle verte */
.solution-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background-color: var(--primary-green);
}

.solution-card p {
  color: var(--dark-green);
  font-weight: 500;
  font-size: 1.1rem;
}

.highlight {
  font-weight: 700;
  color: var(--primary-green);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
  .about-grid {
      grid-template-columns: 1fr; /* 1 seule colonne sur mobile */
      gap: 2rem;
  }
  .main-title {
      font-size: 1.75rem;
  }
}

.container{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  max-width: 1100px;
  margin: auto;
  overflow: hidden;
  gap:40px
}
.containerColone {
  flex-direction: row;
}

.containerLigne {
  gap:30px;
  flex-direction: column;
}

.texte {
  flex: 1;
  position: relative;
  z-index: 2;
}

.texte p {
  line-height: 1.6;
  font-size: 18px;
}

.image {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.image img {
  width: 350px;
  height: auto;
  border-radius: 10px;
  display: block;
}

@media (max-width: 700px) {
  .container {
    flex-direction: column;
    text-align: center;
  }

  .texte {
    margin-right: 0;
  }

  .image img {
    width: 100%;
    margin-top: 10px;
  }
}


/* ========================= */
/*      TELECHARGEMENT       */
/* ========================= */
:root {
  --primary-dark: #047857;
  --white: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --shadow-installation: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
#telecharger {
    max-width: 1100px;
    margin: 4rem auto 5rem auto;
    scroll-margin-top: 120px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h1 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- GRID SYSTEM --- */
.download-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* La partie téléchargement est plus large */
    gap: 2rem;
    align-items: start;
}

/* --- CARTE GÉNÉRIQUE --- */
.card-panel {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-installation);
    border: 1px solid var(--border-color);
}

/* --- COLONNE GAUCHE : TÉLÉCHARGEMENT --- */
.download-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

/* Style actif (Windows) */
.download-option.active {
    border-color: var(--primary-green);
    background-color: #f0fdf4; /* Vert très pâle */
}

.download-option.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Style inactif (Mac) */
.download-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f9fafb;
    margin-bottom: 73px;
}

.os-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.os-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-download {
    background-color: var(--primary-green);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-download.disabled {
    background-color: #9ca3af;
    pointer-events: none;
}

.process-steps {
    margin-top: 2rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border-color);
}

.step-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
.step-icon {
    background: #d1fae5;
    color: var(--primary-dark);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
}

/* --- COLONNE DROITE : ABONNEMENT --- */
.price-tag {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: baseline;
}
.price-period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 5px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.check-icon {
    color: var(--primary-green);
    margin-right: 10px;
}

.btn-stripe {
    display: block;
    width: 100%;
    background-color: #635bff; /* Couleur officielle Stripe */
    color: white;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 1rem;
}
.btn-stripe:hover {
    background-color: #4b42d8;
}

/* Gestion membre */
.member-area {
    margin-top: 2rem;
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px dashed var(--border-color);
}

.input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.input-field {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.btn-manage {
    padding: 0.6rem 1rem;
    border: 1px solid var(--text-muted);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

/* ========================================= */
/* NOUVEAUX STYLES POUR LES ABONNEMENTS    */
/* ========================================= */

/* Espacement vertical entre toutes les cartes de la colonne de droite */
.side-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Thèmes de couleurs par carte */
.card-pro {
    background: linear-gradient(180deg, #ffffff 0%, #f9fffc 100%);
    border-color: #d1fae5;
}

.card-pack {
    background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%); /* Variante bleutée/cyan */
    border-color: #ccfbf1;
}

.card-devis {
    background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%); /* Variante grise */
    border-color: #e5e7eb;
}

/* Badge pour l'offre 10 licences */
.badge-populaire {
    background-color: #dbeafe;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

/* Bouton pour l'offre sur devis (pas de style Stripe) */
.btn-contact {
    display: block;
    width: 100%;
    background-color: #374151; /* Gris foncé */
    color: white;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    margin-bottom: 0; /* Pas besoin de marge en bas car pas de texte sécurisé dessous */
}

.btn-contact:hover {
    background-color: #1f2937;
}

/* --- STYLES DU SWITCHER --- */
.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.toggle-label {
    color: var(--text-muted, #6b7280); /* S'adapte à votre variable si elle existe */
    transition: color 0.3s ease;
    font-size: x-large;
}

.toggle-label.active {
    color: #111827; /* Couleur foncée quand actif */
}

/* Le bouton switch en lui-même */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #d1d5db; /* Gris par défaut */
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Couleur quand c'est coché (Annuel) */
input:checked + .slider {
    background-color: #10b981; /* Joli vert de validation */
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Arrondir le slider */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Badge de réduction */
.discount-badge {
    background-color: #dcfce7;
    color: #166534;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* --- RESPONSIVE --- */
@media (max-width: 850px) {
    .download-grid {
        grid-template-columns: 1fr;
    }
}

/* --- OPTIMISATION MOBILE (Téléphones) --- */
@media (max-width: 600px) {
    
  /* 1. Réduire les marges globales pour gagner de la place */
  #telecharger {
      margin-top: 2rem;
      padding: 0 1rem; /* Ajout d'une marge latérale de sécurité */
  }

  /* 2. Réduire le padding interne des cartes */
  .card-panel {
      padding: 1.5rem 1rem;
  }

  /* 3. Transformation des blocs de téléchargement */
  .download-option {
      flex-direction: column; /* On empile le texte et le bouton */
      align-items: stretch;   /* On force la largeur à 100% */
      text-align: center;
      gap: 1rem;
      padding: 1rem;
  }

  /* Ciblage de la div interne (icône + texte) pour centrer le contenu */
  .download-option > div {
      flex-direction: column;
      justify-content: center;
      text-align: center;
      width: 100%;
  }

  /* Le bouton prend toute la largeur et est plus haut pour le tactile */
  .btn-download {
      width: 100%;
      justify-content: center;
      margin-top: 0.5rem;
      padding: 1rem; /* Zone de clic plus confortable */
  }

  /* 4. Ajustement de la typographie du titre */
  /* Note : !important est utilisé ici pour surcharger votre style inline HTML */
  .section-header h4 span.lettreVerte {
      font-size: 28px !important; 
  }
  
  .section-header p {
      font-size: 1rem;
      padding: 0 1rem;
  }

  /* 5. Formulaire membre : empiler input et bouton */
  .member-area .input-group {
      flex-direction: column;
  }
  
  .member-area .btn-manage {
      width: 100%;
      margin-top: 0.5rem;
  }

}

/* LOADER BOUTON */

/* Le loader caché par défaut */
.loader {
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  display: none; /* Caché */
}

/* Classe pour afficher le loader via JS */
.is-loading .loader {
  display: inline-block;
}

/* Désactiver le bouton pendant le chargement */
.btn-stripe:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/*----------------
  Statistique
-----------------*/

#phrase-accroche{
  text-align: center;
  font-style: italic;
  font-size: 25px;
  margin-top: 50px;
  max-width: 1100px;
}


.stats-container {
  display: flex;
  flex-wrap: wrap; /* Permet de passer à la ligne sur petit écran */
  justify-content: center;
  gap: 5rem;
  padding: 3rem 2rem;
  border-radius: 10px;
  background-color: lab(98.2596% -.247031 -.706708);
}

/* --- Style des Cartes --- */
.stat-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);  padding: 2.5rem 1.5rem;
  text-align: center;
  flex: 1;
  min-width: 250px;
  max-width: 320px; /* Largeur max pour que ça reste élégant */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation fluide */
}

/* Effet au survol de la souris */
.stat-card:hover {
  transform: translateY(-8px); /* La carte monte légèrement */
  box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* --- Style des éléments internes --- */
.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 3.2rem;
  font-weight: 700;
  color: rgb(0, 149, 136); /* Bleu médical / Tech */
  margin: 0 0 0.5rem 0;
  line-height: 1;
}

.stat-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #334155; /* Gris foncé pour la lisibilité */
  margin: 0;
  line-height: 1.4;
}

.stat-subtext {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: #64748b; /* Gris plus clair pour la parenthèse */
}

.stat-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  flex: 1;
  min-width: 250px;
  max-width: 320px;
  
  /* Préparation de l'animation d'apparition */
  opacity: 0;
  transform: translateY(30px); /* La carte démarre un peu plus bas */
  transition: transform 0.6s ease-out, opacity 0.6s ease-out, box-shadow 0.3s ease;
}

/* Classe ajoutée par le JavaScript quand la carte apparaît à l'écran */
.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-card.visible:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* --- Adaptabilité Mobile (Responsive) --- */
@media (max-width: 768px) {
  .stats-container {
      flex-direction: column;
      align-items: center;
  }
  .stat-card {
      width: 100%;
  }

  #phrase-accroche{
    padding-left: 5px;
    padding-right: 8x;
  }
}
