/* 1. Variables et Réinitialisation de base */

:root {
    --color-primary: #E52222;
    --color-secondary: #FFC400;
    --color-text: #1D1B1B;
    --color-background-white: #FFFFFF;
    --color-background-grey: #F5F5F5;
    --color-border: #DDDDDD;
    --color-hero-text: #FFFFFF;
    --font-family-body: 'Roboto', sans-serif; 
    --font-family-header: 'Anton', sans-serif;
    font-size: 18px; 
}

* {
    margin: 0; 
    padding: 0;
    box-sizing: border-box; 
}

body {
    background-color: var(--color-background-white); 
    color: var(--color-text); 
    line-height: 1.6;
    font-family: var(--font-family-body); 
    min-width: 320px; 
}

a {
    color: var(--color-primary); 
    text-decoration: none;
    transition: color 0.3s;
}
a:hover {
    color: var(--color-secondary); 
    text-decoration: underline;
}

h1, h2, h3 {
    font-family: var(--font-family-header); 
    font-weight: normal; 
}

.header-text-hidden, .visually-hidden { 
    position: absolute; 
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


/* 2. STYLE DU BOUTON (cstyle) */

.cstyle {
    display: inline-block;
	background-color: var(--color-primary); 
	color: #fff;
	font-weight: 600;
	font-family: sans-serif;
	font-size: 11px;
	letter-spacing: 0.5px;
    padding: 10px 20px;
    border-radius: 5px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    white-space: nowrap; 
}

.cstyle:hover {
	background-color: var(--color-secondary); 
	color: var(--color-text); 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.large-order-button {
    font-size: 16px;
    padding: 15px 30px;
}

.secondary-btn {
    background-color: #333; 
    color: var(--color-background-white);
}
.secondary-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-background-white);
}


/* 3. SECTION HERO & NAVIGATION */

.static-header {
    background-color: var(--color-text);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.static-header .logo-container-small {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.static-header .logo-container-small img {
    width: 80%;
    height: auto;
}
.static-header nav ul {
    list-style: none;
    display: flex;
}
.static-header nav ul li a {
    color: var(--color-hero-text);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0 15px;
    transition: color 0.3s;
    font-family: var(--font-family-body);
}
.static-header nav ul li a:hover,
.static-header nav ul li a.active {
    color: var(--color-secondary);
}


#hero-video-section {
    position: relative; 
    width: 100%;
    height: 100vh; 
    margin-bottom: 0; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.5); 
}

.top-bar {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20; 
}

.nav-toggle {
    display: none; 
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 30; 
}
.nav-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-hero-text);
    transition: 0.4s;
    border-radius: 2px;
}
.nav-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


.main-nav-hero ul {
    list-style: none;
    display: flex;
}
.main-nav-hero ul li {
    margin: 0 15px;
}
.main-nav-hero ul li a {
    color: var(--color-hero-text); 
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s;
    font-family: var(--font-family-body); 
}
.main-nav-hero ul li a:hover,
.main-nav-hero ul li a.active {
    color: var(--color-secondary); 
}

.logo-hero-container {
    width: 100px; 
    height: 100px;
    background-color: white; 
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.logo-hero-container img {
    width: 80%;
    height: auto;
}

.contact-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--color-hero-text);
    font-weight: bold;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    text-align: center;
    color: var(--color-hero-text); 
    z-index: 15;
}
.hero-slogan {
    font-size: 1.2em;
    color: var(--color-secondary); 
    margin-bottom: 10px;
    font-style: italic;
    font-family: var(--font-family-body); 
}
.hero-content h1 {
    font-size: 4em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); 
    line-height: 1.1;
}

.video-background {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; 
    z-index: -2; 
}

.video-background video {
    min-width: 100%; 
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    object-fit: cover; 
}

.video-overlay {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); 
    z-index: -1; 
}


/* 4. SECTIONS divers */

main {
    max-width: none; 
    margin: 0 auto; 
    padding: 0;
    position: relative; 
    z-index: 5; 
}

section {
    width: 100%;
    margin-bottom: 0; 
    padding: 80px 20px; 
    box-shadow: none; 
    border-radius: 0; 
    border: none;
    transition: background-color 0.3s;
}

section > * {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

#pizzas-du-moment, #horaires-map, #notre-philosophie, #avis-clients, #contact-content-grid {
    background-color: var(--color-background-white);
}
#avis-clients-home, #qualite-pate {
    background-color: var(--color-background-grey);
}

#focus-qualite {
    background-color: #333; 
    background-image: url('../img/Le chalet.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; 
    color: var(--color-hero-text); 
}
#focus-qualite .focus-content-wrapper {
    background-color: rgba(0, 0, 0, 0.7); 
    padding: 40px;
    border-radius: 8px;
    max-width: 900px; 
    margin: 0 auto 30px;
    text-align: center;
}
#focus-qualite h2 {
    color: var(--color-secondary); 
}


h2 {
    color: var(--color-text); 
    text-align: center; 
    font-size: 2.5em; 
    text-transform: uppercase;
    font-weight: normal; 
    
    border-bottom: none; 
    position: relative;
    padding-bottom: 25px;
    margin-bottom: 40px;
}
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px; 
    height: 4px;
    background-color: var(--color-primary); 
    border-radius: 2px;
}
#focus-qualite h2::after {
    background-color: var(--color-secondary);
}

h3 {
    color: var(--color-primary); 
    margin-top: 20px;
    margin-bottom: 10px;
}

.content-media-block {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
}

.content-media-block .section-image {
    width: 40%;
    min-width: 250px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.content-media-block .text-content {
    width: 60%;
}

.content-media-block.reverse {
    flex-direction: row-reverse;
}

.menu-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.main-title {
    margin-top: 0;
    margin-bottom: 60px;
    font-size: 3em;
    text-align: center;
}

.category-title {
    font-size: 2em;
    color: var(--color-text);
    text-align: left;
    margin-top: 50px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--color-primary);
}

.pizza-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.pizza-item {
    display: flex;
    background-color: var(--color-background-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
}

.pizza-item:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.pizza-details {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pizza-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.pizza-name {
    font-family: var(--font-family-header);
    font-size: 1.5em;
    color: var(--color-primary);
}

.pizza-price {
    font-family: var(--font-family-body);
    font-weight: bold;
    font-size: 1.2em;
    color: var(--color-secondary);
}

.pizza-ingredients {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.pizza-image {
    width: 150px; 
    height: 100%;
    object-fit: cover;
    flex-shrink: 0; 
}


.pizza-moment-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}
.pizza-card-flat {
    background-color: #FFFFFF;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden; 
    transition: transform 0.4s ease-in-out, box-shadow 0.4s;

    display: flex;
    flex-direction: column;
    min-height: 380px; 
}

.pizza-card-flat:hover {
    transform: rotateZ(1deg) scale(1.03); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 10; 
}

.pizza-card-flat img {
    width: calc(100% + 40px); 
    margin-left: -20px; 
    margin-right: -20px;
    margin-top: -20px; 
    
    max-height: 200px; 
    object-fit: cover; 
    border-radius: 4px 4px 0 0; 
    margin-bottom: 15px;
    transition: transform 0.4s, opacity 0.4s;
    opacity: 0.9;
}

.pizza-card-flat:hover img {
    transform: scale(1.05); 
    opacity: 1;
}

.pizza-card-flat h3 {
    color: var(--color-secondary);
    font-size: 1.5em;
    margin-top: 0;
}

.pizza-card-flat p:not(.price) {
    flex-grow: 1; 
    margin-bottom: 10px; 
}

.pizza-card-flat .price {
    font-weight: bold;
    color: var(--color-primary);
    margin-top: 10px;
}
.call-to-action-main {
    text-align: center;
    padding-top: 20px;
}


.focus-intro {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.focus-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.focus-point-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}
.focus-point-card .focus-statement {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--color-secondary);
    margin-top: 0;
    margin-bottom: 10px;
}
.focus-point-card .focus-details {
    font-size: 1em;
    font-style: normal;
    color: var(--color-hero-text);
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}


.global-rating {
    text-align: center;
    font-size: 1.8em;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.avis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}
.avis-card-home, .avis-card {
    background-color: var(--color-background-white);
    padding: 20px;
    border-radius: 6px;
    border-left: 5px solid var(--color-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-style: normal; 
    position: relative;
    transition: transform 0.3s;
    min-height: 200px;
    display: flex; 
    flex-direction: column;
    justify-content: space-between;
}
.avis-card-home:hover, .avis-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.avis-card-home p, .avis-card p {
    font-style: italic; 
    margin-bottom: 10px;
}

.avis-signature {
    text-align: right;
    font-style: normal !important;
    font-weight: 500;
    color: var(--color-text); 
    margin-top: 10px;
    font-size: 0.9em;
    display: block;
}

.avis-card-home footer, .avis-card footer { 
    display: none;
}


#contact-direct {
    text-align: center;
    padding-bottom: 40px;
}
#contact-direct h2 {
    margin-bottom: 10px;
}
#contact-direct p {
    font-size: 1.2em;
    margin-bottom: 15px;
}
.contact-link-large {
    font-size: 1.8em;
    font-weight: bold;
    display: block;
    margin-bottom: 20px;
}


#formulaire-contact {
    padding-top: 0;
}
#formulaire-contact form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--color-background-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
#formulaire-contact .form-group {
    margin-bottom: 20px;
}
#formulaire-contact label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--color-text);
}
#formulaire-contact input[type="text"],
#formulaire-contact input[type="email"],
#formulaire-contact textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 1em;
    font-family: var(--font-family-body);
    transition: border-color 0.3s;
}
#formulaire-contact input[type="text"]:focus,
#formulaire-contact input[type="email"]:focus,
#formulaire-contact textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}
#formulaire-contact textarea {
    resize: vertical;
    min-height: 150px;
}
#formulaire-contact button[type="submit"] {
    width: 100%;
    font-size: 16px;
}


#contact-content-grid {
    max-width: 960px;
    margin: 0 auto 80px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: flex-start;
}

.contact-info-panel {
    padding: 30px;
    background-color: var(--color-background-grey);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.contact-info-panel h2 {
    text-align: left;
    font-size: 1.8em;
    padding-bottom: 10px;
    margin-bottom: 20px;
    width: 100%; 
}
.contact-info-panel h2::after {
    left: 0;
    transform: none;
    width: 50px;
}
.contact-detail {
    margin-bottom: 25px;
    font-size: 1.1em;
}
.contact-detail strong {
    display: block;
    color: var(--color-primary);
    font-family: var(--font-family-header);
    font-size: 1.2em;
    margin-bottom: 5px;
}
.contact-detail a {
    font-weight: bold;
}


.horaires-map-container {
    display: flex; 
    gap: 40px; 
    align-items: flex-start; 
    flex-wrap: wrap; 
}
.horaires-table-wrapper {
    flex: 1; 
    min-width: 300px; 
}
.horaires-table-wrapper h3, .map-container h3 {
    text-align: center;
    color: var(--color-text);
    font-size: 1.6em;
    margin-bottom: 15px;
}
.horaires-table-wrapper table {
    width: 100%;
    background-color: var(--color-text); 
    color: var(--color-hero-text); 
    border-radius: 4px;
    overflow: hidden;
}
.horaires-table-wrapper table tr:nth-child(even) {
    background-color: #333; 
}
.horaires-table-wrapper table td {
    padding: 12px;
}

.horaires-table-wrapper .service-type {
    font-weight: bold;
    color: var(--color-primary);
    margin-top: 15px;
    font-size: 1.1em;
}


.map-container {
    flex: 2; 
    min-width: 400px; 
    background-color: var(--color-background-white); 
    padding: 15px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); 
}
.map-container iframe {
    width: 100%;
    height: 300px; 
    filter: none; 
}


/* 5. Pied de page */

footer {
    text-align: center;
    padding: 30px; 
    background-color: var(--color-text); 
    color: var(--color-background-white); 
    font-size: 0.9em;
    line-height: 1.6;
}
footer a {
    color: var(--color-secondary); 
}
footer a:hover {
    color: var(--color-primary); 
}


/* 6. */

@media (max-width: 992px) {
    .top-bar {
        padding: 20px;
        flex-wrap: wrap; 
        align-items: flex-start;
        height: auto;
        position: fixed;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        top: 0;
        left: 0;
        z-index: 999;
        padding-bottom: 10px; 
    }
    
    .nav-toggle { 
        display: flex;
        order: -1; 
        z-index: 1000;
    }
    
    .main-nav-hero, .static-header nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        background-color: rgba(0, 0, 0, 0.98);
        display: block; 
        z-index: 998; 
    }
    .main-nav-hero.nav-open, .static-header nav.nav-open {
        opacity: 1;
        visibility: visible;
    }

    .main-nav-hero ul, .static-header nav ul {
        flex-direction: column; 
        align-items: center;
        padding-top: 150px; 
        height: 100%; 
        justify-content: flex-start;
    }
    .main-nav-hero ul li, .static-header nav ul li {
        margin: 15px 0;
    }
    .main-nav-hero ul li a, .static-header nav ul li a {
        font-size: 1.8em;
    }

    #contact-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contact-info-panel h2 {
        text-align: center;
    }
    .contact-info-panel h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .static-header {
        padding: 10px 20px; 
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        height: auto;
    }
    .static-header .logo-container-small {
        order: 0;
    }
    .static-header .cstyle {
        order: 1;
    }


    
    .logo-hero-container {
        position: static; 
        transform: none;
        order: 0; 
        margin: 0 auto; 
    }
    .contact-hero {
        margin-left: 0;
        order: 1;
    }
    
    section {
        padding: 40px 20px;
    }
    .pizza-moment-container {
        flex-direction: column;
        align-items: center;
    }
    .pizza-card-flat {
        width: 90%;
        max-width: none;
    }
    .pizza-card-flat:hover {
        transform: none; 
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    .pizza-card-flat:hover img {
        transform: none;
    }

    .content-media-block, .content-media-block.reverse {
        flex-direction: column;
        gap: 20px;
    }
    .content-media-block .section-image, .content-media-block .text-content {
        width: 100%;
        min-width: auto;
    }


    .quality-focus-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .horaires-map-container {
        flex-direction: column; 
        gap: 20px;
    }
    .horaires-table-wrapper, .map-container {
        width: 100%;
        min-width: auto;
    }
    
    .avis-grid {
        grid-template-columns: 1fr;
    }

    .pizza-list {
        grid-template-columns: 1fr;
    }
    .pizza-item {
        flex-direction: column-reverse;
    }
    .pizza-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 600px) {
    .logo-hero-container {
        width: 70px;
        height: 70px;
    }
    .contact-hero .phone-number {
        display: none; 
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .top-bar {
        flex-wrap: nowrap; 
        justify-content: space-between;
    }
}