
/* ========== RESET ET VARIABLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bleu: #2c3e50;
  --bleu-clair: #3498db;
  --bleu-glacier: #a9cce3;
  --gris-fond: #f7f9fa;
  --blanc: #ffffff;
  --jaune: #f39c12;
}

/* ========== BASE DU SITE ========== */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 2rem 0;
}

.language-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  z-index: 3; /* important : au-dessus de l'image et du dégradé */
}

.lang-btn {
  padding: 8px 14px;
  border: none;
  font-weight: bold;
  background-color: #e0e0e0;
  color: #333;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: "Lato", sans-serif;
}

.lang-btn:hover:not(.active) {
  background-color: #ccc;
}

.lang-btn.active {
  background-color: #3498db;
  color: white;
  cursor: default;
}

.lang-btn.inactive {
  cursor: pointer;
}

/* ========== BANNIÈRE et LOGO  ========== */
.banner{
  position:relative;
  height:75vh;
  min-height:50vh;
  width:100%;
  overflow:hidden;
}

.banner img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 55%;
  filter:none;
}

/* Assombrissement lisible, sans toucher à l’image */
.banner::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(to bottom, rgba(0,0,0,.20) 0%, rgba(0,0,0,.35) 65%, rgba(0,0,0,.45) 100%);
}

/* Texte au-dessus de l’overlay */
.banner-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 1rem;
}

.banner-text h1 {
  margin: 0 0 0.3rem 0;
  line-height: 1.1;
  font-size: clamp(2rem, 4vw + 1rem, 3.2rem);
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}

.banner-text p {
  margin-top: 0;
  font-size: clamp(1rem, 1.2vw + .6rem, 1.2rem);
  text-shadow: 0 1px 10px rgba(0,0,0,.3);
}

/* Logo en haut-gauche */
.logo-overlay{
  position:absolute;
  top:16px;
  left:16px;
  z-index:3;
}

/* Rendre toute la zone cliquable et accessible */
.logo-overlay .logo-link{
  display:inline-block;   /* toute la zone du lien est cliquable */
  line-height:0;          /* supprime les interlignes autour de l'image */
  padding:4px;            /* augmente la zone de clic (touch-friendly) */
  border-radius:8px;
  -webkit-tap-highlight-color: transparent;
  cursor:pointer;
}

/* Taille du logo (ajuste si besoin) */
.logo-overlay img{
  display:block;
  height:20px;
  width:auto;
  transform:scale(1);
  transform-origin:center;
  transition:transform .18s ease, filter .18s ease;
  will-change:transform;
}

/* Effet grossissement au survol + focus clavier */
.logo-overlay .logo-link:hover img,
.logo-overlay .logo-link:focus-visible img{
  transform:scale(1.05);  /* 1.10 si tu veux plus marqué */
}

/* Anneau de focus accessible au clavier */
.logo-overlay .logo-link:focus-visible{
  outline:2px solid #3498db;
  outline-offset:4px;
  border-radius:10px;
}

/* Si l’utilisateur préfère moins d’animations */
@media (prefers-reduced-motion: reduce){
  .logo-overlay img{ transition:none; }
}

/* ===== Bouton langue en haut-droit =====
   Adapte .lang-switch au nom réel de ta classe de bouton langue (FR/EN). */
.banner .lang-switch{
  position:absolute;
  top:16px;
  right:16px;
  z-index:3;
  transform:none;
}
.banner .lang-switch *{ position:relative; }

/* Réactivité */
@media (max-width:768px){
  .banner{ height:56vh; }
  .logo-overlay{ top:12px; left:12px; }
  .banner .lang-switch{ top:12px; right:12px; }
}


/* ========== NAVIGATION ========== */
.nav-bar {
  position: sticky; top: 0; z-index: 999;
  background-color: var(--bleu);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 2rem;
}
.nav-bar ul {
  display: flex; gap: 2rem; list-style: none; flex-wrap: wrap;
}
.nav-bar ul li a {
  color: white;
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  padding: 0.3rem 1.2rem;
  border-radius: 20px;
  transition: background-color 0.3s, color 0.3s;
}
.nav-bar ul li a:hover { color: var(--bleu-clair); transform: scale(1.3); transition: background 0.3s, color 0.3s, transform 0.3s; }

/* ========== MENU DÉROULANT NAVIGATION ========== */
.nav-bar ul { position: relative; }

.dropdown {
  position: relative;
}

.dropbtn {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 110%;
  min-width: 240px;
  background-color: var(--bleu);
  box-shadow: 0 8px 24px rgba(44,62,80,0.10), 0 1.5px 3px rgba(44,62,80,0.05);
  border-radius: 16px;
  z-index: 1000;
  padding: 0.5rem 0;
  animation: fade-in 0.4s;
}

.dropdown-content a:hover {
  color: var(--bleu-clair);
  transform: scale(1.06);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

.dropdown-content:hover,
.dropdown:focus-within .dropdown-content {
  display: block;
}

nav a.decale {
  margin-left: 20px; 
}

.fleche {
  font-size: 0.7em;
  margin-left: 6px;
  vertical-align: middle;
}

/* ========== SECTIONS PRINCIPALES ========== */
section { scroll-margin-top: 120px; padding-top: 1rem; }
section:not(:last-child) { border-bottom: 1px solid #e0e0e0; }

/* ========== FADE-UP ANIMATION ========== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* ========== FOOTER ========== */
.footer {
  background-color: var(--bleu);
  color: white;
  padding: 3rem 1rem 1rem 1rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col { flex: 1 1 220px; }
.footer-col h4 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--bleu-glacier); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  color: white;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s, transform 0.3s;
}

.footer-col ul li a:hover {
  color: var(--bleu-clair);
  transform: scale(1.08);
}

.btn-footer {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.6rem 1.2rem;
  background-color: var(--bleu-glacier);
  color: black; font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}
.btn-footer:hover { background-color: #e5e4e2; color: var(--bleu-clair); transform: scale(1.08); transition: background 0.3s, color 0.3s, transform 0.3s; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
}
.footer-bottom hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin: 0 auto 1rem auto;
  width: 90%;
}
.scroll-top {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--bleu-glacier);
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s, color 0.3s;
}
.scroll-top:hover { transform: translateY(-3px); color: #ffffff; transition: background 0.3s, color 0.3s, transform 0.3s; }

/* ========== MENU DÉROULANT FOOTER ========== */
.footer ul { position: relative; }

.dropdown-footer {
  position: relative;
}

.dropbtn-footer {
  cursor: pointer;
  color: var(--bleu-clair);
  text-decoration: none;
}

.dropdown-content-footer {
  display: none;
  position: absolute;
  top: -400%;
  left: 30%;
  background-color: var(--bleu);
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(44, 62, 80, 0.10), 0 1.5px 3px rgba(44, 62, 80, 0.05);
  border-radius: 16px;
  z-index: 1000;
  padding: 0.5rem 0;
  animation: fade-in 0.4s;
}

.dropdown-content-footer a {
  display: block;
  padding: 0.5rem 1rem;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.dropdown-content-footer a:hover {
  color: var(--bleu-clair);
  transform: scale(1.06);
}

/* Affiche le menu quand survolé */
.dropdown-footer:hover .dropdown-content-footer,
.dropdown-footer:focus-within .dropdown-content-footer {
  display: block;
}

.dropdown-content-footer:hover,
.dropdown-footer:focus-within .dropdown-content-footer {
  display: block;
}

.footer a.decale {
  margin-left: 20px;
}

.fleche {
  font-size: 0.7em;
  margin-left: 6px;
  vertical-align: middle;
}


/* Ajustements dans le footer */
.footer-col ul {
  list-style: none;
  padding-left: 0;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

/* ========== ANIMATIONS ========== */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(30px);}
  to   { opacity: 1; transform: translateY(0);}
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .banner-text h1 { font-size: 2rem; }
  .nav-bar ul { flex-direction: column; gap: 1rem; }
}
