/* --- Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
}

/*html, body {*/
/*    height: 100%;           !* take full viewport height *!*/
/*    margin: 0;              !* remove default margin *!*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*}*/

main {
    flex: 1;                /* fills the gap between header and footer */
}

body {
    /*font-family: 'Segoe UI', sans-serif;*/
    background: #ededed;
    color: #000000;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 80vh;
    width: 100%;
    overflow: hidden;
}
.hero video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
    border-bottom: 3px solid rgb(41, 65, 119);
}

.hero-buttons {
    gap: 1rem;
    display: flex;
    justify-content: center;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 900px;
    padding: 0 1rem;
}

.hero-btn {
    padding: 0.8rem 2rem;
    background: #347ed7;
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.hero-btn:hover {
    background: #2560ae;
    color: #e8e8e8;
}


/* Animation */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.fade-up.delay {
    animation-delay: 0.8s;
}

.fade-up.delay2 {
    animation-delay: 1.1s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3rem;
}
.hero p {
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 1.7rem;
}

/* --- Section Divider --- */
.section-divider {
    height: 50px;
    text-align: center;
}

/* --- Sections Générales --- */
.section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto;
}
.section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #112145;
}
.section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* --- Présentation --- */
.presentation-gallery {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.presentation-gallery img {
    width: 32%;
    border-radius: 10px;
    object-fit: cover;
}

/* --- Articles --- */
.articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.article-button {
    border: 2px solid #347ed7;  /* Blue outline */
    border-radius: 15px;          /* Rounded edges */
    padding: 10px 16px;           /* Space inside the button */
    background-color: transparent;
    color: #347ed7;              /* Blue text */
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.7rem;
    transition: all 0.3s ease;

    display: inline-flex;        /* Shrink to fit text */
    justify-content: center;     /* Center text inside button */
    align-items: center;         /* Vertically center text */
    width: auto;                 /* Don’t stretch */
    white-space: nowrap;         /* Prevent text from wrapping */
    align-self: center;
}

.article-button:hover {
    background-color: #347ed7;  /* Fill with blue */
    color: white;                /* Text turns white */
}

.article-content {
    flex: 1 1 auto;
    width: 100%;
}

.article {
    display: flex;
    flex-direction: column; /* important */
    justify-content: flex-start;
    background-color: #f6f6f6;
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 1rem;
    box-shadow: rgba(111, 111, 117, 0.2) 0 8px 20px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
    min-height: 410px;
    align-items: baseline;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.article:hover {
    box-shadow: rgba(0, 0, 0, 0.25) 0 12px 24px;
}

.article img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    overflow: hidden;
    transition: transform 0.5s ease;
    transform-origin: bottom center; /* Zoom à partir du haut */
}

.article:hover img {
    transform: scale(1.05);
}

.tags {
    display: flex;
    gap: 0.5rem;
    padding: 0.7rem 1rem 0.6rem;
}
.tag-bientot {
    background: linear-gradient(45deg, #97617d, #9e82ad);
}

.tag-dev-log {
    background: linear-gradient(45deg, #5822bc, #3976a6);
}

.tag-update {
    background: linear-gradient(45deg, #a5551b, #ca3ba1);
}

.tag-construction {
    background: linear-gradient(45deg, #d53369, #daae51);
}

.tag-information {
    background: linear-gradient(45deg, #187cb5, #75a52c);
}

.tag-rulantica {
    background: linear-gradient(45deg, #386791, #0f59aa);
}

.tag-hotels {
    background: linear-gradient(45deg, #8e2143, #97566d);
}

.tag-attraction {
    background: linear-gradient(45deg, #bf1b4a, #2759b6);
}

.tag-europa-park {
    background: linear-gradient(45deg, #a69254, #958043);
}

.article-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: white;
}

.article h3, .article p, .article a {
    padding: 0 1.2rem;
}

.article h3 {
    font-size: 1.2rem;
    padding-bottom: 0.6rem;
    color: #1a2c56;
}

.article p {
    font-family: Gotham_Book, serif;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    padding-top: 5px;
    text-align: justify;
    color: #2c2c43;
    line-height: 1.4;
}

.article a {
    margin-top: auto; /* pousse le bouton en bas de la carte */
    align-self: flex-start; /* ou center / stretch selon ton design */
    color: #0f59aa;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.article a:hover {
    color: #023061;
}

/* --- Voir plus --- */
#show-more-btn {
    padding-top: 2rem;
    align-self: flex-start;
    color: #0f59aa;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    display: inline-block;
}

.show-more {
    text-align: right;
}

#show-more-btn:hover {
    color: #023061;
}

/* --- Attractions --- */
.attractions {
    display: flex;
    flex-wrap: wrap;
    gap: 2.7rem;
    justify-content: center;
}
.attraction {
    position: relative;
    width: 300px;
    height: 300px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 12px;
}

.attraction img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.9);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.attraction h4 {
    position: absolute;
    bottom: 1.1rem;
    left: 1.1rem;
    margin: 0;
    color: #f1f1f1;
    font-size: 1.5rem;
    z-index: 2;
}

.attraction:hover img {
    transform: scale(1.08);
    filter: brightness(0.7);
}

/* Bouton "Voir plus" */
.voir-plus-wrapper {
    margin-top: 2rem;
    text-align: center;
}

.btn-voir-plus {
    border: 2px solid #A59051FF;  /* Blue outline */
    border-radius: 15px;          /* Rounded edges */
    padding: 10px 16px;           /* Space inside the button */
    background-color: transparent;
    color: #A59051FF;             /* Blue text */
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 0.7rem;
    transition: all 0.3s ease;
    text-decoration: none;

    display: inline-flex;        /* Shrink to fit text */
    justify-content: center;     /* Center text inside button */
    align-items: center;         /* Vertically center text */
    width: auto;                 /* Don’t stretch */
    white-space: nowrap;         /* Prevent text from wrapping */
    align-self: center;
}

.btn-voir-plus:hover {
    background: linear-gradient(45deg, #a17b2d, #8a773e);
    color: white;
    transition: all 0.3s ease;
}

/* --- Recrutement --- */
.recrutement-section {
    text-align: center;
    padding-top: 1rem;
}
.recrutement-section .cta {
    border: 3px solid #347ed7;
    border-radius: 15px;
    padding: 10px 16px;
    background-color: transparent;
    color: #347ed7;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 0.7rem;
    transition: all 0.3s ease;
    display: inline-flex;
    text-decoration: none;

    justify-content: center;
    align-items: center;
    width: auto;
    white-space: nowrap;
    align-self: center;
}
.recrutement-section .cta:hover {
    background-color: #347ed7;  /* Fill with blue */
    color: white;                /* Text turns white */
    transition: all 0.3s ease;
}

.recrutement-content {
    display: flex;
}

.recrutement-text {
    width: 50%;
    padding-left: 5rem;
}

.recrutement-image {
    width: 50%;
    display: flex;
}

.recrutement-image img {
    width: 70%;
    object-fit: cover;
    aspect-ratio: 1/1;
    border-radius: 15px;
    border: 3px #d6d6d6 solid;
    margin-left: 5rem;
}

.section-divider img {
    height: auto;
    max-width: 1100px;
    display: inline-block;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.articles-section {
    max-width: 1000px;
    padding: 0 1rem;
}

.articles-section h2 {
    text-align: center;
    margin-bottom: 0;
    margin-top: 1.5rem;
}


.presentation {
    padding: 3rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.presentation h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c2c43;
    margin-top: 2rem;
}

.presentation p {
    font-family: Gotham_Book, serif;
    font-size: 1rem;
    text-align: justify;
    max-width: 1000px;
    color: #2c2c43;
    /* Centre horizontalement le bloc */
    margin: 0 auto 2rem;
}

.presentation-block {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.presentation-block.reverse {
    flex-direction: row-reverse;
}

.presentation-text {
    flex: 1;
    min-width: 300px;
}

.presentation-text h3 {
    margin-top: 0;
    font-size: 1.7rem;
    color: #2c2c43;
}

.presentation-text p {
    text-align: justify;
    line-height: 1.6;
    color: #2c2c43;
}

.presentation small {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

.presentation-img {
    flex: 1;
    min-width: 300px;
}

.presentation-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.attractions-section {
    width: 100%;
    background: linear-gradient(
            to bottom,
            #2f5597 0%,  /* slightly lighter blue at top */
            #284580 50%, /* your original blue */
            #1f3665 100% /* deeper blue at bottom */
    );
    padding: 3rem 2rem;
    max-width: 100%;
    border-bottom: 2px solid #1f3665;
    border-top: 2px solid #1f3665;
}

.attractions-content h2 {
    color: white;
}

.attractions-content {
    max-width: 1200px;
    margin: 0 auto;
}

.attractions-content p {
    color: white;
}

#lightbox-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    display: none;
    z-index: 9998;
    transition: background-color 0.4s ease;
}

#lightbox-overlay.visible {
    background-color: rgba(0, 0, 0, 0.8);
    display: block;
}

#lightbox-overlay img {
    position: fixed;
    top: 50%;
    left: 50%;
    max-width: min(90vw, 1350px);
    max-height: min(85vh, 1000px);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s ease, opacity 0.4s ease;
    cursor: zoom-out;
    object-fit: contain;
    z-index: 10000;
    opacity: 0;
}

#lightbox-overlay.visible img {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

#lightbox-overlay .lightbox-caption {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #cccccc; /* gris clair, mais pas blanc pur */
    font-size: 1.2rem;
    z-index: 10001;
    max-width: 90vw;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}


#lightbox-overlay.visible .lightbox-caption {
    opacity: 1;
}

#lightbox-overlay .lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    z-index: 10002;
    transition: color 0.3s ease;
}

#lightbox-overlay .lightbox-close:hover {
    color: rgba(255, 255, 255, 1);
}

.articles-text p {
    text-align: center;
    line-height: 1.6;
    color: #2c2c43;
    font-family: Gotham_Book, serif;
    font-size: 1rem;
    max-width: 1000px;
    margin: 0 auto 2rem;
}

@media (max-width: 1000px) {
    .recrutement-content {
        flex-direction: column; /* Stack text and image vertically */
        align-items: center;    /* Center content horizontally */
    }

    .recrutement-text,
    .recrutement-image {
        width: 100%;           /* Take full width */
        padding: 0 1rem;       /* Optional: add side padding */
        margin: 0;             /* Remove existing margins */
        justify-content: center;
    }

    .recrutement-image img {
        margin-left: 0;        /* Remove left margin */
        width: 80%;            /* Optional: scale image smaller */
        margin-top: 1.5rem;    /* Add spacing below text */
        max-width: 30rem;
    }
}

@media (max-width: 1200px) {
    .section-divider img {
        width: 80%;
        min-width: 450px;
    }
}

@media (max-width: 1000px) {
    .presentation {
        padding-top: 1rem;
    }
}

@media (max-width: 1200px) {
    .hero-content {
        left: 20%;
        transform: translate(-15%, -50%);
    }
}


