/* Styles responsifs pour Eureka Énergie */

/* Règles générales pour tous les écrans */
html {
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
}

/* Styles pour le menu mobile */
.menu__icon {
  display: none;
  position: relative;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 5;
}

.menu__icon span,
.menu__icon::before,
.menu__icon::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #33bcac;
  transition: all 0.3s ease;
}

.menu__icon::before,
.menu__icon::after {
  content: "";
}

.menu__icon::before {
  top: 0;
}

.menu__icon span {
  top: 9px;
}

.menu__icon::after {
  bottom: 0;
}

.menu__icon.active span {
  transform: scale(0);
}

.menu__icon.active::before {
  transform: rotate(45deg);
  top: 9px;
}

.menu__icon.active::after {
  transform: rotate(-45deg);
  bottom: 9px;
}

/* Grands écrans (ordinateurs de bureau, grands portables) */
@media screen and (min-width: 1200px) {
  .main__title {
    font-size: 3.5rem;
  }
  
  .main__container_pages {
    max-width: 1200px;
    padding: 0 15px;
  }
  
  .ampoule-image {
    width: 350px;
  }
}

/* Écrans moyens (tablettes, petits portables) */
@media screen and (max-width: 1199px) and (min-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .main__title {
    font-size: 3rem;
  }
  
  .main__container_pages {
    padding: 0 30px;
  }
  
  .ampoule-image {
    width: 300px;
  }
  
  .main__text-container {
    max-width: 55%;
  }
  
  .stats__number {
    font-size: 2.5rem;
  }
  
  .partners__logo, .suppliers__logo {
    max-width: 120px;
  }
  
  /* Ajustements pour les boutons */
  .main__button {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

/* Petits écrans (smartphones en mode paysage, petites tablettes) */
@media screen and (max-width: 767px) and (min-width: 481px) {
  html {
    font-size: 14px;
  }
  
  .main__title {
    font-size: 2.5rem;
    margin-top: 3rem !important;
  }
  
  .main__container_pages {
    flex-direction: column;
    padding: 0 20px;
  }
  
  .main__text-container {
    max-width: 100%;
    order: 2;
  }
  
  .image-container {
    order: 1;
    margin-bottom: 2rem;
  }
  
  .ampoule-image {
    width: 250px;
  }
  
  .stats__row {
    flex-direction: column;
    align-items: center;
  }
  
  .stats__item {
    margin-bottom: 1.5rem;
  }
  
  .partners__logo, .suppliers__logo {
    max-width: 100px;
  }
  
  .outro__contacts {
    flex-direction: column;
    gap: 15px;
  }
  
  .advantages__row, .services__row {
    flex-direction: column;
  }
  
  .advantages__item, .services__column {
    margin-bottom: 2rem;
  }
  
  /* Ajustements pour les boutons */
  .main__button {
    padding: 10px 18px;
    font-size: 0.85rem;
    display: inline-block;
    width: 80%;
    max-width: 300px;
    text-align: center;
  }
  
  /* Ajustements pour le logo */
  .header__logo img {
    max-width: 150px;
  }
}

/* Très petits écrans (smartphones) */
@media screen and (max-width: 480px) {
  html {
    font-size: 13px;
  }
  
  .main__title {
    font-size: 2rem;
    margin-top: 2rem !important;
  }
  
  .main__container_pages {
    flex-direction: column;
    padding: 0 15px;
  }
  
  .main__text-container {
    max-width: 100%;
    order: 2;
  }
  
  .image-container {
    order: 1;
    margin-bottom: 1.5rem;
  }
  
  .ampoule-image {
    width: 200px;
  }
  
  .stats__row {
    flex-direction: column;
    align-items: center;
  }
  
  .stats__item {
    margin-bottom: 1.5rem;
  }
  
  .stats__number {
    font-size: 2rem;
  }
  
  .partners__logo, .suppliers__logo {
    max-width: 80px;
  }
  
  .outro__contacts {
    flex-direction: column;
    gap: 15px;
  }
  
  .advantages__row, .services__row {
    flex-direction: column;
  }
  
  .advantages__item, .services__column {
    margin-bottom: 1.5rem;
  }
  
  .header__menu .menu__list {
    flex-direction: column;
    gap: 10px;
  }
  
  .process__steps {
    padding: 0 10px;
  }
  
  .process__step {
    flex-direction: column;
    text-align: center;
  }
  
  .process__number {
    margin-bottom: 1rem;
  }
  
  .cgu-content {
    padding: 1rem;
  }
  
  .contact-title {
    font-size: 2.5rem !important;
    margin-top: 3rem !important;
  }
  
  .contact-text {
    margin: 2rem auto !important;
  }
  
  .footer__container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  /* Ajustements pour les boutons */
  .main__button {
    padding: 10px 15px;
    font-size: 0.8rem;
    display: inline-block;
    width: 100%;
    max-width: 250px;
    text-align: center;
  }
  
  /* Ajustements pour le logo */
  .header__logo img {
    max-width: 120px;
  }
}

/* Menu mobile amélioré */
@media screen and (max-width: 767px) {
  .header__navigation {
    position: relative;
  }
  
  .menu__icon {
    display: block;
  }
  
  .menu__body {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: #fff;
    padding: 80px 20px 30px;
    overflow: auto;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .menu__body.active {
    right: 0;
  }
  
  .menu__list {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 30px;
  }
  
  .menu__item {
    margin-bottom: 20px;
    text-align: center;
  }
  
  .menu__link {
    font-size: 1.2rem;
    display: block;
    padding: 10px 0;
    color: #303a4d;
  }
  
  .menu__link:hover {
    color: #33bcac;
  }
  
  .actions-header__button {
    margin-top: 20px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
  }
  
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
} 