/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@100..900&family=Momo+Trust+Display&family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Esteban&family=Inclusive+Sans:ital,wght@0,300..700;1,300..700&family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&family=Stack+Sans+Headline:wght@200..700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* général */

body{
    margin: 0;
    padding: 0;
    font-family: "Barlow", sans-serif;
    color: black;
    -webkit-font-smoothing: antialiased;    
    -moz-osx-font-smoothing: grayscale;      
    text-rendering: optimizeLegibility;
    opacity: 0;
    animation: fadeIn 0.8s forwards;
    -webkit-tap-highlight-color: transparent;
}

body.menu-active {
    overflow: hidden;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

*{
    margin: 0;
    padding: 0;
}

.h1-pages{
    margin-left: 30px;
    margin-top: 30px;
    font-size: 26px;
}

.errors{
    display: flex;
    height: 372px;
} 

.error-404{
    margin: auto;
}

.error-404 p{
    font-size: 22px;
    font-family: "Geologica", sans-serif;
}

.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); 
    backdrop-filter: blur(5px);     
    opacity: 0;
    pointer-events: none;            
    transition: opacity 0.3s ease;
    z-index: 9;     
    margin-top: 65px;               
}

.overlay-menu.active {
    opacity: 1;
    pointer-events: all;             
}

/*header */

nav {
    display: flex;
    position: relative;              
    top: 0;
    z-index: 40;                
    box-shadow: 0px 2px 10px gainsboro;
}

.navBar {
    display: flex;
    width: 95%;
    margin: auto;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.navBarLeft{
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.nav-logo{
    font-size: 50px;
    letter-spacing: 1px;
    font-weight: 900;
    line-height: 1;
}

.nav-logo a{
    display: flex;
    align-items: center;
    text-decoration: none;
    color: rgb(40, 40, 40);
}

.nav-logo .logo {
    transform: translateY(-8px); 
    width:auto;
    height: 1rem;
}

.nav-onglets{
    width: 100%;
    display: flex;
    justify-content: end;

}

.nav-onglets ul{
    display: flex;
    list-style: none;
    height: 80%;
    gap: 3rem;
    align-items: center;
    margin: auto;
    margin-left: 0;
    margin-right: 0;
}

.nav-onglets li{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.3rem;
    transition: all 0.3s;
    border-radius: 0.5rem;
    cursor: pointer;
}

.nav-onglets a, .material-icons{
    text-decoration: none;
    padding: 0rem;
    padding-left: 0rem;
    padding-right: 0rem;
    transition: all 0.3s;
}

.nav-onglets span{
    display: none;
}

.nav-onglets a{
    font-family: "Geologica", sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: black;
}

.nav-onglets li:not(.logo):hover {
    background-color: rgba(20, 102, 184, 0.7);
    color: white;
}

.nav-onglets li:not(.logo):hover a {
    color: white;
}

.material-icons{
    transition: transform 0.3s, color 0.2s;
    font-size: 40px;
}

.material-icons:hover{
    cursor: pointer;
    transform: scale(1.4);
}

.nav-onglets li.active {
    background-color: rgba(20, 102, 184, 0.7);
    color: white;
}

.nav-onglets li.active p{
    color: white;
}

.nav-onglets span{
    cursor: pointer;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
}

.burger span {
    display: block;
    height: 3px;
    background: #000;
    border-radius: 2px;
    transition: all 0.3s;
}

.burger.toggle span:nth-child(1) {
    transform: rotate(45deg) translate(0, 10px);
}

.burger.toggle span:nth-child(2) {
    opacity: 0;
}

.burger.toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(0, -10px);
}

.icon-mobile{
    display: none;
}

@media (max-width: 800px) {

    .navBar {
        flex-direction: column;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    .burger {
        display: flex;
        margin: auto;
        margin-left: 0;
        margin-right: 0;
    }
    .nav-onglets {
        position: fixed;
        top: 0;
        margin-top: 65px;
        right: -100%;         
        width: 100%;            
        height: fit-content;           
        background: whitesmoke;
        transition: right 0.3s ease;
        z-index: 2000;
        display: flex;
    }
    .nav-onglets.active {
        right: 0;             
    }
    .nav-onglets .burger {
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 1002;
    }
    .nav-onglets ul {
        display: flex;
        justify-content: space-around;
        padding: 0;
        list-style: none;
        margin: auto;
        height: fit-content;
        margin-top: 1rem;
        margin-bottom: 2rem;
        gap: 1rem;
    }
    .nav-onglets li {
        width: 80px;           
        display: flex;
        justify-content: center;  
        padding: 0;       
        position:  relative;    
        color: rgb(70, 70, 70);       
    }
    .nav-onglets span {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .nav-onglets a {
        color: rgb(70, 70, 70);
    }
    .nav-onglets li p {
        position: absolute;
        top: 110%;           
        left: 50%;           
        transform: translateX(-50%); 
        margin: 0;
        text-align: center;  
        font-size: 12px;
    }
    .nav-onglets li:not(.logo):hover {
        background-color: transparent;
        color: rgb(70, 70, 70);
    }
    .nav-onglets li.active {
         background-color: transparent;
    }
    .nav-onglets li.active p{
        color: rgb(70, 70, 70);
    }
    .nav-onglets li a:active,
    .nav-onglets li a:focus {
        background-color: transparent;
        outline: none;
  }
    .nav-onglets .material-symbols-outlined {
        font-size: 36px;
        border: 2px solid rgb(70, 70, 70);
        border-radius: 16px;
        padding: 0.4rem;
        color: rgb(70, 70, 70);
        box-shadow:
            0 4px 6px rgba(0,0,0,0.12),
            inset 0 1px 0 rgba(255,255,255,0.6);
    }

    .icon-mobile{
        display: flex;
    }
    .icon-mobile ul {
        display: flex;
        justify-content: space-around;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    .icon-mobile li {
        position: relative;
        width: 64px;          
        display: flex;
        justify-content: center;
    }
    .icon-mobile a {
        display: flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
    }
    .icon-mobile li p {
        position: absolute;
        top: 45px;             
        font-size: 11px;
        text-align: center;
        width: 100%;
        margin: 0;
        pointer-events: none;
        white-space: nowrap;  
    }
    .icon-mobile .material-symbols-outlined {
        font-variation-settings:
            'FILL' 0,
            'wght' 400,
            'GRAD' 0,
            'opsz' 30;
        color: rgb(70, 70, 70);
        font-size: 30px;
        border: 2px solid rgb(70, 70, 70);
        padding: 0.3rem;
        border-radius: 0.5rem;
    }
    .icon-mobile li.active span.material-symbols-outlined {
        color: #1466b8;
        border: 2px solid #1466b8;
    }
    .icon-mobile li.active p{
        color:#1466b8 ;
    }
}

/* home section 1 */ 

.home-section-1{
    background: linear-gradient(rgba(0,0,0,0.5)), url(../img/ImageTaamimAcceuil4.jpg) center top;
    background-size: cover;
    background-attachment: fixed;
    height: 550px;
    width: auto;
    display: flex;
}

.overlay-section-1{
    width: 95%;
    margin: auto;
    color: white;
}

.overlay-section-1-container{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: fit-content;
}

.titre-section-1{
    font-size: 60px;
    font-weight: 700;
    letter-spacing: 0.1rem;
    font-family: "Momo Trust Display", sans-serif;
}

.ayku-section-1{
    font-size: 20px;
    text-align: center;
    color: white;
}

@media (max-width: 800px) {
    .home-section-1 {
        background-attachment: scroll;
        background-position: center center;
        height: 60vh;
    }
    .overlay-section-1-container{
            margin:auto;
            gap: 1rem;
    }
    .titre-section-1{
            text-align: center;
            line-height: 1;
    }
}

/* home Section 2 */

.section-2 img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.container-section-2 {
    width: 95%;
    margin: auto;
    padding-top: 2rem;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.container-titre-section-2 {
    display: flex;
    /* flex-wrap: wrap; */
    justify-content: space-between;
    align-items: end;
}

.sous-titre-section-2 a {
    text-decoration: none;
    height: fit-content;
    color: #0058af;
    font-family: "Momo Trust Display", sans-serif;
    font-size: 18px;
}

.titre-section-2 h2{
    margin: 0;
    padding: 0;
    line-height: 0.9;
    height: 50%;
    font-size: 50px; 
    font-weight: 900;
    color: rgb(40, 40, 40);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 1rem;
}

.articles-section-2 {
    display: flex;
    flex-direction: column;
    background-color: white;
    color: black;
    box-shadow: 0 0px 6px rgba(0,0,0,0.4); 
    transition: transform 0.3s, color 0.2s;
    border-radius: 0.3rem;
    text-decoration: none;
    overflow: hidden;
}

.articles-section-2 img {
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
    height: 250px;
    object-fit: cover;
}

.articles-section-2 h3 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    font-family: "Momo Trust Display", sans-serif;
    margin: 0.5rem 0;
}

.articles-infos-section-2 h4 {
    font-size: 14px;
    font-weight: 700;
    width: fit-content;
    color: white;
    background-color: #4485c7;
    display: inline-block;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.articles-section-2:hover {  
    transform: translateY(-10px);
    cursor: pointer;
}

.articles-infos-section-2 {
    display: flex;
    flex-direction: column;
    padding: 0.8rem;
    gap: 0.5rem;
}

.article-1 {
    grid-column: 1;
    grid-row: 1;
}

.article-2 {
    grid-column: 2 / 4;
    grid-row: 1;
}

.article-3 {
    grid-column: 1;
    grid-row: 2;
}

.article-4 {
    grid-column: 2;
    grid-row: 2;
}

.article-5 {
    grid-column: 1 / 3;
    grid-row: 3;
}

.article-6 {
    grid-column: 3;
    grid-row: 2 / 4;
}


.articles-link, .restaurants-link {
    width: 20%;
    height: 50px;
    margin: 1rem auto 2rem;
    border: 2px solid rgb(5, 5, 88);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.articles-link:hover, .restaurants-link:hover {
    background-color: rgb(180, 180, 180);
    border-color: rgb(180, 180, 180);
    cursor: pointer;
}

.articles-link-contain, .restaurants-link-contain {
    text-decoration: none;
    color: rgb(5, 5, 88);
}

.articles-link-contain:hover, .restaurants-link-contain:hover {
    color: white;
}

@media (max-width: 800px){
    .container-section-2{
        width: 90%;
        padding-bottom: 2rem;
        padding-top: 2rem;
    }
    .grid-container{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .articles-section-2{
        flex-direction: row;
        box-shadow: none;
        gap: 0.5rem;
        border-radius: 0;
    }
    .articles-section-2 img{
        width: 55%;
        height: auto;  
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 0;
    }
    .articles-infos-section-2{
        padding: 0;
    }
    .articles-infos-section-2 h4{
        /* border-radius: 1rem; */
    }
    .container-titre-section-2{
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .articles-infos-section-2 h3{
        margin: 0;
        font-size: 24px;
    }
}

/* home section 3 */

.container-section-3{
    width: 95%;
    margin: auto;
    padding-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.titre-section-3{
    margin: auto;
    font-size: 38px;
    color: rgb(40, 40, 40);
    font-weight: 500;
    margin-bottom: 1rem;
}

.titre-section-3 span{
    color: rgb(200, 0, 0);
}

.zoom-wrapper{
    overflow: hidden;
    height: 200px;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    
}

.zoom-wrapper img{
    width: 100%;
    height: 100%;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    object-fit: cover;
    transition: transform 0.5s ease;
    will-change: transform;
}

.zoom-wrapper:hover img{
    transform: scale(1.05);
}

.restaurants-section-3{
    display: block;
    background-color: white;
    color: black;
    margin-right: 1rem;
    margin: 15px 0.3rem 40px;
    box-shadow: 0 0px 6px rgba(0, 0, 0, 0.6); 
    text-decoration: none;
    border-radius: 0.5rem;
}

.section-3 .splide__arrow {
  width: 40px; 
  height: 40px;  
}

.splide__arrow--prev{
    margin-left: -1.5rem;
}

.splide__arrow--next{
    margin-right: -1.5rem;
}

.restaurants-infos-restaurants-section{
    padding: 0.5rem;
}

.restaurants-infos-section-3{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.8rem;
}

.restau-title{
    font-family: "Momo Trust Display", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgb(30, 30, 30);
}

.restau-cacher{
    display: flex;
    gap: 0.5rem;
    font-size: 12px;
    font-weight: 700;
}

.restau-infos-1{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.restau-cacherout{
    background-color: #4485c7;
    font-size: 11px;
    color: white; 
    font-weight: 700;
    padding: 0.2rem;
    border-radius: 0.3rem;
}

.restau-infos p{
    font-family: "Geologica", sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: rgb(26, 26, 26);
}

.restaurants-link {
  width: 20%;
  height: 50px;
  margin: auto;
  margin-top: 1rem;
  margin-bottom: 2rem;
  border: 2px solid rgb(5, 5, 88);
  text-decoration: none;
  transition: all 0.3s ease; 
  border-radius: 5px;
}

.restaurants-link-contain{
    text-decoration: none;
}

.button-page .active {
  font-weight: bold;
  background-color:rgb(60, 60, 60);
  color: white;
}

.infos-pages{
    margin-top: 40px;
    margin-left: 30px;
    font-size: 22px;
}

.restau-onglets {
  position: absolute; 
  display: flex;
  gap: 0.5rem; 
  top:25px;      
  left: 15px;        
  color: rgb(70, 70, 70);
}

.restau-type, .restau-coeur {
    background-color: rgba(255, 255, 255, 0.9);
    width: 1.8rem;
    height: 1.8rem;
    display: flex;        
    align-items: center;          
    justify-content: center;      
    font-weight: 500;
    font-size: 1.3rem;             
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.6); 
}

.restau-type p, .restau-coeur p{
    display: flex;
    width: fit-content;
    height: fit-content;
    margin-bottom: 0.1rem;
}

.restau-coeur{
    font-size: 1.8rem;
}

.restau-type.type-halavi {
    color: rgb(20, 102, 184);
}

.restau-type.type-bassari {
    color: rgb(200, 0, 0);
}

@media (max-width: 800px){
    .section-3{
        background-color: whitesmoke;
    }
    .container-section-3{
        width: 90%;
        padding-bottom: 2rem;
        padding-top: 2rem;
    }
    .container-titre-section-2{
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .titre-section-2 h2{
        text-align: center;
    }
    .sous-titre-section-2{
        text-align: center;
    }
}

/* articles gride */

 .articles-container {
        width: 95%;
        margin: auto;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .articles-grid {
        display: flex;
        justify-content: flex-start;
        gap: 3.5%;
        /* justify-content: space-between; */
        /* gap: 30px; */
    }
    
    .article-card-link{
        text-decoration: none;
        display: flex;
        width: 31%;
    }

    .article-card {
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        background: white;
        display: flex;
        flex-direction: column;
        text-decoration: none;
    }
    
    .article-card:hover {
        cursor: pointer;
        transform: translateY(-5px);
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    }
    
    .article-image {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }
    
    .article-content {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem
    }
    
    .article-title {
        font-size: 1.4em;
        color: black;
        font-weight: bold;
        line-height: 1.3;
    }
    
    .article-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        color: #777;
        font-size: 0.9em;
    }
    
    .category-badge {
        background-color: #4385c6;
        padding: 5px 8px;
        border-radius: 5px;
        font-size: 0.9em;
        color: white; 
        font-weight: 500;
    }
    
    .article-date {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .article-author {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .article-card .article-chapo {
        color: rgb(26, 26, 26);
        font-family: "geologica", sans-serif;
        line-height: 1.3;
        font-size: 15px;
    }
    
    .article-actions {
        margin-top: auto;
    }
    
    .btn {
        display: flex;
        padding: 10px 20px;
        border-radius: 5px;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        width: fit-content;
    }
    
    .btn-primary {
        background: #2196F3;
        color: white;
    }
    
    .btn-primary:hover {
        background: #1976D2;
    }
    
    .no-articles {
        text-align: center;
        padding: 60px 20px;
        color: #777;
    }
    
    @media (max-width: 800px) {
        .articles-container {
        width: 85%;
        }
        .articles-grid {
            flex-direction: column;
            gap: 2rem;
        }
        .article-card-link{
            width: 100%;
        }
    }

/* restaurants gride */

.restaurants-container {
        margin: 0 auto;
        padding: 30px;
    }
    
   .restaurants-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.restaurant-card-link{
    text-decoration: none;

}
    
.restaurant-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: white;
    cursor: pointer;
}
    
.restaurant-image {
    width: 100%;
    height: 200px;
}

.restaurant-content {
    display:flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.8rem;
}

.restaurant-header {
    display: flex;
    /* justify-content: space-between; */
    font-size: 16px;
    color: black;
} 

.restaurant-header h3{
    font-size: 10px;
    width: fit-content;
    height: fit-content;
    /* display: flex;
    align-items: end; */
    background-color: #4485c7;
    color: white;
    font-weight: 200;
    border-radius: 0.5rem;
    padding: 0.3rem;
    margin-left: auto;
    margin-top: auto;
    margin-bottom: auto;
}

.restaurant-header h2 {
    /* width: 100px; */
    font-size: 1.4em;
    color: black;
    font-weight: bold;
}

.restaurant-rating {
    margin-top: 3px;
    height: 100%;
    color: #ffa500;
}

.restaurant-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: rgb(40, 40, 40);
    font-size: 14px;
    font-weight: 500;
}

.info-badge.cacherout {
    background-color: #4485c7;
    color: white;
    height: fit-content;
    width: fit-content;
    border-radius: 0.3rem;
    font-weight: 700;
    font-size: 11px;
    padding: 0.2rem;
}
    
.restaurant-location {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgb(26, 26, 26);
}

.restaurant-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
}

.btn-primary {
    background: #2196F3;
    color: white;
}

.btn-primary:hover {
    background: #1976D2;
}

.btn-secondary {
    background: white;
    color: #2196F3;
    border: 2px solid #2196F3;
}

.btn-secondary:hover {
    background: #2196F3;
    color: white;
}

.no-restaurants {
    text-align: center;
    padding: 60px 20px;
    color: #777;
}

.filter-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.filter-section h3 {
    margin: 0 0 15px 0;
    color: #333;
}

 @media (max-width: 768px) {
        .restaurants-grid {
            grid-template-columns: 1fr;
        }
    }

/* restaurants section home */

.splide__track {
    padding-bottom: 0.5rem;
    padding-right: 0.5rem;
    box-sizing: border-box;
}

/* article page */

.article-page{
    display: flex;
}

.article-page-container, .restaurant-page{
    width: 95%;
    margin: auto;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-page-categorie-author-date{
    display: flex;
    gap: 1.5rem;
}

.article-page-date, .article-page-autor{
    font-size: 24px;
    font-weight: 500;
    color: rgb(117, 117, 117, 0.5);
}

.article-page-section{
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.article-page-section .article-meta{
    height: 30px;
    align-items: end;
}

.article-category{
    text-decoration: none;
    color: #1466b8;
    font-size: 24px;
    font-weight: 600;
    transition: color 0.3s;    
}

.article-date, .article-author{
    height: 74%;
}

.article-page-categorie:hover{
    color: #0058af;
}

.article-page h1, .restaurant-page h1{
    color: rgb(31, 31, 31);
    width: fit-content;
    font-size: 40px;
    font-weight: 400;
    line-height: 1;
    font-family: "Momo Trust Display", sans-serif;
}

.article-chapo{
    font-size: 14px;
    font-weight:200;
    color: rgb(0, 0, 0);
    line-height: 1.5;
    font-family: "Geologica", sans-serif;
}

.article-page-section .article-images{
    display: flex;
    justify-content: space-between;
    height: 400px ;
}

.article-images .image-1{
    width: 55%;
}

.article-images .image-2{
    width: 45%;
}

.article-page-container .article-content{
    padding: 0;
    margin: auto;
    margin-top: 2rem;
    gap: 1rem;
    width: 60%;
    font-family: "Geologica", sans-serif;
    font-weight: 200;
    line-height: 1.5;
    font-size: 14px;
}

.article-page-container .article-content h2, h3{
    line-height: 1.3;
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 400;
}

.article-page-container .article-content ol{
    padding-left: 1.5rem;
}

.article-page-container .article-content h2, h3{
    font-weight: 300;
    color: rgb(30, 30, 30);
}

@media (max-width: 800px) {
        .article-page-container{
            width: 90%;
        }
        .article-page-section .article-images {
            flex-direction: column;
            height: fit-content;
        }
        .article-images .image-1{
        width: 100%;
        }

        .article-images .image-2{
            width: 100%;
        }
        .article-page-container .article-content{
            width: 100%;
        }
        .article-page-container .article-content table{
            display: none;
        }

}

/* restaurant page */

.restaurant{
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
    width: 95%;
}

.restaurant h2{
    font-size: 34px;
}

.restaurant-name{
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.restaurant-name .active {
    display: none;
}

.restaurant-cacherout .desactive {
    display: block;
}

.restaurant-images{
    display: flex;
    justify-content: space-between;
}

.restaurant-images img{
    width: 33%;
    height: 320px;
}

.restaurant-fiche{
    display: flex;
    justify-content: space-between;
}

.restaurant-presentation{
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 55%;
}

.restaurant-infos{
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.restaurant-cacheroutInfo{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.restaurant-cacherout{
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: #1466b8;
    font-size: 24px;
    font-weight: 600;
    transition: color 0.3s; 
    height: 1.5rem;
    align-items: end;
}

.restaurant-cacherout p{
    display: flex;
    align-items: end;
}

.restaurant-cacherout h3{
    display: flex;
    align-items: end;
    /* font-size: 34px; */
    color: rgb(200, 0, 0);
    margin-bottom: -0.2rem;
}

.restaurant-telweb{
    display: flex;
    gap: 1rem;
}

.restaurant-telweb a, .restaurant-telweb button{
    font-size: 14px;
    font-weight: 300;
    text-decoration: none;
    color: rgb(120, 120, 120);
    border: 1px solid rgb(120, 120, 120);
    border-radius: 0.8rem;
    padding: 0.5rem;
    height: fit-content;
    font-family: "Geologica", sans-serif;
}

.restaurant-telweb button{
    cursor: pointer;
    background-color: white;
}

.restaurant-description {
    color: rgb(50, 50, 50);
    font-size: 15px;
    text-align: justify;
}

.restaurant-description p{
    font-family: "Geologica", sans-serif;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
    font-weight: 300;
}

.restaurant-description h4{
    margin-top: 1rem;
    font-size: 20px;
    display: flex;
    justify-content: end;
    color: rgb(20, 102, 184);
}

.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;           /* toujours flex */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;              /* invisible par défaut */
    pointer-events: none;    /* désactive le clic quand invisible */
    transition: opacity 0.3s ease-in-out;
}

.modal-container.active {
    opacity: 1;
    pointer-events: all;     /* actif pour clics */
}

.overlay-critique {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333333d3; /* semi-transparent */
    z-index: 1;
}

.modal {
    box-sizing: border-box;
    position: relative;
    z-index: 50; /* devant l’overlay */
    width: 85%;
    max-width: 1000px;
    height: auto;
    max-height: 90vh;
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateY(-50px); 
    opacity: 0;                    
    transition: all 0.3s ease-in-out;
}

.modal::-webkit-scrollbar { width: 0;  background: transparent;}

.modal.show {
    transform: translateY(0);
    opacity: 1;
}

.modal p{
    font-family: "Geologica", sans-serif;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
    font-weight: 300;
    text-align: justify;
    font-size: 1rem;
    color: #333;
}

.modal-header{
    display: flex;
    justify-content: space-between;
}

.modal-header h2{
    font-family: "Momo Trust Display", sans-serif;
    font-size: 1.75rem;
    font-weight: 400;
}

.modal h3{
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.close-modal{
    width: fit-content;
    background-color: rgb(200, 0, 0);
    transition: background-color 0.2s ease, transform 0.2s ease;
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
}

.close-modal:hover {
    background-color: rgb(220, 30, 30);
    transform: scale(1.05);
}

.restaurant-localisation{
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 24px;
    font-weight: 600;
}

.restaurant-localisation iframe{
    height: 320px;
}

.restaurant-form{
    width: 30%;
}

.restaurant-form .form-general{
    box-shadow: 0 0px 12px rgba(0,0,0,0.15); 
    display: flex;
    flex-direction: column;   
}

.restaurant-form .form-general h3{
    margin: auto;
    width: fit-content;
    padding-top: 1.5rem;
}


.restaurant-form .form-section{
    display: flex;
    flex-direction: column;
    margin: 1.5rem;
}

.restaurant-form .form-name, .form-horraire{
    display: flex;
    justify-content: space-between;
}

.restaurant-form .form-contact{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.restaurant-form input, textarea{
    border: 1px solid rgb(120, 120, 120);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    box-sizing: border-box;
}

.restaurant-form .form-name input{
    width: 49%;
}

.restaurant-form .form-contact input, .form-demande textarea{
    width: 100%;
}

.restaurant-form .form-submit{
    margin: auto;
    margin-top: 1rem;
}

.form-submit .submit{
    cursor: pointer;
    background-color: #5a94cd;
    color: white;
    border: none;
    font-size: 16px;
}

details {
    cursor: pointer;
    box-sizing: border-box;
    width: 100%;
    border-radius: 4px;
    padding: 1rem;
}

summary {
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "▼";
  transition: transform 0.3s ease;
}

details[open] summary::after {
  transform: rotate(180deg);
}

details[open] summary {
  margin-bottom: 0.5em;
}

.restaurant-form summary{
    color: rgb(60, 60, 60);
    font-family: "geologica", sans-serif;
}

.restaurant-form .form-demande input{
    height: 200px;
}

.restaurant-form .form-horraire input{
    width: 32%;
}

.restaurant-form-response{
    display: flex;
}

.restaurant-form-confirmation{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family: "geologica", sans-serif;
    font-weight: 300;
    border-radius: 0.8rem;
    box-shadow: 0 0px 12px rgba(0,0,0,0.15); 
    margin: auto;
    margin-top: 10%;
    margin-bottom: 10%;
    padding: 3rem;
}

.restaurant-form-infirmation{
    font-family: "geologica", sans-serif;
    font-weight: 300;
    border-radius: 0.8rem;
    box-shadow: 0 0px 12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: auto;
    margin-top: 10%;
    margin-bottom: 10%;
    padding: 2rem;
}

.restaurant-form-infirmation h3{
    font-size: 16px;
}

.restaurant-form-infirmation ul{
    /* list-style: none; */
    margin-left: 1.5rem;
}

.restaurant-form-infirmation li{
    color: rgb(200, 0, 0);
    text-transform: capitalize;
}

.positive-confirmation{
    color: limegreen;
}

@media (max-width: 1024px) {
    .restaurant-images {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .restaurant-images img {
        width: 48%;
        height: 250px;
    }

    .restaurant-description {
        width: 100%;
        font-size: 14px;
        text-align: justify;
    }

    .restaurant-cacherout {
        font-size: 20px;
    }

    .restaurant-localisation {
        font-size: 20px;
    }
}

@media (max-width: 800px) {
    .restaurant{
        width: 90%;
    }
    .restaurant-name{
        justify-content: space-between;
        align-items: end;
        font-size: 30px;
    }
    /* .restaurant-name h2, .restaurant-name h3{
        display: flex;
        align-items: end;
    } */
    .restaurant-fiche{
        flex-direction: column;
        gap: 1.5rem;
    }
    .restaurant-presentation{
        width: 100%;
    }
    .restaurant-name .active {
        display: block;
        color: rgb(200, 0, 0);
        margin-bottom: -0.3rem;
    }
    .restaurant-cacherout .desactive {
        display: none;
    }
    .restaurant-infos{
        flex-direction: row;
        justify-content: space-between;
    }
    .restaurant-telweb{
        width: 40%;
    }
    .close-modal{
        /* align-self: flex-end; */
        height: 2rem;
    }
    .restaurant-form{
        width: 100%;
    }
    .restaurant-images {
        flex-direction: column;
        gap: 0.5rem;
    }
    .restaurant-images img {
        width: 100%;
        height: 200px;
    }
    .restaurant-description {
        font-size: 14px;
        width: 100%;
    }
    .restaurant-cacherout {
        font-size: 22px;
    }
    .restaurant-localisation p {
        font-size: 22px;
    }
    .restaurant-telweb {
        flex-direction: column;
    }
    .restaurant-localisation iframe{
        width: 100%;
    }
    .restaurant-telweb a {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .restaurant h2 {
        font-size: 28px;
    }

    .restaurant-cacherout {
        font-size: 22px;
    }

    .restaurant-localisation {
        font-size: 16px;
    }

    .restaurant-description {
        font-size: 16px;
    }

    .restaurant-localisation iframe{
        width: 100%;
    }
}

/* Contact form */

.contact-section {
    width: 100%;
    padding: 4rem 0;
    background-color: #f8f8f8;
}

.contact-container, .confirmation-mail {
    width: 50%;
    margin: auto;
    background: white;
    padding: 2rem;
    border-radius: 0.8rem;
    box-shadow: 0 0px 12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-container h2 {
    font-family: "Momo Trust Display", sans-serif;
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    color: rgb(30, 30, 30);
}

.contact-subtitle, .confirmation-mail p {
    font-size: 14px;
    text-align: center;
    font-family: "Geologica", sans-serif;
    font-weight: 300;
    color: rgb(60, 60, 60);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-row {
    display: flex;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: none;
    font-family: "Barlow", sans-serif;
    box-shadow: 0 0px 2px rgba(0,0,0,0.4);
    font-size: 14px;
}

.contact-form input{
    padding: 0.9rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #5a5a5a;
    font-weight: 500;
}

.contact-genre{
    display: flex;
    gap: 1rem;
}

.contact-genre label{
    font-family: "Geologica", sans-serif;
    font-size: 14px;
    color: rgb(60, 60, 60);
}

.contact-genre input{
    width: fit-content;
    border: none;
    box-shadow: none;
}

.contact-infos{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.contact-label {
    font-family: "Geologica", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgb(60, 60, 60);
}

.contact-form textarea {
    resize: none;
    height: 160px;
}

.contact-submit {
    margin: auto;
    margin-top: 1rem;
    padding: 0.8rem 2.5rem;
    background-color: #4485c7;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.contact-submit:hover {
    background-color: #2f6fb1;
    transform: translateY(-2px);
}


@media (max-width: 800px) {
    .contact-container {
        width: 90%;
        padding: 1.5rem;
    }
    .contact-form{
        width: 100%;       
    }
    .contact-row{
        flex-direction: column;
        width: 100%;
        /* width: 70%; */
        /* align-items: center;
        justify-content: center; */
    }
    .contact-row input{
        box-sizing: border-box;
        width: 100%;
        align-items: center;
    }
}

@media (max-width: 500px ) {
    .contact-container{
        width: 80%;
    }
}

.confirmation-mail{
    margin: auto;
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
}

/* footer */

.footer{
    display: flex;
    background-color: rgba(20, 102, 184, 0.7);
    color: white;
}

.footer-container{
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem ;
    margin-bottom: 2rem;
}

.footer h3{
    display: flex;
    justify-content: center;
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 3px;
    color: white;
}

.footer h3 span{
    color: rgb(60, 60, 60);
}

.footer-info{
    display: flex;
    gap: 0.5rem;
}

.footer-info p{
    font-size: 18px;
    font-weight: 700;
}

.footer a{
    color: rgb(60, 60, 60);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    width: fit-content;
}

@media (max-width: 800px){
    .footer-info{
        flex-direction: column;
        gap: 0rem;
    }
    .footer-info a{
        margin: auto;
        width: fit-content;
   }
    .footer-info p{
        margin: auto;
   }
}

/* mentions legales, politique de confidentialité et gestion des cookies */

.mentions-legales, .politique, .cookies{
    display: flex;
    flex-direction: column;
    width: 95%;
    margin: auto;
    gap: 2rem;
    /* justify-content: center; */
    /* align-items: center; */
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.mentions-legales h1, .politique h1, .cookies h1{
    font-size: 32px;
}

.mentions-legales-infos, .politique-infos, .cookies-infos{
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* text-align: center; */
}

.mentions-legales-infos h2, .politique-infos h2, .cookies-infos h2{
    font-size: 22px;
    font-weight: 600;
}

.cookies-infos h3{
    margin-top: 1rem;
    font-size: 20px;
    font-weight: 500;
}

.cookies-types{
    margin-left: 0.5rem;
}

.politique-infos ul, .cookies-infos ul{
    list-style: none;
    margin-left: 0.5rem;
}

