/* ============================================
   Association Droits et Habitats - Styles
   ============================================ */

/* ============================================
   CSS Variables - Change colors in one place!
   ============================================ */
:root {
    /* Primary Colors */
    --primary-blue: #35398E;
    --primary-blue-dark: #03007C;
    --secondary-blue: #E7F1FA;
    --light-blue: #F5FAFD;

    /* Accent Colors */
    --yellow: #F0AF08;
    --gray: #656797;
    --dark-gray: #1E1F1F;
    --medium-gray: #4F4F4F;

    /* Base Colors */
    --white: #FFFFFF;
    --black: #000000;

    /* Spacing */
    --section-padding: 3% 2%;
    --section-padding-small: 2% 2%;

    /* Border Radius */
    --border-radius: 0.375rem;
}

/* ============================================
   Base Styles
   ============================================ */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--black);
}

/* ============================================
   Layout Containers
   ============================================ */
.section-container {
    padding: var(--section-padding);
}

.section-container-small {
    padding: var(--section-padding-small);
}

.bg-primary-blue {
    background-color: var(--secondary-blue);
}

.bg-light-blue {
    background-color: var(--light-blue);
}

.bg-white {
    background-color: var(--white);
}

.bg-dark {
    background-color: var(--dark-gray);
    color: var(--white);
}

/* ============================================
   Typography
   ============================================ */
h1,
h2 {
    color: var(--primary-blue-dark);
}

h1 {
    color: var(--primary-blue);
}

.text-primary {
    color: var(--primary-blue);
}

.text-primary-dark {
    color: var(--primary-blue-dark);
}

.text-white {
    color: var(--white);
}

.text-justify {
    text-align: justify;
}

/* ============================================
   Buttons
   ============================================ */
.btn-custom-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-custom-primary:hover {
    background-color: var(--primary-blue-dark);
    color: var(--white);
}

.btn-custom-secondary {
    background-color: var(--white);
    color: var(--gray);
    border: 1px solid var(--gray);
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-custom-secondary:hover {
    background-color: var(--secondary-blue);
    color: var(--primary-blue);
}

.btn-custom-dark {
    background-color: var(--medium-gray);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.5rem;
}

/* ============================================
   Header Styles
   ============================================ */
.header-container {
    padding: 1rem 0;
}

.header-logo {
    max-height: 80px;
    width: auto;
}

.nav-dropdown-btn {
    color: var(--primary-blue);
    background-color: transparent;
    border: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
}

.nav-dropdown-btn:hover,
.nav-dropdown-btn:focus {
    background-color: var(--secondary-blue);
    color: var(--primary-blue-dark);
}

.nav-link-custom {
    color: var(--primary-blue);
    background-color: transparent;
    border: none;
    font-weight: bold;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: inline-block;
    transition: all 0.2s ease;
}

.nav-link-custom:hover {
    color: var(--primary-blue-dark);
    text-decoration: underline;
}

.language-toggle {
    color: var(--primary-blue);
    font-weight: 500;
}

/* ============================================
   Footer Styles
   ============================================ */
.footer-container {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 2rem 0;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Ensure footer content aligns with page content */
#footerContainer {
    width: 100%;
    margin: 0;
    padding: 0;
}

.footer-logo {
    max-height: 60px;
    width: auto;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    transition: opacity 0.3s ease;
}

.footer-social-icon:hover {
    opacity: 0.7;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    color: var(--white);
    opacity: 0.8;
    text-decoration: underline;
}

/* ============================================
   Home Page Sections
   ============================================ */
.hero-section {
    background-color: var(--secondary-blue);
    padding: 3% 2%;
}

.hero-title {
    color: var(--primary-blue);
}

.hero-text {
    text-align: justify;
}

.hero-image {
    width: 100%;
    height: auto;
}

/* Contact Section (Je suis concerné) */
.contact-section {
    background-color: var(--light-blue);
    padding: 2% 2%;
}

.contact-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.contact-header {
    background-color: var(--yellow);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.contact-intro {
    background-color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem auto;
    text-align: center;
}

.map-responsive {
    width: 100%;
    margin: 1rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.map-responsive:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.map-responsive iframe {
    border: 0;
    width: 100%;
    display: block;
}

/* Actions Section */
.actions-section {
    background-color: var(--secondary-blue);
    padding: 2% 2%;
}

.action-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--black);
    display: block;
    min-height: 120px;
}

.action-card:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--primary-blue);
}

.action-card img {
    max-width: 50px;
    margin-bottom: 0.5rem;
}

/* ============================================
   Content Boxes
   ============================================ */
.content-box {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.content-box-light {
    background-color: var(--secondary-blue);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb-wrapper {
    background-color: #f8f9fa;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--primary-blue);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--gray);
}

/* ============================================
   Info Card (4 leviers)
   ============================================ */
.info-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: left;
    margin-bottom: 1rem;
}

.info-card h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ============================================
   Team Section
   ============================================ */
.team-section {
    background-color: var(--secondary-blue);
    padding: 2% 2%;
}

/* ============================================
   Utility Classes
   ============================================ */
.rounded-custom {
    border-radius: var(--border-radius);
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.mb-custom {
    margin-bottom: 1.5rem;
}

.mt-custom {
    margin-top: 1.5rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .section-container {
        padding: 5% 3%;
    }

    .hero-section {
        padding: 5% 3%;
    }

    .action-card {
        margin-bottom: 1rem;
    }

    .contact-card {
        margin-bottom: 1.5rem;
    }

    .header-logo {
        max-height: 60px;
    }

    .info-card h1 {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .btn-custom-primary,
    .btn-custom-secondary {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* ============================================
   Accessibility Improvements
   ============================================ */
.btn:focus,
.nav-link-custom:focus,
.nav-dropdown-btn:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}