/**
 * Inter-SEL 2026 - Styles personnalisés
 * Palette verte naturelle et design organique
 */

@font-face {
    font-family: 'jagiq';
    src: url('../fonts/jagiq-awesome.ttf');
}

@font-face {
    font-family: 'Ubuntu';
    src: url('../fonts/Ubuntu-Regular.ttf');
}

:root {
    --vert-principal: #2d8a4e;
    --vert-fonce: #1e5f36;
    --vert-clair: #4caf50;
    --vert-pale: #e8f5e9;
    --vert-accent: #81c784;
    --terre: #8d6e63;
    --creme: #fafaf5;
}

body {
    background-color: var(--creme);
}

/* Logo style original */
.logo {
    font-family: 'jagiq', sans-serif;
    font-size: 5.5rem;
    color: rgb(0, 128, 117);
}

/* Navbar douce */
.navbar {
    background: linear-gradient(180deg, #fff 0%, var(--vert-pale) 100%) !important;
    border-bottom: 2px solid var(--vert-accent) !important;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand .logo {
    font-size: 3rem;
}

.nav-link {
    color: var(--vert-fonce) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 0.15rem;
    padding: 0.5rem 0.5rem !important;
    border: 1px solid var(--vert-accent);
    border-radius: 0.5rem;
}

.nav-link:hover {
    color: #fff !important;
    background-color: var(--vert-clair);
    border-color: var(--vert-clair);
}

/* Hero section - forme organique */
.hero-section {
    background: linear-gradient(135deg, var(--vert-clair) 0%, var(--vert-accent) 50%, #a5d6a7 100%);
    position: relative;
    overflow: hidden;
    font-family: 'Ubuntu', 'Segoe UI', sans-serif;
}

.hero-section .welcome-zone {
    border: 2px solid white;
    padding: 1.5rem;
    border-radius: 1rem;
}

.hero-section .welcome-zone h1,
.hero-section .welcome-zone p {
    font-family: 'Ubuntu', 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
}

.hero-section .welcome-zone h1 {
    font-size: 1.4rem;
    font-weight: 600;
}

.hero-section::before {
    content: "";
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--creme);
    border-radius: 50% 50% 0 0;
}

/* Texte d'accueil fluide */
.welcome-text h1 {
    font-weight: 300;
    font-size: 2.8rem;
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.welcome-text .lead {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.95;
    line-height: 1.8;
}

.welcome-text .highlight {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* Cards avec coins arrondis */
.card {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-body {
    padding: 2rem;
}

/* Formulaire de connexion */
.login-card {
    background: #fff;
    border-radius: 1.5rem;
    border-left: 5px solid var(--vert-accent);
}

.login-card .card-title {
    color: var(--vert-fonce);
    font-weight: 600;
}

.hero-section .card {
    width: 100%;
}

/* Videos YouTube */
.ratio.ratio-16x9 {
    max-width: 560px;
}

/* Boutons verts */
.btn-primary {
    background: linear-gradient(135deg, var(--vert-clair) 0%, var(--vert-accent) 100%);
    border: none;
    border-radius: 2rem;
    padding: 0.6rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--vert-principal) 0%, var(--vert-clair) 100%);
    transform: scale(1.02);
}

.btn-outline-primary {
    color: var(--vert-principal);
    border-color: var(--vert-principal);
    border-radius: 2rem;
}

.btn-outline-primary:hover {
    background: var(--vert-principal);
    border-color: var(--vert-principal);
}

/* Stats section */
.stats-section {
    background: linear-gradient(180deg, var(--creme) 0%, #fff 100%);
}

.stat-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    border-bottom: 4px solid var(--vert-accent);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--vert-principal);
    line-height: 1;
}

.stat-label {
    color: var(--terre);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Section explicative */
.info-section {
    background: var(--vert-pale);
    position: relative;
}

.info-section::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-radius: 0 0 50% 50%;
}

/* Form inputs */
.form-control, .form-select {
    border-radius: 0.5rem;
    border: 2px solid #e0e0e0;
    padding: 0.7rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--vert-accent);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.form-label {
    color: var(--vert-fonce);
    font-weight: 500;
}

/* Bandeau info */
.bandeau-info {
    background: linear-gradient(90deg, #fff8e1, #fffde7);
    border: 3px solid #ffe082;
    border-top: none;
    padding: 0.6rem 1.5rem;
    width: fit-content;
    max-width: 80%;
    margin: 0 auto 1rem auto;
    border-radius: 0 0 0.5rem 0.5rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

.bandeau-info-content {
    color: #5d4037;
    font-size: 0.95rem;
    text-align: center;
    white-space: pre-line;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3), 0 0 5px rgba(33, 150, 243, 0.2);
        border-color: #ffe082;
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 193, 7, 0.5), 0 0 15px rgba(33, 150, 243, 0.4);
        border-color: #64b5f6;
    }
}

/* Cards accueil membre - style léger avec dégradé */
.card-accueil {
    border: 1px solid #c7e6c7;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-family: 'Ubuntu', 'Segoe UI', sans-serif;
}

.card-accueil:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card-accueil .card-header {
    background: linear-gradient(145deg, #e3f2fd, #bbdefb);
    border-bottom: 1px solid #90caf9;
    color: #1565c0;
    font-weight: 500;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.card-accueil .card-body {
    padding: 0.5rem 0.75rem;
    background: linear-gradient(180deg, #fff, #f8fff8);
}

.card-accueil .table {
    margin-top: 0;
}

.card-accueil .table tr:first-child td {
    padding-top: 0;
}

.card-accueil .table {
    font-size: 0.95rem;
}

.card-accueil .table td {
    padding: 0.3rem 0;
}

.card-accueil .table a {
    text-decoration: none;
    color: #1565c0;
}

.card-accueil .table a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* Table annonces (liste des annonces) */
.table-annonces {
    font-family: 'Ubuntu', 'Segoe UI', sans-serif;
    font-size: 0.95rem;
}

.table-annonces a {
    text-decoration: none;
    color: #1565c0;
}

.table-annonces a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

.table-annonces .lien-membre {
    color: #2d8a4e;
    text-decoration: none;
}

.table-annonces .lien-membre:hover {
    color: #1e5f36;
}

/* Modal headers - même style que les cartes accueil */
.modal-header-accueil {
    background: linear-gradient(145deg, #e3f2fd, #bbdefb);
    border-bottom: 1px solid #90caf9;
    color: #1565c0;
}

.modal-header-accueil .modal-title {
    color: #1565c0;
}

.modal-header-accueil .btn-close {
    filter: none;
}

/* Card headers - même style que les cartes accueil */
.card-header-accueil {
    background: linear-gradient(145deg, #e3f2fd, #bbdefb);
    border-bottom: 1px solid #90caf9;
    color: #1565c0;
    font-weight: 500;
}

/* Footer */
footer {
    background: var(--vert-pale) !important;
    border-top: 2px solid var(--vert-accent) !important;
}

/* Liens */
a {
    color: var(--vert-principal);
}

a:hover {
    color: var(--vert-fonce);
}

/* Bulle annonce (tooltip au survol) */
.annonce-titre {
    position: relative;
    cursor: pointer;
    color: #333399;
}

.annonce-titre .annonce-bulle {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 1000;
    background: #fffef0;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    padding: 0.75rem;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    white-space: pre-wrap;
    font-size: 0.85rem;
    color: #333;
    text-align: left;
}

.annonce-titre:hover .annonce-bulle {
    display: block;
}

.annonce-fichiers {
    white-space: normal;
}

.annonce-fichiers a {
    display: inline-block;
    font-size: 1.2rem;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.annonce-fichiers a:hover {
    background-color: rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-text h1 {
        font-size: 2rem;
    }

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

    .logo {
        font-size: 1.5rem;
    }

    .hero-section::before {
        height: 50px;
        bottom: -25px;
    }
}
