/* 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;
}

/* 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; /* hauteur fixe du menu */
}

/* 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 (navigation clavier) */
.nav > li > a:focus-visible {
  outline: none; /* on enlève le contour par défaut */
  background-color: #e4332a; /* bleu un peu plus foncé */
  color: #fff;
  box-shadow: 0 0 0 3px rgba(254, 27, 27, 0.5); /* halo bleu clair */
}


/* 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:#d35d57;
  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 (mobile seulement) */
.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%;
}

/* === Sections avec effet parallaxe === */
.accueil,
.kendo,
.iaido,
.dojo {
  position: relative;
  height: 100vh;                /* occupe toute la hauteur de la fenêtre */
  width: 100%;
  display: flex;
  justify-content: center;      /* centre horizontalement */
  align-items: center;          /* centre verticalement */
  text-align: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed; /* effet parallaxe */
  color: #fff;
  padding: 20px;
  box-sizing: border-box;
  resize: both;
}

/* Images de fond */
.accueil {
  background-image: url("../images/fond1.png");
}
.kendo {
  background-image: url("../images/Kendo-Meisterschaft.webp");
}
.iaido {
  background-image: url("../images/iaido.jpg");
}
.dojo {
  background-image: url("../images/dojo-scaled.jpg");
}

/* Bloc texte */
.texte1,
.texte2 {
  max-width: 60%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 20px;
}
.texte2 h1 {
  color: #274e8a;
}

/* Compense la hauteur du menu   */
.accueil .texte1,
.kendo .texte2,
.iaido .texte2,
.dojo .texte2,
.news, .contact-wrapper {
  margin-top: 70px;
}

/* Bloc texte avec calque auto-ajusté */
.kendo .texte2,
.iaido .texte2,
.dojo .texte2 {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9); /* calque blanc transparent */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 10px 20px;                   /* marge interne */
  border-radius: 12px;                  /* coins arrondis */
  display: inline-block;                /* le calque s'adapte au contenu */
  max-width: 70%;                       /* limite la largeur */
  margin: 0 auto;
  color: #000;
}

/* Styles des titres et paragraphes */
.accueil h1, .kendo h1, .iaido h1, .dojo h1, .news h1 {
  font-size: 48px;
  margin-bottom: 20px;
}
.banner h1, .news h1 {
  color: #274e8a;
}
.accueil p, .kendo p, .iaido p, .dojo p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* === Animations fade / slide === */
.fade-up, .fade-left, .fade-right {
  opacity: 0;
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-up { transform: translateY(40px); }
.fade-left { transform: translateX(-40px); }
.fade-right { transform: translateX(40px); }

.fade-up.visible,
.fade-left.visible,
.fade-right.visible {
  opacity: 1;
  transform: translate(0,0);
}

/* Animation enfants (stagger) */
.fade-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-child.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Bouton "Plus" avec dégradé animé */
.btn-plus {
  display: inline-block;
  margin-top: 15px;
  margin-bottom: 20px;
  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%; }
}

/* style du bandeu */

:root {
--height: 250px; /* hauteur totale du bandeau */
--img-size: 150px; /* taille maximale des images */
--speed: 30s; /* durée du cycle complet (plus grand = plus lent) */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.banner {
width: 100%;
height: var(--height);
overflow: hidden;
position: relative;
background: #ffffff;
box-shadow: 0 6px 24px rgba(0,0,0,.25) inset;
color: #000000;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
padding: 10px;
}


.banner h1 {
font-size: 48px;
margin-bottom: 20px;
text-align: center;
}


.marquee {
width: 100%;
height: calc(var(--height) - 60px); /* laisse de la place pour le titre */
overflow: hidden;
position: relative;
display: flex;
align-items: center;
}


.marquee-track {
display: flex;
width: max-content;
animation: scroll var(--speed) linear infinite;
}


.marquee-track a {
flex: 0 0 auto;
display: flex;
align-items: center;
justify-content: center;
width: var(--img-size);
height: var(--img-size);
margin: 0 10px;
}


.marquee-track img {
max-width: 100%;
max-height: 100%;
display: block;
object-fit: contain;
}


.banner:hover .marquee-track {
animation-play-state: paused;
cursor: grab;
}


@keyframes scroll {
0% { transform: translateX(0); }
100% { transform: translateX(-50%); }
}

/* Nos news */
.news {
  width: 100%;
  padding: 60px 20px;
  background: #f9f9f9;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #2c3e50;
}

.news-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* permet le retour à la ligne */
}


.news-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  width: 300px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.news-header {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-bottom: 10px;
}

.news-logo {
  width: auto;
  height: 30px;
  object-fit: contain;
}

.news-logo2 {
  width: 63px;
  height: 30px;
  object-fit: contain;
}

.news-date {
  font-size: 0.85rem;
  color: #888;
}


.news-title {
  font-size: 1.3rem;
  margin: 20px 0 10px;
  color: #333;
}

.news-summary {
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
  margin-bottom: 20px;
}

.news-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: 1rem;
  transition: background 0.3s ease;
  text-align: center;
  width: 50%;
}

.news-btn:hover {
  background:linear-gradient(90deg, #b02821, #e4332a);
}

.news-rubrique {
  background: linear-gradient(to left, #ffffff,#274e8a 50%, #ffffff);
  color: #fff;
  font-weight: 600;
  width: 100%;
  text-align: center;
}

/* contact */
/* Conteneur global */
.contact-wrapper {
  text-align: center;
  margin: 40px 20px;
}

/* Titre principal */
.contact-wrapper h1 {
  font-size: 48px;
  color: #274e8a;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.contact-section {
  background: linear-gradient(135deg, #adadad, #999999);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  width: 100%;
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #2c3e50;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  color: #34495e;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ccc;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #3498db;
  box-shadow: 0 0 6px rgba(52, 152, 219, 0.4);
}
.form-row {
  display: flex;
  gap: 15px;
}

.two-cols .form-group {
  flex: 1;
}

/* Footer */
.footer {
  width: 100%;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column; /* colonne pour avoir contenu + copyright */
  align-items: stretch;
}

.footer-columns {
  display: flex;
  justify-content: space-between; /* espace entre colonnes */
  flex: 1;
  padding: 40px 20px;
  flex-direction: row;
  flex-wrap: wrap;
}

.footer-column {
  flex: 1;
  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 {
  width: auto;
  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 : sur mobile, repasse en une seule colonne */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }
}

.btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #e4332a, #b02821);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}

.btn:hover {
  background: linear-gradient(90deg, #b02821, #e4332a);
  transform: scale(1.03);
}

.form-message {
  text-align: center;
  margin-top: 15px;
  font-weight: bold;
  color: #27ae60;
  display: none;
}

/* 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;
    position: relative;
    width: 100%;
    border: 2px solid #fd0303; 
    border-radius: 30px 30px 0 30px;
  }

  .nav > li > a {
    font-size: 18px;
    border: none;
    padding: 12px 20px;
    display: block;
    transition: background 0.3s ease, color 0.3s ease;
  }

  /* Effet rollover sur les liens du menu burger */
  .nav > li > a:hover,
  .nav > li > a:focus-visible {
    background: #e4332a;
    color: #fff;
    border-radius: 30px 30px 0 30px;
  }

  /* Sous-menus masqués par défaut */
  .submenu {
    position: static;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  /* Affichage en rollover */
  .has-sub:hover .submenu {
    opacity: 1;
    max-height: 500px;
  }

  .submenu li a {
    font-size: 16px;
    padding: 8px 12px;
    display: block;
    transition: background 0.3s ease, color 0.3s ease;
  }
  .submenu li a:hover,
  .submenu li a:focus-visible {
    background: #d35d57;
    color: #fff;
    border-radius: 6px;
  }
  
  /* Texte plus petit sur mobile */
  .accueil h1, .kendo h1, .iaido h1, .dojo h1, .banner h1 {
    font-size: 20px;
  }
  .accueil p, .kendo p, .iaido p, .dojo p {
    font-size: 14px;
  }
}

/* flêche de navigation (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); /* flèche vers le haut */
}
