/* ==========================================================================
   site.css (consolidation)
   - Fusion de css/mon-style.css + css/prod-style.css
   - Ajout du CSS Lite YouTube (.yt-lite)
   ========================================================================== */

/* === css/mon-style.css === */
body {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
.btn-paiement {
    background-image: linear-gradient(to right, #1a1aff, #1c75d9);
    border: none;
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
}
.btn-paiement:hover {
    background-image: linear-gradient(to right, #1c75d9, #1a1aff);
    text-decoration: none;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000; /* au-dessus des couches skel & nav */
}
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    /* Coins plus arrondis et bordure noire visible */
    border-radius: 20px;
    border: 2px solid #000;
    width: 80%;
    max-width: 500px;
    color: #212529; /* texte lisible par défaut */
}
.close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}
.modal.show { display: block; }

/* === Allergènes UI === */
.modal-content.modal-wide {
    width: 96%;
    max-width: 1000px;
    max-height: 85vh;
    overflow: auto;
}
.modal #allergenSearch.form-control {
    background-color: #ffffff !important;
    color: #212529 !important;
    border: 1px solid #ced4da !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.04) inset;
}
.modal #allergenSearch::placeholder {
    color: #6c757d;
    opacity: 1; /* Firefox */
}
/* Autocomplete WebKit */
.modal #allergenSearch:-webkit-autofill,
.modal #allergenSearch:-webkit-autofill:hover,
.modal #allergenSearch:-webkit-autofill:focus {
    -webkit-text-fill-color: #212529;
    -webkit-box-shadow: 0 0 0px 1000px #fff inset;
    transition: background-color 5000s ease-in-out 0s;
}
.badge-allergen {
    display: inline-block;
    padding: .35rem .6rem;
    border-radius: 9999px;
    background: #fdecea;
    border: 1px solid #f5b5b5;
    color: #7a1f1f;
    font-weight: 700;
    font-size: .9rem;
    margin: 2px 4px 2px 0;
    white-space: nowrap;
}
.allergen-legend {
    font-size: 0.9rem;
    color: #333;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
}
/* Utilitaire pour cacher visuellement un label mais le garder accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* === Contraste amélioré pour zones à fond clair === */
/* Présentation (fond clair) */
#presentation.wrapper.style1.special {
    background-color: #f9f9f9;
    color: #222;
}
#presentation h2,
#presentation h3 { color: #111; text-shadow: 0 1px 0 #fff; }
#presentation p { color: #333; }
#presentation a.gestion-points {
    color: #0056b3;
    font-weight: bold;
    text-decoration: underline;
}
#presentation a.gestion-points:hover { color: #003d80; }

/* Section Avis (fond clair) */
#avis.wrapper.style1.special { background-color: #f7f7f7; color: #1f1f1f; }
#avis h2 { color: #111; }
#avis a { color: #0073e6; text-decoration: underline; }
#avis a:hover { color: #004a99; }

/* === Lisibilité améliorée sur le bandeau (section #banner) === */
#banner {
    position: relative;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
#banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}
#banner h2, #banner h1, #banner p {
    position: relative;
    z-index: 1;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}
#banner h2, #banner h1 { font-weight: 800; letter-spacing: 0.5px; }
#banner p { font-size: 1.2em; font-weight: 500; }
/* Bouton cliquable au-dessus du voile */
#banner .actions, #banner .actions a, #banner .actions li { position: relative; z-index: 1; }

/* === Image de fond pour la section #pizzas === */
#pizzas {
    position: relative;
    background-image: url("../images/bg-tarifs.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    z-index: 1;
}
#pizzas::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}
#pizzas .container,
#pizzas .major,
#pizzas h2,
#pizzas p,
#pizzas .box,
#pizzas footer {
    position: relative;
    z-index: 1;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
/* Amélioration visuelle des cartes tarifs */
#pizzas .box {
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    color: #111;
    text-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#pizzas .box:hover { transform: translateY(-5px); background-color: #fff; }

/* Bandeau (après suppression de la table) */
#bandeau {
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#bandeau img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Icône téléphone vibrante et numéro lisible */
.phone-icon {
    display: inline-block;
    margin-right: 8px;
    color: #fff;
    font-size: 1.6em;
    vertical-align: middle;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    animation: phone-vibrate 0.8s infinite ease-in-out;
}
.button.big:hover .phone-icon {
    transform: scale(1.15);
    transition: transform 0.2s ease;
}
@keyframes phone-vibrate {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-15deg); }
    20% { transform: rotate(15deg); }
    30% { transform: rotate(-10deg); }
    40% { transform: rotate(10deg); }
    50% { transform: rotate(-6deg); }
    60% { transform: rotate(6deg); }
    70%, 90% { transform: rotate(0deg); }
}
.phone-number {
    font-weight: 800;
    font-size: 1.3em;
    letter-spacing: 1px;
    color: #111;
}
.button.big .phone-number {
    font-size: 1.4em;
    color: #fff;
}
#pizzas .box img {
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #fff;
}

/* === Lite YouTube (lecteur léger click-to-play) === */
.yt-lite {
    position: relative;
    width: 100%;
    max-width: 960px;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
    background-position: center center;
    background-size: cover;
    cursor: pointer;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    outline: none;
}
.yt-lite .yt-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    border: 0;
    background: rgba(0,0,0,.6);
    border-radius: 14px;
    cursor: pointer;
}
.yt-lite .yt-play::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-40%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
}
.yt-lite:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,.6); }

/* === css/prod-style.css === */
.cart-icon-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}
.cart-icon-container img { height: 50px; }
.cart-count {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 14px;
}
