/* =========================================================
   CDMB — STRUCTURE GÉNÉRALE
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
    background-color: white;
    line-height: 1.5;
}


/* =========================================================
   ACCESSIBILITÉ
   ========================================================= */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #ffd800;
    outline-offset: 3px;
}


/* =========================================================
   HEADER
   ========================================================= */

header,
header#contact,
header#membres {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;

    color: white;
}

header {
    height: 100vh;
    min-height: 500px;
    background-image: url('../link/photo-acceuil.jpg');
}

header#contact,
header#membres {
    height: 50vh;
    min-height: 350px;
    background-image: url('../link/photo-acceuil.jpg');
}


/* Titre principal */

.title {
    font-size: 6em;
    line-height: 1.05;
    text-align: center;
}

.undertitle {
    margin-top: 15px;

    font-size: 2em;
    font-weight: 300;
    font-family: Arial, Helvetica, sans-serif;

    text-align: center;
}


/* =========================================================
   BLOCS DE CONTENU
   ========================================================= */

.bg-yellow,
.bg-grey,
.bg-blanc {
    min-height: 250px;
}

.bg-blanc {
    background-color: white;
}

.bg-grey {
    background-color: whitesmoke;
}

.bg-yellow {
    background-color: lightgoldenrodyellow;
}


/* =========================================================
   TITRES ET TEXTES
   ========================================================= */

h2,
h3 {
    width: 80%;
    margin: auto;
    padding: 20px 0;

    text-align: center;
    text-transform: uppercase;
}

h3 {
    color: darkred;
}

p {
    display: block;

    width: 80%;
    margin: auto;

    text-align: center;
}

p.alignement-gauche {
    text-align: left;
}

.title-yellow{
     color: #f4ff00;  
}
/* Bloc renouvellement */

.renouvelement {
    background-color: #5E6B34;
     border-radius: 12px;
}



/* Listes dans les contenus */

main section ul {
    width: 80%;
    margin: 0 auto;
    padding-left: 0;

    list-style: none;
    text-align: center;
}

main section ul li {
    text-align: center;
}


/* Séparateur rouge */

hr.red {
    width: 80%;
    margin: auto;

    border: 0;
    border-top: 2px solid darkred;
}


/* =========================================================
   BOUTONS
   ========================================================= */

.btn-container {
    display: flex;
    justify-content: center;
    align-items: center;

    height: 100px;
    margin: auto;
}

.btn-consult {
    display: block;

    padding: 10px 20px;

    font-size: 16px;
    font-weight: bold;

    color: black;
    background-color: white;

    border: 1px solid black;
    border-radius: 25px;

    text-align: center;
    text-decoration: none;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.btn-consult:hover {
    color: white;
    background-color: black;
}


/* Boutons PDF */

.small-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 50px;
    margin: auto;
}

.btn-pdf {
    display: inline-block;

    padding: 7px 14px;

    font-size: 12px;
    font-weight: bold;

    color: white;
    background-color: darkred;

    border: 1px solid orangered;
    border-radius: 25px;

    text-align: center;
    text-decoration: none;

    transition:
        background-color 0.3s ease,
        border-color 0.3s ease;
}

.btn-pdf:hover {
    background-color: #5f0000;
    border-color: darkred;
}


/* =========================================================
   LOGOS SUPÉRIEURS
   ========================================================= */

.logo-cdmb {
    position: absolute;
    top: 10px;
    left: 10px;

    z-index: 200;

    display: block;

    width: 150px;
    height: 200px;

    background-image: url('../link/Logo-cdmb_2023.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    border: none;
}

.logo-passy {
    position: absolute;
    top: 10px;
    left: 170px;

    z-index: 200;

    display: block;

    width: 200px;
    height: 80px;

    background-image: url('../link/logo-Passy.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    border: none;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

nav {
    position: absolute;
    top: 0;
    left: 0;

    z-index: 100;

    width: 100%;
    height: 100px;

    border-bottom: 3px solid yellow;

    background-color: rgba(255, 255, 255, 0.8);
}


/* Menu principal */

nav .menu,
nav ul.membres {
    display: flex;

    float: right;

    width: 50%;
    height: 100%;

    list-style: none;
}

nav ul.membres {
    width: 30%;
}

nav .menu li,
nav ul.membres li {
    margin: auto;
}


/* Liens menu */

.menu-admin,
.menu-item {
    position: relative;
    list-style-type: none;
}

nav .menu-item a,
nav .menu-admin a {
    display: block;

    width: 150px;
    padding: 30px 0;

    color: black;

    font-size: 20px;

    text-align: center;
    text-decoration: none;

    border: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

nav .menu-item a:hover {
    background-color: rgba(0, 0, 0, 0.08);
}


/* Page active */

nav .menu-item a[aria-current="page"] {
    font-weight: bold;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}


/* Administration */

nav .menu-admin a {
    padding: 35px;
    background-color: lightpink;
}


/* =========================================================
   MENU BURGER
   ========================================================= */

.burger {
    display: none;

    position: absolute;
    top: 34px;
    right: 20px;

    z-index: 300;

    width: 40px;
    height: 32px;

    padding: 3px;

    cursor: pointer;

    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    background: transparent;

    border: 0;
    appearance: none;
}

.burger span {
    display: block;

    width: 28px;
    height: 3px;

    background-color: black;

    border-radius: 3px;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* =========================================================
   FLEXBOX — BLOCS INFORMATIONS
   ========================================================= */

.flex-container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;

    width: 100%;
}

.flex-box {
    flex: 1 1 0;

    min-width: 0;

    padding: 20px;

    background-color: transparent;
}


/* =========================================================
   FLEXBOX — TEXTE + IMAGE
   ========================================================= */

.wrap-image-text {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;

    gap: 50px;

    width: 100%;
    padding: 40px 4% 60px;

    margin-bottom: 20px;
}


/* Image */

.wrap-image-text .image {
    flex: 1 1 0;
    min-width: 0;

    padding-right: 0;
}

.wrap-image-text .image img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 1px;
}


/* Blocs texte */

.wrap-image-text .text {
    flex: 1 1 0;
    min-width: 0;
}

.wrap-image-text .text h2 {
    width: 100%;

    margin: 0 0 25px 0;
    padding: 0;

    font-size: 1.8em;
    color: #333;

    text-align: left;
}

.wrap-image-text .text p {
    width: 100%;

    margin: 0 0 18px 0;

    font-size: 1.1em;
    line-height: 1.6;

    color: #333;

    text-align: left;
}

/* =========================================================
   GALERIE D'IMAGES
   ========================================================= */

.image-wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 20px;

    margin-bottom: 30px;
}

.image-container {
    flex: 1 1 22%;

    box-sizing: border-box;

    text-align: center;
}

.image-container img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 1px;
}

.image-text {
    margin-top: 10px;

    font-size: 1.2em;
    font-weight: bold;

    color: #333;
}


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

.table-container {
    width: 100%;
    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 950px;

    border-collapse: collapse;
    table-layout: fixed;
}

th,
td {
    height: 100px;

    padding: 10px;

    border: 1px solid black;

    text-align: center;
    vertical-align: middle;

    overflow-wrap: break-word;
}

th {
    background-color: #f2f2f2;
}

td.non {
    color: whitesmoke;
    background-color: darkred;
}

td.oui {
    color: whitesmoke;
    background-color: forestgreen;
}

td.si {
    color: whitesmoke;
    background-color: orangered;
}

td div,
th div {
    display: flex;
    justify-content: center;
    align-items: center;

    height: 100%;

    text-align: center;
}


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

footer {
    width: 100%;

    padding: 20px 0;

    color: white;
    background-color: #344a6a;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;

    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-left {
    flex: 1;
    margin-bottom: 20px;
}
.footer-left h4,
.footer-left p{
    text-align: left;
    margin: 0px;
}

.footer-right {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;

    gap: 10px;
}


/* Logo CDMB footer */

.cdmb-footer {
    float: left;

    width: 80px;
    height: 100px;

    margin-right: 10px;

    background-image: url('../link/Logo-cdmb_2023.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    border: none;
}


/* Logos partenaires */

.image-block_league-dauphine,
.image-block_fftir,
.image-block_passy {
    width: 80px;
    height: 80px;

    background-color: whitesmoke;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    border: none;
}
.image-block_chappaz{
    width: 179px;
    height: 80px;

    background-color: white;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    border: none;
}

.image-block_passy {
    background-image: url('../link/logo-Passy.png');
}

.image-block_fftir {
    background-image: url('../link/logo-fftir.jpeg');
}

.image-block_league-dauphine {
    background-image: url('../link/logo-league-tir-dauphine.png');
}

.image-block_chappaz{
    background-image: url('../link/logo-chappaz.jpg');
}


/* =========================================================
   RESPONSIVE — TABLETTE ET MOBILE
   ========================================================= */

@media screen and (max-width: 768px) {

    /* Navigation */

    nav .menu,
    nav ul.membres {
        display: none;

        position: absolute;
        top: 100px;
        left: 0;
        right: auto;

        flex-direction: column;

        width: 100%;
        height: auto;

        background-color: rgba(255, 255, 255, 0.96);

        text-align: center;

        border-bottom: 3px solid yellow;
    }

    nav .menu.active,
    nav ul.membres.active {
        display: flex;
    }

    nav .menu li,
    nav ul.membres li {
        width: 100%;
        margin: 0;
    }

    nav .menu-item a,
    nav .menu-admin a {
        width: 100%;

        padding: 18px 20px;

        font-size: 25px;

        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }


    /* Burger */

    .burger {
        display: flex;
    }


    /* Logos */

    .logo-cdmb {
        top: 5px;
        left: 5px;

        width: 90px;
        height: 130px;
    }

    .logo-passy {
        top: 10px;
        left: 105px;

        width: 150px;
        height: 70px;
    }


    /* Header */

    header {
        min-height: 600px;
    }

    .title {
        width: 90%;
        margin: auto;

        font-size: 4em;
    }

    .undertitle {
        width: 90%;
        margin: 15px auto 0;

        font-size: 1.2em;
    }


    /* Contenus */

    h2,
    h3 {
        width: 90%;
    }

    section p {
        width: 90%;
    }

    main section ul {
        width: 90%;
    }

    hr.red {
        width: 90%;
    }


    /* Colonnes */

    .flex-container {
        flex-direction: column;
    }

    .flex-box {
        width: 100%;
        flex: none;
    }


    /* Boutons */

    .btn-pdf {
        padding: 9px 18px;

        font-size: 17px;
    }

    .small-btn-container {
        min-height: 60px;
    }


    /* Texte + images */

    .wrap-image-text {
        flex-direction: column;

        align-items: center;

        text-align: center;
    }

    .wrap-image-text .image,
    .wrap-image-text .text {
        width: 100%;
        max-width: 100%;

        padding-right: 0;
        padding-left: 0;
    }

    .wrap-image-text .text {
        margin-top: 20px;
    }

    .wrap-image-text .text h2,
    .wrap-image-text .text p {
        text-align: center;
    }

    .wrap-image-text .image img {
        width: 100%;
    }


    /* Galerie */

    .image-container {
        flex: 1 1 100%;
    }

    .image-text {
        font-size: 1em;
    }


    /* Tableau */

    table {
        min-width: 900px;

        font-size: 12px;
    }

    th,
    td {
        height: 80px;
        padding: 8px;
    }


    /* Footer */

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-left,
    .footer-right {
        width: 100%;
    }

    .footer-right {
        justify-content: flex-start;
    }
    .image-block_chappaz,
    .image-block_league-dauphine,
    .image-block_fftir,
    .image-block_passy {
        width: 75px;
        height: 75px;
    }
    .image-block_chappaz{
        background-color: none;
    }
    .footer-left h4,
    .footer-left p{
    font-size: .6em;
    margin: 0px;
    }
}


/* =========================================================
   RESPONSIVE — PETITS MOBILES
   ========================================================= */

@media screen and (max-width: 480px) {

    nav {
        height: 90px;
    }

    nav .menu,
    nav ul.membres {
        top: 90px;
    }

    .burger {
        top: 29px;
        right: 15px;
    }

    .logo-cdmb {
        width: 75px;
        height: 110px;
    }

    .logo-passy {
        left: 85px;

        width: 120px;
        height: 60px;
    }

    .title {
        font-size: 2.8em;
    }

    .undertitle {
        font-size: 1.05em;
    }

    h2 {
        font-size: 1.35em;
    }

    h3 {
        font-size: 1.05em;
    }

    .flex-box {
        padding: 15px 10px;
    }

    .btn-pdf {
        font-size: 15px;
    }

    table {
        min-width: 850px;

        font-size: 11px;
    }

    th,
    td {
        height: 70px;
        padding: 6px;
    }

    .image-block_chappaz,
    .image-block_league-dauphine,
    .image-block_fftir,
    .image-block_passy {
        width: 65px;
        height: 65px;
    }
    .image-block_chappaz{
        background-color: none;
    }
}
/* =========================================================
   BLOC WHATSAPP
   ========================================================= */

.whatsapp-block {
    width: 90%;
    max-width: 500px;

    margin: 40px auto;
    padding: 30px;

    background-color: #DDF8E8;

    border: 2px solid #25D366;
    border-radius: 25px;

    text-align: center;
}

.whatsapp-title {
    width: 100%;
    margin: 0 0 10px 0;
    padding: 0;

    color: #075E54;

    font-size: 1.6em;
    text-transform: none;
}

.whatsapp-text {
    width: 100%;

    margin: 0 auto 25px;

    color: #333;

    text-align: center;
}

.whatsapp-qr {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    margin: 0;
    padding: 0;
}

.whatsapp-qr img {
    display: block;

    /* presque toute la largeur intérieure de la DIV verte */
    width: 100%;
    max-width: none;
    height: auto;

    margin: 0;
    padding: 0;

    /* aucun cadre ajouté autour de l'image */
    background: transparent;
    border: none;
    border-radius: 0;
}
/* =========================================================
   PAGE CONTACT
   ========================================================= */

.contact-section {
    padding: 70px 20px;

    background-color: whitesmoke;
}

.contact-container {
    width: 90%;
    max-width: 750px;

    margin: 0 auto;
    padding: 40px;

    background-color: #eef8df;

    border: 2px solid #82c341;
    border-radius: 25px;
}

.contact-container h2 {
    width: 100%;

    margin: 0 0 15px 0;
    padding: 0;

    color: #4e7f19;

    text-align: center;
}

.contact-intro {
    width: 100% !important;

    margin: 0 auto 35px !important;

    line-height: 1.6;

    color: #333;

    text-align: center;
}


/* Formulaire */

.contact-form {
    width: 100%;
}

.contact-field {
    margin-bottom: 25px;
}

.contact-field label {
    display: block;

    margin-bottom: 8px;

    font-size: 16px;
    font-weight: bold;

    color: #315c12;
}

.contact-field input,
.contact-field textarea {
    display: block;

    width: 100%;

    padding: 14px 16px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;

    color: #222;
    background-color: white;

    border: 1px solid #82c341;
    border-radius: 12px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-field textarea {
    min-height: 220px;

    resize: vertical;
}


/* Focus */

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: #4e7f19;

    box-shadow: 0 0 0 3px rgba(130, 195, 65, 0.22);
}


/* Bouton */

.contact-button-container {
    display: flex;
    justify-content: center;

    margin-top: 30px;
}

.contact-submit {
    min-width: 180px;

    padding: 14px 30px;

    font-size: 16px;
    font-weight: bold;

    color: white;
    background-color: #82c341;

    border: 2px solid #82c341;
    border-radius: 30px;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.15s ease;
}

.contact-submit:hover {
    color: #315c12;
    background-color: white;
}

.contact-submit:active {
    transform: scale(0.97);
}


/* =========================================================
   PAGE CONTACT — MOBILE
   ========================================================= */

@media screen and (max-width: 768px) {

    .contact-section {
        padding: 40px 15px;
    }

    .contact-container {
        width: 100%;

        padding: 30px 20px;

        border-radius: 20px;
    }

    .contact-field input,
    .contact-field textarea {
        font-size: 16px;
    }

    .contact-submit {
        width: 100%;
    }
}
.reseaux-publics {
    display: flex;
    justify-content: center;
    gap: 30px;

    width: 90%;
    max-width: 1200px;

    margin: 30px auto;
}

.reseau-card {
    flex: 1;
    max-width: 550px;
}

.reseau-card img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 20px;
}

.reseaux-licencies {
    width: 90%;
    max-width: 800px;

    margin: 50px auto;
}

@media screen and (max-width: 768px) {

    .reseaux-publics {
        flex-direction: column;
    }

    .reseau-card {
        width: 100%;
        max-width: 100%;
    }
}

/* =========================================================
   ALERTE RENOUVELLEMENT
   ========================================================= */

.alerte-renouvellement {
    background-color: #f4ff00;
    color: #344a6a;

    font-weight: 700;
    font-size: 1.15em;
    line-height: 1.4;

    text-align: center;

    padding: 18px 22px;
    margin: 20px 0 30px;

    border-radius: 12px;
}

/* =========================================================
   ALERTE DEMANDE
   ========================================================= */

.bloc-licence-info{
    background-color: #f4ff00;
    color: #000;

    font-weight: 700;
    font-size: 1.15em;
    line-height: 1.4;

    text-align: center;

    padding: 18px 22px;
    margin: 20px 0 30px;

    border-radius: 12px;
}

/* =========================================================
   BLOCS DEMANDE DE LICENCE / INFORMATIONS CLUB
   ========================================================= */

.bloc-licence {
    margin-top: 20px;
    padding: 20px;

    background-color: #f2f2f2;

    border-radius: 12px;
}

.bloc-licence-dark {
    margin-top: 20px;
    background-color: #344a6a;
    color: #ffffff;
    border-radius: 12px;
}


.bloc-licence h4 {
    margin: 0 0 15px 0;

    font-size: 1.2rem;
    line-height: 1.3;

    text-align: left;
}

.bloc-licence-dark h4,
.bloc-licence-dark p,
.bloc-licence-dark li,
.bloc-licence-dark strong {
    color: #ffffff;
}
.bloc-licence-dark h3,
.bloc-army h3{
    color: #f4ff00;
}
.bloc-licence-dark h4{
    color: #f4ff00;
    text-align: center;
}

/* Liste documents à fournir */

.bloc-licence ol {
    margin: 0;
    padding-left: 22px;

    line-height: 1.55;

    text-align: left;
}

.bloc-licence ol li {
    margin-bottom: 6px;
}


/* Paragraphes du bloc informations club */

.bloc-licence p {
    width: 100%;

    margin: 0 0 15px 0;

    text-align: center;
}

.bloc-licence p:last-child {
    margin-bottom: 0;
}

.bloc-licence-info h4,
.bloc-licence-info p{
    color: #000;
}
/* =========================================================
   BLOC ARMY — SI TU VEUX LE RÉUTILISER AILLEURS
   ========================================================= */

.bloc-army {
    margin-top: 20px;
    padding: 20px;

    background-color: #5E6B34;
    color: #ffffff;

    border-radius: 12px;
}
/* =========================================================
   BLOC ARMY — Réglement de la licence
   ========================================================= */
   .bloc-reglement-licence {
    margin-top: 20px;
    padding: 20px;

    background-color: #32425d;
    color: #344a6a;

    border: 2px solid #344a6a;
    border-radius: 12px;

    text-align: center;
}

/* =========================================================
   BLOC ARMY — Prio Geographique
   ========================================================= */
   .bloc-priorite-geographique {
    margin-top: 20px;
    padding: 20px;

    background-color: #32425d;
    color: #344a6a;

    border: 2px solid #344a6a;
    border-radius: 12px;

    text-align: center;
}

.bloc-priorite-geographique h4 {
    margin: 0 0 15px 0;

    color: #f4ff00;

    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.bloc-priorite-geographique p {
    width: 100%;
    margin: 0;

    color: #ffffff;

    line-height: 1.5;
    text-align: center;
}
