/* ================================
   CHARTE GRAPHIQUE OFFICIELLE
   France Shotokan 2025
================================ */

:root {
  /* Palette officielle */
  --color-imperial-red: #E84747;
  --color-white: #FFFFFF;
  --color-sable: #ECE4D9;
  --color-sable-plus: #D8C8B2;
  --color-black: #28221D;

  /* Variables sémantiques */
  --color-primary: var(--color-imperial-red);
  --color-background: var(--color-white);
  --color-text-main: var(--color-black);
  --color-accent: var(--color-sable);
  --color-border: var(--color-sable-plus);

  /* Typographie */
  --font-main: 'Degular', sans-serif;
  --font-display: 'Degular Display', 'Degular', sans-serif;
}

/* ================================
   RESET & BASE
================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text-main);
  background-color: var(--color-background);
  line-height: 1.6;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ================================
   HEADER PLEINE LARGEUR (COMPACT)
================================ */

.full-width-header {
  width: 100%;
  background-color: var(--color-white);
  border-bottom: 3px solid var(--color-primary);
  padding: 1rem 1rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  gap: 1.5rem;
}

.main-logo {
  flex: 0 0 auto;
  max-width: 80px;
  height: auto;
}

.header-text {
  flex: 1 1 auto;
  text-align: left;
}

.full-width-header h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-text-main);
  margin: 0;
  line-height: 1.2;
}

.subtitle {
  font-size: 1rem;
  color: var(--color-text-main);
  opacity: 0.8;
  margin: 0.25rem 0 0 0;
}

/* ================================
   CONTENEUR PRINCIPAL (GRID 20%/80%)
================================ */

.main-container {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 200px);
}

/* ================================
   SIDEBAR GAUCHE (COMPACT + TEXTE PLUS GRAND)
================================ */

.sidebar-left {
  flex: 0 0 20%;
  background-color: var(--color-sable);
  border-right: 1px solid var(--color-border);
  padding: 0.5rem 0.5rem;
  position: sticky;
  top: 0;
  height: fit-content;
  min-height: calc(100vh - 200px);
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--color-primary);
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
  text-align: center;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.3rem;
  margin-top: 0;
}

.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-section {
  font-weight: bold;
  color: var(--color-text-main);
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-menu li a {
  display: block;
  padding: 0.25rem 0.5rem;
  color: var(--color-text-main);
  border-radius: 3px;
  transition: background-color 0.2s ease;
  font-size: 1rem;
  line-height: 1.2;
  margin: 0;
}

.main-menu li a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .sidebar-left {
    padding: 0.4rem 0.4rem;
  }

  .sidebar-title {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
  }

  .menu-section {
    font-size: 0.8rem;
    margin-top: 0.4rem;
    margin-bottom: 0.2rem;
  }

  .main-menu li a {
    padding: 0.2rem 0.4rem;
    font-size: 0.95rem;
  }
}

/* ================================
   CONTENU DROITE (80%)
================================ */

.content-right {
  flex: 1 0 80%;
  padding: 2rem 3rem;
  background-color: var(--color-white);
}

.content-right h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
}

.content-right h2 {
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text-main);
}

.content-right h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.content-right p {
  margin-bottom: 1rem;
}

/* ================================
   TABLEAUX
================================ */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem;
  text-align: left;
  font-weight: bold;
}

td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

tr:nth-child(even) {
  background-color: var(--color-sable);
}

tr:hover {
  background-color: var(--color-sable-plus);
}

/* ================================
   CARTES ÉVÉNEMENTS
================================ */

.evenement-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background-color: var(--color-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.evenement-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.evenement-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-text-main);
  margin: 0;
}

.evenement-badge {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}

.evenement-badge.entite-club {
  background-color: var(--color-primary);
}

.evenement-badge.entite-departement {
  background-color: var(--color-sable-plus);
  color: var(--color-black);
}

.evenement-badge.entite-ligue {
  background-color: var(--color-sable);
  color: var(--color-black);
}

.evenement-badge.entite-france-shotokan {
  background-color: var(--color-text-main);
}

.evenement-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.evenement-info-item {
  display: flex;
  flex-direction: column;
}

.evenement-info-label {
  font-weight: bold;
  color: var(--color-primary);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.evenement-commentaire {
  margin-top: 1rem;
  padding: 0.75rem;
  background-color: var(--color-sable);
  border-radius: 4px;
  font-style: italic;
  font-size: 0.9rem;
}

/* ================================
   NOUVEAUTÉS (Blog-like)
================================ */

.nouveaute-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.nouveaute-date {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.nouveaute-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.nouveaute-content {
  white-space: pre-line;
}

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

.tarifs-list {
  list-style: none;
}

.tarif-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.tarif-item:last-child {
  border-bottom: none;
}

.tarif-categorie {
  font-weight: bold;
  font-size: 1.1rem;
}

.tarif-montant {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-primary);
}

.tarif-conditions {
  margin-top: 2rem;
  padding: 1rem;
  background-color: var(--color-sable);
  border-radius: 8px;
  font-size: 0.95rem;
}

.tarif-conditions ul {
  margin-left: 1.5rem;
}

.tarif-conditions li {
  margin-bottom: 0.5rem;
}

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

.full-width-footer {
  width: 100%;
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  max-width: 100px;
  margin-bottom: 0.5rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-links a {
  color: var(--color-white);
  opacity: 0.8;
  margin: 0 0.5rem;
}

.footer-links a:hover {
  opacity: 1;
}

/* ================================
   RESPONSIVE DESIGN
================================ */
@media (max-width: 1024px) {
  .sidebar-left {
    flex: 0 0 25%;
  }

  .content-right {
    flex: 1 0 75%;
    padding: 1.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }

  .sidebar-left {
    flex: 0 0 auto;
    width: 100%;
    position: relative;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .content-right {
    flex: 1 0 auto;
    width: 100%;
    padding: 1.5rem;
  }

  .full-width-header h1 {
    font-size: 1.4rem;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .header-content .main-logo {
    max-width: 200px;
  }

  .header-text {
    text-align: center;
  }

  .main-logo {
    max-width: 100px;
  }

  .evenement-info {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 0.85rem;
  }

  th,
  td {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .content-right {
    padding: 1rem;
  }

  .full-width-header {
    padding: 1rem;
  }

  .full-width-header h1 {
    font-size: 1.5rem;
  }
}

/* ================================
   TYPOGRAPHIE LOCALE
================================ */

@font-face {
  font-family: 'Degular';
  src: url('/fonts/Degular-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Degular';
  src: url('/fonts/Degular-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Degular Display';
  src: url('/fonts/DegularDisplay-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* ================================
   FILTRES ÉVÉNEMENTS
================================ */

.evenements-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem 0;
  padding: 1rem;
  background-color: var(--color-sable);
  border-radius: 8px;
}

.filter-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--color-white);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.filter-link:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  text-decoration: none;
}

.filter-link.active {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .evenements-filters {
    flex-direction: column;
  }

  .filter-link {
    text-align: center;
  }
}

/*================================
Mentions légales
================================*/

.page-mentions-legales {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-mentions-legales h1 {
  color: #6d4aff;
  /* Purple Proton */
  border-bottom: 3px solid #6d4aff;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.intro {
  background-color: #f8f8fc;
  padding: 20px;
  border-left: 4px solid #6d4aff;
  margin-bottom: 30px;
}

.mentions-content {
  display: grid;
  gap: 30px;
}

.mention-section {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(109, 76, 255, 0.1);
}

.mention-section h2 {
  color: #2c2c54;
  font-size: 1.3rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.info-list {
  list-style: none;
  padding-left: 0;
}

.info-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.info-list li:last-child {
  border-bottom: none;
}

.external-links a {
  color: #6d4aff;
  text-decoration: none;
  font-weight: 500;
}

.external-links a:hover {
  text-decoration: underline;
}

.last-update {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  font-size: 0.9rem;
  color: #666;
  text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
  .page-mentions-legales {
    padding: 20px 15px;
  }

  .mention-section {
    padding: 15px;
  }

  .last-update {
    text-align: left;
  }
}