/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #444;
    line-height: 1.6;
    background-color: #f7f7f7;
}

body.menu-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Couleurs utilitaires --- */
:root {
    --primary-color: #8b1d1c;
    --accent-color: #e7af24;
    --bg-light: #f7f7f7;
    --text-gray: #666;
    --white: #ffffff;
}

/* --- Top Bar --- */
.top-bar {
    background: var(--white);
    border-bottom: 1px solid #eee;
    font-size: 12px;
    padding: 8px 0;
    color: #888;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-links a {
    margin-right: 15px;
    color: #777;
}

.top-links .phone {
    color: var(--primary-color);
    font-weight: bold;
    margin-left: 10px;
}

.social-icons a {
    color: var(--primary-color);
    margin-left: 10px;
    font-size: 14px;
}

/* --- Header --- */
header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Menu Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navigation */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav a {
    font-weight: 500;
    font-size: 14px;
    color: #555;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a.btn-donate {
    color: var(--accent-color);
    font-weight: 700;
    border: 1px solid var(--accent-color);
    padding: 5px 15px;
    border-radius: 20px;
}

.main-nav a.btn-donate::after {
    display: none;
}

.main-nav a.btn-donate:hover {
    background: var(--accent-color);
    color: #fff;
}

/* --- Hero Section --- */
.hero {
    height: 500px;
    background-color: #333;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.cta-circle {
    position: absolute;
    top: 50px;
    right: 10%;
    background: var(--accent-color);
    color: #fff;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 13px;
    line-height: 1.3;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: rotate(10deg);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: rotate(10deg) translateY(0px); }
    50% { transform: rotate(10deg) translateY(-10px); }
}

/* --- Quick Access Cards --- */
.quick-access {
    margin-top: 0;
}

.quick-access .container {
    display: flex;
    justify-content: center;
    gap: 20px;
    transform: translateY(-50%);
}

.access-card {
    flex: 1;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #fff;
    font-size: 16px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.access-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.access-card i {
    font-size: 30px;
}

.access-card.blue { background-color: var(--primary-color); }
.access-card.yellow { background-color: var(--accent-color); }
.access-card.gray { background-color: #444; }

/* --- Presentation Section --- */
.presentation {
    padding: 40px 0 80px;
    background-color: #fff;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.presentation img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.text-content h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.separator {
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin-bottom: 20px;
}

.text-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    text-align: justify;
}

.presentation .links a {
    color: var(--primary-color);
    font-size: 14px;
    margin-right: 20px;
    text-decoration: underline;
    font-weight: 600;
}

.presentation .links a:hover {
    color: var(--accent-color);
}

/* --- News Section --- */
.bg-light {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    text-transform: uppercase;
    font-weight: 600;
    color: #333;
}

.section-header .view-all {
    font-size: 12px;
    color: var(--primary-color);
}

.section-header .view-all:hover {
    color: var(--accent-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.news-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-item .date {
    display: block;
    font-size: 11px;
    color: var(--accent-color);
    font-weight: bold;
    text-transform: uppercase;
    padding: 10px 15px 0;
}

.news-item h3 {
    font-size: 16px;
    margin-top: 5px;
    font-weight: 600;
    padding: 0 15px 15px;
}

/* --- Parallax Banner --- */
.parallax-banner {
    height: 350px;
    background: linear-gradient(rgba(139, 29, 28, 0.9), rgba(139, 29, 28, 0.8)), url('img/banniere_parallax.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.parallax-banner h1 {
    font-size: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.parallax-banner .signature {
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-size: 35px;
    color: var(--accent-color);
    margin: 10px 0;
}

.parallax-banner h3 {
    font-weight: 300;
    font-size: 20px;
    letter-spacing: 5px;
    opacity: 0.9;
}

/* --- Services / Valeurs --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-item {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.service-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.service-item h3 {
    font-size: 15px;
    margin: 15px 15px 10px;
    color: var(--primary-color);
    font-weight: 600;
}

.service-item p {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
    padding: 0 15px 15px;
}

/* --- Bottom Links --- */
.bottom-links .container {
    gap: 30px;
    padding: 50px 0;
}

.link-box {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.link-box:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.blue-box { 
    background-color: var(--primary-color);
    background-blend-mode: multiply;
}

.light-blue-box { 
    background-color: var(--accent-color);
    background-blend-mode: multiply;
}

/* --- Contact CTA --- */
.contact-cta {
    background-color: var(--primary-color);
    padding: 40px 0;
    text-align: center;
    color: #fff;
}

.contact-cta h2 {
    font-size: 22px;
    display: inline-block;
    margin-right: 30px;
    vertical-align: middle;
}

.btn-white {
    background: #fff;
    color: var(--primary-color);
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 3px;
    display: inline-block;
    vertical-align: middle;
}

.btn-white:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- Footer --- */
footer {
    background-color: #e9e9e9;
    padding-top: 60px;
    font-size: 13px;
    color: #555;
    border-top: 5px solid var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    transition: all 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-col.contacts li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-col.contacts i {
    color: var(--accent-color);
    font-size: 16px;
    margin-top: 3px;
}

.btn-dark-blue {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 20px;
    margin: 15px 0;
    font-size: 12px;
    transition: all 0.3s;
}

.btn-dark-blue:hover {
    background: #601413;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.certifications img {
    margin-right: 10px;
    vertical-align: middle;
}

.rdv-col .btn-orange {
    display: block;
    background: var(--accent-color);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.rdv-col .btn-orange:hover {
    background: #c9961a;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.rdv-col .btn-white-outline {
    display: block;
    background: #fff;
    color: #555;
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.rdv-col .btn-white-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.consultation-info {
    display: flex;
    gap: 10px;
    color: var(--primary-color);
}

.consultation-info i {
    font-size: 24px;
}

.copyright-bar {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 0;
    font-size: 12px;
}

.copyright-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-bar .socials a {
    color: #fff;
    margin-left: 10px;
    font-size: 16px;
}

.copyright-bar .socials a:hover {
    color: var(--accent-color);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .news-grid, 
    .services-grid, 
    .footer-grid, 
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-access .container {
        flex-wrap: wrap;
    }

    .parallax-banner {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    /* Top Bar caché sur mobile */
    .top-bar {
        display: none;
    }

    /* Header Mobile */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Navigation Mobile */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 0;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .main-nav a {
        display: block;
        padding: 15px 10px;
        font-size: 16px;
    }

    .main-nav a.btn-donate {
        margin-top: 20px;
        text-align: center;
        border-radius: 5px;
    }

    /* Overlay pour le menu mobile */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }

    /* Hero Section Mobile */
    .hero {
        height: 350px;
    }

    .cta-circle {
        width: 120px;
        height: 120px;
        font-size: 11px;
        top: 30px;
        right: 5%;
    }

    /* Quick Access Mobile */
    .quick-access .container {
        flex-direction: column;
        transform: translateY(0);
        margin-top: -30px;
    }

    .access-card {
        height: 80px;
    }

    /* Grilles Mobile */
    .grid-2, 
    .news-grid, 
    .services-grid, 
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Parallax Banner Mobile */
    .parallax-banner {
        background-attachment: scroll;
    }

    .parallax-banner h1 {
        font-size: 24px;
    }

    .parallax-banner .signature {
        font-size: 22px;
    }

    .parallax-banner h3 {
        font-size: 16px;
        letter-spacing: 2px;
    }

    /* Contact CTA Mobile */
    .contact-cta h2 {
        display: block;
        margin: 0 0 20px 0;
        font-size: 18px;
    }

    /* Footer Mobile */
    .copyright-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    /* Presentation Mobile */
    .text-content h2 {
        font-size: 20px;
    }

    .text-content p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    .hero {
        height: 300px;
    }

    .cta-circle {
        width: 100px;
        height: 100px;
        font-size: 10px;
    }

    .access-card {
        font-size: 14px;
    }

    .access-card i {
        font-size: 24px;
    }
}
/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-pagination {
    padding: 8px 15px;
    background: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-pagination:hover,
.btn-pagination.active {
    background: var(--primary-color);
    color: #fff;
}

/* --- Formulaires --- */
input, textarea, select {
    font-family: 'Montserrat', sans-serif;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-color) !important;
}
