@import url('https://fonts.googleapis.com/css2?family=Indie+Flower&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Monoton&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
  margin: 0;
  padding: 0;
  background-color: #ffffff; /* blanc */
  font-family: 'Indie Flower', cursive, Arial, sans-serif;
  height: 300vh; /* Triple hauteur */
  overflow-x: hidden;
}

/* HEADER FIXE EN HAUT - LOGO GAUCHE + TEXTE CENTRE */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background-color: #F6F6F6; /* gris clair */
  color: #000000;
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

/* LOGO À GAUCHE */
.logo-link {
  flex-shrink: 0;  /* Empêche le logo de rétrécir */
}

.logo {
  height: 48px;
  width: auto;
  display: block;
}

/* TEXTE CENTRÉ AU MILIEU */
.agencyname {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  color: #000000;
  position: absolute;     /* ✅ Position absolue pour centrage parfait */
  left: 50%;              /* ✅ Centré horizontalement */
  top: 50%;               /* ✅ Centré verticalement */
  transform: translate(-50%, -50%);  /* ✅ Décalage pour centrage exact */
  margin: 0;
  white-space: nowrap;    /* Empêche le retour à la ligne */
}

/* ESPACE À DROITE (optionnel pour symétrie) */
.site-header::after {
  content: '';
  flex: 1;  /* Prend l'espace restant à droite */
  min-width: 48px;  /* Même largeur que le logo */
}

.page-content,
.container {
  padding-top: 90px;
}

h1 {
  font-size: 4rem; /* Légèrement plus grand pour compenser le style manuscrit */
  font-weight: bold;
  color: #000000;
  margin-top: 20px;
  margin-bottom: 40px;
  position: static;
  transform: none;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

h2 {
  font-size: 2rem; /* Légèrement plus grand pour compenser le style manuscrit */
  font-weight: normal;
  color: #000000;
  margin-top: 20px;
  margin-bottom: 40px;
  position: static;
  transform: none;
  line-height: 1.2;
}

/* Sections pleine hauteur */
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.title {
  text-align: center;
  width: 800px;
}

texte {
  text-align: center;
  width: 800px;
}

/* Images */
.container img {
  width: 400px;
  height: auto;
  margin-top: 10px;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.container img:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* Groupes boutons + labels */
.floating-group {
  position: fixed;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 99;
}

.floating-group.top {
  top: 90px;  /* 70px (hauteur header) + 20px de marge */
  position: fixed;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 99;  /* En dessous du header (z-index: 1000) */
}

.floating-group.bottom {
  bottom: 30px;
}

/* Labels */
.label {
  font-size: 32px;
  color: #000000;
  opacity: 0.8;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.label.hidden {
  opacity: 0;
}

/* Boutons */
.floating-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: #000;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.floating-btn:active {
  box-shadow: none;
}

/* Icônes */
.icon {
  width: 28px;
  height: 28px;
}

.icon.down {
  transform: rotate(180deg);
}

/* Switch langue dans le header - DESKTOP */
.lang-switcher {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #000;
  background-color: #ffffff;
  color: #000000;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
  background-color: #000000;
  color: #ffffff;
}

.lang-btn:focus {
  outline: none;
}

/* MOBILE - 600px max */
@media (max-width: 600px) {
  .agencyname { 
    font-size: 3.5rem;
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
  }
  
  .site-header {
    height: 120px;
    background-color: #F6F6F6;
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  }

  .logo {
    height: 56px;
    width: auto;
    display: block;
    margin-bottom: 8px;
  }

  /* ✅ LANG SWITCHER SOUS LE LOGO - PRIORITÉ MAX */
  .site-header .lang-switcher {
    position: static !important;
    margin-top: 4px !important;
    align-self: flex-start !important;
    transform: none !important;
    right: auto !important;
    top: auto !important;
    display: flex !important;
    gap: 8px !important;
  }

  /* ✅ BOUTONS PLUS GROS SUR MOBILE */
  .site-header .lang-btn {
    padding: 8px 20px !important;
    font-size: 1rem !important;
  }

  .floating-group.top {
    top: 160px;
  }

  .page-content,
  .container {
    padding-top: 160px;
  }
  
  .floating-btn {
    width: 108px;
    height: 108px;
  }

  .icon {
    width: 56px;
    height: 56px;
  }

  .label {
    display: none;
  }

  .floating-group {
    right: 40px;
    gap: 16px;
  }
  
  .title {
    width: 400px;
  }
  
  texte {
    width: 400px;
  }

  /* Cookies responsive */
  .cookie-banner__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner__buttons {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Bandeau cookies */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000000;
  color: #ffffff;
  padding: 16px 20px;
  z-index: 1500;
  display: none; /* affiché en JS si nécessaire */
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.25);
}

.cookie-banner__content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cookie-banner__text {
  flex: 1;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
}

.cookie-banner__buttons {
  display: flex;
  gap: 8px;
}

.cookie-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #ffffff;
  background: transparent;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-btn--accept {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.cookie-btn--accept:hover {
  background: #f0f0f0;
}

.cookie-btn--reject:hover {
  background: #333333;
}

.cookie-btn:focus {
  outline: none;
}