/* =============================================
   LAYOUT - Sections, Hero, Footer, Responsive
   ============================================= */

/* ---- Section Common ---- */
section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-header {
    margin-bottom: var(--space-3xl);
}

.section-header.centered {
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--color-rouge);
    margin-bottom: var(--space-sm);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-title em {
    font-style: normal;
    color: var(--color-rouge);
}

.section-description {
    color: var(--color-gray-700);
    font-size: 1.125rem;
    max-width: 600px;
}

.section-header.centered .section-description {
    margin: 0 auto;
}

/* ---- Hero Section ---- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--color-jaune);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-decoration {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 120px;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.hero-decoration-right {
    left: auto;
    right: 0;
}

.deco-block {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deco-block:nth-child(1) { background: var(--color-rose); }
.deco-block:nth-child(2) { background: var(--color-vert); }
.deco-block:nth-child(3) { background: var(--color-rouge); }
.deco-block:nth-child(4) { background: var(--color-violet); }
.deco-block:nth-child(5) { background: var(--color-rose); }
.deco-block:nth-child(6) { background: var(--color-vert); }

.geo-circle {
    width: 50px;
    height: 50px;
    border: 8px solid var(--color-jaune);
    border-radius: 50%;
}

.geo-diamond {
    width: 30px;
    height: 30px;
    background: var(--color-jaune);
    transform: rotate(45deg);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-4xl) 160px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-subtitle {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-rouge);
    margin-bottom: var(--space-sm);
}

.hero-title {
    color: var(--color-violet);
    margin-bottom: var(--space-lg);
    line-height: 0.95;
}

.hero-title-script {
    font-family: var(--font-script);
    font-size: 0.5em;
    color: var(--color-rouge);
    text-transform: none;
    display: block;
    margin-bottom: -0.2em;
    font-weight: 400;
}

.hero-title-main {
    display: block;
}

.hero-description {
    color: var(--color-dark);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.hero-image-wrapper img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    object-position: center top;
}

.hero-image-geo {
    position: absolute;
    z-index: -1;
}

.hero-image-geo-1 {
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: var(--color-rose);
    border-radius: 50%;
}

.hero-image-geo-2 {
    bottom: 40px;
    left: -30px;
    width: 60px;
    height: 60px;
    border: 10px solid var(--color-jaune);
    border-radius: 50%;
    background: transparent;
}

.hero-image-geo-3 {
    top: 50%;
    right: -40px;
    width: 40px;
    height: 40px;
    background: var(--color-vert);
    transform: rotate(45deg);
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-violet);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 2;
}

.scroll-indicator {
    width: 28px;
    height: 44px;
    border: 3px solid var(--color-violet);
    border-radius: 9999px;
    position: relative;
}

.scroll-dot {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background: var(--color-rouge);
    border-radius: 9999px;
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(16px); opacity: 0.3; }
}

/* ---- Values Section ---- */
.values {
    background: var(--color-gray-100);
    position: relative;
    overflow: hidden;
}

.values::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border: 30px solid var(--color-jaune);
    border-radius: 50%;
    opacity: 0.3;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

/* ---- About Section ---- */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-xl);
    position: relative;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 30px;
    bottom: 30px;
    background: var(--color-rose);
    z-index: 0;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100px;
    height: 100px;
    background: var(--color-vert);
    z-index: 0;
}

.about-content .section-tag {
    margin-bottom: var(--space-md);
}

.about-lead {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: var(--space-xl);
    line-height: 1.4;
}

.about-text {
    color: var(--color-gray-700);
    font-size: 1.05rem;
    margin-bottom: var(--space-lg);
}

.about-quote {
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--color-jaune);
    position: relative;
    transform: skewX(-3deg);
}

.about-quote p {
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: var(--color-dark);
    margin: 0;
    transform: skewX(3deg);
}

/* ---- Programme Section ---- */
.programme {
    background: var(--color-light);
    position: relative;
}

.programme::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to top, var(--color-gray-100), transparent);
}

.programme-tabs {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.programme-cta {
    text-align: center;
    margin-top: var(--space-3xl);
}

/* ---- Team Section ---- */
.team {
    background: var(--color-violet);
    color: var(--color-light);
    position: relative;
    overflow: hidden;
}

.team::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100px;
    width: 300px;
    height: 300px;
    border: 40px solid var(--color-jaune);
    border-radius: 50%;
    opacity: 0.2;
    transform: translateY(-50%);
}

.team .section-title {
    color: var(--color-light);
}

.team .section-description {
    color: rgba(255,255,255,0.8);
}

/* ---- News Section ---- */
.news {
    background: var(--color-gray-100);
    position: relative;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

/* ---- Contact Section ---- */
.contact {
    background: var(--color-jaune);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -80px;
    right: 10%;
    width: 200px;
    height: 200px;
    border: 30px solid var(--color-rose);
    border-radius: 50%;
    opacity: 0.5;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 5%;
    width: 120px;
    height: 120px;
    background: var(--color-vert);
    transform: rotate(45deg);
    opacity: 0.5;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.contact-info {
    color: var(--color-dark);
}

.contact-info .section-tag {
    color: var(--color-rouge);
}

.contact-info .section-title {
    color: var(--color-violet);
}

.contact-description {
    color: var(--color-dark);
    font-size: 1.1rem;
    margin-bottom: var(--space-2xl);
    opacity: 0.9;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.contact-action {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
}

.contact-action-icon {
    width: 55px;
    height: 55px;
    background: var(--color-violet);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transform: skewX(-5deg);
}

.contact-action-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--color-light);
    transform: skewX(5deg);
}

.contact-action h4 {
    font-family: var(--font-display);
    color: var(--color-dark);
    font-size: 1rem;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
}

.contact-action p {
    color: var(--color-dark);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

.contact-social {
    display: flex;
    gap: var(--space-md);
}

.contact-form {
    background: var(--color-light);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-xl);
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--color-rouge), var(--color-violet), var(--color-vert));
}

.form-title {
    margin-bottom: var(--space-xl);
    text-align: center;
    color: var(--color-violet);
}

/* ---- Footer ---- */
.footer {
    background: var(--color-violet);
    color: var(--color-light);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--color-light);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

.footer-logo .logo-script {
    color: var(--color-jaune);
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
    white-space: pre-line; /* Preserves line breaks with textContent */
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-jaune);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-jaune);
}

.footer-contact p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
    opacity: 0.8;
}

.footer-contact a {
    color: var(--color-jaune);
}

.footer-partners {
    text-align: center;
    padding: var(--space-2xl) 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: var(--space-2xl);
}

.footer-partners > p {
    font-family: var(--font-script);
    font-size: 1.2rem;
    color: var(--color-jaune);
    margin-bottom: var(--space-lg);
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.partner-logo {
    display: block;
    opacity: 0.9;
    transition: all var(--transition-fast);
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.partner-logo img {
    height: 50px;
    width: auto;
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-lfi a {
    color: var(--color-jaune);
    font-weight: 600;
}

.footer-admin {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    transition: color var(--transition-fast);
}

.footer-admin:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* ---- Animations ---- */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .hero-decoration {
        width: 80px;
    }

    .hero-content {
        padding: var(--space-4xl) 100px;
    }
}

@media (max-width: 1024px) {
    .hero-decoration {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
        padding: var(--space-4xl) var(--space-xl);
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .about {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        transform: none;
    }

    .value-card-inner {
        transform: none;
    }

    .programme-grid {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 200px);
    }

    .gallery-item-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card-featured {
        grid-row: auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .hero-scroll {
        display: none;
    }

    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 1001;
    }

    .nav-toggle.active span {
        background: var(--color-light);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-violet);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-xl);
        transform: translateX(100%);
        transition: transform var(--transition-base);
        z-index: 1000;
        padding-top: 80px;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu .nav-link {
        color: var(--color-light);
        font-family: var(--font-display);
        font-size: 1.5rem;
        text-transform: uppercase;
    }

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

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

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

    .hero-image-wrapper img {
        height: 350px;
    }

    .tabs-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-btn {
        justify-content: center;
        transform: none;
    }

    .tab-btn span {
        transform: none;
    }

    .gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-item-large {
        grid-column: auto;
        grid-row: auto;
    }

    .gallery-item {
        height: 250px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .btn {
        transform: none;
    }

    .btn span,
    .btn svg {
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-form {
        padding: var(--space-lg);
    }

    .about-quote {
        transform: none;
    }

    .about-quote p {
        transform: none;
    }
}

