/* === Couleurs === */
:root {
    --rouge-club: #cc0c0c;
    --rouge-foncé: #a00;
    --bleu-lien: #007BFF;
    --fond-blanc: #ffffff;
    --gris-bordure: #ccc;
    --gris-texte: #333;
    --ombre-légère: 2px 2px 6px rgba(0,0,0,0.1);
	--ombre-moyenne: 0 8px 16px rgba(0,0,0,0.3);
}

/* === Styles de base === */
body {
    /* background-color: var(--rouge-club); */
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    /* color: var(--gris-texte); */
    line-height: 1.5;
    /* background: linear-gradient(to bottom, #001f3f, #0074D9, #FF4136); */
    /* color: white; */
	background-image: url('../images/fond-plongee.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
	background-repeat: no-repeat;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--gris-texte);
    margin: 0 0 0.5em 0;
    font-weight: bold;
	
}

h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-top: 30px;
}

p {
    margin: 0 0 1em 0;
}

a {
    color: var(--rouge-club);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    text-decoration: underline;
    color: var(--rouge-foncé);
}

/* === Conteneurs et mise en page === */
.fond-blanc {
    /* background: var(--fond-blanc); */
    width: 90%;
    max-width: 840px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35); /* ombre douce et visible */
	/* Test Fond Blanc transparent */
	background-color: rgba(255, 255, 255, 0.9); /* Fond blanc semi-transparent */
}

/* === En-tête avec logo et boutons === */
.header {
    display: flex;
    justify-content: center;   /* centre le rectangle dans la page */
    margin-bottom: 20px;
}

.header-box {
    background-color: #fff;
    border-radius: 15px;
    padding: 10px 20px;       /* rectangle plus compact */
    width: 100%;
    max-width: 800px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35); /* ombre douce et visible */
    display: flex;
    justify-content: center;  /* centre le logo horizontalement */
    align-items: center;
    position: relative;       /* nécessaire pour positionner les icônes */
    height: 220px;             /* hauteur adaptée au logo */
}

.logo img {
    height: 200px;             /* logo centré */
    max-width: 100%;
}

.header-icons {
    position: absolute;
    bottom: 10px;             /* en bas du rectangle */
    right: 20px;              /* à droite */
    display: flex;
    gap: 10px;
}

.header-icons img {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.header-icons img:hover {
    transform: scale(1.1);
}

.logo {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 0px;
}

.contenu {
    text-align: center; /* Centre le texte */
	margin-bottom: 30px;
}

.contenu h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
}

.contenu h2 {
    font-size: 1.5em;
    margin-top: 0.2em;
}

.icon-btn {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    cursor: pointer;
	margin-left: 5px;
	fill: var(--rouge-club);
}

.icon-btn:hover {
    transform: scale(1.1);
	fill: var(--rouge-foncé);
}

.menu-container {
    margin-top: 20px;
}

.separateur {
    height: 2px;
    background-color: var(--gris-bordure);
    margin: 0px 0;
    border-radius: 2px;
}


.menu {
    background-color: var(--rouge-foncé);
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35); /* ombre douce et visible */
    padding: 10px 0;
    text-align: center;
	margin-bottom: 15px;
	border-radius: 10px;
}
.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    display: inline-block;
    position: relative;
    margin: 0 8px;
}

.menu a {
    color: #fff;
    font-weight: bold;
    /* text-transform: uppercase; */
    text-decoration: none;
    padding: 8px 12px;
    display: inline-block;
}

.menu a.active {
    background-color: var(--rouge-club);
    border-radius: 5px;
}

.menu li:hover > a {
    background-color: var(--rouge-club);
    border-radius: 5px;
}

/* Sous-menu caché par défaut */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--rouge-foncé);
    border-radius: 5px;
    min-width: 200px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.submenu li {
    display: block;
    margin: 0;
}

.submenu a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-transform: none;
}

.submenu a:hover {
    background-color: var(--rouge-club);
}

/* Affiche le sous-menu au survol */
.has-submenu:hover .submenu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.footer {
    text-align: center;
    font-size: 14px;
    color: var(--gris-texte);
    margin-top: 20px;
	font-weight: bold;
}

/* Mentions légales */
.footer a {
  color: var(--gris-texte);
  text-decoration: none;
  font-weight: bold;
  margin-left: 8px;
}

.footer a:hover {
  text-decoration: underline;
}

/* === Formulaires === */
label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: var(--gris-texte);
}

/* Boutons radio inscription/contact */
.radio-group {
  text-align: center;
  margin: 10px 0;
}

.radio-group label {
  display: inline-block;   /* les labels restent en ligne */
  margin: 0 15px;          /* espace entre eux */
  font-weight: bold;
}


input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 15px;
    border: 1px solid var(--gris-bordure);
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    color: var(--gris-texte);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* === Boutons === */
button {  
    background-color: var(--fond-blanc);
    color: var(--rouge-club);
    border: 2px solid var(--rouge-club);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--ombre-légère);
}

button:hover {
    background-color: var(--rouge-club);
    color: var(--fond-blanc);
    transform: scale(1.05);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* === Tableaux === */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
}

th, td {
    border: 1px solid var(--gris-bordure);
    padding: 8px 12px;
    text-align: left;
    color: var(--gris-texte);
}

th {
    background-color: var(--fond-blanc);
}

tr:nth-child(even) {
    background-color: #f8f8f8;
}

/* === Classes utilitaires === */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }

/* Flex helpers */
.flex {
    display: flex;
}
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* CSS Page club */
.presentation-club {
    max-width: 800px;
    margin: 0 auto;
    padding: 2em;
    text-align: left;
    font-size: 1.1em;
    line-height: 1.6;
}

.presentation-club h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 1em;
    color: var(--rouge-club, #b22222); /* Utilise ta couleur club ici */
}

.presentation-club p {
    margin-bottom: 1em;
}

.valeurs-club {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5em;
}

.valeurs-club li {
    margin: 0.5em 0;
    font-size: 1.1em;
    display: flex;
    align-items: center;
}

.valeurs-club .emoji {
    font-size: 1.5em;
    margin-right: 0.5em;
}

/* Image défilante Accueil */
.slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 20px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--ombre-moyenne);
    aspect-ratio: 4 / 3; /* garantit format paysage */
}

.slides {
    display: flex;
    width: 400%; /* 4 images = 400%, ajuste si besoin */
    animation: slide 20s infinite;
	animation-timing-function: ease-in-out;
}

.slider img {
  width: 100%;      /* largeur fixe */
  height: 100%;     /* hauteur fixe */
  object-fit: cover; /* pour couper l’image proprement si elle dépasse */
  display: block;    /* éviter les petits espaces sous l’image */
}

/* Animation du slider */
@keyframes slide {
    0% { transform: translateX(0); }
    20% { transform: translateX(0); }

    25% { transform: translateX(-25%); }
    45% { transform: translateX(-25%); }

    50% { transform: translateX(-50%); }
    70% { transform: translateX(-50%); }

    75% { transform: translateX(-75%); }
    95% { transform: translateX(-75%); }

    100% { transform: translateX(0); }
}

/* Retour haut de page */
a[href="#top"] {
  display: block;          /* pour que le lien prenne toute la largeur */
  margin-top: 8px;         /* réduire l’espace au-dessus, à ajuster */
  font-weight: bold;
  text-decoration: none;
  color: #b30000;
  text-align: center;       /* aligner à droite */
}

a[href="#top"]:hover {
  color: #ff4d4d; /* couleur plus claire au survol */
}

/* Photos OA */
.oa-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 15px;   
}

.oa-member {
  display: flex;
  align-items: center;
  gap: 20px;
}

.oa-member .oa-info {
  display: flex;
  flex-direction: column;
  gap: 2px; /* Réduit l’espace entre les lignes */
  line-height: 1.2; /* Réduit la hauteur des lignes */
}

.oa-info h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
}

.oa-info p {
  margin: 0;
}

.oa-member img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.gauche {
  flex-direction: row;
}

.droite {
  flex-direction: row-reverse;
  text-align: right;
}

/* Affichage Carte et adresse rubrique contact */
.adresse-et-carte {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.coordonnees {
  flex: 1 1 300px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.carte {
  flex: 1 1 300px;
  min-width: 280px;
}

.carte iframe {
  width: 100%;
  height: 250px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.g-recaptcha {
  margin: 15px 0;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: center; /* Centrage horizontal */
  gap: 20px; /* espace entre captcha et bouton */
  margin-top: 20px;
  flex-wrap: wrap; /* permet de passer à la ligne si trop étroit */
}

.success-message {
  color: green;
  font-weight: bold;
  margin-bottom: 15px;
}
.error-message {
  color: red;
  font-weight: bold;
  margin-bottom: 15px;
}

#calendar {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    padding: 10px;
    box-sizing: border-box;
    height: auto !important;
}
