/*general*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  background-color: white;
  color: white;
  line-height: 1.6;
  padding: 0;
}

/*liens*/
a {
  color: inherit;
  text-decoration: underline ;
  transition: font-weight 0.2s ease;
}

a:hover {
    font-weight: bold;
}

/*navbar*/
.navbar {
  background-color: #ee564e;
  padding: 1.5rem 0;
}

.nav-liens {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.nav-liens li a {
  display: inline-block;
  padding: 0.4rem 1.5rem;
  border: 2px solid white;
  width: 220px;
  border-radius: 50px;
  color: white;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background-color: transparent;
  transition: all 0.3s ease;
}

.nav-liens li a:hover {
  background-color: white;
  color:#ee564e;
}

.nav-liens li a.active {
  background-color: white;
  color: #ee564e;
}

.bloc-liens-utiles {
  max-width: 1065px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  background-color: transparent;
}

.encadre-liens {
  border: 2px solid white;
  border-radius: 25px;
  padding: 1.5rem;
  background-color: #00273A; /* même bleu que section */
  color: white;
}

.encadre-liens h3 {
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: white;
}

.encadre-liens p {
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.encadre-liens ul {
  list-style-type: disc;
  padding-left: 1.2rem;
}

.encadre-liens li {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  color: white;
}

.encadre-liens a {
  color: #9ed5ff;
  text-decoration: underline;
}

.encadre-liens a:hover {
  color: white;
}


/*titres*/
h1 {
  text-align: center;
  font-size: 2rem;
  padding-top: 2rem;
  letter-spacing: 0px;
  background-color: #00273A;
  min-height: 3.5rem;
}

h2 {
  text-align: center;
  margin: 1.3em 0 1em;
  letter-spacing: 2px;
  min-height: 2.8rem;
}

main {
  min-height: 100vh;
}

.nom-du-site {
  display: inline-block;
  min-width: 7ch;
  font-weight: bold;
}


/*alerte-rouge*/
.alerte-rouge {
  position: relative;
  background-color: #ee564e;
  color: white;
  padding: 1.5rem;
  border-radius: 50px;
  box-shadow: 0 2px 5px #00273A;
  width: 1065px;
  margin: 1.5rem auto;
  z-index: 2;
}

.icone-alerte {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ee564e;
  border: 5px solid white;
  border-radius: 50%;
  padding: 0.6rem;
  box-shadow: 0 2px 5px #00273A;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
}
.icone-alerte svg {
  width: 28px;
  height: 28px;
}

/*biseau*/
.section-biseau {
  position: relative;
  background-color: #00273A;
  color: white;
  padding: 2rem 3rem 0.5rem; 
  z-index: 1;
  overflow: hidden;
}

.section-biseau2 {
  position: relative;
  background-color: #00273A;
  color: white;
  padding: 2rem 3rem 0.5rem; 
  padding-bottom: 5rem;
  z-index: 1;
  overflow: hidden;
}

.section-biseau::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 180px;
  background-color: white;
  clip-path: polygon(0 70px, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.section-biseau2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 180px;
  background-color: white;
  clip-path: polygon(0 70px, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

/*explication*/
.explication {
  width: 1065px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #00273A;
  text-align: left;
  padding: 1.2rem 1.5rem;
}

.explication p {
  margin-bottom: 1.5rem;
}

.explication span.nom-du-site {
  font-weight: 700;
}

/*changement de fond*/
.fond-vert {
  background-color: #1CBD9B;
  color: white;
  padding: 3rem 2rem;
}

/*alerte verte*/
.alerte-verte {
  width: 1065px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: white;
  text-align: center;
  padding: 2rem 1.5rem; 
}

.bouton-alerte-verte {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border: 2px solid white;
  width: 90%;
  border-radius: 50px;
  color: white;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background-color: transparent;
  transition: all 0.3s ease;
}

.bouton-alerte-verte:hover {
  background-color: white;
  color:#00273A;
}

.explication p, .alerte-rouge p, .alerte-verte p {
  font-size: 1rem;
  line-height: 1.8;
  min-height: 1.8em;
}

/*conseils*/
.conseils {
  width: 1065px;
  padding: 3rem;
  color: #dbe9ef;
   margin: 0 auto;
}

.conseils h2 {
  font-size: 1.2rem;
  text-transform: uppercase;
  color: white;
  text-align: left;
  margin-bottom: 1rem;
}

.conseils p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #c8d9e0;
}

.conseils ol {
  padding-left: 1.5rem;
  counter-reset: item;
}

.conseils li {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 1rem;
  color: #dbe9ef;
}

/*tableau csv*/
.table-fraudes {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  border-collapse: separate;
  color: black;
  min-height: 300px;
}

.table-fraudes table {
  width: 100%;
}

.table-fraudes thead {
  display: none;
}

.table-fraudes tr {
  background-color: #f7f7f7;
  color : #00273A;
  width: 1065px;
  border-radius: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.table-fraudes td {
  padding: 1.2rem 1.5rem;
  border: none;
  font-size: 0.95rem;
  vertical-align: middle;
}

.table-fraudes td:first-child {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  gap: 0.5rem;
  flex: 1;
}

.table-fraudes td:last-child {
  text-align: right;
}

.btn-voir {
  background-color: #001d2d;
  color: white;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 999px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-voir:hover {
  background-color: #003c5a;
}

/*formuliare contact*/
.formulaire-contact {
  max-width: 1065px;
  margin: 5rem auto;
  padding: 2rem;
  color: #00273A;
}

.formulaire-contact h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.checkbox-container input[type="checkbox"] {
  margin-top: 0.3rem;
  transform: scale(1.2);
  flex-shrink: 0;
}

.checkbox-container label {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #00273A;
}

.checkbox-container ul {
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.formulaire-contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.formulaire-contact input,
.formulaire-contact textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  color: #00273A;
}

.formulaire-contact button {
  background-color: #1CBD9B;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.8rem 2rem;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.formulaire-contact button:hover {
  background-color: #17aa8a;
}


/*changement de fond*/
.fond-blanc {
  background-color: white;
  color: #00273A;
  padding: 3rem 2rem;
  text-align: center;
  z-index: 5;
  position: relative;
}

/*mentions legales*/
.mentions-legales {
  padding: 2rem;
  background-color: white;
  color: #333;
  line-height: 1.6;
  max-width: 1065px;
  margin: 0 auto;
}

.mentions-legales h1 {
  text-align: left;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: #00273A;
}

.mentions-legales h2 {
  text-align: left;
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #00273A;
}

.mentions-legales p {
  margin-bottom: 1.2rem;
  max-width: 900px;
}


/*footer*/
footer {
  text-align: center;
}

/*menu burger telephone*/
.burger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  position: absolute;
  top: 0.2rem;
  right: 1.5rem;
  z-index: 1001;
}

/* responsive*/
@media screen and (max-width: 768px) {
  .burger {
    display: block;
  }

  .nav-liens {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }

  .nav-liens.open {
    max-height: 500px;
    margin-top: 1rem;
  }

  .nav-liens li {
    width: 100%;
    text-align: center;
  }

  .nav-liens li a {
    width: 90%;
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 0;
    background-color: #ee564e;
  }

  .nav-liens li a:hover,
  .nav-liens li a.active {
    background-color: white;
    color: #ee564e;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .formulaire-contact {
    padding: 1.5rem 1rem;
  }

  .formulaire-contact h2 {
    font-size: 1rem;
  }

  .mentions-legales h1 {
    font-size: 1.5rem;
  }

  .mentions-legales h2 {
    font-size: 1.1rem;
  }

  .mentions-legales p {
    font-size: 0.95rem;
  }

  .checkbox-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .checkbox-container label {
    font-size: 0.9rem;
  }

  .conseils {
    padding: 1.5rem 1rem 1rem;
  }

  .conseils h2 {
    font-size: 1rem;
  }

  .conseils p,
  .conseils li {
    font-size: 0.9rem;
  }

  .section-biseau2 {
    padding: 1.5rem 1.5rem 3rem;
    padding-bottom: 7rem; 
    overflow: hidden;
  }

  .explication {
    font-size: 1rem;
  }

  .bouton-alerte-verte {
    font-size: 0.9rem;
    width: 100%;
  }

  .nom-du-site {
    min-width: auto;
    word-break: break-word;
  }
}



@media screen and (max-width: 1080px) {
  .alerte-rouge,
  .explication,
  .alerte-verte,
  .conseils,
  .formulaire-contact,
  .mentions-legales {
    width: 90%;
  }

  .formulaire-contact,
  .mentions-legales {
    padding: 2rem 1rem;
  }

  .table-fraudes tr {
    width: 90%;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .table-fraudes td {
    width: 100%;
    text-align: left;
    padding: 0.8rem 0;
  }

  .table-fraudes td:last-child {
    padding-top: 0;
  }

  .btn-voir {
    width: 100%;
    padding: 0.6rem;
    text-align: center;
  }

  .formulaire-contact button,
  .formulaire-contact input,
  .formulaire-contact textarea {
    width: 100%;
  }

  .checkbox-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .bouton-alerte-verte {
    width: 100%;
  }
}


@media screen and (max-width: 480px) {
  body {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.6rem;
    padding-top: 1rem;
  }

  h2 {
    font-size: 1rem;
    min-height: 2rem;
  }

  .icone-alerte {
    width: 45px;
    height: 45px;
    padding: 0.3rem;
  }

  .icone-alerte svg {
    width: 20px;
    height: 20px;
  }

  .alerte-rouge,
  .explication,
  .alerte-verte,
  .conseils,
  .formulaire-contact {
    padding: 1rem;
  }

  .conseils {
    padding: 1rem 0.5rem 0.5rem;
  }

  .table-fraudes tr {
    padding: 1rem 0.5rem;
  }

  .table-fraudes td {
    font-size: 0.9rem;
  }

  .btn-voir {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .formulaire-contact input,
  .formulaire-contact textarea {
    font-size: 0.95rem;
  }

  .formulaire-contact button {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

  .checkbox-container label {
    font-size: 0.85rem;
  }

  .mentions-legales h1 {
    font-size: 1.3rem;
  }

  .mentions-legales h2 {
    font-size: 1rem;
  }

  .mentions-legales p {
    font-size: 0.9rem;
  }

  .nav-liens li a {
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
  }

  .section-biseau2 {
    padding: 1rem 1rem 2rem;
  }

  .bouton-alerte-verte {
    font-size: 0.85rem;
  }

  .nom-du-site {
    font-size: 0.9rem;
  }
}


