/* ========= ACAM54 — style.css V18 ========= */

:root {
    --acam-blue: #3DAFCE;
    --acam-blue-dark: #2c9ab5;
    --acam-dark: #0d2b38;
    --acam-light: #e8f6fb;
    --acam-bg: #f0f7fa;
    --font-main: 'Lato', sans-serif;
    --font-title: 'Bebas Neue', cursive;
    --font-alt: 'Barlow Condensed', sans-serif;
    /* Rôles */
    --col-instructeur: #2980b9;
    --col-remorqueur: #d35400;
    --col-eleve: #27ae60;
    --col-pilote: #8e44ad;
    --col-brevete: #c0392b;
}

/* ---- BASE ---- */
body {
    font-family: var(--font-main);
    background: var(--acam-bg);
    color: #1a2a35;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---- CARTES GLOBALES (fond bleut + ombre) ---- */
.card {
    background: #c0e7f3 !important;
    border: 2px solid rgba(61, 175, 206, 0.15) !important;
    box-shadow: 0 4px 18px rgba(61, 175, 206, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06) !important;
    border-radius: 14px !important;
    transition: transform .2s, box-shadow .2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(61, 175, 206, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.card-header {
    border-radius: 14px 14px 0 0 !important;
}

.card-footer {
    border-radius: 0 0 14px 14px !important;
}

/* ---- NAVBAR ---- */
.acam-navbar {
    background: var(--acam-dark) !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
    min-height: 68px;
}

.acam-navbar .nav-link {
    color: rgba(255, 255, 255, .82) !important;
    font-family: var(--font-alt);
    font-size: 1.05rem;
    letter-spacing: .04em;
    padding: .45rem .85rem;
    transition: color .2s;
}

.acam-navbar .nav-link:hover,
.acam-navbar .nav-link.active-nav {
    color: var(--acam-blue) !important;
}

.brand-text {
    font-family: var(--font-alt);
    font-size: 1.15rem;
    color: white;
    letter-spacing: .06em;
    font-weight: 600;
}

.avatar-badge {
    width: 34px;
    height: 34px;
    background: var(--acam-blue);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .88rem;
    color: white;
}

/* ---- BOUTONS ---- */
.btn-acam {
    background: var(--acam-blue);
    border-color: var(--acam-blue);
    color: white;
    font-family: var(--font-alt);
    font-weight: 600;
    letter-spacing: .04em;
    transition: background .2s, transform .15s, box-shadow .2s;
}

.btn-acam:hover {
    background: var(--acam-blue-dark);
    border-color: var(--acam-blue-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(61, 175, 206, .35);
}

.btn-outline-acam {
    border-color: var(--acam-blue);
    color: var(--acam-blue);
    font-family: var(--font-alt);
    font-weight: 600;
}

.btn-outline-acam:hover {
    background: var(--acam-blue);
    color: white;
}

.text-acam {
    color: var(--acam-blue) !important;
}

.bg-acam {
    background: var(--acam-blue) !important;
}

.bg-acam-light {
    background: var(--acam-light) !important;
}

/* ---- HERO ---- */
.hero-section {
    position: relative;
    min-height: 82vh;
    background: linear-gradient(135deg, #07141a 0%, #0d2b38 45%, #1a4a60 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 450"><path d="M0 200 Q250 40 500 200 Q700 340 900 140 L900 450 L0 450Z" fill="%233DAFCE" opacity="0.07"/><path d="M0 300 Q350 120 650 270 Q800 330 900 240 L900 450 L0 450Z" fill="%233DAFCE" opacity="0.04"/></svg>') center/cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .12);
}

.hero-pretitle {
    font-family: var(--font-alt);
    letter-spacing: .22em;
    font-size: .92rem;
    color: var(--acam-blue);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(3.2rem, 9vw, 6.5rem);
    line-height: 1.02;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
}

.hero-sub {
    font-size: 1.1rem;
    opacity: .85;
    max-width: 620px;
    margin: 0 auto 2rem;
}

/* ---- SECTIONS ---- */
.section-title {
    font-family: var(--font-title);
    font-size: 2.4rem;
    letter-spacing: .04em;
    color: var(--acam-dark);
}

/* ---- BANDEAU DÉFILANT ---- */
.bandeau {
    background: var(--acam-blue);
    color: white;
    overflow: hidden;
    white-space: nowrap;
    padding: .5rem 0;
}

.bandeau-track {
    display: inline-block;
    animation: scroll-bandeau 30s linear infinite;
}

.bandeau-track:hover {
    animation-play-state: paused; /* pause au survol */
}

.bandeau-item {
    display: inline-block;
    padding: 0 2.5rem;
    font-family: var(--font-alt);
    font-size: .95rem;
    letter-spacing: .04em;
}

.bandeau-item::before {
    content: '✈';
    margin-right: .8rem;
    opacity: .7;
}

@keyframes scroll-bandeau {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---- STATS Chiffres clés (1931, 40+, 9, 500+) ---- */
.stat-card {
    padding: 1.5rem;
    background: #c0e7f3; 
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(61, 175, 206, .12);
}

.stat-number {
    font-family: var(--font-title);
    font-size: 3rem;
    color: var(--acam-blue);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-alt);
    color: #666;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: .3rem;
}

/* ---- FEATURE CARDS ---- */
.feature-card {
    border-radius: 14px;
    background: #e8f6fb !important;
    border: 1px solid rgba(61, 175, 206, .15) !important;
    box-shadow: 0 4px 18px rgba(61, 175, 206, .12) !important;
    transition: transform .2s, box-shadow .2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(61, 175, 206, .2) !important;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--acam-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--acam-blue);
}

/* ---- ACTUALITÉS ---- */
.actu-img-placeholder {
    height: 150px;
    background: linear-gradient(135deg, var(--acam-dark), var(--acam-blue));
    border-radius: 14px 14px 0 0;
}

.actu-card {
    border-radius: 14px !important;
    overflow: hidden;
}

.actu-list-card {
    border-left: 4px solid var(--acam-blue) !important;
}

/* Couleurs par catégorie */
.cat-stage {
    background: #17a2b8 !important;
}

.cat-competition {
    background: #e74c3c !important;
}

.cat-lache {
    background: #27ae60 !important;
}

.cat-vie {
    background: #8e44ad !important;
}

.cat-news {
    background: #f39c12 !important;
}

/* ---- CTA ---- */
.cta-section {
    background: linear-gradient(135deg, var(--acam-dark), #1a4a60);
}

.text-white-75 {
    color: rgba(255, 255, 255, .78);
}

/* ---- FOOTER ---- */
.acam-footer {
    background: #060d11;
}

.footer-links a {
    color: rgba(255, 255, 255, .62);
    text-decoration: none;
    display: block;
    margin-bottom: .45rem;
    font-size: .9rem;
    transition: color .2s;
}

.footer-links a:hover {
    color: var(--acam-blue);
}

.footer-contact li {
    color: rgba(255, 255, 255, .72);
    font-size: .9rem;
    margin-bottom: .65rem;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--acam-blue);
}

.footer-social {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background .2s, transform .2s;
    font-size: .95rem;
}

.footer-social:hover {
    background: var(--acam-blue);
    color: white;
    transform: scale(1.1);
}

.social-label {
    font-size: .7rem;
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .4);
    text-align: center;
}

/* ---- BADGES ---- */
.badge-stage {
    background: #17a2b8;
    color: white;
    font-size: .7rem;
    letter-spacing: .06em;
}

.badge-competition {
    background: #e74c3c;
    color: white;
    font-size: .7rem;
}

.badge-lache {
    background: #27ae60;
    color: white;
    font-size: .7rem;
}

.badge-categorie {
    background: rgba(61, 175, 206, .15);
    color: var(--acam-blue);
    border: 1px solid var(--acam-blue);
    font-size: .7rem;
}

.badge-type {
    background: var(--acam-light);
    color: var(--acam-blue);
    font-size: .7rem;
    letter-spacing: .06em;
}

.badge-role-tag {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
}

/* Rôles utilisateur */
.badge-role-admin {
    background: #c0392b;
    color: white;
}

.badge-role-instructeur {
    background: var(--col-instructeur);
    color: white;
}

.badge-role-membre {
    background: var(--col-eleve);
    color: white;
}

.badge-role-eleve {
    background: #f39c12;
    color: white;
}

.badge-role-pilote {
    background: var(--col-pilote);
    color: white;
}

.badge-role-brevete {
    background: var(--col-brevete);
    color: white;
}

/* ---- RÔLES FORUM (couleurs vives) ---- */
.role-tag-admin {
    color: #c0392b;
    font-weight: 700;
}

.role-tag-instructeur {
    color: var(--col-instructeur);
    font-weight: 700;
}

.role-tag-membre {
    color: var(--col-eleve);
    font-weight: 700;
}

.role-tag-eleve {
    color: #e67e22;
    font-weight: 700;
}

.role-tag-pilote {
    color: var(--col-pilote);
    font-weight: 700;
}

.role-tag-brevete {
    color: var(--col-brevete);
    font-weight: 700;
}

/* ---- LOGIN / FORMS ---- */
.demo-accounts {
    background: #c0e7f3;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(61, 175, 206, .2);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--acam-blue);
    box-shadow: 0 0 0 .2rem rgba(61, 175, 206, .25);
}

/* ---- DASHBOARD ---- */
.dash-card {
    background: #e8f6fb !important;
    border: 1px solid rgba(61, 175, 206, .18) !important;
    box-shadow: 0 4px 16px rgba(61, 175, 206, .12) !important;
    border-radius: 14px;
    color: var(--acam-dark);
    transition: transform .2s, box-shadow .2s;
}

.dash-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(61, 175, 206, .22) !important;
}

.dash-icon {
    width: 52px;
    height: 52px;
    background: var(--acam-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dash-icon i {
    font-size: 1.4rem;
    color: var(--acam-blue);
}

.planning-date {
    min-width: 44px;
}

.planning-day {
    font-size: .65rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: .08em;
}

.planning-num {
    font-family: var(--font-title);
    font-size: 1.7rem;
    color: var(--acam-dark);
    line-height: 1;
}

.planning-mini-row:hover {
    background: var(--acam-light);
}

/* ---- PLANNING ---- */
.planning-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(61, 175, 206, .1);
}

.planning-table {
    min-width: 820px;
}

.planning-table th {
    font-family: var(--font-alt);
    font-size: .9rem;
    letter-spacing: .05em;
}

.role-col {
    width: 130px;
}

.role-label {
    font-family: var(--font-alt);
    font-size: .92rem;
    white-space: nowrap;
}

/* Couleurs de slots VIVES */
.slot {
    padding: .55rem .6rem;
    border-radius: 10px;
    font-size: .8rem;
}

.slot-instructeur {
    background: rgba(41, 128, 185, .2);
    border: 1.5px solid var(--col-instructeur);
    color: #1a4a6b;
}

.slot-remorqueur {
    background: rgba(211, 84, 0, .18);
    border: 1.5px solid var(--col-remorqueur);
    color: #7a2d00;
}

.slot-eleve {
    background: rgba(39, 174, 96, .18);
    border: 1.5px solid var(--col-eleve);
    color: #145c30;
}

.slot-pilote {
    background: rgba(142, 68, 173, .2);
    border: 1.5px solid var(--col-pilote);
    color: #5b1f7a;
}

.slot-brevete {
    background: rgba(192, 57, 43, .2);
    border: 1.5px solid var(--col-brevete);
    color: #7a1a10;
}

.slot-empty {
    display: block;
    padding: .5rem;
    color: #bbb;
    font-size: .8rem;
    text-decoration: none;
    border: 1.5px dashed #ddd;
    border-radius: 10px;
    transition: border-color .2s, color .2s;
}

.slot-empty:hover {
    border-color: var(--acam-blue);
    color: var(--acam-blue);
    background: var(--acam-light);
}

/* Légende */
.badge-legend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-alt);
    font-size: .92rem;
}

.dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: inline-block;
}

.dot-instructeur {
    background: var(--col-instructeur);
}

.dot-remorqueur {
    background: var(--col-remorqueur);
}

.dot-eleve {
    background: var(--col-eleve);
}

.dot-pilote {
    background: var(--col-pilote);
}

.dot-brevete {
    background: var(--col-brevete);
}

/* Planning mobile */
.planning-day-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(61, 175, 206, .1);
}

.planning-day-header {
    background: var(--acam-dark);
    color: white;
    padding: .8rem 1rem;
    font-family: var(--font-alt);
    font-size: 1rem;
}

.planning-day-header.today {
    background: var(--acam-blue);
}

.planning-day-body {
    background: white;
    padding: 1rem;
    border: 1px solid rgba(61, 175, 206, .12);
    border-top: none;
}

/* ---- FORUM ---- */
.forum-card {
    border-radius: 14px !important;
    transition: transform .15s, box-shadow .2s;
}

.forum-card:hover {
    transform: translateY(-3px);
}

.avatar-sm {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: var(--acam-blue);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: .92rem;
}

.avatar-lg {
    width: 76px;
    height: 76px;
    background: var(--acam-blue);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 2rem;
}

/* ---- GALERIE ---- */
.galerie-card {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(61, 175, 206, .12);
}

.galerie-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 28px rgba(61, 175, 206, .22);
}

.galerie-placeholder {
    height: 190px;
    background: linear-gradient(135deg, #1a4a60, #3DAFCE);
}

.galerie-badge {
    font-size: .65rem;
    letter-spacing: .08em;
    background: rgba(0, 0, 0, .55);
    color: white;
}

.galerie-add-btn {
    border: 2px dashed rgba(61, 175, 206, .5);
    border-radius: 12px;
    height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(61, 175, 206, .05);
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.galerie-add-btn:hover {
    background: rgba(61, 175, 206, .12);
    border-color: var(--acam-blue);
}

/* ---- TARIFS ---- */
.tarif-card {
    border-radius: 16px !important;
    position: relative;
    overflow: hidden;
}

.tarif-featured {
    border: 2px solid var(--acam-blue) !important;
}

.tarif-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--acam-blue);
    color: white;
    font-size: .7rem;
    padding: .2rem .65rem;
    border-radius: 20px;
    font-family: var(--font-alt);
}

.tarif-icon {
    width: 60px;
    height: 60px;
    background: var(--acam-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tarif-icon i {
    font-size: 1.6rem;
    color: var(--acam-blue);
}

.tarif-price {
    font-family: var(--font-title);
    font-size: 3.2rem;
    color: var(--acam-dark);
    margin: .5rem 0;
}

.tarif-price span {
    font-size: 1.6rem;
}

/* ---- CLUB / PLANEURS ---- */
.planeur-card {
    border-radius: 14px !important;
    overflow: hidden;
}

.planeur-img {
    height: 170px;
    background: linear-gradient(135deg, #1a4a60, #3DAFCE);
}

/* ---- TIMELINE ---- */
.timeline {
    position: relative;
    padding-left: 2.2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: .6rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--acam-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.8rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.85rem;
    top: .3rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--acam-blue);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--acam-blue);
}

.timeline-year {
    font-family: var(--font-alt);
    font-weight: 700;
    color: var(--acam-blue);
    font-size: 1.05rem;
}

.timeline-content {
    color: #555;
    font-size: .96rem;
}

/* ---- CONTACT ---- */
.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .95rem;
    margin-bottom: .8rem;
}

/* ---- PAGINATION ---- */
.pagination .page-link {
    color: var(--acam-blue);
    border-color: rgba(61, 175, 206, .3);
}

.pagination .page-item.active .page-link {
    background: var(--acam-blue);
    border-color: var(--acam-blue);
    color: white;
}

.pagination .page-link:hover {
    background: var(--acam-light);
    color: var(--acam-blue-dark);
}

/* ---- SEARCH / FILTERS ---- */
.filter-bar {
    background: linear-gradient(145deg, #e5eff1, #c0e7f3);
    border: 1px solid rgba(61, 175, 206, .15);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    box-shadow: 0 2px 10px rgba(61, 175, 206, .08);
}

/* Responsive */
@media (max-width:768px) {
    .hero-title {
        font-size: 3rem;
    }

    .stat-number {
        font-size: 2.4rem;
    }

    .planning-table-wrap {
        font-size: .78rem;
    }
}