/* =========================
   Styles généraux
========================= */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #f3e5f5;
    color: #333;
}

/* =========================
   Zone de recherche
========================= */
.search-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(106, 27, 154, 0.9); /* Fond semi-transparent */
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-area h2 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.search-area form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.search-area input,
.search-area button {
    padding: 10px;
    border: none;
    outline: none;
    border-radius: 5px;
}

.search-area input {
    width: 50%;
    background-color: #e1bee7;
    color: #4a148c;
}

.search-area button {
    background-color: #ab47bc;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.search-area button:hover {
    background-color: #9c27b0;
}

/* =========================
   Boutique de restaurants
========================= */
.boutique {
    padding: 20px;
    text-align: center;
}

.restaurant-grid,
.events-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 10px;
}

.restaurant,
.event-card {
    background-color: white;
    width: calc(25% - 20px); /* 4 colonnes sur grand écran */
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.restaurant:hover,
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.restaurant img,
.event-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.info,
.event-details {
    padding: 10px;
    text-align: left;
}

.info h3,
.event-details h3 {
    margin-top: 0;
    font-size: 18px;
    color: #6a1b9a;
    font-weight: 600;
}

.info p,
.event-details p {
    margin: 5px 0;
    font-size: 14px;
    color: #7b1fa2;
}

.event-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.event-card a:hover {
    background-color: #0056b3;
}

/* =========================
   Titres et formulaires
========================= */
h1.titre {
    color: #FF00FF;
    text-align: center;
    margin: 20px 0;
    font-size: 26px;
    font-weight: 600;
}

.search-form {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 20px auto;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

.form-group input[type="date"],
.form-group input[type="text"],
.form-group input[type="submit"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group input[type="submit"] {
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-group input[type="submit"]:hover {
    background-color: #0056b3;
}

/* =========================
   Footer
========================= */
footer {
    background-color: #007bff;
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* =========================
   Diaporama d'images
========================= */
.image-slider {
    width: 100%;
    max-width: 100%;
    height: 400px; /* Hauteur pour grand écran */
    margin: auto;
    position: relative;
    overflow: hidden;
}

.image-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 24px;
    background-color: #fff;
    border: none;
    border-radius: 50%;
    padding: 10px;
}

.slider-arrow.left {
    left: 10px;
}

.slider-arrow.right {
    right: 10px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(124, 77, 255, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }
}

/* =========================
   Section Info
========================= */
.info-section {
    padding: 60px 20px;
    background: #fff;
    text-align: center;
}

.info-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #6a1b9a;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.info-box {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 230px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.info-box img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.info-box h3 {
    font-size: 20px;
    color: #7b1fa2;
    margin-bottom: 10px;
}

.info-box p {
    font-size: 14px;
    color: #555;
}

/* =========================
   Section Partenaires
========================= */
.partner-section {
    background: linear-gradient(135deg, #9C27B0, #6A1B9A);
    padding: 80px 20px;
    color: #fff;
    text-align: center;
}

.partner-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.partner-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.partner-image img:hover {
    transform: scale(1.05);
}

.partner-content {
    max-width: 600px;
    text-align: left;
}

.partner-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.partner-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.partner-btn {
    display: inline-block;
    background-color: #ffcc00;
    color: #6A1B9A;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 10px;
}

.partner-btn:hover {
    background-color: #e6b800;
    transform: translateY(-3px);
}

.existing-partner {
    margin-top: 15px;
    font-size: 16px;
}

.existing-partner a {
    color: #ffcc00;
    font-weight: bold;
    text-decoration: none;
}

.existing-partner a:hover {
    text-decoration: underline;
}

/* =========================
   Responsive Design
========================= */
@media (max-width: 768px) {
    .partner-container {
        flex-direction: column;
    }
    .partner-content {
        text-align: center;
    }
    .partner-content h2 {
        font-size: 28px;
    }
    .partner-content p {
        font-size: 16px;
    }
}


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

/* Pour tablettes (max-width: 768px) */
@media (max-width: 768px) {
    .restaurant,
    .event-card {
        width: calc(50% - 20px); /* 2 colonnes */
    }
    .image-slider {
        height: 300px;
    }
    .search-area h2 {
        font-size: 20px;
    }
    .search-area input {
        width: 70%;
    }
    .info-container {
        flex-direction: column;
        align-items: center;
    }
    .info-box {
        width: 80%;
    }
    .partner-container {
        flex-direction: column;
        text-align: center;
    }
    .partner-image img {
        width: 80%;
    }
}

/* Pour téléphones (max-width: 480px) */
@media (max-width: 480px) {
    .restaurant,
    .event-card {
        width: calc(100% - 20px); /* 1 colonne */
    }
    .image-slider {
        height: 250px;
    }
    .search-area h2 {
        font-size: 18px;
    }
    .search-area input {
        width: 80%;
    }
}
