@charset "utf-8";

@font-face {
    font-family: 'Comfortaa';
    src: url(font/Comfortaa-Bold.ttf);
}

@font-face {
    font-family: 'SourceSans3-Regular';
    src: url(font/SourceSans3-Regular.ttf);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}


/*-------------------------------GENERAL-------------------------------*/
body {
    width: 100%;
    margin: 0;
    background-image: url("/Image/background-puzzle.png");
    background-repeat: repeat-y;
    background-position: right;
    font-family: 'SourceSans3-Regular';
}

h1 {
    font-family: 'Comfortaa';
    font-size: 3rem;
    display: flex;
    justify-content: center;
    margin: 0px;
    padding: 24px;
    color: #343333;
}

h2 {
    font-family: 'Comfortaa';
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    margin: 4px;
    color: #343333;
}

h3 {
    font-family: 'Comfortaa';
    font-size: 1.4rem;
    color: #343333;
}

h4 {
    font-family: 'Comfortaa';
    font-size: 1rem;
    margin: 15px 0px;
    color: #343333;
}

h5 {
    font-family: 'Comfortaa';
    color: #343333;
}

p {
    color: #343333;
    font-size: 16px;
    font-family: 'SourceSans3-Regular';
}


/* ----- ID ----- */
#main {
    max-width: 1200px;
    width: 100%;
    margin: auto;
    padding: 0 15px;
}

#accueil {
    background-color: #dce18c;
}

#amicale {
    background-color: #f3b33f;
}

#activities {
    background-color: #89c575;
}

#partners {
    background-color: #d15e5e;
}

#contact {
    background-color: #976fab;
}

#fb-picto,
#insta-picto {
    vertical-align: middle;
}

#construction {
    width: 100%;
    background-color: orange;
}

#construction img {
    width: 50%;
    margin: auto;
    display: flex;
    justify-content: center;
}

#salaries,
#conseiladmin {
    text-align: center;
    padding: 0 16px;
    margin: 0 8px;
    border-radius: 10px;
    background-color: #f0b74c;
}


/* ----- CLASS ----- */
.title {
    margin-bottom: 70px;
}

.cards {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

.card {
    width: 30%;
    border: #000 1px solid;
    text-align: center;
    background-color: #f8e4c0;
    word-wrap: break-word;
    margin: 10px;
}

.card-contact {
    width: 30%;
    height: auto;
    border: #000 1px solid;
    background-color: #cab5d3;
    padding: 16px;
    margin-left: 16px;
    border-radius: 8px;
}

.card-contact2 {
    width: 100%;
    height: auto;
    display: flex;
    background-color: #cab5d3;
    border-radius: 8px;
    border: #000 1px solid;
    margin: 16px 0px;
}

.card-partner {
    display: flex;
    flex-direction: row;
    width: 45%;
    background-color: #c85f5f;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    padding: 8px;
    margin: 12px 16px;
}

.card-partner .partner {
    flex: 1;
}

.card-partner .partner h4 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
}

.card-partner .partner p {
    margin: 2px 0;
}

.card-partner .partner-img {
    margin-right: 8px;
    flex-shrink: 0;
    max-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-partner .partner-img img {
    max-width: 100%;
    height: auto;
    display: block;
}

.footer {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin: 0px;
    background-color: #471414;
    border-top: grey solid 1px;
}

.hours {
    display: flex;
    justify-content: space-between;
}

.hours2 {
    display: flex;
    justify-content: space-evenly;
}

.atelier-hours {
    display: flex;
    justify-content: space-between;
}

.atelier-day {
    width: 30%;
    margin-bottom: 10px;
}

.atelier-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.atelier-content blockquote {
    flex: 1;
    margin: 0;
}

.atelier-content img {
    width: 200px;
    border-radius: 4px;
    object-fit: cover;
    margin-left: auto;
}

.side-img {
    max-width: 300px;
    margin-bottom: 32px;
}

.event-img {
    margin-left: auto;
    text-align: center;
}

.event-card {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.event-content {
    width: 66.66%;
    flex: 1 1 auto;
}

.card-admin-nordv {
    width: 45%;
    height: auto;
    margin: 10px;
    padding: 16px;
    border: #8d2c2c 2px solid;
    border-radius: 5px;
    background-color: #f8e4c0;
}

.card-admin-rdv {
    width: 45%;
    height: auto;
    padding: 16px;
    margin: 10px;
    border: #67905e 2px solid;
    border-radius: 5px;
    background-color: #f8e4c0;
}

.bandef {
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 5px 5px 5px 5px #c8cd7f;
    border-radius: 5px 5px 5px 5px;
    margin-bottom: 48px;
}

.bandef-track {
    display: inline-flex;
    animation: scroll 20s linear infinite;
    background-color: #c8cd7f;
}

.bandef img {
    height: 200px;
    width: auto;
    margin-right: 10px;
    object-fit: contain;
    display: block;
}


.bandef-track:hover {
    animation-play-state: paused;
}

.partner {
    width: 30%;
    padding: 16px;
}

.partner-img {
    max-width: 150px;
    width: 100%;
}

.partner-img img {
    max-width: 100%;
    height: auto;
    padding-top: 30px;
}

.atelier {
    background-color: #7db46b;
    padding: 16px;
    border-radius: 5px;
    margin: 16px;
}

.ariane {
    width: 100%;
    height: 32px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: #7db46b;
}

.ariane p {
    width: 1200px;
    margin: 0;
}

.ariane a {
    text-decoration: none;
    color: #d3d1d1;
    margin-right: 24px;
}

.ariane a:last-child {
    margin-right: 0;
}

.darken-lign {
    background-color: #82bb6f;
    border-radius: 20px;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:visited {
    color: white;
}

.footer a:hover {
    color: orange;
}

.row {
    width: 100%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
}

.w-4 {
    width: 33.33%;
    text-align: center;
    padding-top: 24px;
}

.w-6-team {
    width: 50%;
}

.w-8-accueil {
    width: 66.66%;
    white-space: normal;
}

.w-11-content {
    width: 91.66%;
    margin: auto;
    display: flex;
    justify-content: center;
}

.w-12-content {
    width: 100%;
}

.w-12-content img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.w-12-content-news {
    width: 100%;
    margin: 12px 0px;
    background-color: #c8cd7f;
    border-radius: 8px;
}

.text {
    padding: 24px;
}

.p-footer {
    color: #d3d1d1;
    padding: auto;
    vertical-align: bottom;
}

p a {
    text-decoration: none;
    color: #7d4747;
}

a:active {
    text-decoration: none;
    color: #d3d1d1;
}

a:hover {
    text-decoration: none;
    color: orange;
}

a.bouton-picto:link {
    text-decoration: none;
    color: #d3d1d1;
    padding: 7px 15px;
    background-color: brown;
    border-radius: 5px;
    margin-top: 15px;
}

a.bouton-picto:visited,
a.bouton-picto:active {
    text-decoration: none;
    color: #d3d1d1;
    padding: 7px 15px;
    margin-top: 15px;
}

a.bouton-picto:hover {
    color: orange;
    padding: 7px 15px;
    margin-top: 15px;
}

a.menufooter:link {
    color: #d9d2ea;
    text-decoration: none;
}

a.menufooter:hover {
    color: orange;
    margin-top: 15px;
}

table {
    margin: auto;
    width: 100%;
    border-collapse: collapse;
}

td {
    text-align: left;
    padding-left: 16px;
}

/*------------------------------- HEADER --------------------------------*/
.header {
    width: 100%;
    margin: 0px;
    border-bottom: grey solid 2px;
}

.header-menu {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #471414;
    width: 100%;
    height: 72px;
}

.header-menu li {
    flex: 1;
    text-align: center;
}

.header-menu a {
    color: white;
    text-decoration: none;
    padding: 14px 16px;
    display: inline-block;
}

.header-menu img {
    margin-top: 8px;
}

.header-menu a:hover {
    color: orange;
}

.text-accueil a {
    color: #dce18c;
}

.text-amicale a {
    color: #f3b33f;
}

.text-activities a {
    color: #89c575;
}

.text-partners a {
    color: #fa7171;
}

.text-contact a {
    color: #b182c8;
}

/* ---------- MENU SECONDAIRE ---------- */
#menu-sec {
    display: flex;
    justify-content: center;
    /* ✅ centre horizontalement le bloc de sous-menu */
    background-color: #471414;
    border-top: 1px solid #442525;
    height: 32px;
}

#menu-sec ul {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 40%;
}

#menu-sec li {
    text-align: center;
}

#menu-sec a {
    text-decoration: none;
    padding: 6px 10px;
    display: inline-block;
}

#menu-sec a:hover {
    color: orange;
}

/*----------------------------FIN MENU DEROULANT----------------------------*/

/* RESPONSIVE TABLETTE */
@media only screen and (max-width: 980px) {

    .row {
        width: 100%;
    }

    .row>div {
        margin: 0 2%;
        margin-bottom: 15px;
        float: none;
    }

    .w-4,
    .w-6-team,
    .w-8-accueil,
    .w-12-content {
        float: none;
    }

    .w-8-accueil {
        text-align: center;
    }

    a.bouton-picto:link,
    a.bouton-picto:visited,
    a.bouton-picto:active,
    a.menufooter:visited {
        text-decoration: none;
        color: #d3d1d1;
        padding: 5px 10px;
        margin-top: 15px;
        font-size: 10px;
    }

    a.bouton-picto:hover {
        color: orange;
        padding: 5px 10px;
        margin-top: 15px;
        font-size: 10px;
    }
}

@media only screen and (max-width: 768px) {
    /* Transforme les colonnes en blocs pleine largeur sur mobile */
    .w-4,
    .w-6-team,
    .w-8-accueil,
    .partner,
    .card,
    .card-contact,
    .atelier-day {
        width: 100% !important; /* Force la pleine largeur */
        margin-bottom: 20px;
    }

    /* Ajuste l'affichage des cartes */
    .cards, .footer, .hours, .event-card, .atelier-content {
        flex-direction: column; /* Empile les éléments verticalement */
        align-items: center;
    }

    /* Pour les images dans les ateliers */
    .atelier-content img {
        margin: 20px auto 0 auto;
        width: 100%;
    }
}

/* --- RESPONSIVE MOBILE & TABLETTE --- */
@media only screen and (max-width: 992px) {

    /* On passe le menu secondaire en colonne ou on le simplifie */
    #menu-sec ul {
        width: 100%;
        flex-direction: column;
    }

    /* Le menu principal s'adapte (si vous n'utilisez pas la navbar Bootstrap) */
    .header-menu {
        height: auto;
        flex-wrap: wrap;
    }

    .header-menu li {
        width: 50%; /* 2 boutons par ligne sur tablette/mobile */
        padding: 5px 0;
    }

    /* Les cartes partenaires */
    .card-partner {
        width: 100%; /* Pleine largeur */
        margin: 10px 0;
        flex-direction: column; /* Image au dessus du texte */
        text-align: center;
    }

    .card-partner .partner-img {
        margin-right: 0;
        margin-bottom: 10px;
    }
}