/* Style principal */
:root {
    --primary-color: #4A919E;
    --secondary-color: #4AA3A2;
    --gold-color: #FFD754;
    --accent-color: #A7E0E0;
    
    --dark-color: #137C8B;
    --transition: all 0.3s ease;
}

/* Général */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    padding-top: 76px; /* Hauteur de la navbar fixe */
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--light-color);
}

.hero-section {
    position: relative;
    background: url('/assets/images/project-bg.jpg') center / cover no-repeat !important;
    border-radius: 16px;
    overflow: hidden; /* OBLIGATOIRE pour que l’overlay respecte l’arrondi */
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--dark-color) 97%, transparent),
        color-mix(in srgb, var(--secondary-color) 97%, transparent)
    ) !important;
}

.hero-section > * {
    position: relative;
    z-index: 1;
}

/* ===== BRANDING OSC ===== */
.osc-brand {
    text-decoration: none;
    transition: all 0.3s ease;
}

.osc-brand:hover {
    transform: translateY(-1px);
}

.osc-logo {
    height: 52px;
    width: auto;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.osc-brand:hover .osc-logo {
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* ===== FOOTER BRAND ===== */
/* ===== FOOTER BACKGROUND ===== */
.site-footer {
    background: linear-gradient(
        135deg,
        #2f5f66,
        #2b6f6a,
        #6f5a1f
    );
    color: #dee2e6;
}


.footer-brand {
    max-width: 420px;
}

/* ===== FOOTER LOGO (IDENTIQUE AU HEADER) ===== */
.footer-logo {
    height: 40px;
    width: auto;
    padding: 4px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}


.footer-brand-text {
    line-height: 1.3;
}

.footer-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4A919E;
    letter-spacing: 0.4px;
}

.footer-scope {
    display: block;
    font-size: 0.75rem;
    color: #adb5bd;
}

.footer-description {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.6;
}


/* Texte */
.brand-text {
    line-height: 1.1;
}

.brand-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: white; /* Bootstrap primary */
}

.brand-subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: white; /* Bootstrap success */
}

.brand-tagline {
    display: block;
    font-size: 0.7rem;
    color: white;
    font-style: italic;
}


/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    margin: 0 5px;
    transition: var(--transition);
    color: white;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Cards */
.card {
    border: none;
    transition: var(--transition);
    border-radius: 10px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Boutons */
.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    font-weight: 600;
    padding: 10px 25px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--gold-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Sections */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: var(--light-color);
}

/* Social Icons */
.social-icons a {
    transition: var(--transition);
    display: inline-block;
}

.social-icons a:hover {
    transform: translateY(-3px);
    color: var(--primary-color) !important;
}

/* Lightbox custom */
.lightbox .lb-image {
    border-radius: 10px;
}

/* Formulaires */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 165, 116, 0.25);
}

.form-floating>label {
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Facebook Widget */
.facebook-widget .card {
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.facebook-widget .card-header {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p.lead {
        font-size: 1.1rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .facebook-widget {
        display: none !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Badges */
.badge {
    padding: 8px 12px;
    font-weight: 500;
    border-radius: 50px;
}

.badge.bg-primary {
    background-color: var(--secondary-color) !important;
}

/* Pagination */
.pagination .page-link {
    color: var(--secondary-color);
    border: none;
    margin: 0 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .page-item.active .page-link {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.pagination .page-link:hover {
    background-color: rgba(212, 165, 116, 0.1);
    color: var(--secondary-color);
}

/* Contact Icons */
.contact-icon {
    background-color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Map */
.map-container {
    border-radius: 10px;
    overflow: hidden;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-color);
    border-top: 5px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}