/**
 * Template 4e Mur - Styles Custom
 * Variante : Default (Coral/Rouge #ff665e)
 * 
 * Migrée vers système base-menu le 2026-02-06
 * CSS consolidé depuis quatrieme_mur/default.css
 */

:root {
    /* Couleurs 4e Mur */
    --quatrieme-mur-primary: #ff665e;      /* Coral/Rouge (accents, navbar) */
    --quatrieme-mur-primary-hover: #e5584f;
    
    /* Couleurs texte */
    --quatrieme-mur-text: #212529;
    --quatrieme-mur-text-muted: #7e8c8d;
    --quatrieme-mur-dish-label: #6c6864;
    
    /* Couleurs génériques (héritage ancien système) */
    --buttons-color: #6c757d;
    --buttons-color-hover: #5a6268;
    --border-color: #dfdfdf;
}

/* ===== TYPOGRAPHIE ===== */

body {
    font-family: 'Georgia', sans-serif !important;
    color: var(--quatrieme-mur-text) !important;
}

/* Headers : couleur par défaut sauf h3 */
h1, h2, h4, h5, h6 {
    color: var(--quatrieme-mur-text) !important;
}

h3 {
    color: var(--quatrieme-mur-primary) !important;
}

p {
    color: var(--quatrieme-mur-text) !important;
}

/* Navbar brand (si utilisé) */
#navbar-brand {
    font-family: 'Roboto', sans-serif !important;
}

/* ===== LAYOUT ===== */

#main-container {
    margin-top: 30px;
    margin-bottom: 100px;
}

/* Tables */
table td,
table td * {
    vertical-align: top;
    border-color: none;
}

/* ===== SECTIONS MENU ===== */

.section-area {
    margin-top: 80px !important;
}

.section-label {
    color: var(--quatrieme-mur-primary) !important;
}

.intro-text {
    margin-bottom: 40px !important;
}

.section-dishes {
    color: var(--quatrieme-mur-primary);
}

.outro-text {
    color: var(--quatrieme-mur-text-muted) !important;
}

/* ===== PLATS ===== */

.dish-label {
    color: var(--quatrieme-mur-dish-label);
    font-weight: bold !important;
}

.dish-description {
    color: var(--quatrieme-mur-text-muted) !important;
}

.dish-price {
    font-weight: bold;
    color: var(--quatrieme-mur-primary) !important;
}

/* ===== NAVBAR BOTTOM (Bootstrap 5 styles) ===== */

/* Navbar background */
.navbar-custom {
    background-color: var(--quatrieme-mur-primary) !important;
}

.navbar.fixed-bottom {
    background-color: var(--quatrieme-mur-primary) !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Feedback visuel au tap sur mobile */
.navbar.fixed-bottom:active {
    background-color: rgba(255, 102, 94, 0.9) !important;
    transform: scale(0.98);
}

/* Animation d'attention douce pour le bouton MENU (première visite) */
@media (max-width: 576px) {
    @keyframes pulseButton {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
    }
    
    /* Animation uniquement les 6 premières secondes après chargement */
    .navbar-toggler {
        animation: pulseButton 2s ease-in-out 3;
    }
}

/* Navbar brand - Taille normale */
.navbar.fixed-bottom .navbar-brand {
    color: #fff !important;
    font-size: 1rem !important;
    padding: 0.5rem 1rem !important;
}

/* Nav links - Taille réduite et couleur blanche */
.navbar.fixed-bottom .nav-link {
    color: #fff !important;
    font-size: 0.875rem !important;
    padding: 0.5rem 0.75rem !important;
    white-space: nowrap;
}

.navbar.fixed-bottom .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Items de navigation */
.navbar.fixed-bottom .nav-item {
    margin: 0 !important;
}

/* Badges */
.navbar.fixed-bottom .badge {
    font-size: 0.65rem !important;
}

/* Icons dans les nav-links */
.navbar.fixed-bottom .nav-link i {
    font-size: 1rem !important;
    margin-right: 0.25rem;
}

/* Toggler personnalisé - ULTRA VISIBLE avec texte MENU + icône SVG inline */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    padding: 0.75rem 1.25rem !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.3rem rgba(255, 255, 255, 0.5) !important;
    outline: none !important;
}

.navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.05);
}

/* Icône hamburger SVG inline - Toujours visible même si FontAwesome bloqué */
.navbar-toggler svg {
    display: block !important;
    flex-shrink: 0 !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) !important;
}

/* Texte "MENU" dans le bouton toggler */
.navbar-toggler span {
    font-size: 1rem !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.personalized-toggler {
    border-color: #fff !important;
}

.personalized-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,102,203, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

.personalized-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

/* Dropdown dans navbar */
.navbar.fixed-bottom .dropdown-menu {
    font-size: 0.875rem !important;
}

.navbar.fixed-bottom .dropdown-item {
    padding: 0.5rem 1rem !important;
}

/* ===== MODALES PARTAGE/RÉSEAUX ===== */

/* Styles pour boutons de partage social */
.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--quatrieme-mur-text);
    transition: all 0.3s ease;
}

.share-option:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.share-option i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.share-option--whatsapp i { color: #25D366; }
.share-option--facebook i { color: #1877F2; }
.share-option--twitter i { color: #1DA1F2; }
.share-option--email i { color: var(--buttons-color); }
.share-option--copy i { color: var(--quatrieme-mur-primary); }

/* Modal feedback (avis/réseaux) */
.feedback-section {
    margin-bottom: 1.5rem;
}

.feedback-section-title {
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--quatrieme-mur-text);
}

.google-review-container {
    text-align: center;
}

.google-review-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #4285F4;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.google-review-button:hover {
    background-color: #357ae8;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.google-review-button i {
    margin-right: 0.5rem;
}

.google-review-text {
    color: var(--quatrieme-mur-text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--quatrieme-mur-text);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.social-link i {
    margin-right: 0.75rem;
    font-size: 1.5rem;
}

/* Couleurs spécifiques par réseau */
.social-link--facebook:hover { border-color: #1877F2; }
.social-link--facebook:hover i { color: #1877F2; }

.social-link--instagram:hover { border-color: #E4405F; }
.social-link--instagram:hover i { color: #E4405F; }

.social-link--twitter:hover,
.social-link--x:hover { border-color: #1DA1F2; }
.social-link--twitter:hover i,
.social-link--x:hover i { color: #1DA1F2; }

.social-link--tiktok:hover { border-color: #000; }
.social-link--tiktok:hover i { color: #000; }

.social-link--youtube:hover { border-color: #FF0000; }
.social-link--youtube:hover i { color: #FF0000; }

.social-link--tripadvisor:hover { border-color: #00AF87; }
.social-link--tripadvisor:hover i { color: #00AF87; }

/* ===== SWIPE INDICATOR ===== */

.swipe-indicator {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    animation: pulseSwipe 2s infinite;
}

@keyframes pulseSwipe {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}
