/* ╔══════════════════════════════════════════════════════════════════╗
   ║  pages.css — Socle commun de toutes les pages publiques MDLS     ║
   ╚══════════════════════════════════════════════════════════════════╝ */

@import './variables.css';

/* ── Reset & base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Sylfaen', sans-serif;
    background-color: var(--background-color);
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Typographie cohérente ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Sylfaen', serif;
    line-height: 1.25;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Container standard (toutes les pages) ───────────────────────────── */
/* Les templates qui définissent leur propre .container héritent du max-width
   ci-dessous comme valeur de base — ils peuvent le surcharger localement.  */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ── Animations partagées ────────────────────────────────────────────── */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Formulaires ─────────────────────────────────────────────────────── */
input, select, textarea, button {
    font-family: 'Sylfaen', sans-serif;
}

input, select, textarea {
    max-width: 100%;
}

/* ── Responsive — mobile first ───────────────────────────────────────── */

/* ≤ 768 px : smartphone */
@media (max-width: 768px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* Carte/menu : supprimer les marges asymétriques */
    .menu-category-container.blue-style {
        margin-right: 0 !important;
    }
    .menu-category-container.yellow-style {
        margin-left: 0 !important;
    }

    /* Boutique : champ de recherche pleine largeur */
    .controls input[type="text"] {
        width: 100% !important;
    }

    /* Textes de page */
    h2 { font-size: clamp(1.6rem, 6vw, 2.4rem) !important; }
}

/* ≤ 480 px : très petits écrans */
@media (max-width: 480px) {
    body { font-size: 15px; }

    button, .btn-reservation, .btn-primary {
        min-height: 44px; /* cible tactile recommandée */
    }
}
