/* Reset minimal */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #111;
  scroll-behavior: smooth;
}

/* Images toujours contenues */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Titres adaptatifs */
h1 {
  font-size: clamp(24px, 5vw, 48px);
}
h2 {
  font-size: clamp(18px, 3vw, 28px);
}

/* Barre de navigation fixe */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 10px 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  z-index: 1000;
  height: 70px;
}

/* Logo */
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  width: 55px;
  height: 55px;
}
.brand {
  font-weight: 700;
  font-size: 18px;
}
.rougedojo {
  color: #e4332a;
  font-size: 16px;
  font-weight: 500;
}

/* Menu principal */
.menu {
  margin-right: 10px; 
}
.nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav > li {
  position: relative;
}

/* Liens du menu */
.nav > li > a {
  text-decoration: none;
  color: #111827;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
  border: 2px solid #fd0303; 
  border-radius: 30px 30px 0 30px;
  transition: all 0.25s ease;
  display: inline-block;
}

/* Ouvrir le sous-menu au survol */
.nav > li:hover > .submenu {
  opacity: 1;
  max-height: 500px;
  pointer-events: auto;
}
.bleu {
  text-decoration: none;
  padding: 10px 14px;
  width: 100%;
  font-size: 15px;
  font-weight: 500;
  border: 2px solid #fd0303;
  border-radius: 30px 30px 0 30px;
  display: inline-block;
  background-color: #e4332a; 
  color: #fff;
}

/* Effet au survol */
.nav > li > a:hover {
  background-color: #e4332a; 
  color: #fff;
}

/* Effet au focus */
.nav > li > a:focus-visible {
  outline: none;
  background-color: #e4332a;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(254, 27, 27, 0.5);
}

/* Effet au clic */
.nav > li > a:active {
  color: #facc15; 
}

/* Sous-menus */
.submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  opacity: 0;
  max-height: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  min-width: 160px;
}
.submenu li a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #111827;
  font-size: 14px;
  transition: background 0.2s ease;
}
.submenu li a:hover {
  background:#ec928e;
  color: #fff;
}
.submenu li a:active {
  color:#facc15
}
.submenu li a:focus-visible {
  outline: none;
  background:#e4332a;
  color:#fff;
  box-shadow: 0 0 0 3px rgba(254, 27, 27, 0.5);
}

/* Bouton burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: 10px;
}
.burger span {
  width: 25px;
  height: 3px;
  background: #111;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Contenu principal */
.page {
  max-width: 100%;
}
.kendo1, .iaido1, .dojo1 {
  position: relative;
  width: 100%;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  padding: 20px;
  margin-top: 70px;
}
.kendo1 h1, .kendo1 h2,
.iaido1 h1, .iaido1 h2,
.dojo1 h1, .dojo1 h2,
.news1 h1, .news1 > h2 {
  text-shadow: 1px 1px 5px black;
  margin-bottom: 20px;
}
.kendo1 {
  background-image: url("../images/kendo.jpg");
}
.iaido1 {
  background-image: url("../images/422A1221-4.jpg");
}
.dojo1 {
  background-image: url("../images/6785sl01.jpg");
}
.news1 {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: top;
  align-items: center;
  text-align: justify;
  color: #fff;
  margin-top: 70px; /* pour ne pas cacher sous la navbar */
}
.fondnews {
  background-image: url(../images/minijardin.webp);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.news1 h3 {
  padding-top: 20px;
}
.kendo2, .nouvelles {
  max-width: 75%;
  margin: 0 auto;
  padding: 20px 20px 60px 20px;
  color: black;
  text-align: justify;
}
.kendo2 h1, .prof h1, .horairescours h1, .inscription h1 {
  text-align: center;
  padding-bottom: 30px;
  color: #274e8a;
}
.kendo2 p {
  padding-bottom: 10px;
}
.news1 p {
  padding: 10px 0 10px 0;
}
.lienRJN {
  text-align: center;
  margin: 15px 0;
  padding-bottom: 10px;
}
.lienRJN a {
  color: #e4332a; /* rouge normal */
  margin: 0 10px;
  display: inline-block;
  font-weight: 600;
}
.lienRJN a:visited {
  color: #000000; /* noir après visite */
}
.lienRJN a:active {
  color: #e4b92a; /* jaune au clic */
}

/* Sections */
.prof, .horairescours, .inscription {
  width: 100%;
  padding: 70px 20px;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.prof {
  background: #f9f9f9;
}
.prof-header {
  position: relative;
  overflow: hidden;
  width: auto;
}
.prof-headeriframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.prof-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #2c3e50;
}
.prof-container, .horaires-container, .inscription-container,
.news-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.news-container {
  background: none;
  color: #000;
}
.prof-card, .horaires-card {
  max-width: 400px;
  flex: 1 1 300px;
}
.horairesiaido-card, .dojo-card  {
  max-width: 75%;
}
.prof-card, .horaires-card, .horairesiaido-card, .invitation, .dojo-card {
  margin: 10px;
  padding: 30px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.prof-card:hover, .horaires-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}
.prof-img {
  width: 100%;
  object-fit: contain;
}
.prof-title, .horaires-title {
  font-size: 1.3rem;
  margin: 20px 0 10px;
  color: #333;
}
.prof-summary, .horaires-summary {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
  margin-bottom: 20px;
}
.news-summary {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
  margin-bottom: 20px;
  box-sizing: border-box;
}
.attention-summary {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  padding: 10px;
  background-color: #e4332a;
}

/* Horaires */
.horairescours {
  background: #d9d9d9;
}
.invitation {
  max-width: 75%;
  flex: 1 1 75%;
}

/* Nos News */
.nouvelles-container {
  background: #fff;
}
.news-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  width: 75%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0.7;
}
.news-card:hover {
  opacity: 0.9;
}
.news-rubrique {
  background: linear-gradient(to left, #ffffff,#274e8a 50%, #ffffff);
  color: #fff;
  font-weight: 600;
  font-size: 1.5rem;
  width: 100%;
  text-align: center;
}
.news-title {
  padding: 10px 0 10px 0;
  color: #1c1c1c;
}
.nouvelles-title {
  padding: 20px 0 20px 0;
  color: #000;
}

/* Inscription */
.inscription-card, .inscription2-card {
  position: relative;
  background: linear-gradient(0.25turn, #3f87a6, #ebf8e1, #f69d3c);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  flex: 1 1 250px;
  max-width: 350px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.inscription2-card {
  opacity: 0.4;
}
.inscription-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.20);
}
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.rubrique {
  text-align: right;
  font-size: 1.8rem;
  color: #1c1c1c;
}
.inscription-btn {
  display: inline-block;
  padding: 10px 18px;
  background: linear-gradient(90deg, #e4332a, #b02821);
  color: #fff;
  text-decoration: none;
  border-radius: 25px 25px 0 25px;
  font-size:1.2rem;
  text-align: center;
  transition: background 0.3s ease;
}
.inscription-btn:hover {
  background: linear-gradient(90deg, #b02821, #e4332a);
}
.inscription-summary {
  padding-bottom: 50px;
}
.inscription-container {
  padding-top: 50px;
}

/* Tableaux harmonisés */
.tarif-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
}

.tarif-table th, 
.tarif-table td {
  padding: 12px;
  border: 1px solid #ccc;
}

.tarif-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.tarif-table tr:nth-child(odd) {
  background-color: #fff;
}

.tarif-table tr:first-child {
  background-color: #e4332a;
  color: #fff;
  font-weight: bold;
}

.tarif-table td:first-child {
  text-align: left;
  font-weight: 600;
}

/* Bouton "Plus" avec dégradé animé */
.btn-plus {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 25px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: #111827;
  background: linear-gradient(270deg, #e4332a, #f2b088, #e4332a);
  background-size: 200% 200%; /* plus large que le bouton pour l'effet animé */
  border: none;
  border-radius: 25px 25px 0 25px;
  transition: transform 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

/* État normal */
.btn-plus {
  color: #fff;
}

/* Effet roll-over (souris ou focus clavier) */
.btn-plus:hover,
.btn-plus:focus-visible {
  animation: gradient-move 3s ease infinite;
  transform: scale(1.05); /* zoom léger */
  outline: none;
  box-shadow: 0 6px 20px rgba(254, 27, 27, 0.5);
}

/* Animation du dégradé */
@keyframes gradient-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* Footer */
.footer {
  width: 100%;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.footer-columns {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 40px 20px;
}
.footer-column {
  flex: 1 1 250px;
  text-align: center;
  padding: 0 20px;
}
.footer-column h3 {
  display: flex;
  margin-bottom: 15px;
  font-size: 18px;
  border-bottom: 2px solid #e4332a;
  padding-bottom: 5px;
  color: rgb(255, 186, 10);
}
.footer-logo {
  margin: 10px 0;
}
.footer-partner {
  width: 100px;
  margin-top: 10px;
}
.footer-column p {
  margin: 6px 0;
}
.footer-column a {
  color: #e4332a;
  text-decoration: none;
}
.footer-column a:hover {
  text-decoration: underline;
}
.footer-bottom {
  background: #111;
  color: #bbb;
  text-align: center;
  padding: 12px;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .burger { display: flex; }
  .menu {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2000;
  }
  .menu.open { opacity: 1; pointer-events: auto; }
  .nav {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  }
  .nav > li { 
    width: 100%;
    text-align: center;
    border: 2px solid #fd0303; 
    border-radius: 30px 30px 0 30px;
  }
  .nav > li > a {
    font-size: 18px;
    border: none;
    padding: 12px 20px;
    display: block;
  }
  .submenu {
    position: static;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
  }
  .has-sub:hover .submenu {
    opacity: 1;
    max-height: 500px;
    border-radius: 30px 30px 0 30px;
  }
  .kendo2 {
    max-width: 95%;
    text-align: left;
  }
  .prof-container,
  .horaires-container,
  .inscription-container {
    flex-direction: column;
    align-items: center;
  }
  .horaires-card, .prof-card, .inscription-card {
    width: 90%;
    max-width: none;
  }
  .tarif-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 0.80rem;
  }
}

/* Flèche scroll */
.scroll-arrow {
  position: fixed;
  right: 5px;
  bottom: 5px;
  width: 40px;
  height: 50px;
  border-radius: 10px;
  border: none;
  background: rgba(254, 27, 27, 0.5);
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, background 0.3s ease;
}
.scroll-arrow:hover {
  background: rgba(254, 27, 27, 1);
}
.scroll-arrow.up {
  transform: rotate(180deg);
}
