/* =========================================================
   VARIABLES
========================================================= */

:root {

    --primary: #005BBB;
    --secondary: #FFD500;

    --text-dark: #222;
    --text-light: #fff;

    --bg-light: #f5f5f5;
    --bg-card: #ffffff;

    --radius: 14px;

    --shadow:
        0 4px 14px rgba(0,0,0,0.08);

    --transition: 0.25s ease;
}


/* =========================================================
   GLOBAL
========================================================= */

body {

    background: var(--bg-light);

    color: var(--text-dark);

    font-family: Arial, Helvetica, sans-serif;
}

img {

    max-width: 100%;

    display: block;
}


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

.portal-header {

    background: var(--primary);

    color: white;

    padding: 15px 0;

    box-shadow:
        0 2px 8px rgba(0,0,0,0.1);
}

.header-container {

    max-width: 1300px;

    margin: auto;

    padding: 0 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.portal-nav a {

    color: white;

    margin-left: 25px;

    font-weight: 500;

    text-decoration: none;

    transition: var(--transition);
}

.portal-nav a:hover {

    opacity: 0.75;
}


/* =========================================================
   HERO
========================================================= */

.hero-split {

    display: flex;

    gap: 20px;

    padding: 30px 20px;

    background: #e9e9e9;
}

.hero-left,
.hero-right {

    flex: 1;
}

.hero-img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    border-radius: var(--radius);
}


/* =========================================================
   ACTUS
========================================================= */

.hero-right h3 {

    margin-bottom: 15px;
}

.news-list {

    list-style: none;

    padding: 0;

    margin: 0;
}

.news-list li {

    margin-bottom: 14px;

    padding-bottom: 14px;

    border-bottom: 1px solid #ddd;
}

.news-title {

    font-weight: 700;
}

.news-meta {

    font-size: 0.8rem;

    color: #777;

    margin: 4px 0;
}
.news-text {

    margin-top: 10px;

    line-height: 1.6;

    color: #333;
}

.news-text p {

    margin-bottom: 10px;
}

.news-text a {

    color: #005BBB;

    text-decoration: none;

    font-weight: 500;
}

.news-text a:hover {

    text-decoration: underline;
}

.news-text strong {

    font-weight: 700;
}

.news-text ul {

    padding-left: 20px;

    margin-bottom: 10px;
}

/* =========================================================
   BLOCS HOME
========================================================= */
.home-blocks {
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px 0;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
/* =========================================================
   CARD
========================================================= */
.bloc-card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: white;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
    transition: var(--transition);
    height: 100%;
    min-height: 100%;
}
.bloc-card:hover {
    transform: translateY(-5px);
}
/* =========================================================
   CARD BODY
========================================================= */
.bloc-card .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
}
/* =========================================================
   HEADER CARD
======================================================== */
.block-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 20px;
}
/* =========================================================
   IMAGE CARD
========================================================= */
.block-img {
    width: 180px !important;
    height: 180px !important;
    object-fit: contain !important;
    display: block;
    margin: 0 auto 20px auto;
    flex-shrink: 0;
}
.block-img:hover {
    transform: scale(1.03);
}
.doc-link {
    display: block;
    word-break: break-word;
    line-height: 1.4;
}
/* =========================================================
   TITRE CARD
========================================================= */
.block-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
}
/* =========================================================
   CONTENU CARD
========================================================= */
.block-content {
    width: 100%;
}
.block-content p {
    color: #666;
}
/* =========================================================
   LIENS PDF
========================================================= */
.doc-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.doc-link:hover {
    text-decoration: underline;
    opacity: 0.85;
}
/* =========================================================
   BOUTONS
========================================================= */
.btn-block {

    display: inline-block;

    margin-top: auto;

    padding: 10px 18px;

    border-radius: 8px;

    background: var(--primary);

    color: white;

    text-decoration: none;

    transition: var(--transition);
}
.btn-block:hover {

    opacity: 0.85;
}


/* =========================================================
   SORTIES / METEO
========================================================= */
.sorties-meteo {
    display: flex;
    gap: 20px;
    padding: 40px 20px;
}
.sorties,
.meteo {
    flex: 1;
}
/* =========================================================
   CALENDRIER
========================================================= */
.cal-prog {
    padding: 25px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.week-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.week-title {
    font-size: 1.1rem;
    font-weight: 700;
}
.week-btn {
    background: var(--primary);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
}
.week-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
/* =========================================================
   CELLULE JOUR
========================================================= */
.day-cell {
    background: #f7f9fc;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}
.day-title {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}
/* =========================================================
   PROGRAMMATION
========================================================= */
.prog-item {
    background: #7caff5;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}
.btn-inscrire {
    border: none;
    background: var(--primary);
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-inscrire:hover {
    opacity: 0.85;
}
/* =========================================================
   FOOTER
========================================================= */
.footer {
    margin-top: 60px;
    background: var(--primary);
    color: white;
    padding: 40px 0;
}
.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
}
.footer a {
    color: var(--secondary);
}
/* =========================================================
   RESPONSIVE
======================================================== */
@media(max-width: 900px) {
    .hero-split,
    .sorties-meteo,
    .footer-container {
        flex-direction: column;
    }
    .home-blocks {
        grid-template-columns: 1fr;
    }
    .week-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .block-img {

        width: 170px;
    }
}

/* ======================================================
   LIGNE DES CARDS
====================================================== */

.row.cards-row {

    display: flex;

    flex-wrap: wrap;

    align-items: stretch;
}


/* ======================================================
   COLONNES
====================================================== */

.cards-row > div {

    display: flex;
}


/* ======================================================
   CARD
====================================================== */

.bloc-card {

    width: 100%;

    border: none;

    border-radius: 18px;

    background: white;

    box-shadow:
        0 4px 12px rgba(0,0,0,0.08);

    transition: 0.25s ease;
}

.bloc-card:hover {

    transform: translateY(-4px);
}


/* ======================================================
   BODY
====================================================== */

.bloc-card .card-body {

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    padding: 25px;
}


/* ======================================================
   IMAGE
====================================================== */

.block-img {

    width: 180px !important;

    height: auto !important;

    object-fit: contain !important;

    display: block;

    margin: 0 auto 20px auto;
}


/* ======================================================
   TITRE
====================================================== */

.block-title {

    color: #005BBB;

    font-size: 1.6rem;

    font-weight: 700;

    margin-bottom: 15px;
}


/* ======================================================
   PDF
====================================================== */

.doc-link {

    display: block;

    line-height: 1.5;

    word-break: break-word;

    color: #005BBB;

    text-decoration: none;
}

.doc-link:hover {

    text-decoration: underline;
}
/* pour le titre events*/
.event-date {

    font-size: 1rem;

    color: #666;

    margin-top: 10px;
}

.event-title {

    font-size: 1.2rem;

    font-weight: 600;

    margin-top: 15px;

    color: #222;
}

.event-date i,
.event-title i {

    color: #005BBB;

    margin-right: 6px;
}

.event-logo {

    width: 90px;

    height: auto;

    margin-bottom: 15px;
}
.sejour-map {

    width: 100%;

    overflow: hidden;

    border-radius: 12px;

    margin-top: 20px;
}

.sejour-map iframe {

    width: 100%;

    min-height: 220px;

    border: 0;
}
/* ======================================================
   WELCOME
====================================================== */

.welcome-section {

    padding: 50px 0;
    margin-top: 20px;
}

.welcome-card {

    border: none;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 4px 14px rgba(0,0,0,0.08);
}


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

.welcome-header {

    text-align: center;

    margin-bottom: 30px;
}

.welcome-logo {

    width: 120px;

    margin: 0 auto 20px auto;
}

.welcome-header h2 {

    color: #005BBB;

    font-size: 2rem;

    font-weight: 700;
}


/* ======================================================
   CONTENT
====================================================== */

.welcome-content {

    max-width: 900px;

    margin: auto;

    line-height: 1.8;

    font-size: 1.05rem;

    color: #333;
}


/* ======================================================
   DEVISE
====================================================== */

.club-devise {

    background: #f4f8ff;

    border-left: 5px solid #005BBB;

    padding: 20px;

    margin: 30px 0;

    border-radius: 10px;

    font-size: 1.2rem;

    font-style: italic;

    color: #005BBB;
}

.club-devise i {

    margin-right: 10px;
}


/* ======================================================
   LISTE
====================================================== */

.welcome-list {

    list-style: none;

    padding: 0;

    margin: 25px 0;
}

.welcome-list li {

    margin-bottom: 12px;
}

.welcome-list i {

    color: #005BBB;

    margin-right: 10px;
}


/* ======================================================
   ADHERENTS
====================================================== */

.welcome-members {

    margin-top: 30px;

    font-size: 1.1rem;

    font-weight: 600;

    color: #005BBB;
}


/* ======================================================
   SIGNATURE
====================================================== */

.welcome-signature {

    margin-top: 40px;

    text-align: right;

    font-style: italic;

    color: #666;
}
/* ======================================================
   COMITE DIRECTEUR
====================================================== */

.page-title {

    color: #005BBB;

    font-size: 2.4rem;

    font-weight: 700;

    margin-bottom: 10px;
}

.page-title i {

    margin-right: 10px;
}

.page-subtitle {

    color: #666;

    font-size: 1.1rem;
}


/* ======================================================
   CARD
====================================================== */

.comite-card {

    border: none;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 4px 14px rgba(0,0,0,0.08);

    transition: 0.25s ease;

    background: white;
}

.comite-card:hover {

    transform: translateY(-6px);
}


/* ======================================================
   BODY
====================================================== */

.comite-card .card-body {

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    padding: 30px 20px;
}


/* ======================================================
   PHOTO
====================================================== */

.comite-photo {

    width: 170px;

    height: 170px;

    object-fit: cover;

    border-radius: 50%;

    border: 5px solid #005BBB;

    margin-bottom: 20px;

    box-shadow:
        0 4px 10px rgba(0,0,0,0.1);
}


/* ======================================================
   PLACEHOLDER
====================================================== */

.comite-placeholder {

    width: 170px;

    height: 170px;

    border-radius: 50%;

    background: #f0f0f0;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 4rem;

    color: #999;

    margin-bottom: 20px;
}


/* ======================================================
   ROLE
====================================================== */

.comite-role {

    background: #005BBB;

    color: white;

    padding: 8px 16px;

    border-radius: 30px;

    font-size: 0.95rem;

    font-weight: 600;

    margin-bottom: 15px;
}


/* ======================================================
   NOM
====================================================== */

.comite-name {

    font-size: 1.2rem;

    font-weight: 700;

    color: #222;
}
/* ======================================================
   ANNONCES
====================================================== */

.masonry-grid {

    column-count: 4;

    column-gap: 25px;
}

.masonry-item {

    break-inside: avoid;

    margin-bottom: 25px;
}


/* ======================================================
   CARD
====================================================== */

.annonce-card {

    border: none;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 4px 14px rgba(0,0,0,0.08);

    transition: 0.25s ease;
}

.annonce-card:hover {

    transform: translateY(-5px);
}


/* ======================================================
   IMAGE
====================================================== */

.annonce-img {

    width: 100%;

    height: auto;

    display: block;

    object-fit: cover;
}


/* ======================================================
   PRIX
====================================================== */

.annonce-prix {

    display: inline-block;

    background: #28a745;

    color: white;

    padding: 8px 14px;

    border-radius: 30px;

    font-size: 1.2rem;

    font-weight: 700;

    margin-bottom: 20px;
}


/* ======================================================
   CONTENU
====================================================== */

.annonce-content {

    line-height: 1.7;

    color: #333;

    margin-bottom: 20px;
}


/* ======================================================
   DATE
====================================================== */

.annonce-date {

    color: #666;

    font-size: 0.9rem;
}


/* ======================================================
   AUTEUR
====================================================== */

.annonce-author {

    font-weight: 600;

    color: #005BBB;
}


/* ======================================================
   ACTIONS
====================================================== */

.annonce-actions {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}


/* ======================================================
   RESPONSIVE
====================================================== */

@media(max-width: 1200px) {

    .masonry-grid {

        column-count: 3;
    }
}

@media(max-width: 768px) {

    .masonry-grid {

        column-count: 2;
    }
}

@media(max-width: 576px) {

    .masonry-grid {

        column-count: 1;
    }
}
/* ======================================================
   BOUTON ESPACE ADHERENT
====================================================== */

.btn-espace {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    background: #FFD500;

    color: #222 !important;

    padding: 10px 16px;

    border-radius: 30px;

    font-weight: 700;

    text-decoration: none;

    margin-left: 25px;

    transition: 0.25s ease;

    box-shadow:
        0 3px 10px rgba(0,0,0,0.15);
}

.btn-espace:hover {

    background: white;

    color: #005BBB !important;

    transform: translateY(-2px);

    text-decoration: none;
}

.btn-espace i {

    font-size: 0.95rem;
}
/* ======================================================
   HERO TOP
====================================================== */

.hero-top {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

    background: white;

    padding: 15px 20px;

    border-radius: 16px;

    box-shadow:
        0 4px 12px rgba(0,0,0,0.08);
}


/* ======================================================
   LOGO
====================================================== */

.hero-logo img {

    width: 160px;

    height: auto;
}


/* ======================================================
   DATE / HEURE
====================================================== */

.hero-datetime {

    text-align: right;
}

.hero-date {

    font-size: 1rem;

    color: #666;

    margin-bottom: 5px;

    font-weight: 500;
}

.hero-time {

    font-size: 2rem;

    font-weight: 700;

    color: #005BBB;

    letter-spacing: 2px;
}


/* ======================================================
   CAROUSEL
====================================================== */

.hero-carousel {

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 4px 14px rgba(0,0,0,0.08);
}

.hero-img {

    height: 420px;

    object-fit: cover;
}


/* ======================================================
   RESPONSIVE
====================================================== */

@media(max-width: 768px) {

    .hero-top {

        flex-direction: column;

        gap: 20px;

        text-align: center;
    }

    .hero-datetime {

        text-align: center;
    }

    .hero-logo img {

        width: 120px;
    }

    .hero-img {

        height: 280px;
    }
}