@import url('header.css'); /* Charge ton header/footer */
@import url('footer.css'); /* Charge ton header/footer */

/* ========================================================
   HERO
   ======================================================== */
.hero {
    position: relative;
    height: 100vh; /* ← indispensable */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================================
   HERO SLIDESHOW
   ======================================================== */
.hero-slideshow {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%; /* ← déjà là normalement */
    overflow: hidden;
}

.slide {
    position: absolute;
    top: -5%; left: -5%;
    width: 110%;
    height: 110%; /* ← vérifie que c'est bien 110% et pas 100% */
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: subtleZoom 20s ease-in-out infinite alternate;
}

.slide.active {
    opacity: 1;
}

@keyframes subtleZoom {
    0%   { transform: scale(1); }
    100% { transform: scale(1.03); }
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom,
        rgba(10, 76, 86, 0.2) 0%,
        rgba(10, 76, 86, 0.5) 100%);
}

.hero h1 {
    position: relative;
    color: #faf3E0;
    font-size: 6rem;
    font-weight: 300;
    text-align: center;
    letter-spacing: 8px;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   INFO SECTION
   ======================================================== */
.info {
    background-color: #faf3E0;
    padding: 120px 10%;
}

.info-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.text h2 {
    font-size: 3.2rem;
    font-weight: 600;
    color: #0a4c56;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
}

.text h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 80px; height: 4px;
    background: linear-gradient(90deg, #D9A441, #f4c467);
}

.text p {
    font-size: 1.1rem;
    line-height: 2;
    color: #333;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 16px 45px;
    background: linear-gradient(135deg, #D9A441, #f4c467);
    color: #0a4c56;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #D9A441;
    box-shadow: 0 4px 15px rgba(217, 164, 65, 0.3);
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(217, 164, 65, 0.5);
}

.devise {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.devise-line {
    font-size: 4.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #9dd7d5, #0a4c56);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.devise-line:nth-child(1) { animation-delay: 0.3s; }
.devise-line:nth-child(2) { animation-delay: 0.5s; }
.devise-line:nth-child(3) { animation-delay: 0.7s; }

@keyframes slideIn {
    to { opacity: 1; transform: translateX(0); }
}

/* ========================================================
   FAQ PREVIEW
   ======================================================== */
.faq-preview {
    background: #0a4c56;
    padding: 120px 10%;
    text-align: center;
}

.faq-preview h2 {
    font-size: 2.8rem;
    color: #faf3E0;
    font-weight: 600;
    margin-bottom: 20px;
}

.faq-preview > p {
    color: #faf3E0;
    font-size: 1.1rem;
    margin-bottom: 60px;
    opacity: 0.9;
}

.faq-preview > p strong { color: #D9A441; }

.faq-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto 60px;
}

.faq-card {
    background: #faf3E0;
    padding: 40px 30px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.faq-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #D9A441;
    box-shadow: 0 10px 30px rgba(217, 164, 65, 0.3);
}

.faq-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.faq-card:hover .faq-icon { transform: scale(1.2) rotate(10deg); }

.faq-card h3 {
    font-size: 1.3rem;
    color: #0a4c56;
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.faq-card:hover h3 { color: #D9A441; }
.faq-card p { font-size: 0.95rem; color: #666; }

.faq-button {
    display: inline-block;
    padding: 16px 45px;
    background: linear-gradient(135deg, #D9A441, #f4c467);
    color: #0a4c56;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #D9A441;
    transition: all 0.4s ease;
    letter-spacing: 1px;
}

.faq-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(217, 164, 65, 0.6);
}

/* ========================================================
   ÉVÉNEMENTS
   ======================================================== */
.evenements {
    background-color: #faf3E0;
    padding: 120px 5%;
}

.evenements h2 {
    color: #0a4c56;
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.evenements h2::after {
    content: '';
    position: absolute;
    bottom: -15px; left: 50%;
    transform: translateX(-50%);
    width: 100px; height: 4px;
    background: linear-gradient(90deg, #D9A441, #f4c467);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: #fff;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #D9A441, #f4c467);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.card:hover::before { transform: scaleX(1); }

.card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: #D9A441;
    box-shadow: 0 15px 40px rgba(217, 164, 65, 0.3);
}

.card img {
    width: 100%; height: 200px;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover img { transform: scale(1.1); filter: brightness(1.1); }

.card p {
    padding: 20px;
    color: #0a4c56;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.6;
}



/* ========================================================
   RESPONSIVE — VERSION OPTIMISÉE
   ======================================================== */

/* TABLETTES — max-width 1024px */
@media (max-width: 1024px) {

    header {
        padding: 20px 40px;
    }

    nav ul {
        gap: 25px;
    }

    .hero h1 {
        font-size: 4rem;
        letter-spacing: 5px;
    }

    .info-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .text h2 {
        font-size: 2.7rem;
    }

    .devise-line {
        font-size: 3.5rem;
    }

    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

/* SMARTPHONES — max-width 768px */
@media (max-width: 768px) {

    header {
        flex-direction: column;
        gap: 20px;
        padding: 15px 20px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero h1 {
        font-size: 3rem;
        letter-spacing: 3px;
        padding: 0 20px;
    }

    .info {
        padding: 80px 8%;
    }

    .text h2 {
        font-size: 2.3rem;
    }

    .text p {
        font-size: 1rem;
    }

    .devise-line {
        font-size: 2.8rem;
    }

    .faq-preview {
        padding: 80px 8%;
    }

    .faq-cards {
        grid-template-columns: 1fr;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .card img {
        height: 180px;
    }

    footer {
        padding: 60px 8% 25px;
    }
}

/* PETITS TÉLÉPHONES — max-width 480px */
@media (max-width: 480px) {

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .devise-line {
        font-size: 2.2rem;
    }

    .btn,
    .faq-button {
        padding: 14px 35px;
        font-size: 0.9rem;
    }

    .card img {
        height: 150px;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.85rem;
    }
}


/* ========================================================
   FORMULES DU JOUR
   ======================================================== */
.formules-section {
    background-color: #faf3E0;
    padding: 120px 10%;
    text-align: center;

    /* Parallax */
    background-image: url('<?= BASE_URL ?>/img/fond.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}

.formules-overlay {
    position: relative;
    z-index: 2;
}

.formules-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(250, 243, 224, 0.35); /* crème semi-transparent */
    z-index: 1;
}

.formules-section h2 {
    font-size: 2.8rem;
    font-weight: 600;
    color: #0a4c56;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.formules-section h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 100px; height: 4px;
    background: linear-gradient(90deg, #D9A441, #f4c467);
}

.formules-intro-text {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 60px;
    margin-top: 10px;
    text-shadow: 0 1px 8px rgba(51, 51, 51, 1.00);
}

.formules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.formule-card {
    background: #faf3E0;
    border: 2px solid transparent;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    position: relative;
}

.formule-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D9A441, #f4c467);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.formule-card:hover::before { transform: scaleX(1); }

.formule-card:hover {
    transform: translateY(-8px);
    border-color: #D9A441;
    box-shadow: 0 15px 35px rgba(217, 164, 65, 0.25);
}

.formule-card.featured {
    border-color: #D9A441;
    box-shadow: 0 8px 30px rgba(217, 164, 65, 0.25);
}

.formule-card.featured::before { transform: scaleX(1); }

.badge-popular {
    background: linear-gradient(135deg, #D9A441, #f4c467);
    color: #0a4c56;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 14px;
    width: fit-content;
    margin: 0 auto;
}

.formule-num {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #D9A441;
}

.formule-price {
    font-size: 3rem;
    font-weight: 600;
    color: #0a4c56;
    line-height: 1;
}

.formule-price span {
    font-size: 1.4rem;
    font-weight: 400;
    color: #888;
}

.divider {
    border: none;
    border-top: 1px solid #e8e0cc;
    margin: 4px 0;
}

.formule-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.formule-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.4;
}

.formule-item::before {
    content: '—';
    color: rgb(217, 164, 65);
    font-weight: 600;
    flex-shrink: 0;
}

.formule-item.ou {
    font-size: 0.8rem;
    color: #aaa;
    padding-left: 20px;
    font-style: italic;
}

.formule-item.ou::before { display: none; }

.formules-note {
    font-size: 0.9rem;
    color: rgb(51, 51, 51);
    margin-top: 20px;
    font-style: italic;
    text-shadow: 0 1px 8px rgba(51, 51, 51, 1.00);
}

/* Responsive */
@media (max-width: 768px) {
    .formules-section { padding: 80px 8%; }
    .formules-section h2 { font-size: 2.2rem; }
    .formules-grid { grid-template-columns: 1fr; max-width: 400px; }
}

@media (max-width: 480px) {
    .formule-price { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .formules-section {
        background-attachment: scroll;
    }
}