*,
*::after,
*::before {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

html::-webkit-scrollbar {
  width: 0.01rem;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color1);
}


.evitement {
    display: inline-block;
    color: #555;
    background: #fff;
    padding: .5em;
    position: absolute;
    left: -99999rem;
    z-index: 100;       
}

a.evitement:focus {
    left: 0;
}

/* ---------------------------------NAV DÉBUT-------------------------------- */

/* -------------------------------Couleur-------------------------------------- */
:root {
  --color1: #023554;
  --color2: #68D4E1;
  --color3: #ffff;
  --color4: #7ddeea;
}


/* ---------------------------------------Nav--------------------------------------- */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: transparent;
}


.bgNav {
  display: flex;
  background-color: var(--color1);
  border-radius: 50px;
  border: #00263d solid 3px;
}

nav a {
  font-size: 3vh;
  text-decoration: none;
  padding: 1vh;
  border-radius: 10px;
}


nav img {
  width: 5vh;
  margin: 1vh;
}

.active {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color1);
  border-radius: 30px;
  color: var(--color3);
}

.deepBlue {
  color: var(--color2);
  padding-left: 2vh;
  padding-right: 2vh;
}

.blue {
  color: var(--color1);
}


.non-active {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #97c4ca;
  color: var(--color1);
  border-radius: 30px;
  padding-left: 1vh;
  padding-right: 1vh;
  transform: scale(1);
  
  /* État initial sans mise en avant */
}

/* ---------------------------------NAV FIN-------------------------------- */


section {
  padding: 8rem 10vw;
}

.montserrat {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
}

/* ACCUEIL */

.accueil {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image:
    url(images/vague3.svg),
    url(images/vague2.svg),
    url(images/épave.svg),
    url(images/rayons.svg);
  background-repeat: no-repeat;
  background-size: contain, contain, contain;
  background-position: 0% 100%, 0% 100%, 0% 95%, 50% 0%;
  margin: 0;
  padding: 0;
  background-color: #7ddeea;
}

.accueil h1 {
  font-family: 'titre';
  font-size: 7vw;
  color: var(--color1);
  text-align: center;
  margin: 0;
  padding: 0;
  position: relative;
  bottom: 100px;
  animation: wiggle 1s ease-out forwards infinite alternate-reverse;
}


@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(2deg);
  }

  50% {
    transform: rotate(-2deg);
  }

  75% {
    transform: rotate(1deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* Animation pour le pop */
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(-100px) rotate(-20deg);
  }

  25% {
    opacity: 0.3;
    transform: scale(1.2) translateY(20px) rotate(10deg);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.9) translateY(-10px) rotate(-5deg);
  }

  75% {
    opacity: 0.9;
    transform: scale(1.05) translateY(5px) rotate(2deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0deg);
  }
}

@font-face {
  font-family: 'titre';
  src: url(polices/Super\ Ocean\ Personal\ Use.woff),
    url(polices/Super\ Ocean\ Personal\ Use.woff2);
}

.manrope {
  font-family: 'Manrope', sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
}

.accueil .bulles {
  width: 5%;
  transform: rotate(120deg);
  position: relative;
  right: 5%;
}

.accueil .bulles2 {
  width: 10%;
  position: relative;
  bottom: 30%;
}

.bulles,
.bulles2 {
  position: absolute;
  animation: float 10s infinite ease-in-out;
  opacity: 0.8;
}


@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(-20px, -30px) rotate(15deg);
  }

  50% {
    transform: translate(30px, 10px) rotate(-10deg);
  }

  75% {
    transform: translate(-10px, 20px) rotate(5deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}


.about {
  background-color: #023554;
  margin-top: -5px;
  padding-bottom: 1rem;
}

.about h2 {
  font-family: 'titre';
  font-size: 3rem;
  color: white;
  text-align: left;
  text-transform: uppercase;
}

.about img {
  margin-top: 2rem;
  width: 160px;
  float: right;
  position: relative;
  bottom: 6rem;
}

.about p {
  font-size: 1.2rem;
  color: white;
  max-width: 600px;
  margin: 0 auto;
  min-width: 400px;
}

@media (max-width: 500px) {
  .about p {
    font-size: .9rem;
  }
}

.about .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.quote {
  font-family: 'Manrope', sans-serif;
  font-size: 1.5rem;
  color: white;
  text-align: center;
  max-width: 800px;
  min-width: 400px;
  background-color: #000000;
  padding: 2.5rem;
  border-radius: 15px;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.about .bateau {
  width: 250px;
  margin-top: 2rem;
  margin-bottom: 0;
}

/* SECTION ACTIVITES */

.activites {
  background-image: url(images/fonds.svg),
    url(images/fonds2.svg);
  background-repeat: no-repeat;
  background-size: contain, 100%;
  background-color: #00263d;
  background-position: 0% 0%, 100% 100%;
  min-height: 100vh;
  margin-top: -5rem;
  padding-top: 25vw;
  padding-bottom: 20rem;
}

.activites h2 {
  font-family: 'titre';
  font-size: 3rem;
  color: white;
  text-align: right;
  padding: 0;
  text-transform: uppercase;
  margin-top: 5rem;
}

.activites h3 {
  font-size: 2.5rem;
  color: white;
  padding: 0;
  text-transform: uppercase;
  margin-top: 5rem;
  margin-bottom: 0;
}

.activites p {
  font-size: 1.2rem;
  color: white;
  max-width: 400px;
  min-width: 400px;
}

.activites a {
  font-size: 1rem;
  color: white;
  margin-top: 2rem;
}

.activites .share {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.activites .share p {
  text-align: right;
  margin-left: auto;
}



/* SECTION FAQ */

.faq {
  background-color: #00263d;
  color: #fff;
}

.faq h2 {
  padding: 24px;
  margin: 0;
  font-family: 'titre', sans-serif;
  font-size: 1.5rem;
  text-align: center;
}

.accordion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .accordion-grid {
    padding: 0 32px;
    max-width: 1280px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

body:focus {
  outline: red 1px solid;
}

.accordion-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.accordion-container img {
  width: calc(100%);
}

.accordion-container .accordion {
  position: relative;
  top: -32px;
}


/* SECTION A PROPOS */

.apropos {
  background-image: url(images/fish.svg);
  background-size: contain;
  background-color: #00263d;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-top: 0;
}

.apropos .container {
  max-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.apropos h2 {
  font-family: 'titre';
  font-size: 3rem;
  color: white;
  text-align: left;
  padding: 0;
  text-transform: uppercase;
}

.apropos p {
  font-size: 1.2rem;
  color: white;
  max-width: 800px;
  min-width: 400px;
}

.apropos h3 {
  font-size: 1.8rem;
  font-weight: bold;
}


.api {
  padding: 0;
}

.api h1,
.api p {
  background-color: var(--color1);
  color: white;
  text-align: center;
  margin: 0;
}

.api p {
  padding: 15px;
  line-height: 1.6;
}

.api .ocean {
  position: relative;
  height: 100px;
  width: 100%;
}

.api .bateau {
  position: absolute;
  margin-left: 15px;
  z-index: 2;
  margin-bottom: 20px;
}

.api .vagues {
  position: relative;
  height: 100%;
  width: 100%;
  background-color: transparent;
}

.api .vague {
  position: absolute;
  bottom: 0;
  left: 0;
  background: url(images/vaguefooter.svg);
  width: 100%;
  height: 250px;
  background-size: 1500px 300px;
}

.api .continuite {
  width: 100%;
  height: 50px;
  background-color: var(--color1);
}

.api #vague1 {
  bottom: 0px;
  opacity: 1;
  z-index: 5;
  animation: wave 5.5s infinite ease-in-out;
}

.api #vague2 {
  bottom: 10px;
  opacity: 0.5;
  z-index: 4;
  animation: wave-inversed 3s infinite ease-in-out;
}

.api #vague3 {
  bottom: 15px;
  opacity: 0.7;
  z-index: 3;
  animation: wave 3.5s infinite ease-in-out;
}


@keyframes wave {
  0% {
    background-position-x: 1500px;
    transform: rotateY('100px');
  }

  50% {
    transform: rotateY('0px');
  }

  100% {
    background-position-x: 0px;
    transform: rotateY('100px');
  }
}

@keyframes wave-inversed {
  0% {
    background-position-x: 0px;
    transform: rotateY('100px');
  }

  50% {
    transform: rotateY('0px');
  }

  100% {
    background-position-x: 1500px;
    transform: rotateY('100px');
  }
  }

.faq h2 {
  font-family: 'titre';
  font-size: 3rem;
}
/*                                                      style du jeu sirene                                 */
.part{
  font-size: larger;
  color: #00263d;
  
}

.sirene{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.sirene img{
  width: 100%;
  margin-bottom: 20px;
}

.button-choice{
  background-color: #0235540f;
  color: #00263d;
  border: none;
  padding: 10px 20px;
  margin: 10px;
  cursor: pointer;
  border-radius: 4px;
  padding: 3vh;
  font-size: 1rem;
}

.situation{
  display: none;
  font-weight: bold;
  max-width: 800px;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color:#00263d ;
  display: flex;
  justify-content: center;
}

.consequence{
  display: none;
  font-weight: bold;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color:#00263d ;
  background-color: #587b7f23;
}

p{
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
}

.choice{
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 30vh;
  justify-content: center;
  text-align: center;
}

.next-game button{
  background-color:#00263d;
  color: white;
  border: none;
  padding: 10px 40px;
  margin: 4px;
  cursor: pointer;
  border-radius: 10px;
  font-weight: bold;
  font-size: 2vh;
}

.api h2 {
  font-size: 1.5rem;
  color: white;
  text-align: center;
  padding: 0;
  text-transform: uppercase;
}