@media (min-width: 769px) {
  .side-menu {
    display: none !important;
  }

  .menu-overlay {
    display: none !important;
  }
}




h2 {
  color: #222;
  font-weight: 700;
  text-shadow:
    1px 1px 0 #ccc,
    2px 2px 0 #aaa,
    3px 3px 5px rgba(0,0,0,0.4);
}








:root {
  --blue-light: #cce7ff;
  --blue-medium: #7db8ff;
  --blue-dark: #a3c9ff;
  --text-dark: #0b3d91;
  --gray-light: #f1f6fc;
  --gray-bg: #f9f9f9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}






@media screen and (max-width: 768px) {
  header nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero img {
    width: 100%;
    margin-top: 20px;
  }

  .btn-contact {
    width: 100%;
    text-align: center;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}












body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--gray-bg);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3 {
  margin-bottom: 15px;
  color: #333;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* === NAVIGATION === */

.main-nav {
  background-color: var(--blue-dark);
  color: var(--text-dark);
  padding: 10px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}







.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;              /* fixe la hauteur de la barre */
  padding: 0 20px;
  overflow: visible;         /* laisse dépasser ce qui est trop grand */
}


.nav-logo img {
  height: 50px !important;
  width: auto !important;
  max-height: 100px !important;
  filter: drop-shadow(0 0 2px #fff);
}

.navbar {
  height: auto;
  min-height: 100px;
  display: flex;
  align-items: center;
}


.nav-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.menu > li {
  position: relative;
}

.menu > li > a {
  color: var(--text-dark);
	font-size: 16px; /* taille normale */
  transition: color 0.3s ease, transform 0.3s ease;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 6px;
  transition: background 0.3s;
}

.menu > li > a:hover,
.btn-contact:hover,
.btn-submit:hover {
  color: white;
	 transform: scale(1.08); /* agrandit légèrement */
  transition: color 0.3s ease;
  background: none !important; /* enlève tout fond si jamais */
  box-shadow: none !important; /* enlève ombre éventuelle */
}



.btn-contact,
.btn-submit {
  color: var(--blue-medium);
  transition: color 0.3s ease;
  background: none;
  border: none;
}

.btn-contact:hover,
.btn-submit:hover {
  color: white;
  background: none;
  box-shadow: none;
  cursor: pointer;
}



/* === SOUS-MENUS === */

.has-submenu > a::after {
	content: none;
  display: none;
}


.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  
  color: var(--text-dark);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 165px;
  
  z-index: 999;
	
	opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
	
	list-style: none;
  padding-left: 0;
  margin: 0;
	
}

.has-submenu:hover .submenu {
  display: flex;
	opacity: 1;
  visibility: visible;
  transform: translateY(0);
	background-color: #B3D1FA;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* ombre légère */
}

.submenu li a {
  padding: 10px 15px;
  
  white-space: nowrap;
  
}

.submenu li a:hover {
 
}

.submenu a {
  color: var(--text-dark);
  font-size: 15px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.submenu a:hover {
  color: white;
  transform: scale(1.08);
}

/* === LANGUE === */

.nav-lang {
  display: flex;
  gap: 10px;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--text-dark);
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 0.9em;
  cursor: pointer;
  transition: 0.3s;
}

.lang-btn.active,
.lang-btn:hover {
  background-color: var(--blue-light);
  color: var(--blue-dark);
}

/* === HEADER === */
header .hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 70px 20px;
  background: linear-gradient(to right, var(--blue-light), var(--blue-medium));
  color: white;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.1);
  gap: 30px;
  flex-wrap: wrap; /* pour que ça reste responsive */
}

.hero-text {
  flex: 1 1 400px;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  font-weight: 700;
  text-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.hero-image {
  flex: 1 1 300px;
  max-width: 400px;
}



/* Responsive pour petits écrans */
@media (max-width: 768px) {
  header .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-image, .hero-text {
    max-width: 100%;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
}


.hero {
  padding: 40px 20px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* espace entre texte et image */
  flex-wrap: wrap; /* pour mobile */
}

.hero-text {
  flex: 1;
  max-width: 500px;
}

.hero-image img {
  width: 500px; /* ← augmente la taille de l’image */
  max-width: 100%;
  height: auto;
  display: block;
}



/* === SECTIONS PRINCIPALES === */

main section {
  padding: 80px 20px;
  text-align: center;
  background-color: white;
  margin: 0 auto 30px auto;
  border-radius: 12px;
  max-width: 900px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

main section:nth-child(even) {
  background-color: var(--gray-light);
}

main section h2 {
  color: var(--blue-medium);
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

main section p {
  max-width: 700px;
  margin: 0 auto 30px auto;
  font-size: 1.1rem;
  color: var(--text-dark);
}

/* === FORMULAIRE === */

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 520px;
  margin: auto;
}

form input,
form textarea {
  padding: 14px 16px;
  border: 1.5px solid var(--blue-medium);
  border-radius: 10px;
  font-size: 1.1rem;
  resize: vertical;
  transition: border-color 0.3s;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 8px var(--blue-light);
}

.btn-submit {
  background-color: var(--blue-medium);
  color: white;
  font-weight: 700;
  padding: 15px 25px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-submit:hover {
  background-color: var(--blue-dark);
}





.btn-contact {
  display: inline-block;
  padding: 15px 30px;
  background-color: white;
  color: var(--blue-medium);
  border: none;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 122, 204, 0.3);
  transition: background-color 0.3s, color 0.3s;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
}

.btn-contact:hover,
.btn-contact:focus {
  background-color: var(--blue-medium);
  color: white;
  box-shadow: 0 6px 14px rgba(0, 122, 204, 0.5);
  outline: none;
}


/* === FOOTER === */

footer {
  background-color: var(--blue-dark);
  color: var(--text-dark);
  padding: 40px 20px;
  text-align: center;
  box-shadow: inset 0 10px 25px rgba(255,255,255,0.15);
}

footer p,
footer a {
  color: var(--text-dark);
  font-size: 0.95rem;
}

footer a:hover {
  text-decoration: underline;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1000px;
  margin: auto;
  padding-bottom: 20px;
}

.footer-contact,
.footer-links,
.footer-social {
  flex: 1 1 250px;
}

.footer-links ul {
  list-style: none;
  padding-left: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

/* === Responsive Menu === */

/* === BOUTON HAMBURGER === */
.nav-toggle {
  display: none; /* caché sur PC */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 30px;
  cursor: pointer;
  gap: 6px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 3px;
  transition: 0.4s;
}


.nav-toggle.open span:nth-child(1),
.nav-toggle.open span:nth-child(3) {
  transition: transform 0.4s ease;
}







/* === Animation vers CROIX ✖ === */
.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex; /* visible sur téléphone */
  }

  .nav-menu {
    display: none; /* menu caché par défaut */
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--blue-dark);
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  .nav-menu.active {
    display: flex; /* quand on clique sur ☰ */
  }

  .menu {
    flex-direction: column;
    gap: 15px;
  }

  .submenu {
  display: flex !important;
  flex-direction: column;
  background-color: var(--blue-light);
  margin-top: 8px;
  padding-left: 15px;
}

  .submenu li a {
    padding-left: 30px;  /* indentation pour montrer que c'est un sous-menu */
    color: white;        /* couleur adaptée au fond bleu */
    background-color: var(--blue-medium);
    border-radius: 6px;
    margin-bottom: 8px;
    display: block;
  }
	

	
	
	
	/* Menu latéral type Gmail */
.side-menu {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100vh;
  background-color: var(--blue-dark);
  box-shadow: 2px 0 12px rgba(0,0,0,0.2);
  transition: left 0.3s ease;
  z-index: 1001;
  padding: 20px;
  overflow-y: auto;
}

.side-menu.active {
  left: 0;
}

/* Overlay fond noir transparent */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 1000;
}

.menu-overlay.active {
  display: block;
}

/* Style menu Gmail mobile */
.side-menu .menu {
  flex-direction: column;
  gap: 15px;
}

.side-menu .submenu {
  display: flex !important;  /* Toujours affiché */
  flex-direction: column;
  
  margin-top: 8px;
  padding-left: 15px;
}

.side-menu .has-submenu > a::after {
  content: none;
  float: right;
  font-size: 0.8em;
  transform: scale(0.8);
  margin-left: 10px;
}

	
}


	/* --- FORCER L'AFFICHAGE DES SOUS-MENUS EN MODE MOBILE --- */
@media (max-width: 768px) {
  .submenu {
    display: flex !important;
    flex-direction: column;
    position: relative !important; /* empêche le comportement contextuel */
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background-color: transparent;
    margin-left: 15px;
    margin-top: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 8px;
  }

  .has-submenu > a::after {
    display: none !important; /* enlever la flèche ▼ */
  }

  /* Supprimer les effets de survol sur mobile */
  .has-submenu:hover .submenu {
    display: flex !important;
  }
}



/* Menu principal : texte devient blanc quand actif, fond reste bleu */
.nav-menu > ul.menu > li > a.active {
  color: white !important;
  font-weight: 700;
  /* background reste la même que le menu normal (bleu) */
}
