/* CSS Document */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.0/css/all.min.css');

*{
 	font-family: "Montserrat", sans-serif;
 	/*font-optical-sizing: auto;*/
	font-weight: 400;
	font-style: normal;
	color:#3C464C;
	margin:0px;
	padding:0px;
  font-size:1em;
}
p{text-align: justify;}
#container{
	max-width:1200px;
	margin-left:auto;
	margin-right:auto;
}


/*** header ***/

h1 span{display:none;}

#header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1000;
  margin-bottom:50px;
}

/* Conteneur centré */
.header-center {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between; /* espace entre les blocs */
  align-items: center;
  padding: 1rem 2rem;
}

.footer-center {
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo + titre */
#header h1 {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #009DE0;
}

#header h1 img {
  width: 120px; /* largeur logo */
  height: auto;
  margin-left: 0.75rem;
}

/* Menu centré */
#header ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
}
#header ul li a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
}

#header ul li a:hover {
  background-color: #009DE0;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* Réseaux sociaux à droite en colonne */
.socials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.socials a i{
  color: #333;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.socials a:hover i{
  color:#009DE0;
}

/*** blocs verticaux ***/

.vertical-container {
  display: flex;
  gap: 15px;
}

.section {
  background-color: lightgreen;
  padding: 20px;
  flex: 1;
  background: #fff;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: 0.2s;
}
.section h2, #about h3, #contact h3, #mentions-legales h2, #politique-confidentialite h2{
	color:#FFF;
	font-size:1em;
	background-color:#009DE0;
	padding:10px 0px;
}
.section img{
	width:100%;
}
.section p{
	margin:10px 0px;
}
.section ul{
	list-style: none; /* supprime la puce par défaut */
	padding-left: 1.5em;
	margin-top:20px;
}
.section ul li{
	position: relative;
	margin-bottom: 0.5em;
}
.section ul li:before{
    content: "";
    position: absolute;
    left: -1.2em;
    top: 0.4em;
    width: 0.6em;
    height: 0.6em;
    background-color: #009DE0;
}

/*** QUOTE ***/

.quote {
    font-size: 1.4rem;
    color: #009DE0;
	margin-top:50px;
    text-align: center;
    quotes: "“" "”" "‘" "’";
}

.quote::before {
    content: open-quote;
    font-size: 2.5rem;
    vertical-align: top;
    margin-right: 0.2rem;
}

.quote::after {
    content: close-quote;
    font-size: 2.5rem;
    vertical-align: bottom;
    margin-left: 0.2rem;
}
/*** ACTUS ***/
#about iframe{
  margin-top:20px;
  width: 100% !important;
}
/*** ABOUT ***/
#about{margin-top:50px;}
#about p{
	margin:20px 0px;
}

h2,h3{font-size:1em;}
h2,h3{text-align:center;}
h4 a{
	text-decoration:none;
	}

h4 svg{
	position: relative;
    top: 2px;
	}
.section.carte {
  position: relative; /* laisse de la place pour l'image */
}

.section.carte img {
  position: absolute;
  top: 130px;
  right: 0;
  width: 350px; /* ajuste selon besoin */
  height: auto;
  z-index: 1; /* image derrière le texte */
  pointer-events: none; /* optionnel : pour que l'image ne bloque pas la sélection du texte */
}

.section.carte h3,
.section.carte p,
.section.carte ul {
  position: relative;
  z-index: 2; /* texte devant l'image */
}
/*** FOOTER ***/
#footer{
  width: 100%;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
  z-index: 1000;
  margin-top:50px;
}
#footer .vertical-container{
  align-items: center; 
}
#footer .section{
  box-shadow: none;
}
#footer .section i{
  color:#009DE0;
}
#footer #legal{
  background-color:#009DE0;
  text-align:center;
  padding:10px;
}
#footer #legal ul{
  list-style-type:none;
}
#footer #legal ul li{
  display:inline;
  margin-right:20px;
}
#footer #legal ul li, #footer #legal ul li a{
  text-decoration:none;
  color:#FFF;
}
#footer #legal ul li a:hover{
  text-decoration:underline;
}

/*** FORMULAIRE ***/
#contact{
  margin:50px 0px;
}
#contact p{
  margin: 20px 0px;
}
#contact form {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }
#contact label {
      display: block;
      margin-bottom: 5px;
      font-weight: bold;
    }
#contact input, #contact select, #contact textarea{
      width: 100%;
      padding: 10px 0px;
      border-radius: 6px;
      border: 1px solid #ccc;
      font-size: 14px;
      padding-left:10px;
    }
#contact textarea {
      resize: vertical;
      min-height: 140px;
    }
#contact .full-width {
      grid-column: 1 / -1; /* prend toute la largeur */
    }
#contact .success {
      background: #d4edda;
      color: #155724;
      padding: 15px;
      border: 1px solid #c3e6cb;
      border-radius: 5px;
      margin-bottom: 20px;
      text-align: center;
    }
#contact .errors {
      background: #f8d7da;
      color: #721c24;
      padding: 15px;
      border: 1px solid #f5c6cb;
      border-radius: 5px;
      margin-bottom: 20px;
      text-align: center;
    }
#contact .errors ul{
  list-style-type: none
}
#contact button {
      background: #007bff;
      color: white;
      border: none;
      font-weight: bold;
      cursor: pointer;
      transition: background 0.3s;
      padding: 8px 20px;       /* plus petit */
      border-radius: 5px;
      font-size: 14px;
    }
#contact button:hover {
      background: #0056b3;
    }
.button-container {
      grid-column: 1 / -1;
      text-align: right;
}
@media (max-width: 768px) {
      form {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
      }
      .button-container {
        text-align: center;
      }
}
/*** MENTIONS LEGALES ***/

#mentions-legales p, #politique-confidentialite p{
  margin:40px 0px
}
#mentions-legales h2, #politique-confidentialite h2{margin-bottom:40px;}
#mentions-legales h3, #politique-confidentialite h3{text-align:left;font-weight:bold;}

/*** DIVERS ***/
.bleu{color:#009DE0}

/* BOUTON FLOTTANT */

  #scrollTopBtn {
    position: fixed;
    bottom: 100px;
    right: 100px;
    z-index: 100;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 18px 18px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: none; /* Caché au départ */
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: background-color 0.3s;
  }

  #scrollTopBtn i{color:#FFF;}

  #scrollTopBtn:hover {
    background-color: #0056b3;
  }

/* --- MEDIA QUERIES --- */

/* Tablettes */
@media (max-width: 1024px) {
    .header-center {
        padding: 1rem;
    }
    
    #header ul {
        gap: 1rem;
        font-size: 0.95rem;
    }
    
    #header h1 {
        font-size: 1.2rem;
    }

    .vertical-container {
        flex-direction: column;
        gap: 10px;
    }

    .section.carte img {
        width: 250px;
        top: 120px;
    }
}
/*** COOKIES ***/

#cookie-banner {
    position: fixed;
    bottom: -200px; /* Hors de l'écran au départ */
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #333;
    padding: 20px 30px;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: Arial, sans-serif;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    transition: all 0.6s ease-in-out;
  }

  #cookie-banner.show {
    bottom:50px;
    opacity: 1;
  }

  #cookie-banner .cookie-icon {
    font-size: 40px;
    transition: transform 0.5s ease;
  }

  #cookie-banner p {
    margin: 0;
    font-size: 16px;
    flex: 1;
  }

  #cookie-banner button {
    background: #ff9800;
    border: none;
    padding: 12px 30px;
    color: white;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
  }

  #cookie-banner button:hover {
    background: #fb8c00;
    transform: scale(1.05);
  }

  @media (max-width: 600px) {
    #cookie-banner {
      flex-direction: column;
      text-align: center;
      gap: 15px;
    }
    #cookie-banner p {
      text-align: center;
    }
  }
/* RESPONSIVE */
@media (max-width: 768px) {
 
    #header{
      position:relative;
    }
    .header-center {
        flex-direction: column;
        align-items:center;
        gap: 1rem;
    }

    #header h1 img {
        width: 200px !important;
        text-align:center;
    }

    #header ul {
        text-align:center;
        flex-direction: column;
        width: 100%;
    }

    #header ul li a {
        font-size:1.2rem;
        padding: 0.5rem 0;
    }

    .socials {
       position:absolute;
       top:20px;
       right:20px;
    }
    .vertical-container {
        flex-direction: column;
    }

    .quote {
    font-size: 1.2rem;
    color: #009DE0;
	  margin-top:50px;
    text-align: center;
    quotes: "“" "”" "‘" "’";
    }

.quote::before {
    content: open-quote;
    font-size: 1.4rem;
    vertical-align: top;
    margin-right: 0.2rem;
}

.quote::after {
    content: close-quote;
    font-size: 1.4rem;
    vertical-align: bottom;
    margin-left: 0.2rem;
}

    .section.carte img {
        position: relative;
        width: 100%;
        top: 0;
        margin-bottom: 1rem;
    }

    .section.carte h3,
    .section.carte p,
    .section.carte ul {
        position: relative;
        z-index: 2;
    }
    #contact {
      padding:20px;
    }
    #contact form {
        grid-template-columns: 1fr;
        padding-right:10px;
    }

    .button-container {
        text-align: center;
    }

    #footer .vertical-container {
        flex-direction: column;
        align-items: center;
    }

    #footer #legal ul li {
        display: block;
        margin-bottom: 10px;
    }

  #scrollTopBtn {
      position: fixed;
      bottom: 10px;
      right: 10px;
  }

}

/* Très petits écrans (<480px) */
@media (max-width: 480px) {

}