/* ========================================
   MEDILIB - STYLES PRINCIPAUX
   ======================================== */

/* Stabiliser la scrollbar pour éviter les décalages */
html { 
  scrollbar-gutter: stable; 
}

/* === ALIGNEMENT DOCTOLIB-STYLE : éléments proches du bord === */
.header-top,
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding-left: 32px !important;   /* marge bord gauche réduite */
  padding-right: 32px !important;  /* marge bord droit réduite */
}

/* Supprimer les largeurs forcées */
.header-top .header-left,
.header-top .header-right,
.header-main .header-left,
.header-main .header-right {
  width: auto !important;
  margin: 0 !important;
}

/* Supprimer tout padding du container intermédiaire */
.header-container {
  padding: 0 !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Alignement vertical harmonisé */
.header-top .header-left,
.header-top .header-right,
.header-main .header-left,
.header-main .header-right {
  display: flex;
  align-items: center;
}

/* Centrage horizontal parfait de la navigation - SUPPRIMÉ (conflit avec la règle principale) */

/* RESET ET BASE */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #333;
  overflow-x: hidden;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}image.png

/* HEADER UNIFIÉ */
.unified-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, #002B40 0%, #003d57 100%);
}

.header-row {
  display: flex;
  align-items: center;
  min-height: 40px;
  height: 40px;
}

/* ALIGNEMENT HORIZONTAL DU HEADER (haut/bas) - SUPPRIMÉ (conflit avec le correctif final) */

.header-top {
  background: linear-gradient(135deg, #002B40 0%, #003d57 100%);
  color: white;
  font-size: 0.85em;
}

.header-main {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  min-height: 80px;
  height: 80px;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* S'assurer que les conteneurs internes ne créent pas de décalage */
.header-top .header-left,
.header-main .header-left {
  justify-content: flex-start;
  margin-left: 0;
}

.header-top .header-right,
.header-main .header-right {
  justify-content: flex-end;
  margin-right: 0;
}

/* Supprimer les largeurs forcées qui causent le décalage */
.header-top .header-left,
.header-top .header-right,
.header-main .header-left,
.header-main .header-right {
  width: auto;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 25px;
  min-width: 200px;
  height: 100%;
}

.header-left {
  justify-content: flex-start;
}

.header-right {
  justify-content: flex-end;
}

/* Forcer l'alignement parfait des éléments */
.header-top .header-left,
.header-top .header-right,
.header-main .header-left,
.header-main .header-right {
  width: 50%;
  display: flex;
  align-items: center;
}

.header-top .header-left,
.header-main .header-left {
  justify-content: flex-start;
}

.header-top .header-right,
.header-main .header-right {
  justify-content: flex-end;
}

/* Liens du header supérieur */
.top-link {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.top-link:hover {
  color: #00A5A7;
}

.top-link i {
  font-size: 0.9em;
}

/* Sélecteur de langue */
.language-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  position: relative;
}

.language-selector .current-language {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95em;
    transition: all 0.3s ease;
    outline: none;
    min-width: 75px;
  text-align: center;
}

.language-selector:hover .current-language {
  background: rgba(0, 165, 167, 0.2);
}

.language-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 43, 64, 0.8);
    border-radius: 6px;
    padding: 8px 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.language-selector:hover .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: block;
  padding: 6px 10px;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease;
  font-size: 0.9em;
  white-space: nowrap;
}

.language-option:hover {
  background: rgba(0, 165, 167, 0.3);
}

.logo {
  display: flex;
  align-items: center;
}

.logo .brand {
  font-family: 'Pacifico', 'Brush Script MT', 'Comic Sans MS', cursive;
  font-size: 2em;
  color: #00A5A7;
  font-weight: normal;
}

.brand-link {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.brand-link:hover {
  transform: scale(1.05);
}

.brand-link:hover .brand {
  color: #00898b;
}

/* NAVIGATION PRINCIPALE */
.main-nav {
  display: flex;
  align-items: center;
  gap: 35px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95em;
  padding: 8px 0;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #00A5A7 0%, #00898b 100%);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #00A5A7;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: #00A5A7;
}

.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  justify-content: flex-end;
  height: 100%;
  min-height: 60px;
}

/* Bouton "Vous êtes soignant ?" - RETIRÉ */
/* Le bouton a été remplacé par le lien "Espace praticien" dans le bandeau supérieur */

/* Lien Centre d'aide */
.link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #00A5A7;
  font-weight: 600;
  transition: color 0.3s ease;
  font-size: 0.85em;
  height: 100%;
  min-height: 44px;
  line-height: 1;
}

.link i {
  color: #00A5A7;
  font-size: 1.1em;
}

.link:hover {
  color: #00A5A7;
}

/* Bloc Se connecter + RDV */
.connect-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  height: 100%;
  min-height: 44px;
  margin-top: 0;
}

.connect-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: #00A5A7;
  font-weight: 600;
  font-size: 0.85em;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.connect-block i {
  color: #00A5A7;
  font-size: 1.1em;
  flex-shrink: 0;
  align-self: center;
}

.connect-main:hover {
  color: #00A5A7;
  background: rgba(0, 165, 167, 0.08);
  border: 1px solid rgba(0, 165, 167, 0.2);
  transform: translateY(-1px);
}

.rdv-text {
  font-size: 0.75em;
  color: #00A5A7;
  letter-spacing: 0.2px;
  margin-top: 1px;
  line-height: 1;
}

/* HERO SECTION */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 80px 80px 25px;
  background: linear-gradient(135deg, #00A5A7 0%, #EAF9F8 100%);
  min-height: 32vh;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Formes ondulées pour le cadre vert */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -50px;
  width: 100px;
  height: 100%;
  background: linear-gradient(135deg, #00A5A7 0%, #EAF9F8 100%);
  border-radius: 50% 0 0 50%;
  transform: scaleY(1.2);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -30px;
  width: 60px;
  height: 80%;
  background: linear-gradient(135deg, #00A5A7 0%, #EAF9F8 100%);
  border-radius: 50% 0 0 50%;
  transform: scaleY(0.8) rotate(15deg);
}

/* Formes ondulées supplémentaires */
.hero .wave-shape-1 {
  position: absolute;
  top: 20%;
  right: -25px;
  width: 50px;
  height: 60px;
  background: rgba(0, 165, 167, 0.8);
  border-radius: 50% 0 0 50%;
  transform: rotate(-10deg);
}

.hero .wave-shape-2 {
  position: absolute;
  bottom: 30%;
  right: -40px;
  width: 80px;
  height: 40px;
  background: rgba(234, 249, 248, 0.9);
  border-radius: 50% 0 0 50%;
  transform: rotate(20deg);
}

.hero .wave-shape-3 {
  position: absolute;
  top: 60%;
  right: -35px;
  width: 70px;
  height: 50px;
  background: rgba(0, 165, 167, 0.6);
  border-radius: 50% 0 0 50%;
  transform: rotate(-5deg);
}

.hero-content {
  max-width: 600px;
  color: white;
  flex: 1;
  margin-right: 40px;
  margin-left: 60px;
  margin-top: 0;
}

.hero-content h1 {
  font-size: 1.9em;
  line-height: 1.3em;
  margin-bottom: 15px;
  margin-top: 25px;
  font-weight: 600;
}

.hero-content p {
  font-size: 1.2em;
  line-height: 1.5em;
  margin-bottom: 25px;
  font-weight: 500;
  color: #f5fdfc;
}

.search-bar {
  background-color: white;
  display: flex;
  align-items: center;
  border-radius: 50px;
  padding: 5px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  max-width: 600px;
}

.search-bar input {
  flex: 1;
  border: none;
  padding: 15px 20px;
  font-size: 1em;
  border-radius: 50px;
  outline: none;
}

.search-bar input:first-child {
  border-right: 1px solid #ddd;
}

.search-bar button {
  background-color: #002B40;
  color: white;
  border: none;
  padding: 15px 30px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-bar button:hover {
  background-color: #004b66;
}

/* IMAGE HERO */
.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  margin-top: 40px;
  margin-left: 80px;
}

.hero-image img {
  position: absolute;
  width: 500px;
  height: 350px;
  border-radius: 25px;
  object-fit: cover;
  box-shadow: 0 10px 35px rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-image img.active {
  opacity: 1;
  z-index: 2;
}

/* HERO CTA BUTTONS */
.hero-cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 25px;
  align-items: center;
}

.btn-primary-cta {
  background: linear-gradient(135deg, #00A5A7 0%, #00898b 100%);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(0, 165, 167, 0.3);
}

.btn-primary-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 165, 167, 0.4);
}

.btn-primary-cta i {
  font-size: 1.1em;
}

.btn-secondary-cta {
  background: transparent;
  color: #00A5A7;
  border: 2px solid #00A5A7;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary-cta:hover {
  background: #00A5A7;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 165, 167, 0.2);
}

.btn-secondary-cta i {
  font-size: 1.1em;
}

/* FOOTER */
footer {
  background-color: #00A5A7;
  color: white;
  text-align: center;
  padding: 25px 10px;
  font-size: 0.9em;
}
