/* MAIN - commence en haut de la page */
main {
    margin-top: 0%;
}

/* Styles communs pour toutes les sections */
section {
    height: 110vh;
    background-size: cover;
    background-position: center center; 
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    position: relative;
    z-index: 1;
    margin-top: -6%;
}

/* Images de fond */
.bg1 { background-image: url("IMG/couscous.jpg"); 
        width: 90%;
        margin-top: auto;
        margin-bottom: 5%;
        margin-left: auto;
        margin-right: auto;
        border-radius: 25px;

}

/* ===== SECTION 1 - BIENVENUE ===== */
/* Version PC */
@media screen and (min-width: 1024px) {
    .bg1 .content {
        position: absolute;
        top: 150px;
        left: 80px;
        text-align: left;
    }
    
    .bg1 .content h1 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .bg1 .adresse-block {
        margin-bottom: 40px;
        line-height: 1.8;
    }
    
    .bg1 .adresse-block p {
        margin: 5px 0;
        font-size: 0.95rem;
        font-weight: bold;
    }
    
    .bg1 .horaires-block {
        background-color: brown;
        padding-bottom: 1%;
        padding-top: 1%;
        padding-left: 2%;
        padding-right: 2%;
        width: 104%;
        border: solid;
        border-radius: 25px;
        text-align: center;
    }
    
    .bg1 .horaires-block h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
        font-weight: bold;
    }
    
    .bg1 .horaires-block p {
        margin: 5px 0;
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Version Mobile */
@media (max-width: 1023px) {
    .bg1 .content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        width: 90%;
    }
    
    .bg1 .content h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .bg1 .adresse-block {
        margin-bottom: 30px;
        line-height: 1.6;
        font-weight: bold;
    }
    
    .bg1 .adresse-block p {
        margin: 4px 0;
        font-size: 0.85rem;
    }
    
    .bg1 .horaires-block {
        background-color: brown;
        padding: 15px 20px;
        border: solid 2px;
        border-radius: 25px;
        margin: 0 auto;
        max-width: 350px;
    }
    
    .bg1 .horaires-block h3 {
        font-size: 1rem;
        margin-bottom: 12px;
        font-weight: bold;
    }
    
    .bg1 .horaires-block p {
        margin: 4px 0;
        font-size: 0.8rem;
        line-height: 1.5;
    }
}

/* ===== SECTION 2 - À PROPOS ===== */
/* Version PC */
@media screen and (min-width: 1024px) {
    .bg2 {
        background-attachment: fixed;
        padding: 0 80px;
    }
    
    .bg2 .content {
        text-align: center;
    }
    
    .bg2 .content h1 {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }
    
    .bg2 .content .quote {
        font-size: 1.3rem;
        font-style: italic;
        max-width: 800px;
        line-height: 1.8;
    }
}

/* Version Mobile */
/* Version Mobile */
@media (max-width: 1023px) {
    .bg2 {
        height: 60vh;
    }
    
    .bg2 .content {
        text-align: center;
        padding: 20px;
    }
    
    .bg2 .content h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .bg2 .content .quote {
        font-size: 1.1rem;
        font-style: italic;
        line-height: 1.6;
    }
}

/* Styles communs pour toutes les sections */
section {
    height: 110vh;
    background-size: cover;
    background-position: center center; 
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    position: relative;
    z-index: 1;
    margin-top: -6%;
}

/* ===== SECTION 3 - AVIS ===== */
/* Version PC */
@media screen and (min-width: 1024px) {
    .bg3 {
        background-attachment: fixed;
        padding: 0 80px;
    }
    
    .bg3 .content {
        text-align: left;
        width: 60%;}
    }
    .bg3 .content h1 {
        font-size: 2.5rem;
        margin-bottom: 30px;text-align: center;
        color: revert-layer;
    }
    
    /* Carte d'avis avec avatar */
    .bg3 .avis-card {
        background: rgba(0, 0, 0, 0.5);
        padding: 25px;
        border-radius: 12px;
        margin-bottom: 30px;
    }
    
    .bg3 .avis-header {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .bg3 .avatar-circle {
        background-color: brown;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        font-weight: 700;
        color: white;
        flex-shrink: 0;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }
    
    .bg3 .avis-meta {
        display: flex;
        flex-direction: column;
        gap: 5px;
        flex: 1;
    }
    
    .bg3 .client-name {
        font-size: 1.1rem;
    }
    
    .bg3 .stars {
        color: #FFD700;
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    
    .bg3 .avis-text {
        margin: 15px 0;
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .bg3 .avis-date {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.8);
        text-align: right;
    }
    
    .bg3 .no-avis {
        text-align: center;
        font-style: italic;
        padding: 20px;
        color: rgba(255, 255, 255, 0.9);
    }
    
    /* Résumé des notes */
    .bg3 .rating-summary {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
        font-size: 1.1rem;
        padding: 15px 20px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 8px;
    }
    
    .bg3 .stars-global {
        color: #FFD700;
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
    
    .bg3 .note-moyenne {
        font-weight: 700;
        font-size: 1.2rem;
    }
    
    .bg3 .total-avis {
        color: rgba(255, 255, 255, 0.9);
    }
    
    /* Lien vers tous les avis */
    .bg3 .all-reviews-link {
        display: inline-block;
        color: white;
        text-decoration: none;
        font-size: 1rem;
        padding: 10px 20px;
        border: 2px solid white;
        border-radius: 8px;
        transition: all 0.3s ease;
        background-color: brown;
        border-color: black;
    }
    
    .bg3 .all-reviews-link:hover {
        background: white;
        color: #333;
    }


/* Version Mobile */
@media (max-width: 1023px) {
    .bg3 {
        height: 60vh;
    }
    
    .bg3 .content {
        text-align: center;
        padding: 20px;
        width: 100%;
    }
    
    .bg3 .content h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    /* Carte d'avis avec avatar */
    .bg3 .avis-card {
        background: rgba(0, 0, 0, 0.5);
        padding: 20px;
        border-radius: 10px;
        margin-bottom: 20px;
    }
    
    .bg3 .avis-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .bg3 .avatar-circle {
        background-color: brown;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        font-weight: 700;
        color: white;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }
    
    .bg3 .avis-meta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .bg3 .client-name {
        font-size: 0.95rem;
    }
    
    .bg3 .stars {
        color: #FFD700;
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .bg3 .avis-text {
        margin: 12px 0;
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: center;
    }
    
    .bg3 .avis-date {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.8);
        text-align: center;
    }
    
    .bg3 .no-avis {
        text-align: center;
        font-style: italic;
        padding: 15px;
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.9rem;
    }
    
    /* Résumé des notes */
    .bg3 .rating-summary {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-bottom: 15px;
        font-size: 0.95rem;
        padding: 12px 15px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 8px;
    }
    
    .bg3 .stars-global {
        color: #FFD700;
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    .bg3 .note-moyenne {
        font-weight: 700;
    }
    
    .bg3 .total-avis {
        color: rgba(255, 255, 255, 0.9);
    }
    
    /* Lien vers tous les avis */
    .bg3 .all-reviews-link {
        display: inline-block;
        color: white;
        text-decoration: none;
        font-size: 0.9rem;
        padding: 8px 16px;
        border: 2px solid white;
        border-radius: 8px;
    }
}
/* ===== SECTION 4 - NEWSLETTER ===== */
/* Version PC */
@media screen and (min-width: 1024px) {
    .bg4 {
        background-attachment: fixed;
        padding: 0 80px;
    }
    
    .bg4 .content {
        text-align: center;
    }
    
    .bg4 .content h1 {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }
    
    .bg4 .newsletter-form {
        display: flex;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .bg4 .newsletter-form input[type="email"] {
        flex: 1;
        padding: 15px 20px;
        font-size: 1rem;
        border: none;
        border-radius: 8px 0 0 8px;
        outline: none;
    }
    
    .bg4 .newsletter-form button {
        padding: 15px 30px;
        font-size: 1rem;
        background: #333;
        color: white;
        border: none;
        border-radius: 0 8px 8px 0;
        cursor: pointer;
        transition: background 0.3s ease;
    }
    
    .bg4 .newsletter-form button:hover {
        background: #555;
    }
}

/* Version Mobile */
@media (max-width: 1023px) {
    .bg4 {
        height: 60vh;
    }
    .bg4 .content {
        text-align: center;
        padding: 20px;
    }
    .bg4 .content h1 {
        font-size: 1.6rem;
        margin-bottom: 25px;
        line-height: 1.3;
    }
    .bg4 .newsletter-form {
        display: flex;
        width: 100%;
    }
    .bg4 .newsletter-form input[type="email"] {
        flex: 1;
        padding: 12px 15px;
        font-size: 0.9rem;
        border: none;
        border-radius: 8px 0 0 8px;
        outline: none;
    }
    .bg4 .newsletter-form button {
        padding: 12px 20px;
        font-size: 0.9rem;
        background: #333;
        color: white;
        border: none;
        border-radius: 0 8px 8px 0;
        cursor: pointer;
    }
}

/* RESPONSIVE MOBILE GÉNÉRAL */
@media (max-width: 900px) {
    main {
        margin-top: -18%;
    }
    
    section {
        background-position: center top;
    }

    .bg1 {
width: 90%;
  margin-top: 20%;
  margin-bottom: 5%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 25px;
    }
}