/* ============================================
   LE KIOSQUE - STYLES.CSS
   Pizzeria Chelles - 50 rue Gambetta, 77500
   ============================================ */

/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000;
    --dark: #1a1a1a;
    --yellow: #FFD60A;
    --red: #E63946;
    --white: #fff;
    --blue: #4dabf7;
    --red-pizza: #ff6b6b;
}

/* Base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

/* Header Sticky avec navigation */
.sticky-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(255, 214, 10, 0.3);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.sticky-logo {
    width: 50px;
    height: 50px;
}

.sticky-phone {
    font-size: 1.5rem;
    color: var(--yellow);
    font-weight: bold;
    text-decoration: none;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.sticky-phone:hover,
.sticky-phone:focus {
    color: var(--red);
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
    outline: 2px solid var(--yellow);
    outline-offset: 4px;
}

.sticky-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 20px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.sticky-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    -webkit-transition: color 0.3s;
    -o-transition: color 0.3s;
    transition: color 0.3s;
    padding: 5px 10px;
}

.sticky-nav a:hover,
.sticky-nav a:focus {
    color: var(--yellow);
    outline: 2px solid var(--yellow);
    outline-offset: 4px;
    border-radius: 5px;
}

/* Header principal avec photo */
header {
    position: relative;
    min-height: 60vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    overflow: hidden;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
}

.logo {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    -webkit-filter: drop-shadow(0 0 30px rgba(0, 0, 0, 1));
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 1));
}

.restaurant-name {
    font-size: 4rem;
    font-weight: bold;
    color: var(--yellow);
    margin-bottom: 20px;
    text-shadow: 3px 3px 0 var(--red), 0 0 30px rgba(0, 0, 0, 1), 0 0 40px rgba(0, 0, 0, 1);
}

.restaurant-info {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 15px;
    display: inline-block;
    margin-top: 20px;
}

.phone {
    font-size: 2rem;
    color: var(--yellow);
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.hours {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hours-detail {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.8;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.content-section {
    display: none;
    background: rgba(0, 0, 0, 0.85);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.content-section.active {
    display: block;
}

/* Styles pour le contenu des sections */
.content-section h2 {
    color: var(--yellow);
    font-size: 2rem;
    margin-bottom: 25px;
    margin-top: 40px;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section h3 {
    color: var(--yellow);
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.content-section p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-section ul {
    color: #ccc;
    font-size: 1.05rem;
    line-height: 2;
    margin: 20px 0 20px 30px;
}

.content-section li {
    margin-bottom: 10px;
}

.content-section strong {
    color: var(--yellow);
}

/* Pour les pages About, Contact, FAQ : sections visibles par défaut */
body:not(.home-page) .content-section {
    display: block;
}

#main-menu {
    display: block;
}

/* Section SEO */
.seo-content {
    background: var(--dark);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 60px;
    border: 2px solid var(--yellow);
}

.seo-content h2 {
    font-size: 2.5rem;
    color: var(--yellow);
    margin-bottom: 20px;
    text-align: center;
}

.seo-content h3 {
    color: var(--yellow);
    font-size: 1.8rem;
    margin: 30px 0 15px;
}

.seo-content p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.seo-content ul {
    color: #ccc;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-left: 30px;
    margin-bottom: 15px;
}

.seo-content ul li {
    margin-bottom: 10px;
}

/* Google Maps */
.maps-container {
    text-align: center;
    margin: 30px 0;
}

.maps-container iframe {
    border: 2px solid var(--yellow);
    border-radius: 15px;
    max-width: 100%;
    width: 800px;
    height: 400px;
}

/* Grille de catégories */
.categories-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Support fallback pour navigateurs sans Grid */
@supports not (display: grid) {
    .categories-grid {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    .category-card {
        -webkit-box-flex: 1;
        -ms-flex: 1 1 280px;
        flex: 1 1 280px;
    }
}

.category-card {
    background: -webkit-gradient(linear, left top, right bottom, from(var(--dark)), to(#0a0a0a));
    background: -o-linear-gradient(top left, var(--dark), #0a0a0a);
    background: linear-gradient(145deg, var(--dark), #0a0a0a);
    border: 3px solid var(--yellow);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: -webkit-gradient(linear, left top, right top, from(transparent), color-stop(rgba(255, 214, 10, 0.1)), to(transparent));
    background: -o-linear-gradient(left, transparent, rgba(255, 214, 10, 0.1), transparent);
    background: linear-gradient(90deg, transparent, rgba(255, 214, 10, 0.1), transparent);
    -webkit-transition: left 0.5s;
    -o-transition: left 0.5s;
    transition: left 0.5s;
}

.category-card:hover::before,
.category-card:focus::before {
    left: 100%;
}

.category-card:hover,
.category-card:focus {
    -webkit-transform: translateY(-10px) scale(1.02);
    -ms-transform: translateY(-10px) scale(1.02);
    transform: translateY(-10px) scale(1.02);
    border-color: var(--red);
    -webkit-box-shadow: 0 10px 40px rgba(230, 57, 70, 0.4);
    box-shadow: 0 10px 40px rgba(230, 57, 70, 0.4);
    outline: 3px solid var(--yellow);
    outline-offset: 5px;
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    -webkit-filter: drop-shadow(0 5px 10px rgba(255, 214, 10, 0.3));
    filter: drop-shadow(0 5px 10px rgba(255, 214, 10, 0.3));
}

.category-title {
    font-size: 2rem;
    color: var(--yellow);
    margin-bottom: 10px;
    font-weight: bold;
}

.category-price {
    font-size: 1.8rem;
    color: var(--red);
    font-weight: bold;
    margin-bottom: 15px;
}

.category-description {
    color: #ccc;
    font-size: 1rem;
}

/* Titres de section */
.section-title {
    font-size: 3rem;
    text-align: center;
    color: var(--yellow);
    margin-bottom: 40px;
    text-shadow: 3px 3px 0 var(--red);
}

/* Bouton retour */
.back-button {
    background: var(--red);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 30px;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    font-weight: bold;
}

.back-button:hover,
.back-button:focus {
    background: var(--yellow);
    color: var(--black);
    -webkit-transform: translateX(-5px);
    -ms-transform: translateX(-5px);
    transform: translateX(-5px);
    outline: 3px solid var(--yellow);
    outline-offset: 5px;
}

/* Liste de produits */
.products-list {
    display: -ms-grid;
    display: grid;
    gap: 12px;
}

.product-item {
    background: var(--dark);
    border: 2px solid var(--yellow);
    border-radius: 10px;
    padding: 15px 20px;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr auto;
    grid-template-columns: 1fr auto;
    gap: 12px;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    min-height: 70px;
}

.product-item:hover,
.product-item:focus-within {
    border-color: var(--red);
    -webkit-transform: translateX(5px);
    -ms-transform: translateX(5px);
    transform: translateX(5px);
    -webkit-box-shadow: -5px 5px 15px rgba(230, 57, 70, 0.3);
    box-shadow: -5px 5px 15px rgba(230, 57, 70, 0.3);
}

.product-name {
    font-size: 1.2rem;
    color: var(--yellow);
    font-weight: bold;
    -ms-grid-column: 1;
    grid-column: 1;
    line-height: 1.3;
}

.product-ingredients {
    -ms-grid-column: 1;
    grid-column: 1;
    color: #ccc;
    font-size: 0.85rem;
    line-height: 1.4;
}

.product-price {
    -ms-grid-column: 2;
    grid-column: 2;
    -ms-grid-row: 1;
    -ms-grid-row-span: 2;
    grid-row: 1/3;
    font-size: 1.6rem;
    color: var(--red);
    font-weight: bold;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    white-space: nowrap;
}

/* Titres groupes de pizzas avec couleur */
.pizza-group-title {
    font-size: 1.5rem;
    margin: 40px 0 20px;
    padding-left: 10px;
}

.pizza-group-title.sauce-tomate {
    color: var(--red-pizza);
    border-left: 4px solid var(--red-pizza);
}

.pizza-group-title.creme-fraiche {
    color: var(--blue);
    border-left: 4px solid var(--blue);
}

/* Media Queries - Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 120px;
    }

    .sticky-header {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .sticky-phone {
        font-size: 1.2rem;
    }

    .sticky-nav {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        font-size: 0.9rem;
    }

    .restaurant-name {
        font-size: 2.5rem;
    }

    .phone {
        font-size: 1.5rem;
    }

    .hours {
        font-size: 1rem;
    }

    .hours-detail {
        font-size: 0.85rem;
    }

    .logo {
        width: 150px;
        height: 150px;
    }

    .section-title {
        font-size: 2rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .product-item {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-price {
        -ms-grid-column: 1;
        grid-column: 1;
        grid-row: auto;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        margin-top: 10px;
    }

    .seo-content {
        padding: 20px;
    }

    .seo-content h2 {
        font-size: 1.8rem;
    }

    .maps-container iframe {
        height: 300px;
    }
}

/* Focus visible pour accessibilité */
*:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}

/* Animations */
@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

.content-section.active {
    -webkit-animation: fadeIn 0.5s ease-in-out;
    animation: fadeIn 0.5s ease-in-out;
}

/* Print styles */
@media print {
    .sticky-header,
    .back-button {
        display: none;
    }

    body {
        background: white;
        color: black;
        padding-top: 0;
    }

    .product-item {
        border: 1px solid black;
        page-break-inside: avoid;
    }
}

/* ============================================
   STYLES POUR PAGES SPÉCIFIQUES
   ============================================ */

/* Page title (À propos, Contact, FAQ) */
.page-title {
    font-size: 3rem;
    text-align: center;
    color: var(--yellow);
    margin-bottom: 40px;
    text-shadow: 3px 3px 0 var(--red);
}

/* Grille de valeurs (À propos) */
.values-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.value-card {
    background: var(--dark);
    border: 2px solid var(--yellow);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.value-card:hover {
    -webkit-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    transform: translateY(-5px);
    border-color: var(--red);
    -webkit-box-shadow: 0 5px 20px rgba(255, 214, 10, 0.3);
    box-shadow: 0 5px 20px rgba(255, 214, 10, 0.3);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.value-card h4 {
    color: var(--yellow);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.value-card p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
}

/* Formulaire Contact */
.contact-form {
    background: var(--dark);
    border: 2px solid var(--yellow);
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
}

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

.form-group label {
    display: block;
    color: var(--yellow);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    background: var(--black);
    border: 2px solid #333;
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    -webkit-transition: border-color 0.3s;
    -o-transition: border-color 0.3s;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--yellow);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    width: 100%;
}

.submit-button:hover,
.submit-button:focus {
    background: var(--yellow);
    color: var(--black);
    -webkit-transform: translateY(-3px);
    -ms-transform: translateY(-3px);
    transform: translateY(-3px);
    -webkit-box-shadow: 0 5px 20px rgba(255, 214, 10, 0.5);
    box-shadow: 0 5px 20px rgba(255, 214, 10, 0.5);
}

/* Contact info cards */
.contact-info {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Contact Grid - 3 colonnes égales */
.contact-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

/* Contact Card */
.contact-card {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid var(--yellow);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.contact-card:hover {
    -webkit-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    transform: translateY(-5px);
    border-color: var(--red);
    -webkit-box-shadow: 0 5px 20px rgba(255, 214, 10, 0.3);
    box-shadow: 0 5px 20px rgba(255, 214, 10, 0.3);
}

.contact-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.contact-card h3 {
    color: var(--yellow);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-card p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-card a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3rem;
}

.contact-card a:hover {
    color: var(--red);
}

/* Form Container */
.form-container {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid var(--yellow);
    border-radius: 20px;
    padding: 40px;
    margin: 60px 0;
}

.form-container h2 {
    color: var(--yellow);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.info-card {
    background: var(--dark);
    border: 2px solid var(--yellow);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.info-card h3 {
    color: var(--yellow);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.info-card p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
}

.info-card a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: bold;
}

.info-card a:hover {
    color: var(--red);
}

/* FAQ Items */
.faq-item {
    background: var(--dark);
    border: 2px solid var(--yellow);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--red);
    -webkit-transform: translateX(5px);
    -ms-transform: translateX(5px);
    transform: translateX(5px);
}

.faq-question {
    color: var(--yellow);
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.faq-answer {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Responsive pour pages spécifiques */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .values-grid,
    .contact-info,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form,
    .form-container {
        padding: 20px;
    }
}
