/* ============================================
   Styles pour la page d'accueil (front-page.php)
   ============================================ */

.front-page-main {
    min-height: 100vh;
    /* background-color: #F2F2F2; */
    margin: 0 !important;
    max-width: unset !important;
}

/* ============================================
   Section Hero avec vague
   ============================================ */

.hero-section {
    position: relative;
    /* background: linear-gradient(135deg, var(--systemoun-strong-color, #19744C) 0%, #2a8659 100%); */
    background-color: var(--systemoun-strong-color, #19744C);
    color: white;
    text-align: center;
    overflow: visible;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px 60px;
}



.wave-image {
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    /* hauteur max souhaitée */
    height: 80px;
    max-height: 80px;
    display: block;
    /* L'attribut preserveAspectRatio="none" sur le SVG inline permet la déformation */

    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--wp--preset--font-family--lexend);
    font-size: 90px;
    font-weight: 700;
    margin: 0 0 24px 0;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 26px;
    font-weight: 400;
    margin: 0 0 50px 0;
    opacity: 0.95;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Navigation dans le hero */
.hero-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.hero-nav-item {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 18px;
    transition: all var(--transition-duration, 0.3s) cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.hero-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.hero-nav-item:hover::before {
    left: 100%;
}

.hero-nav-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Bandeau d'annonce spécial pour front-page
   ============================================ */

.systemoun-announcement-banner {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid rgba(25, 116, 76, 0.1);
    border-radius: 20px;
    margin: 30px 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    animation: slideInDown 0.8s ease-out;
}


.systemoun-announcement-content {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    gap: 25px;
}

.systemoun-announcement-image {
    flex-shrink: 0;
}

.systemoun-announcement-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--systemoun-strong-color, #19744C);
    box-shadow: 0 4px 15px rgba(25, 116, 76, 0.2);
}

.systemoun-announcement-text {
    flex: 1;
    min-width: 0;
}

.systemoun-announcement-title {
    font-family: var(--wp--preset--font-family--lexend);
    font-size: 24px;
    font-weight: 600;
    color: var(--systemoun-strong-color, #19744C);
    margin: 0 0 8px 0;
    line-height: 1.2;
    text-align: left;
}

.systemoun-announcement-description {
    font-size: 18px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.systemoun-announcement-button {
    flex-shrink: 0;
}

.systemoun-announcement-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--systemoun-strong-color, #19744C);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-duration, 0.3s) ease;
    box-shadow: 0 4px 15px rgba(25, 116, 76, 0.3);
    position: relative;
    overflow: hidden;
}

.systemoun-announcement-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--systemoun-strong-color-hover, #135A3B);
    transition: left 0.3s ease;
    z-index: -1;
}

.systemoun-announcement-btn:hover::before {
    left: 0;
}

.systemoun-announcement-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 116, 76, 0.4);
    text-decoration: none;
    color: white;
}

.systemoun-announcement-btn span,
.systemoun-announcement-btn i {
    position: relative;
    z-index: 1;
}

.systemoun-announcement-btn i {
    transition: transform var(--transition-duration, 0.3s) ease;
}

.systemoun-announcement-btn:hover i {
    transform: translateX(3px);
}



.announcement-content {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    gap: 25px;
}

.announcement-image {
    flex-shrink: 0;
}

.announcement-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--systemoun-strong-color, #19744C);
    box-shadow: 0 4px 15px rgba(25, 116, 76, 0.2);
}

.announcement-text {
    flex: 1;
    min-width: 0;
}

.announcement-title {
    font-family: var(--wp--preset--font-family--lexend);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--systemoun-strong-color, #19744C);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.announcement-description {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.announcement-button {
    flex-shrink: 0;
}

.announcement-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--systemoun-strong-color, #19744C);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-duration, 0.3s) ease;
    box-shadow: 0 4px 15px rgba(25, 116, 76, 0.3);
    position: relative;
    overflow: hidden;
}

.announcement-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--systemoun-strong-color-hover, #135A3B);
    transition: left 0.3s ease;
    z-index: -1;
}

.announcement-btn:hover::before {
    left: 0;
}

.announcement-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 116, 76, 0.4);
    text-decoration: none;
    color: white;
}

.announcement-btn span,
.announcement-btn i {
    position: relative;
    z-index: 1;
}

.announcement-btn i {
    transition: transform var(--transition-duration, 0.3s) ease;
}

.announcement-btn:hover i {
    transform: translateX(3px);
}

/* Animation d'apparition du bandeau */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Section contenu principal
   ============================================ */

.main-content-section {
    padding: 100px 20px;
    background: white;
    position: relative;
}

.content-container {
    max-width: 1200px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;

    &#last-article-preview {
        margin: 0 20px;
    }
}

.content-image {
    position: relative;
}

.content-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--systemoun-strong-color, #19744C), #2a8659);
    border-radius: 25px;
    opacity: 0.1;
    z-index: 0;
}

.content-image img,
.content-image .latest-post-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-duration, 0.3s) cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
    max-height: 400px;
}

.content-image img:hover,
.content-image .latest-post-image:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.2);
}

.content-text {
    padding: 20px 0;
}

/* Liens cliquables sans style */
.image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.image-link:hover {
    text-decoration: none;
    color: inherit;
}

.title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.title-link:hover {
    text-decoration: none;
    color: inherit;
}

.title-link h2 {
    font-family: var(--wp--preset--font-family--lexend);
    font-size: 36px;
    font-weight: 700;
    color: var(--systemoun-strong-color, #19744C);
    margin: 0 0 24px 0;
    line-height: 1.2;
    position: relative;
    transition: color var(--transition-duration, 0.3s) ease;
}

.title-link:hover h2 {
    color: var(--systemoun-strong-color-hover, #135A3B);
}

.excerpt-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.excerpt-link:hover {
    text-decoration: none;
    color: inherit;
}

.excerpt-link p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #555;
    margin: 0 0 40px 0;
    transition: color var(--transition-duration, 0.3s) ease;
}

.excerpt-link:hover p {
    color: #333;
}

.content-text h2 {
    font-family: var(--wp--preset--font-family--lexend);
    font-size: 36px;
    font-weight: 700;
    color: var(--systemoun-strong-color, #19744C);
    margin: 0 0 24px 0;
    line-height: 1.2;
    position: relative;
}

.content-text h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--systemoun-strong-color, #19744C), #2a8659);
    border-radius: 2px;
}

.content-text p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #555;
    margin: 0 0 40px 0;
}

.btn-more-news {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--systemoun-strong-color, #19744C);
    color: white;
    text-decoration: none;
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-duration, 0.3s) cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(25, 116, 76, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-more-news::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.btn-more-news:hover::before {
    left: 100%;
}

.btn-more-news:hover {
    background: var(--systemoun-strong-color-hover, #135A3B);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(25, 116, 76, 0.4);
    text-decoration: none;
    color: white;
}

/* Section contenu WordPress supplémentaire */
.wordpress-content {
    padding: 80px 20px;
}

.wordpress-content .content-container {
    display: block;
    max-width: 1000px;
}

/* ============================================
   Section Liens rapides
   ============================================ */

.quick-links-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.quick-links-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: var(--wp--preset--font-family--lexend);
    font-size: 36px;
    font-weight: 700;
    color: var(--systemoun-strong-color, #19744C);
    margin: 0 0 60px 0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--systemoun-strong-color, #19744C), #2a8659);
    border-radius: 2px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.quick-link-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-duration, 0.3s) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--systemoun-strong-color, #19744C), #2a8659);
}

.quick-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.quick-link-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--systemoun-strong-color, #19744C), #2a8659);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    transition: transform var(--transition-duration, 0.3s) ease;
}

.quick-link-card:hover .quick-link-icon {
    transform: scale(1.1);
}

.quick-link-icon i {
    font-size: 2rem;
    color: white;
}

.quick-link-card h3 {
    font-family: var(--wp--preset--font-family--lexend);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--systemoun-strong-color, #19744C);
    margin: 0 0 15px 0;
}

.quick-link-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin: 0 0 30px 0;
}

.quick-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--systemoun-strong-color, #19744C);
    text-decoration: none;
    padding: 12px 25px;
    border: 2px solid var(--systemoun-strong-color, #19744C);
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-duration, 0.3s) ease;
    position: relative;
    overflow: hidden;
}

.quick-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--systemoun-strong-color, #19744C);
    transition: left 0.3s ease;
    z-index: -1;
}

.quick-link-btn:hover::before {
    left: 0;
}

.quick-link-btn:hover {
    color: white ;
    text-decoration: none;
    transform: translateY(-2px);
}


.quick-link-btn span,
.quick-link-btn i {
    position: relative;
    z-index: 1;
    transition: color var(--transition-duration, 0.3s) ease;
}

.quick-link-btn i {
    transition: transform var(--transition-duration, 0.3s) ease, color var(--transition-duration, 0.3s) ease;
}

.quick-link-btn:hover i {
    transform: translateX(3px);
    color: white !important;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .content-container {
        gap: 60px;
    }
    
    .hero-section {
        padding: 60px 15px 50px;
    }
    
    .quick-links-section {
        padding: 80px 15px;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 50px 15px 40px;
        min-height: 50vh;
    }
    
    .hero-wave {
        height: 60px;
    }
    
    .wave-image {
        /* sur écrans plus petits, réduire légèrement la hauteur */
        height: 60px;
        max-height: 60px;
    }
    
    .hero-nav {
        gap: 12px;
        margin-top: 30px;
    }
    
    .hero-nav-item {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .main-content-section {
        padding: 80px 15px;
    }
    
    .content-container#last-article-preview {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;

        p {
            text-align: center;
        }
        
    }
    
    .content-image {
        order: 1;
    }
    
    .content-text {
        order: 2;
    }
    
    .content-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .quick-links-section {
        padding: 60px 15px;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .quick-link-card {
        padding: 30px 25px;
    }
    
    /* Responsive pour le nouveau bandeau systemoun */
    .systemoun-announcement-banner {
        margin: 20px 15px 0;
    }
    
    .systemoun-announcement-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }
    
    .systemoun-announcement-text {
        order: 2;
    }
    
    .systemoun-announcement-button {
        order: 3;
    }
    
    .systemoun-announcement-image {
        order: 1;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 10px 30px;
        min-height: 45vh;
    }

    p.hero-subtitle {
        margin: 12px 0;
    }
    

    
    .hero-nav {
        /* flex-direction: column; */
        align-items: center;
        gap: 12px;
        margin-top: 25px;
    }
    
    .hero-nav-item {
        /* width: 250px; */
        text-align: center;
        padding: 6px 12px;
        font-size: 0.95rem;
    }
    
    .main-content-section {
        padding: 60px 10px;
    }
    
    .content-container {
        gap: 40px;
        row-gap: 20px;
    }
    
    .quick-links-section {
        padding: 50px 10px;
    }
    
    .quick-link-card {
        padding: 25px 20px;
    }
    
    .quick-link-icon {
        width: 60px;
        height: 60px;
    }
    
    .quick-link-icon i {
        font-size: 1.5rem;
    }
    
    /* Responsive mobile pour le nouveau bandeau systemoun */
    .systemoun-announcement-banner {
        margin: 15px 10px 0;
    }
    
    .systemoun-announcement-content {
        padding: 15px;
        gap: 15px;
    }
    
    .systemoun-announcement-image img {
        width: 60px;
        height: 60px;
    }
    
    .systemoun-announcement-title {
        font-size: 1.1rem;
    }
    
    .systemoun-announcement-description {
        font-size: 0.9rem;
    }
    
    .systemoun-announcement-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}


/* ============================================
   Animations d'apparition
   ============================================ */

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

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

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

/* Animations pour le contenu hero */
.hero-content > * {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-title {
    animation-delay: 0.2s;
}

.hero-subtitle {
    animation-delay: 0.4s;
}

.hero-nav {
    animation-delay: 0.6s;
}

/* Animations pour le contenu principal */
.content-text > * {
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out forwards;
}

.content-text h2 {
    animation-delay: 0.3s;
}

.content-text p {
    animation-delay: 0.5s;
}

.btn-more-news {
    animation-delay: 0.7s;
}

.content-image {
    opacity: 0;
    animation: fadeInRight 0.8s ease-out 0.4s forwards;
}

/* Amélioration de l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-content > *,
    .content-text > *,
    .content-image {
        opacity: 1;
        animation: none;
    }
}



/* mobile */

@media (max-width: 800px) {
    .hero-title {
        font-size: 50px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .btn-more-news {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .quick-link-card h3 {
        font-size: 1.2rem;
    }
    
    .quick-link-card p {
        font-size: 0.9rem;
    }
}
