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

body {
    font-family: 'Raleway', 'Mulish', 'Montserrat', sans-serif;
    font-weight: 500;
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f0f4f8 0%, #e0e7ec 100%);
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Custom Colors */
:root {
    --teal-100: #e6f0f1;
    --teal-200: #c2d9da;
    --teal-300: #99c2c4;
    --teal-400: #70a9ad;
    --teal-500: #2C7A7B;
    --teal-600: #236B6C;
    --teal-700: #1d5a5c;
    --teal-800: #174749;
    --teal-900: #0f3436;
    --chocolate-100: #f5ece6;
    --chocolate-200: #e8d4c9;
    --chocolate-300: #d5a78e;
    --chocolate-400: #c2836b;
    --chocolate-500: #8B4513;
    --chocolate-600: #7a3d0f;
    --chocolate-700: #69360d;
    --chocolate-800: #582e0a;
    --chocolate-900: #472508;
}

/* Emoji Icon Styles 
.override-icon {
    font-size: 3.5rem;
    display: inline-block;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}



/* Fixed Navigation */
.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.fixed-nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

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

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle, .close-toggle {
    display: none;
    z-index: 1001;
}

@media (max-width: 768px) {
    .fixed-nav {
        padding: 0.5rem 0;
    }
    .logo img {
        height: 40px;
    }
    .logo {
        display: block !important;
    }
    .nav-links {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        padding: 1rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        display: none;
        opacity: 0;
    }
    .nav-links.active {
        transform: translateY(0);
        display: flex;
        opacity: 1;
    }
    .nav-link {
        margin: 0.5rem 0;
        font-size: 1rem;
    }
    .menu-toggle {
        display: flex;
        align-items: center;
    }
    .close-toggle {
        display: none;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    .nav-links.active .close-toggle {
        display: block;
    }
    .menu-toggle, .close-toggle {
        cursor: pointer;
    }
}

/* Hero Section */
.hero-bg {
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-bg .animate-fadeIn {
    animation: fadeIn 1.5s ease-in-out;
}

.hero-bg .animate-slideUp {
    animation: slideUp 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.btn-teal {
    background-color: var(--teal-500);
    color: white;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: all 0.4s ease;
}

.btn-teal:hover {
    background-color: var(--teal-700);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 122, 123, 0.3);
}

.btn-chocolate {
    background-color: var(--chocolate-500);
    color: white;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: all 0.4s ease;
}

.btn-chocolate:hover {
    background-color: var(--chocolate-700);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

/* Qui sommes-nous */
#qui-sommes-nous p {
    text-align: justify;
}

#qui-sommes-nous .animate-zoomIn {
    animation: zoomIn 1.2s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#qui-sommes-nous .animate-float {
    animation: float 3s infinite ease-in-out;
}

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

/* Nos domaines d’action */
.domain-card p {
    text-align: justify;
}

.domain-card {
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f9f9f9);
    transition: all 0.5s ease;
}

.domain-card:hover {
    transform: translateY(-10px);
}

.domain-card .animate-slideInLeft {
    animation: slideInLeft 1s ease-out;
}

.domain-card .animate-slideInRight {
    animation: slideInRight 1s ease-out;
}

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 640px) {
    .domain-card {
        padding: 12px;
        border-radius: 15px;
    }
    .domain-card h3 {
        font-size: 1.5rem;
    }
    .domain-card p {
        font-size: 0.9rem;
        text-align: justify;
    }
    .domain-card .w-full {
        height: 25vh; 
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .domain-card {
        padding: 16px;
        border-radius: 18px;
    }
    .domain-card h3 {
        font-size: 1.7rem; 
    }
    .domain-card p {
        font-size: 0.95rem; 
        text-align: justify;
    }
    .domain-card .w-full {
        height: 30vh;
    }
}

@media (min-width: 1025px) {
    .domain-card {
        padding: 20px; 
        border-radius: 20px;
    }
    .domain-card h3 {
        font-size: 1.8rem;
    }
    .domain-card p {
        font-size: 1rem;
        text-align: justify;
    }
    .domain-card .w-full {
        height: 28vh;
    }
}

/* Projets */
.project-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card .animate-popIn {
    animation: popIn 0.8s ease-out;
}

@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Témoignages */
.testimonial-card {
    background: linear-gradient(145deg, #f9f9f9, #ffffff);
    border-radius: 20px;
    border-left: 5px solid var(--teal-500);
    transition: all 0.3s ease;
}

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

/* Partenaires */
.partner-logo {
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Rejoignez le mouvement */
.animate-bounceIn {
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

/* Stay Connected */
.stay-connected {
    background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-900) 100%);
    position: relative;
    z-index: 1;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--teal-200);
    color: var(--teal-900);
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--teal-300);
    transform: rotate(360deg);
}

@media (max-width: 640px) {
    .social-icons {
        justify-content: center;
        gap: 1rem;
    }
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .social-icons {
        gap: 1.2rem;
    }
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* Modal Styles */
#modal {
    transition: opacity 0.3s ease-in-out;
}

#modal .animate-fadeIn {
    animation: fadeIn 0.5s ease-in-out;
}

#modal.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Footer Bottom */
.footer-bottom {
    background: var(--chocolate-900);
    position: relative;
    z-index: 1;
}

/* Animations */
.animate-fadeInUp {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .hero-bg {
        padding: 12rem 0;
    }
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    .btn-teal, .btn-chocolate {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .hero-bg {
        padding: 18rem 0;
    }
    h1 {
        font-size: 3.5rem;
    }
    h2 {
        font-size: 2.5rem;
    }
}
