/* RESET LÉGER */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

/* LAYOUT GLOBAL */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #ffe6c7 0, #fff7ec 35%, #ffffff 75%);
    color: #111827;
    min-height: 100vh;
}

/* Le header existant (bandeau + menu) doit déjà être dans ton HTML.
   On reste volontairement soft ici pour ne pas te le casser. */

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: linear-gradient(90deg, #fff7ed 0%, #fffaf5 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(248, 250, 252, 0.7);
}

.page-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

/* Structure du haut du site en grille */
.site-top-row {
    width: 100%;
    max-width: 1100px; /* la largeur du hero */
    margin: 0 auto;
    padding: 1.5rem 1.25rem 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* colonne gauche / logo / colonne droite */
    align-items: center;
}

/* Bloc gauche */
.site-top-left {
    justify-self: start;
}

.site-tagline-top {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #6b7280;
    white-space: nowrap;
}

/* Logo centré dans sa colonne */
.logo-center {
    justify-self: center;
}

.logo-center img {
    display: block;
    height: auto;
    max-width: 200px; /* ajuste si tu veux */
}

/* Bloc menu à droite */
.site-top-right {
    justify-self: end;
}

/* Navigation */
.site-nav {
    display: flex;
    gap: 1.75rem;
    font-size: 0.9rem;
}

.site-nav a {
    position: relative;
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    padding-bottom: 0.2rem;
    transition: color 0.2s ease, transform 0.15s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.15rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    transition: width 0.2s ease;
}

.site-nav a:hover {
    color: #111827;
    transform: translateY(-1px);
}

.site-nav a:hover::after {
    width: 100%;
}


/* HERO PRINCIPAL */
.hero {
    margin-top: 0.5rem;
}

.hero-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2.25rem 2.5rem;
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 1.1rem;
}

.hero-title {
    font-size: 1.8rem;
    line-height: 1.25;
    margin: 0 0 0.9rem;
    font-weight: 700;
    color: #111827;
}

.hero-subtitle {
    margin: 0 0 1.4rem;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #4b5563;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.9rem;
}

.hero-note {
    margin: 0;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* BOUTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease,
        border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #f97316, #f97316, #f59e0b);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background: #ffffff;
    color: #111827;
    border-color: #e5e7eb;
}

.btn-secondary:hover {
    background: #f9fafb;
}

/* CARTES PRINCIPALES */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.info-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.3rem 1.4rem 1.4rem;
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: 0 18px 40px rgba(148, 163, 184, 0.25);
}

.info-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.02rem;
    color: #f97316;
}

.info-card p {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.6;
    color: #4b5563;
}

/* SECTIONS TEXTE */
.section {
    margin-top: 2.25rem;
}

.section-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
}

.section-body {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #4b5563;
}

/* MESSAGE D’ERREUR API */
.api-error {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.9rem;
}

/* FOOTER */
.site-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1.2rem 1.25rem 1.6rem;
    margin-top: 2.5rem;
    background: #f9fafb;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    font-size: 0.85rem;
    color: #6b7280;
}

.footer-brand {
    margin: 0 0 0.2rem;
    font-weight: 600;
    color: #111827;
}

.footer-small {
    margin: 0.1rem 0;
}

.footer-link {
    color: #f97316;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

/* ========== INFOS PRATIQUES : AFFICHE ÉPICERIE + SOIRÉES ========== */

.infos-section {
    padding-top: 3rem;
}

.infos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: flex-start;
}

.infos-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.75rem 1.75rem 1.5rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.infos-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #222222;
}

.infos-card-subtitle {
    font-size: 0.9rem;
    color: #555555;
    margin-bottom: 0.9rem;
}

.infos-poster-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #faf5f0;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infos-poster {
    display: none; /* sera activé par JS si une URL existe */
    max-width: 100%;
    height: auto;
}

.infos-placeholder {
    font-size: 0.85rem;
    color: #999999;
    text-align: center;
    padding: 1rem;
}

/* ========== CONTACT ========== */

.contact-section {
    padding-top: 3rem;
}

.contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.contact-info .section-title {
    margin-bottom: 0.75rem;
}

.contact-intro {
    font-size: 0.95rem;
    color: #444444;
    margin-bottom: 1rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #333333;
}

.contact-list li + li {
    margin-top: 0.35rem;
}

.contact-list a {
    color: #f97316;
    text-decoration: none;
}

.contact-form {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
}

.form-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #444444;
}

.form-field input,
.form-field textarea {
    border-radius: 999px;
    border: 1px solid #e5e5e5;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.form-field textarea {
    border-radius: 16px;
    resize: vertical;
    min-height: 120px;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.2);
}

.contact-submit {
    margin-top: 0.5rem;
}

.contact-hint {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #888888;
}

/* ========== FOOTER ========== */

.site-footer {
    margin-top: 3rem;
    padding: 1.25rem 0 1.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.8rem;
    color: #777777;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.footer-name {
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.footer-tagline {
    font-size: 0.8rem;
    color: #999999;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}

.footer-link {
    color: #f97316;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}


/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-card {
        padding: 1.8rem 1.5rem;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

{
    .infos-grid {
        grid-template-columns: 1fr;
    }

    .contact-inner {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .page-main {
        padding: 1.25rem 1rem 2.5rem;
    }

    .hero-logo-strip {
        padding-top: 1.2rem;
    }

    .hero-logo {
        max-width: 190px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-card {
        border-radius: 1.1rem;
    }
}

@media (max-width: 768px) {
    .site-top-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        row-gap: 0.5rem;
    }

    .site-top-left {
        grid-column: 1 / 3;
        justify-self: center;
        text-align: center;
    }

    .site-nav {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .logo-center img {
        max-height: 60px;
    }
}
