@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,400..700,1,-50..200');
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

.pacifico-regular {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  font-style: normal;
}

/*  ------------- REGLES GENERALES ------------- --------------------------------------------------------------*/
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
  background-color: #fff;
}

nav {
  height: 50px;
}

img,
.navbar {
  padding: 0;
  margin: 0;
}

a {
  color: rgba(80, 80, 80, 0.9);
  text-decoration: none;
}

/* ------------- STRUCTURE ------------------------------------------------------------------------------------------*/

a.nav-link {
  font-size: 1.1em;
  color: #FDCD23 !important;
  padding: 5px;
}

.lebleu{
  color:#051B6A;
}

.navbar a {
  color: #fff !important;
  opacity: 1;
  white-space: nowrap;
  border-bottom: rgba(0, 0, 0, 0) solid 1px;
  border-top: rgba(0, 0, 0, 0) 1px;
}

#navbarCollapse a:hover {
  color: #FFCC33 !important;
}


#navbarCollapse {
  margin-top: 6px;
  /*margin-right: 200px;*/
}

.dropdown-toggle::after {
  content: none;
}
/* Base Divider class */
.divider {
  display: flex;

  &:before,
  &:after {
    content: "";
    flex: 1;
  }
}

// Base line
.line {
  align-items: center;
  margin: 1em -1em;

  &:before,
  &:after {
    height: 1px;
    margin: 0 1em;
  }
}


  .one-line {
    &:before,
    &:after {
      background: black;
    }
  }
/* ==================== HEADER + VAGUE FINALE ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #051B6A;
    z-index: 1030;
    box-sizing: border-box;
}
.wave-container {
    position: fixed;
    top: 50px; /* parfaitement sous ton header */
    left: 0;
    width: 100%;
    height: 30px; /* plus grand pour amplitude ++ */
    overflow: hidden;
    z-index: 500;
    pointer-events: none;
}

.wave-container svg {
    width: 100%;
    height: 100%;
}

.wave1 {
      fill: #00B0F4;
/* bleu du header */
    opacity: 0.5;
}

.wave2 {
    fill: #051B6A;
    opacity: 1; /* sous-vague douce */
}
.wave-container2 {
    position: fixed;
    bottom: 20px; /* pile sous ton header */
    left: 0;
    width: 100%;
    height: 20px; /* profondeur max des vagues */
    overflow: hidden;
    z-index: 500;
    pointer-events: none;
}

.wave-container2 svg {
    width: 100%;
    height: 100%;
}

#logo {
  position:absolute;
  top:0px;
}
#rainbow{
  position:absolute;
  left: 50%;
  transform: translateX(-50%);
  top:55px;
  opacity:0.9;
  z-index: 5;
}
footer a{
  color: rgb(255, 230, 1);
}

footer {
  width: 100%;
  bottom: 0;
  height: 20px;
  background: #051B6A;
  /*padding-top: 5px;*/
  text-align: center;
  vertical-align: center;
  position: fixed;
  color: #fff;
}


#main {
  position: relative;
  height: 100%;
  width: 100%;
 padding: 50px 0 20px 0;
  /* Header height and footer height */
  margin: 0 auto 0 auto;
  /* Center content */
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}


#contenu {
  height: 100%;
  margin: auto;
  padding: 0px;
  /*text-align: center;*/
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
  overflow: auto;
}


#article,
#contact,
#tourisme,
#mentions {
  width: 100%;
  height: 100%;
  padding: 0px;
}
#accueil{
  width: 100%;
  height: 100%;
  padding: 0px;
  margin-top:-100px;
}
hr {
  background-color: #FDCD23;
  border: none;
  text-align: center;
  max-width: 100px;
  margin: 20px auto 20px auto;
  height: 2px;
}

.textmentions {
  text-align: justify;
  position: relative;
  margin: auto;
  background-color: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25), 0 0 50px rgba(0, 0, 0, 0.15) inset, 0 0px 10px rgba(255, 153, 51, 0.4);
  padding: 25px;
  margin-top: 50px;
  margin-bottom: 50px;
  color: black;
}

.textmentions h1 {
  font-family: arial;
  color: #990000;
  font-size: 1.5em;
  font-style: normal;
  font-Weight: bold;
  text-decoration: none;
  text-align: center;
}

#menu2 {
  margin: auto;
  text-align: center;
  position: relative;
  height: 30px;
  top: 1px;
  pointer-events: auto;
}

#menu2 img {
  padding: 0px 5px 0px 5px;
  margin-top: -2px;
}

#menu2 li {
  display: inline;
  list-style: none;
}

#menu2 a {
  text-align: center;
  display: inline-block;
}

#menu2 a:hover {
  transform: scale(0.9);
}

.fin {
  padding-bottom: 75px;
}


#textAccueil {
  width: fit-content;
  margin-left: 13vw;
}

.titre_margin {
  margin: auto;
}

#carouselExampleControls,
#divArticle,
#page,
.contact,
#actu,
#presentationEtablissement {
  width: 90%;
  margin: 0 5%;
}

.carousel-inner {
  margin: 0 0 0 17.5px;
}

.couleur {
  margin: auto 0px 6px 11px;
}

#horaire {
  margin-top: 25px;
}

.horaire h4 {
  font-weight: 600;
  white-space: nowrap;
}

.cadre {
  background-color: rgba(32, 75, 154, 1);
}

.btn {
  padding: 12px;
}

.notif {
  width: calc(100% - 2rem);
  top: 3%;
  margin-left: calc(2.5% + 1rem);
  z-index: 1;
}

.btnArrow {
  width: 5%;
}

.santePro {
  margin-bottom: 20px;
}

.menuRapide {
  width: 65px;
  height: 65px;
  margin: auto;
  background-color: #FDCD23;
  border-radius: 50%;
}

.menuRapide img {
  width: 30px;
  height: 30px;
  margin: auto;
}

.menu h6 {
  text-align: center;
}

.cards-wrapper {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.card-link-wrapper .btnActu {
    pointer-events: none;
}

.card {
  width: 300px;
  min-height: 310px;
  transition: transform 0.2s;
  z-index: 10;
}

.card:hover {
  transform: translateY(4px) scale(0.97);
}

#actuBtn {
  position: relative;
}

.carousel-control-prev,
.carousel-control-next {
  background-color: #FDCD23;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 30px;
  z-index: 600;
}


.icon {
  font-size: 40px;
  color: #fff;
}

/* Init couleur */
.vert {
  background-color: #78B802;
  color: #fff;
}

.jaune {
  background-color: #FDCD23;
  color: #fff;
}

.bleu {
  background-color: #051B6A;
  color: #fff;
}


/* --------------------------------Gestion de l'actu ---------------------------------*/
@media (min-width: 1720px) {
  .carousel-inner {
    display: flex;
  }

  .carousel-item {
    margin-right: 0;
    flex: 0 0 20%;
    display: block;
  }
}

@media (max-width: 1720px) {
  .carousel-inner {
    display: flex;
  }

  .carousel-item {
    margin-right: 0;
    flex: 0 0 25%;
    display: block;
  }
}

@media (max-width: 1390px) {
  .carousel-inner {
    display: flex;
  }

  .carousel-item {
    margin-right: 0;
    flex: 0 0 33.3333333%;
    display: block;
  }
}

@media (max-width: 1040px) {
  .carousel-inner {
    display: flex;
  }

  .carousel-item {
    margin-right: 0;
    flex: 0 0 50%;
    display: block;
  }
}

@media (max-width: 700px) {
  .carousel-inner {
    margin: 0;
    display: flex;
  }

  .carousel-item {
    margin-right: 0;

    flex: 0 0 100%;
    display: block;
  }

  .first {
    margin-left: calc(50% - 150px);
  }
}

@media (max-width: 992px) {

  #navbarCollapse.show,
  #navbarCollapse.collapsing {
    background-color: white;
    padding: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 0.5rem 0.5rem;
  }


  #navbarCollapse {
    margin: 0;
  }

  #test {
    margin-right: 25px;
  }
}

@media (max-height: 1170px){
  .textAccueil{
    -webkit-line-clamp: 2 !important;
  }
}

@media (max-height: 1110px){
  .textAccueil{
    -webkit-line-clamp: 1 !important;
  }
}

@media (max-height: 1060px){
  .textAccueil{
    /*display: none !important;*/
  }
}

@media (max-height: 1000px){
  .btnActu{
    display: none !important;
  }

  .btnTouteActu{

  }
}

@media (max-height: 780px){
  .imgAccueilActu{
    max-height: 100px !important;
    min-height: 100px !important;
  }
}




/*#section,
#section>div {
  height: calc(100vh - 130px);
  min-height: calc(100vh - 130px);
}

.pagination {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1000;
}

#pagination-dots {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pagination-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #aaa;
  cursor: pointer;
  transition: all 0.3s;
}

.pagination-dot.active {
  background-color: #333;
  transform: scale(1.4);
}

.pagination-arrow {
  font-size: 18px;
  cursor: pointer;
  color: #666;
  transition: 0.3s;
}

.pagination-arrow.disabled {
  opacity: 0.3;
  pointer-events: none;
}


.scroll-classique {
  height: 100vh;
  overflow-y: auto;
  margin-bottom: 2rem;
}*/


#presentationFirst {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url(../design/bg.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  overflow: hidden;
}

.presentation-text {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 1.7rem;
  text-shadow: 0 2px 8px #0008;
}

.fond {
  bottom: -1px;
  height: auto;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  width: 100%;
  z-index: 3;
}

.imgAccueil {
  width: auto;
}

#description{
  width: 450px;
  height: 200px;
  background-color: #3c5f49;
  color: #fff;
  position: absolute;
  z-index: 100;
  top: 5%;
  right: 5%;
  padding: 20px;
  border: #af7f51 7px solid;
}

.carousel, .carousel-inner, .carousel-item, .card{
  height: 100%;
}

.psv-fullscreen-button{
  margin-left: auto !important;
}
.title-line {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 1rem; /* espace entre texte et traits */
  margin: 1.5rem 0;
}

.title-line::before,
.title-line::after {
  content: "";
  flex: 1; /* les lignes prennent tout l’espace disponible */
  height: 2px;
  background-color: #f3c623; /* jaune */
}

.title-line span {
  white-space: nowrap; /* empêche le titre de se couper */
  font-size: 1.4rem;
  font-family: "Pacifico", sans-serif; /* adapte si besoin */
  color: #0a2a75; /* bleu */
}

.imgPerso{
    max-width: 300px;
    height: auto;
}
.image2 {
  margin-top: -190px;
}
#boucle {
  position:absolute;
  max-height: 55px;
  top: 15px;
  right:0px;
}
.card-title{
  color:#051B6A;
}
#basg {
  z-index: 999;
  bottom: 10px;
  position: absolute;
  max-height: 50px;
  width:auto;
}
.audessus{
  z-index: 900;
}
h3{
  background: #051B6A;
  font-family: "Pacifico", cursive;
  padding:5px;
  color:#FDCD23;
}
h6{
  background: #051B6A;
  font-family: "Poppins", cursive;
  padding:5px;
  color:#FDCD23;
  text-align: center;
}
.couleur{
  height: 35px;
  width: auto;
}
#articleModal .modal-content {
    overflow: hidden;
}

.navbar-nav > .nav-item > .nav-link {
    position: relative;
    display: inline-block;           /* Très important ! */
    color: white !important;
    padding: 8px 12px !important;    /* petite marge autour du texte */
    transition: color 0.3s ease;
}

/* La ligne jaune */
.navbar-nav > .nav-item > .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 4px;
    left: 50%;
    bottom: 6px;                     /* distance par rapport au bas du texte */
    background: linear-gradient(90deg, #F5C81A, #FFD700);
    border-radius: 2px;
    transition: width 0.4s ease, left 0.4s ease;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(245, 200, 26, 0.4);
}

/* Au hover ou page active → la ligne s'étend */
.navbar-nav > .nav-item:hover > .nav-link::after,
.navbar-nav > .nav-item.active > .nav-link::after {
    width: calc(100% - 20px);   /* laisse un peu d'espace sur les côtés pour que ça fasse plus élégant */
    /* ou width: 100%; si tu veux vraiment jusqu'au bord */
}

/* Couleur plus claire au survol */
.navbar-nav > .nav-item:hover > .nav-link,
.navbar-nav > .nav-item.active > .nav-link {
    color: #FFF8C4 !important;
}

.partenaire{
  max-height: 150px;
  width:auto;
}

.navbar-collapse {
  background-color: #051B6A !important;
  color:white;
}
.navbar-toggler {
  background-color: #051B6A !important;
  color:white;
}
