/* style.css */
/* Animation de rotation pour l'engrenage */
@keyframes spin-gear {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Animation inverse pour que l'icône reste stable */
@keyframes spin-icon-reverse {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

body, html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Cache les barres de défilement */
  background-color: #FAF7F2; 
}

.fullscreen-content {
  position: fixed; /* Garde le contenu en place même lors du défilement */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
  background-color: black; /* Pour les contenus multimédia */
  color: #314E9F;
  z-index: 1000; /* Assure qu'il est au-dessus des autres contenus */
}

header {
  background-color: #FAF7F2; /* Ou toute autre couleur de fond appropriée */
  padding: 10px 20px; /* Ajuste ceci selon ton design */
  color: #314E9F;
  text-align: left;
  font-family: 'Nunito', sans-serif;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative; /* CES 5 éléments ont été rajoutés */
  z-index: 10; /* Assure qu'elle reste visible au-dessus des autres éléments */
  padding: 0px 0; /* Ajoute un peu plus d'espace pour éviter qu'elle ne soit rognée */
  margin-top: 0 !important;
}

h1 {
  margin: 0;
  flex-grow: 1; 
}

a.no-underline {
    text-decoration: none; /* Enlève le soulignement */
	color: white;
}

.header-icon {
  height: 50px; /* ou la taille que tu préfères */
  width: auto; /* garde le ratio de l'image */
}

.nav-bar {
  background-color: #FAF7F2;
  color: #314E9F;
  text-align: center;
  padding: 10px;
  overflow-y: auto;
}

.nav-btn, .function-btn {
  padding: 10px 5px;
  margin: 5px;
  background-color: #FAF7F2;
  color: #314E9F;
  border: 2px solid #FFA600; /* Ajout de la bordure */
  border-radius: 5px;
}

.nav-bar {
  margin-top: -20px;
  display: flex;
  justify-content: flex-start;
}
.bottom-bar {
  visibility: hidden;
  height: 0;
  padding: 0;
}
.nav-btn.active {
    background-color: #FFA600;
    color: #000000;
}

.logo-container {
  text-align: center;        /* centre horizontalement le contenu */
  margin-top: 10px;          /* espace sous la nav-bar */
  margin-bottom: 50px;
}

.logo {
  display: inline-block;     /* pour bien se centrer dans text-align */
  max-width: 650px;          /* taille max du logo */
  height: auto;              /* conserve les proportions */
}
.logo-small {
  display: inline-block;     /* pour bien se centrer dans text-align */
  max-width: 100px;          /* taille max du logo */
  height: auto;              /* conserve les proportions */
}



/* Conteneur pour le cercle et le texte */
.central-space {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  padding: 20px;
  margin-top: -14px !important;
  width: 92vw;
  height: 85vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background-color: #FAF7F2;
  /* border-radius: 0px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);  */
  gap: 10px;
}
.central-space::-webkit-scrollbar {
  display: none;
}

/* Ajustement des .circle-container */
.circle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-left: 20px;
  margin-right: 20px;
  flex: 0 1 calc(25% - 20px);   /* largeur comme avant, mais plus explicite */
  max-width: calc(12% - 20px);
  min-width: 120px;             /* un peu plus large que 96px pour le confort */
}

/* Ajustement du .circle-button */
.circle-button {
  width: 100%;
  max-width: 110px;          /* limite le diamètre du cercle */
  height: auto; 			/* on garde la logique desktop */
  aspect-ratio: 1 / 1;		/* ok partout, mais iOS peut dévier */
  margin: 0 auto;            /* centre le cercle dans le container */
  position: relative;
  /* --- MODIFICATIONS ICI --- */
  border: none;              /* On enlève l'ancienne bordure orange */
  background-image: url('engrenage200.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent; /* Pour voir le fond à travers les dents */
  /* -------------------------- */
  /* On prépare la transition pour la rotation
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);  */
	
  /* On lance l'animation infinie */
  animation: spin-gear 20s linear infinite;
  overflow: visible;         
  cursor: pointer;
  will-change: transform;
}

/* Accélération au survol ou au clic/appui tactile */
.circle-button:hover, 
.circle-button:active {
  animation-duration: 3s; /* L'engrenage tourne beaucoup plus vite */
}

.circle-button:hover .circle-image,
.circle-button:active .circle-image {
  animation-duration: 3s; /* L'icône doit accélérer aussi pour rester droite */
}

/* Correctif iPhone/Safari : on force height = width */
@supports (-webkit-touch-callout: none) {
  .circle-button {
    height: 110px; 
    width: 110px;
    max-width: none;
    border-radius: 0; /* Pas besoin de cercle CSS ici, l'image fait le travail */
  }
}

.circle-image {
  position: absolute;
  /* On centre l'image en la réduisant à environ 65-70% de la taille du bouton */
  top: 17%; 
  left: 17%;
  width: 66%;
  height: 66%;
  
  object-fit: cover;
  border-radius: 50%; /* Garde l'image interne bien ronde */
  /* Transformation du noir vers #314E9F */
  filter: invert(28%) sepia(63%) saturate(748%) hue-rotate(193deg) brightness(92%) contrast(92%);
  /* Transition inverse pour garder l'icône droite 
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); */
  /* On lance l'animation inverse pour compenser la rotation de l'engrenage */
  animation: spin-icon-reverse 20s linear infinite;
  will-change: transform;
}
/* Exceptions : pas de filter pour les images ci-dessous */
.circle-image[src$="rotary_world.png"],
.circle-image[src$="contact rotary.png"],
.circle-image[src$="our causes.png"],
.circle-image[src$="annual conventions.png"],
.circle-image[src$="taipei.png"],
.circle-image[src$="2026 program.png"],
.circle-image[src$="africa.png"],
.circle-image[src$="americas.png"],
.circle-image[src$="asia.png"],
.circle-image[src$="europe.png"],
.circle-image[src$="oceania.png"],
.circle-image[src$="belgium.png"],
.circle-image[src$="france.png"],
.circle-image[src$="luxemburg.png"],
.circle-image[src$="netherlands.png"],
.circle-image[src$="united-kingdom.png"],
.circle-image[src$="en.png"],
.circle-image[src$="fr.png"],
.circle-image[src$="nl.png"]
{
  filter: none !important;
}

/* Ajustement du texte */
.circle-text {
  font-size: 15px;
  margin-top: 5px;
  text-align: center;
  word-wrap: break-word;
  max-width: 100%;
  color: #314E9F;
  font-family: 'Nunito', sans-serif;
  font-weight: bold;
}

/* Media queries pour différentes tailles d'écran */
@media (max-width: 1200px) {
  .circle-container {
    max-width: calc(33.333% - 20px); /* 3 par ligne */
  }
}

@media (max-width: 900px) {
  .circle-container {
    max-width: calc(50% - 20px); /* 2 par ligne */
  }
}

@media (max-width : 482px ){
  .circle-container {
    max-width: calc(100% - 20px); /* 1 par ligne */
  }
}
.central-space {
	height: 75vh;
}
.central-space.is-home {
    height: 65vh;
  }
.central-space .pb-image {
  margin-top: 20px;
  text-align: center;
  
}
.central-space .pb-image img {
  max-width: 100%;
  height: auto;
}
/* Styles pour la bannière du bas */
.bottom-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 40px;
    background-color: #FFA600;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 5px;
    color: #314E9F;
}

.bottom-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-underline {
    text-decoration: none; /* Supprime le soulignement du lien */
    color: white;
}

.bottom-content h1 {
	font-family: 'Nunito', sans-serif;
    font-size: 18px;
	font-style: italic;
    margin-bottom: 12px;
	color: #ADFF2F;
    padding: 0;
}

.bottom-content img {
    width: 350px; /* Taille ajustable de l'image */
    margin-top: -10px; /* Espace entre le texte et l'image */
}

/* Texte de copyright */
.bottom-banner p {
    position: absolute;
    bottom: -8px;
	font-family: 'Nunito', sans-serif;
    font-size: 10px;
    width: 100%;
    text-align: center;
    color: #314E9F;
}

.nav-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.datetime-display {
    margin-left: auto;
    padding-right: 20px;
    color: #314E9F;
    font-family: 'Nunito', sans-serif;
    font-size: clamp(16px, 4.65vw, 28px);
    font-weight: bold;
	text-transform: uppercase;
}
.bottom-link {
  font-family: 'Nunito', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #314E9F;		
  /*text-decoration: none;*/
}

@media (max-width : 482px ){
	.circle-text {
  	font-size: 14px;
	}
	.bottom-link {
	   margin-top: -15px;
	}
	.logo {
    width: min(350px, 70vw);
	margin-top: -20px;
	margin-bottom: -40px;
  	height: auto;
	}
@media (max-width: 400px) {
	.circle-text {
  	font-size: 14px;
	}
	.logo {
    width: min(350px, 70vw);
	margin-top: -30px;
	margin-bottom: -50px;
  	height: auto;
	}}
}
