/* Styles pour la page Renforcement des Capacités */

:root {
    --primary-color: #1198D5; /* Resiwell Blue */
    --primary-color-dark: #0a7cb5;
    --primary-color-light: #e7f5fd;
    --primary-rgb: 17, 152, 213;
    --secondary-color: #4CAF50; /* Resiwell Green */
    --secondary-color-light: #eaf6ea;
    --secondary-rgb: 76, 175, 80;
    --accent-color: #6c757d; /* Neutral Gray for text accents */
    --accent-rgb: 108, 117, 125;
    --text-color: #343a40;
    --heading-color: #212529;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #dee2e6;
    --card-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 12px 30px rgba(var(--secondary-rgb), 0.18);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #3f9e43 100%);
    --transition-speed: 0.4s;
    --ease-out-cubic: cubic-bezier(0.215, 0.610, 0.355, 1);
}

/* --- Base, Navbar & Footer Styles (Consistent across pages) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    padding-top: 70px; /* Match navbar height */
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

/* Navbar Styles (Consistent) */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    background-color: var(--white); z-index: 1030;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.05);
    padding: 10px 0; transition: background-color 0.3s ease;
}
.navbar-logo { height: 50px; margin: 0 auto; }
.navbar-nav { display: flex; align-items: center; justify-content: center; gap: 20px; }
.nav-item .nav-link { color: #333; font-size: 16px; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; position: relative; transition: color 0.3s ease; padding: 0.5rem 0; }
.nav-item .nav-link:hover, .nav-item .nav-link.active { color: var(--primary-color); }
.nav-item .nav-link::after { content: ""; position: absolute; left: 0; bottom: 0px; width: 0; height: 3px; background-color: var(--primary-color); transition: width 0.3s ease; border-radius: 2px; }
.nav-item .nav-link:hover::after, .nav-item .nav-link.active::after { width: 100%; }
.social-icons { display: flex; align-items: center; gap: 15px; }
.social-icons a { color: #333; font-size: 1.5rem; transition: color 0.3s ease, transform 0.3s ease; }
.social-icons a:hover { color: var(--primary-color); transform: scale(1.1); }

/* Footer Styles (Consistent) */
.footer-section { background-color: #212529; color: #adb5bd; padding: 70px 20px 30px; text-align: center; font-family: 'Montserrat', sans-serif; margin-top: 80px; }
.footer-content { display: flex; justify-content: space-around; align-items: flex-start; max-width: 1100px; margin: 0 auto 40px auto; flex-wrap: wrap; gap: 30px; text-align: left; }
.footer-logo { flex-basis: 150px; }
.footer-logo-img { max-width: 100%; margin-bottom: 15px; }
.footer-text { flex-basis: 300px; }
.footer-text h2 { font-size: 1.4rem; margin-bottom: 15px; font-weight: 600; color: var(--white); }
.footer-text p { font-size: 0.95rem; line-height: 1.6; }
.footer-links { flex-basis: 180px; }
.footer-links h2 { font-size: 1.4rem; margin-bottom: 15px; font-weight: 600; color: var(--white); }
.footer-links ul { list-style-type: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { text-decoration: none; color: #adb5bd; font-size: 0.95rem; transition: color 0.3s, padding-left 0.3s ease; }
.footer-links a:hover { color: var(--white); padding-left: 5px; }
.footer-contact-info { flex-basis: 250px; }
.footer-contact-info h2 { font-size: 1.4rem; margin-bottom: 15px; font-weight: 600; color: var(--white); }
.footer-contact-info p { font-size: 0.95rem; margin-bottom: 10px; }
.footer-contact-info a { color: #adb5bd; text-decoration: none; transition: color 0.3s; }
.footer-contact-info a:hover { color: var(--white); }
.footer-responsibility, .footer-bottom { font-size: 0.85rem; color: #6c757d; margin-top: 30px; border-top: 1px solid #343a40; padding-top: 20px; }
.footer-bottom p { margin: 0; }

/* --- Page Specific Styles: Renforcement des Capacités --- */

/* Hero Section - Dynamic & Engaging */
.capacity-hero {
    padding: 150px 0 120px 0;
    background: var(--gradient-secondary);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animated background shapes */
.capacity-hero::before, .capacity-hero::after {
    content: '';
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
    animation: morph 15s linear infinite alternate;
}

.capacity-hero::before {
    width: 350px;
    height: 300px;
    bottom: -80px;
    left: -100px;
    opacity: 0.6;
    animation-duration: 18s;
}

.capacity-hero::after {
    width: 450px;
    height: 400px;
    top: -100px;
    right: -150px;
    opacity: 0.5;
    animation-duration: 12s;
}

@keyframes morph {
    0%   { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(0deg) scale(1); }
    50%  { border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%; transform: rotate(180deg) scale(1.1); }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(360deg) scale(1); }
}

.capacity-hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 2;
    letter-spacing: -1px;
}

.capacity-hero p.lead {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    font-weight: 400;
}

/* Breadcrumb */
.capacity-breadcrumb {
    background-color: var(--white);
    padding: 1rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px; /* Match body padding-top */
    z-index: 1020;
}

.capacity-breadcrumb .breadcrumb {
    margin-bottom: 0;
    font-weight: 500;
}

.capacity-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.capacity-breadcrumb a:hover {
    color: var(--primary-color-dark);
}

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

/* General Section Styling */
.capacity-section {
    padding: 90px 0;
    position: relative;
}

.capacity-section.bg-pattern {
    background-color: var(--secondary-color-light);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cg fill='%23ffffff' fill-opacity='0.3'%3E%3Cpath fill-rule='evenodd' d='M0 0h20v1H0V0zm20 2h-1v18h1V2zM0 2h1v18H0V2zm0 18h20v1H0v-1z'/%3E%3C/g%3E%3C/svg%3E");
}

.section-heading {
    font-size: 3rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    letter-spacing: -0.5px;
}

.section-heading::after {
    content: '';
    display: block;
    width: 70px;
    height: 5px;
    background: var(--gradient-secondary);
    margin: 18px auto 0;
    border-radius: 3px;
    transform: skewX(-15deg);
}

/* Introduction Section */
.capacity-intro p {
    font-size: 1.2rem;
    max-width: 850px;
    margin: 0 auto 35px auto;
    text-align: center;
    line-height: 1.85;
    color: var(--text-color);
}

.btn-details {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 12px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition-speed) var(--ease-out-cubic);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.btn-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--secondary-color);
    transition: width var(--transition-speed) var(--ease-out-cubic);
    z-index: -1;
}

.btn-details:hover {
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(var(--secondary-rgb), 0.2);
}

.btn-details:hover::before {
    width: 100%;
}

/* Modal Styling (Adapted for this page's theme) */
.modal-header {
    background: var(--gradient-secondary);
    color: white;
    border-bottom: none;
}
.modal-header .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
.modal-title { font-weight: 600; font-size: 1.4rem; }
.modal-body ul { list-style: none; padding-left: 0; margin-top: 1.5rem; }
.modal-body li { display: flex; align-items: flex-start; margin-bottom: 1.2rem; font-size: 1.1rem; line-height: 1.7; }
.modal-body li i { color: var(--secondary-color); margin-right: 15px; margin-top: 5px; font-size: 1.4rem; flex-shrink: 0; }
.modal-footer { border-top: 1px solid var(--border-color); }

/* Capacity Offering Cards */
.capacity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 50px;
}

.capacity-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) var(--ease-out-cubic), box-shadow var(--transition-speed) var(--ease-out-cubic);
    border-top: 5px solid transparent;
    position: relative;
    overflow: hidden;
}

.capacity-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--hover-shadow);
    border-top-color: var(--secondary-color);
}

/* Animated background effect on hover */
.capacity-card::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -25%;
    width: 150%;
    height: 100%;
    background: var(--secondary-color-light);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: transform calc(var(--transition-speed) * 1.5) var(--ease-out-cubic), opacity calc(var(--transition-speed) * 1.5) var(--ease-out-cubic);
    z-index: 0;
}

.capacity-card:hover::after {
    transform: scale(2);
    opacity: 0.5;
}

.capacity-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.8rem;
    background: var(--gradient-primary);
    border-radius: 15px; /* Slightly squarish circle */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
    transition: all var(--transition-speed) var(--ease-out-cubic);
    position: relative;
    z-index: 1;
    transform: rotate(-5deg); /* Initial tilt */
}

.capacity-card:hover .capacity-icon {
    transform: rotate(5deg) scale(1.1);
    background: var(--gradient-secondary);
    box-shadow: 0 12px 25px rgba(var(--secondary-rgb), 0.3);
}

.capacity-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.capacity-card p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

/* CTA Section */
.capacity-cta {
    padding: 90px 0;
    background-color: var(--primary-color-light);
    text-align: center;
    border-top: 1px solid var(--border-color);
     border-bottom: 1px solid var(--border-color);
}

.capacity-cta h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.capacity-cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    color: var(--text-color);
}

.btn-contact-capacity {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition-speed) var(--ease-out-cubic);
    box-shadow: 0 5px 18px rgba(var(--primary-rgb), 0.25);
    text-decoration: none;
}

.btn-contact-capacity:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.35);
    background-position: right center;
    color: white;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    body { padding-top: 60px; }
    .capacity-hero h1 { font-size: 3.2rem; }
    .capacity-hero p.lead { font-size: 1.3rem; }
    .section-heading { font-size: 2.5rem; }
    .capacity-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
    .navbar { padding: 8px 0; }
    .footer-content { justify-content: center; gap: 40px; }
    .footer-logo, .footer-text, .footer-links, .footer-contact-info { flex-basis: 45%; text-align: center; }
    .footer-logo { margin-bottom: 0; }
}

@media (max-width: 768px) {
    body { padding-top: 56px; }
    .capacity-hero { padding: 120px 0 80px 0; }
    .capacity-hero h1 { font-size: 2.8rem; }
    .capacity-hero p.lead { font-size: 1.2rem; }
    .section-heading { font-size: 2.2rem; }
    .capacity-intro p { font-size: 1.1rem; }
    .capacity-grid { grid-template-columns: 1fr; gap: 2rem; }
    .capacity-card { padding: 2rem; }
    .navbar-nav { flex-direction: column; gap: 10px; background: white; padding: 1rem 0; }
    .social-icons { margin-top: 15px; }
    .footer-content { flex-direction: column; align-items: center; }
    .footer-logo, .footer-text, .footer-links, .footer-contact-info { flex-basis: 100%; max-width: 350px; }
}

@media (max-width: 576px) {
    .capacity-hero h1 { font-size: 2.4rem; }
    .capacity-hero p.lead { font-size: 1.1rem; }
    .section-heading { font-size: 2rem; }
    .capacity-card { padding: 2rem 1.5rem; }
    .capacity-icon { width: 70px; height: 70px; font-size: 2.2rem; }
    .capacity-card h3 { font-size: 1.4rem; }
    .capacity-cta h3 { font-size: 2rem; }
    .capacity-cta p { font-size: 1.1rem; }
    .btn-contact-capacity, .btn-details { font-size: 1rem; padding: 12px 30px; }
} 