/* ============================================
   HOME TEMPLATE STYLES
   ============================================ */


/* ============================================
   BASE STYLES & TYPOGRAPHY
   ============================================ */
.home-page h1,
.home-page h2,
.home-page h3 {
    font-family: var(--font-heading);
}

.home-page p,
.home-page button {
    font-family: var(--font-body);
}

.home-page p {
    line-height: 1.6;
}


/* ============================================
   LAYOUT & CONTAINER
   ============================================ */
.home-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    overflow-x: hidden;
}

.full-width {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}


/* ============================================
   HERO SECTION
   ============================================ */
.home-page .hero-section {
    background-color: rgba(40, 188, 40, 0.5);
    max-width: 750px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin-top: 20px;
    margin-bottom: 30px;
    order: -1;
}

.home-page .hero-title {
    color: rgb(255, 255, 255);
    margin: 0;
    font-size: clamp(2rem, 8vw, 50px);
}

.hero-section-reveal-on-scroll {
    opacity: 10%;
}


/* ============================================
   TEXT SECTIONS
   ============================================ */
.home-page .intro-text {
    font-size: 20px;
    padding: 0 20px;
}

.home-page .description-text {
    font-size: 20px;
    max-width: 1000px;
    padding: 0 20px;
}


/* ============================================
   BUTTONS
   ============================================ */
.home-page .action-button,
.home-page .action-button2 {
    margin-top: 2rem;
    width: 260px;
    height: 50px;
    max-width: 90%;
    padding: 14px 0;
    border: 1.5px solid #846249;
    background-color: #846249;
    color: rgb(255, 254, 254);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.home-page .action-button2 {
    font-size: 18px;
}

.home-page .action-button:hover,
.home-page .action-button2:hover {
    background-color: #846249;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 128, 0, 0.3);
}

.home-page .action-button:active,
.home-page .action-button2:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 128, 0, 0.2);
}

.home-page .action-button:focus,
.home-page .action-button2:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 128, 0, 0.4);
}


/* ============================================
   MAP SECTION - CORRIGÉE POUR RESPONSIVE
   ============================================ */
.home-page .map-section {
    width: 100%;
    min-height: 450px;
    margin-top: 30px;
    overflow: hidden;
    background-color: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Image à gauche */
.home-page .map-section>img {
    width: 50%;
    height: 450px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Contenu à droite */
.home-page .map-content {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-page .map-content h3 {
    font-size: clamp(40px, 6vw, 80px);
    margin: 0 0 15px 0;
}

.home-page .map-content p {
    font-size: 16px;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
    margin: 0;
}


/* ============================================
   NEWS SECTION
   ============================================ */
.home-page .news-section {
    text-align: center;
    display: flex;
    margin-top: 2rem;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.home-page .news-title {
    font-size: clamp(40px, 6vw, 80px);
    color: rgb(68, 47, 8);
    margin: 0;
    padding: 0 20px;
}

.home-page .news-text {
    max-width: 700px;
    font-size: 18px;
    padding: 0 20px;
}

.home-page .news-image {
    width: 100%;
    margin-top: 20px;
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
    position: relative;
}

.home-page .image-slider {
    position: relative;
    width: 100%;
    height: 600px;
}

.home-page .news-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    animation: imageSlide 12s infinite;
}

.home-page .news-image img:nth-child(1) {
    animation-delay: 0s;
}

.home-page .news-image img:nth-child(2) {
    animation-delay: 4s;
}

.home-page .news-image img:nth-child(3) {
    animation-delay: 8s;
}

@keyframes imageSlide {
    0% {
        opacity: 0;
    }

    8.33% {
        opacity: 1;
    }

    33.33% {
        opacity: 1;
    }

    41.66% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}


/* ============================================
   EXPERIENCES SECTION
   ============================================ */
.home-page .experiences-section {
    margin-top: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.home-page .experiences-section .experiences-title,
.home-page .experiences-section .experiences-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 8vw, 4rem);
}

.home-page .experiences-section .experiences-title {
    font-size: clamp(30px, 6vw, 80px);
    color: rgb(255, 255, 255);
    padding: 15px 20px;
    background-color: #846249;
    width: 100%;
}

.home-page .experiences-section .experiences-grid {
    display: flex;
    width: 100%;
    gap: 0;
}

.home-page .experiences-section .experience-item {
    position: relative;
    flex: 1;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.home-page .experiences-section .experience-item:hover {
    transform: translateY(-5px);
    z-index: 2;
}

.home-page .experiences-section .experience-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.home-page .experiences-section .experience-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.home-page .experiences-section .experience-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
    pointer-events: none;
}

.home-page .experiences-section .experience-item:hover .experience-overlay {
    background: rgba(121, 209, 136, 0.13);
}

.home-page .experiences-section .experience-item h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    color: white;
    font-family: var(--font-heading);
    font-size: clamp(24px, 4vw, 40px);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    transition: transform 0.3s ease, font-size 0.3s ease;
    z-index: 1;
}

.home-page .experiences-section .experience-item:hover h3 {
    transform: translate(-50%, -50%) scale(1.1);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}


/* ============================================
   EXPERIENCE COMPLEX SECTION
   ============================================ */
.home-page .experience-complex {
    display: flex;
    width: 100%;
    max-width: 2000px;
    gap: 20px;
    margin-top: 3rem;
    padding: 0 20px;
    align-items: stretch;
}

.home-page .experience-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.home-page .experience-left .small-block {
    display: flex;
    gap: 10px;
    align-items: center;
}

.home-page .experience-left .small-block img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.home-page .experience-left .small-block img:hover {
    transform: rotate(0deg) scale(1.05);
}

.home-page .experience-left .small-block .text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-page .experience-left .small-block h3 {
    font-family: var(--font-heading);
    margin: 0;
    font-size: clamp(24px, 4vw, 40px);
    color: rgb(68, 47, 8);
}

.home-page .experience-left .small-block p {
    font-family: var(--font-body);
    margin: 0;
    font-size: 14px;
}

.home-page .experience-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.home-page .experience-right-h3 {
    font-size: clamp(30px, 6vw, 80px);
    margin-bottom: 20px;
    background-color: #846249;
    color: #f5f5f5;
    width: 100%;
    padding: 10px 0;
}

.home-page .experience-right img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: 10px;
}


/* ============================================
   HERO SECTION FULL
   ============================================ */
.hero-section-full {
    width: 100%;
    margin-top: 3rem;
    position: relative;
    padding-bottom: 200px;
}

.hero-section-full img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.home-page .hero-section-full h1 {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 60%;
    padding: -20px 20px 30px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(40px, 10vw, 150px) !important;
    color: #fff;
    border-radius: 10px;
    z-index: 2;
    margin: 0;
}

.hero-section-full .content-div {
    background-color: #846249;
    color: #fff;
    text-align: center;
    height: 280px;
    padding: 50px 30px 30px;
    border-radius: 0 0 10px 10px;
    position: absolute;
    top: 600px;
    left: 0;
    width: 100%;
}

.h3-hero-full {
    font-size: 50px;
    color: #fff;
}


/* ============================================
   PHOTO ROW
   ============================================ */
.photo-row {
    margin-top: none;
    display: flex;
    height: 700px;
    justify-content: center;
    align-items: center;
    gap: 80px;
    background-color: #ffffffda;
    padding: 20px;
    width: 100%;
}

.photo-row img {
    width: 20%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.photo-row img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}


/* ============================================
   SMART NAVIGATION
   ============================================ */
.smart-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.smart-nav.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.smart-nav.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 15px;
    position: absolute;
    right: 20px;
    top: 30px;
    transform: translateY(-50%);
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #846249;
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 15px 20px;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    font-family: var(--font-body);
    text-decoration: none;
    color: #846249;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: rgba(40, 188, 40, 0.7);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #28bc28;
    background: rgba(40, 188, 40, 0.1);
}

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

.nav-link.active {
    color: #28bc28;
    font-weight: 600;
}

.nav-link.active::after {
    width: 80%;
}


/* ============================================
   MEDIA QUERIES - TABLETTE (1024px)
   ============================================ */
@media (max-width: 1024px) {
    .home-page .experience-complex {
        padding: 0 40px;
    }

    /* Map Section - Tablette */
    .home-page .map-content h3 {
        font-size: 60px;
    }

    .home-page .map-content p {
        font-size: 15px;
    }

    /* Hero Section Full */
    .home-page .hero-section-full h1 {
        font-size: 80px !important;
        bottom: auto;
        top: 440px;
        max-width: 70%;
        padding: 0 15px;
    }

    .hero-section-full img {
        height: 500px;
    }

    .hero-section-full .content-div {
        position: relative;
        top: auto;
        height: auto;
        padding: 60px 25px 40px;
    }

    .hero-section-full {
        padding-bottom: 0;
    }
}


/* ============================================
   MEDIA QUERIES - MOBILE (768px)
   ============================================ */
@media (max-width: 768px) {

    /* Navigation Mobile */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        gap: 0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }

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

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(132, 98, 73, 0.1);
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 15px 30px;
        text-align: left;
        border-radius: 0;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.active {
        background: rgba(40, 188, 40, 0.1);
        border-left: 4px solid #28bc28;
    }

    /* Map Section - RESPONSIVE MOBILE */
    .home-page .map-section {
        flex-direction: column;
        min-height: auto;
        height: auto;
    }

    .home-page .map-section>img {
        width: 100%;
        height: 300px;
    }

    .home-page .map-content {
        width: 100%;
        padding: 30px 20px;
    }

    .home-page .map-content h3 {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .home-page .map-content p {
        font-size: 14px;
    }

    /* Experience Complex */
    .home-page .experience-complex {
        flex-direction: column;
        margin-top: 3rem;
    }

    .home-page .experience-left .small-block {
        flex-direction: column;
        text-align: center;
    }

    .home-page .experience-right img {
        height: 400px;
    }

    /* Photo Row */
    .photo-row {
        flex-direction: column;
        height: auto;
        gap: 20px;
        padding: 40px 20px;
    }

    .photo-row img {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 4/5;
    }

    /* Experiences Grid */
    .home-page .experiences-section .experiences-grid {
        flex-direction: column;
    }

    .home-page .experiences-section .experience-item img {
        height: 250px;
    }

    /* Hero Section */
    .home-page .hero-section {
        max-width: 90%;
        height: auto;
        padding: 15px;
    }

    .home-page .hero-title {
        font-size: 24px;
    }

    /* Titres généraux */
    .home-page .news-title,
    .home-page .experiences-section .experiences-title,
    .home-page .experience-right-h3,
    .h3-hero-full {
        font-size: 32px !important;
    }

    /* Hero Section Full */
    .home-page .hero-section-full h1 {
        font-size: 60px !important;
        bottom: auto;
        top: 360px;
        max-width: 85%;
        padding: 0 20px;
    }

    .hero-section-full img {
        height: 400px;
    }

    .hero-section-full .content-div {
        position: relative;
        top: auto;
        height: auto;
        padding: 50px 20px 40px;
    }

    .hero-section-full {
        padding-bottom: 0;
    }
}


/* ============================================
   MEDIA QUERIES - SMALL MOBILE (480px)
   ============================================ */
@media (max-width: 480px) {


    /* Navigation */
    .nav-menu {
        width: 80%;
    }

    .nav-link {
        font-size: 14px;
        padding: 12px 20px;
    }

    /* Map Section - TRÈS PETIT ÉCRAN */
    .home-page .map-section>img {
        height: 250px;
    }

    .home-page .map-content {
        padding: 20px 15px;
    }

    .home-page .map-content h3 {
        font-size: 32px;
    }

    .home-page .map-content p {
        font-size: 13px;
    }

    /* Hero Section Full */
    .home-page .hero-section-full h1 {
        font-size: 45px !important;
        bottom: auto;
        top: 270px;
        max-width: 90%;
        padding: 0 10px;
    }

    .hero-section-full img {
        height: 300px;
    }

    .hero-section-full .content-div {
        position: relative;
        top: auto;
        height: auto;
        padding: 40px 15px 30px;
    }

    .hero-section-full {
        padding-bottom: 0;
    }
}