/* ===================== */
/* RESET */
/* ===================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  background: #F8FCFB;
  color: #2F3A3D;
  padding-top: 80px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===================== */
/* HEADER + MENU */
/* ===================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #61C5AA;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
  z-index: 3000;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.logo img {
  height: 40px;
}

/* MENU DESKTOP */
.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.burger {
  display: none;
  font-size: 32px;
  cursor: pointer;
  color: white;
}

/* MENU MOBILE */
@media (max-width: 768px) {

  body {
    padding-top: 90px;
  }

  .burger {
    display: block;
  }

  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 75px;
    right: 10px;
    width: 220px;
    background: #0d1b2a;
    padding: 15px;
    border-radius: 10px;
    z-index: 9999;
  }

  .nav.active {
    display: flex !important;
  }

  .nav a {
    padding: 10px 0;
    font-size: 16px;
  }
}

/* ===================== */
/* TITRES */
/* ===================== */

h1, h2, h3 {
  font-family: "Poppins", sans-serif;
  color: #57C1A5;
}

h1 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
}

h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

/* ===================== */
/* STRUCTURE CORRIGÉE (IMPORTANT FIX) */
/* ===================== */

main,
.section,
.hero,
.split,
.cards,
.salle-armes,
.partenaires,
.tarifs-page,
footer {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* ===================== */
/* HERO */
/* ===================== */

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.hero-left {
  flex: 1.3;
}

.hero-right {
  flex: 1;
}

.hero-right img {
  width: min(420px, 100%);
}

/* MOBILE HERO */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }
}

/* ===================== */
/* CTA */
/* ===================== */

.cta-block {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.cta {
  background: #009FBE;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

/* ===================== */
/* ACTIVITÉS (FIX ALIGNEMENT 3 COLONNES) */
/* ===================== */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  text-align: center;
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card h3 {
  margin: 15px 0 10px;
  font-size: 20px;
}

.card p {
  font-size: 15px;
  padding: 0 15px 20px;
}

/* MOBILE */
@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* ===================== */
/* SPLIT */
/* ===================== */

.split {
  display: flex;
  gap: 40px;
  align-items: center;
}

/* MOBILE */
@media (max-width: 768px) {
  .split {
    flex-direction: column;
    text-align: center;
  }
}

/* ===================== */
/* SALLE / HORAIRES */
/* ===================== */

.salle-armes,
.horaires {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* MOBILE */
@media (max-width: 768px) {
  .salle-armes,
  .horaires {
    flex-direction: column;
  }
}

/* ===================== */
/* MAÎTRE D’ARMES (CENTRAGE) */
/* ===================== */

.maitre-armes {
  text-align: center;
}

.maitre-armes p {
  max-width: 800px;
  margin: 0 auto 15px auto;
}

/* ===================== */
/* BANNIERES PAGES INTERNES */
/* FAQ - HORAIRES - TARIFS */
/* ===================== */

.horaires-banner img,
.banner-inscription img,
.faq-banner img {
  width: 70%;
  max-width: 700px;
  margin: 30px auto;
  border-radius: 12px;
}

/* ===================== */
/* PARTENAIRES (CORRIGÉ) */
/* ===================== */

.logos-partenaires {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.logos-partenaires img {
  width: 80px !important;
  height: auto !important;
  object-fit: contain;
}


/* ===================== */
/* TARIFS */
/* ===================== */

.tarifs-table {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  border-collapse: collapse;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.tarifs-table thead {
  background: #57C1A5;
  color: white;
}

.tarifs-table th,
.tarifs-table td {
  padding: 18px;
  text-align: left;
}

.tarifs-table tbody tr:nth-child(even) {
  background: #F8FCFB;
}

.tarifs-table tbody tr:hover {
  background: #EAF7F3;
}

.tarifs-table .price {
  font-weight: bold;
  color: #009FBE;
}

/* MOBILE TABLE FIX */
@media (max-width: 768px) {

  .horaires-banner img,
  .banner-inscription img,
  .faq-banner img {
    width: 100%;
    max-width: 100%;
  }

}

  .tarifs-table th,
  .tarifs-table td {
    white-space: nowrap;
    font-size: 14px;
  }

/* ===================== */
/* FOOTER */
/* ===================== */

footer {
  text-align: center;
  padding: 30px 20px 90px;
  margin-top: 60px;
  background: #E8F5F1;
}
/* ===================== */
/* RÉSEAUX SOCIAUX FOOTER */
/* ===================== */

.reseaux img {
  width: 22px !important;
  height: 22px !important;
  object-fit: contain;
  display: block;
}

/* ===================== */
/* TABLEAU HORAIRES */
/* ===================== */

.horaires-table {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  border-collapse: collapse;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.horaires-table thead {
  background: #57C1A5;
  color: white;
}

.horaires-table th {
  padding: 16px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
}

.horaires-table td {
  padding: 15px;
  text-align: center;
  font-size: 15px;
  border-bottom: 1px solid #E8F5F1;
}

.horaires-table tbody tr:nth-child(even) {
  background: #F8FCFB;
}

.horaires-table tbody tr:hover {
  background: #EAF7F3;
}

/* Dernière ligne lieu */
.horaires-table .lieu-row {
  background: #E8F5F1;
}

.horaires-table .lieu-cell {
  text-align: center;
  font-size: 15px;
  padding: 20px;
}


/* MOBILE */
@media (max-width:768px) {

  .horaires-table {
    font-size: 14px;
  }

  .horaires-table th,
  .horaires-table td {
    padding: 10px 8px;
  }

}
/* ===================== */
/* PAGE CONTACT */
/* ===================== */

.contact-page {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.contact-page h1 {
  text-align: center;
  margin-bottom: 15px;
}

.contact-intro {
  text-align: center;
  margin-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.contact-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.contact-card h2 {
  margin-top: 0;
  font-size: 24px;
}

.contact-card p {
  line-height: 1.6;
}

.contact-btn {
  display: inline-block;
  background: #009FBE;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}


/* ===================== */
/* MOBILE CONTACT */
/* ===================== */

@media (max-width:768px) {

  .contact-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .contact-card {
    padding: 20px;
  }

}
.contact-page h1,
.contact-page .contact-intro {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================== */
/* CORRECTION LOGOS RÉSEAUX FOOTER */
/* ===================== */

footer .reseaux {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 0;
  margin: 20px auto;
}

footer .reseaux a {
  display: flex;
  align-items: center;
  justify-content: center;
}

footer .reseaux img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ===================== */
/* PAGE ESCRIME COTIÈRE 01 */
/* ===================== */

.escrime-page {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

.escrime-page h1 {
  text-align: center;
  margin-bottom: 30px;
}

.escrime-page h2 {
  margin-top: 40px;
}

.escrime-page p {
  line-height: 1.7;
  text-align: justify;
}

.escrime-page ul {
  line-height: 1.8;
  padding-left: 25px;
}


/* MOBILE */
@media (max-width:768px) {

  .escrime-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .escrime-page p {
    text-align: justify;
  }

}

/* ===================== */
/* PAGE SEO ESCRIME COTIERE */
/* ===================== */

.seo-page {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.seo-page h1 {
  text-align: center;
  margin-bottom: 35px;
}

.seo-page h2 {
  margin-top: 45px;
  margin-bottom: 20px;
}

.seo-page p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
  line-height: 1.7;
}

.seo-page ul {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 25px;
  line-height: 1.8;
}

.contact-seo {
  margin-top: 30px !important;
  text-align: center !important;
}

/* MOBILE */
@media (max-width:768px) {

  .seo-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .seo-page p,
  .seo-page ul {
    max-width: 100%;
  }

}