/* PALETTE DE COULEURS */
:root{
    --bg-color: #E2D0AC;
    --text-color:#D77751;
    --text-color-hover: #B83C1E;
    --navbar: #DF6545;
    --title-color:#F7F6F0;
    --text-color-2:#000000;
    --other: #ffffff;
}
body.dark-mode{
    --bg-color: #D77751;
    --text-color: #DF6545;
    --text-color-hover: #E2D0AC;
    --navbar: #F7F6F0;
    --title-color:#000000;
    --text-color-2: #B83C1E;
}

/* EFFETS */
h1::selection{
    background-color: var(--title-color);
    color: var(--text-color-hover);
}
a::selection{
    background-color:var(--title-color);
    color: var(--text-color-hover);
}
p::selection{
    background-color: var(--text-color-hover);
    color:var(--title-color);
}
img::selection{
    background-color:var(--title-color);
    color: var(--text-color);
}
img:hover{
    cursor: pointer;
    scale: 1.05;
    transition: all ease-out 0.3s;
}

/* POLICES */
@font-face{
    font-family: tan;
    src: url(tan-pearl.otf) format('opentype');
}
body{
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Open Sans', sans-serif;
}

/* NAVBAR */
#navbar1{
    background-color: var(--title-color);
    padding: 13px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#navbar1 a {
    margin: 0 10px;
    display: inline-block;
}
#navbar1 i{
    color: var(--navbar);
    font-weight: lighter;
    font-size: 17px;
    transition: all 0.2s ease;
}
#navbar1 i:hover{
    color: var(--text-color-hover);
}
#navbar{
    background-color: var(--text-color-hover);
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative;
    z-index: 100;
}
.hbfwdhjn{
    text-decoration: none;
}
.title{
    margin: 0;
    padding: 0 20px;
    font-family: 'PT Serif', sans-serif;
    font-size: 2rem;
    color: var(--title-color);
    font-weight: 505;
}
#navbar ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}
li{
    font-size: 20px;
    margin: 10px;
    font-family: 'PT Serif', sans-serif;
    list-style-type: none;
}
li a{
    color: var(--title-color);
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease-in;
    display: inline-block;
}
li a:hover{
    color: var(--bg-color);
    border-bottom: 2px solid var(--bg-color);
}
i{
    margin-right: 13px;
    font-size: 22px;
    color: var(--title-color);
}
i:hover{
    color: var(--bg-color);
}
.icons{
    padding: 0 20px;
    margin: 10px 0;
}
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--title-color);
    margin-right: 20px;
}

/* A LA UNE - avec fond plus clair pour le texte */
#àlaune{
    background-color: var(--bg-color);
    margin: 0;
    padding: 60px 40px;
    height: auto;
}

.voilà{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.text3{
    flex: 1 1 500px;
    padding: 25px;
    max-width: 55%;
    background-color: rgba(255, 255, 255, 0.6); /* Fond blanc semi-transparent */
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.image1{
    flex: 1 1 300px;
    padding: 20px;
    text-align: center;
    max-width: 40%;
}

.text3 h2{
    text-align: left;
    color: var(--text-color-hover);
    font-family: 'PT Serif', sans-serif;
    font-size: 50px;
    margin-top: 0;
    font-weight: 510;
    margin-bottom: 30px;
}

.text3 p{
    text-align: left;
    color: var(--text-color-hover);
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.6;
}

.image1 img{
    border-radius: 10px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Ajustement pour le mode sombre */
body.dark-mode .text3 {
    background-color: rgba(0, 0, 0, 0.5); /* Fond sombre semi-transparent en mode sombre */
}

/* Media queries pour responsive */
@media screen and (max-width: 992px) {
    .voilà {
        justify-content: center;
        gap: 20px;
    }
    
    .text3, .image1 {
        max-width: 100%;
        padding: 20px;
    }
}

@media screen and (max-width: 768px) {
    #àlaune {
        padding: 40px 20px;
    }
    
    .voilà {
        flex-direction: column-reverse;
    }
    
    .text3 h2 {
        font-size: 32px;
        text-align: center;
    }
    
    .text3 p {
        text-align: center;
    }
}

/* IMAGE */
#image{
    background-image: url(yakitori.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 250px;
}

/* ARTICLES */
#articles{
    background-color: var(--title-color);
    padding: 40px;
    height: auto;
}
.ourarticles{
    padding-top: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.text2{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.text2 h1{
    text-align: left;
    color: var(--text-color-hover);
    font-family: 'PT Serif', sans-serif;
    font-size: 50px;
    font-weight: 510;
    margin: 0;
}
.text2 a{
    color: var(--text-color-hover);
    font-family: 'PT Serif', sans-serif;
    font-size: 17px;
    font-weight: 510;
    text-decoration: underline;
    padding-top: 30px;
    transition: all ease-in-out 0.3s;
}
@media (min-width: 768px) {
    .text2 a {
        padding-left: 40px;
    }
}
.text2 a:hover{
    color: var(--navbar);
}
.quatrearticles{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
    background-color: #ffffff;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
article {
    flex: 1 1 250px;
    margin: 15px;
    max-width: 300px;
    transition: transform 0.3s ease;
}
article:hover {
    transform: translateY(-5px);
}
.liens{
    text-decoration: none;
    color: var(--bg-color);
    font-family: 'PT Serif', sans-serif;
    font-size: 13px;
    font-weight: 510;
    text-decoration: underline;
    margin-right: 10px;
    display: inline-block;
}
.liens:hover{
    color: var(--navbar);
    transition: all ease-in-out 0.3s;
}
article a{
    text-decoration: none;
    display: block;
}
article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
article p{
    color: #000000;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 510;
}
article h3{
    color: #B83C1E;
    font-family: 'PT Serif', sans-serif;
    font-size: 23px;
    font-weight: 510;
    margin-top: 15px;
}

/* Second articles section */
.second-articles {
    padding-top: 0;
}

/* ARTICLES2 */
#articles2{
    background-image: url(th-726322594.jpg);
    background-size: cover;
    background-position: bottom;
    background-attachment: fixed;
    padding: 40px;
    height: auto;
    position: relative;
}
#articles2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}
#articles2 .ourarticles {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
}
#articles2 h1{
    text-align: left;
    color: var(--text-color-hover);
    font-family: 'PT Serif', sans-serif;
    font-size: 50px;
    font-weight: 510;
    background-color: var(--title-color);
    margin: 0;
    padding: 0 15px;
    display: inline-block;
}
#articles2 .text2 a{
    color: var(--text-color-hover);
    font-family: 'PT Serif', sans-serif;
    font-size: 17px;
    font-weight: 510;
    text-decoration: underline;
    padding-top: 30px;
    padding-left: 40px;
    transition: all ease-in-out 0.3s;
}
#articles2 .text2 a:hover{
    color: var(--text-color-2);
}
#articles2 .liens{
    text-decoration: none;
    color: var(--bg-color);
    font-family: 'PT Serif', sans-serif;
    font-size: 13px;
    font-weight: 510;
    text-decoration: underline;
    margin-right: 10px;
}
#articles2 .liens:hover{
    color: var(--navbar);
    transition: all ease-in-out 0.3s;
}

/* ARTICLES1 - Version responsive améliorée */
#articles1{
    background-color: var(--title-color);
    padding: 60px 40px;
    min-height: 200px; /* hauteur minimum au lieu de hauteur fixe */
    height: auto; /* hauteur flexible */
    display: flex;
    align-items: center;
    justify-content: center;
}

#articles1 h1{
    text-align: center;
    color: var(--text-color);
    font-family: 'PT Serif', sans-serif;
    font-size: 55px;
    font-weight: 510;
    margin: 0; /* suppression du margin-top problématique */
    line-height: 1.2;
    max-width: 1000px; /* largeur max pour éviter les lignes trop longues */
}

#articles1 h1 span{
    color: var(--text-color-hover);
    font-family: 'PT Serif', sans-serif;
    font-size: inherit; /* hérite de la taille du parent */
    font-weight: 510;
    display: inline; /* s'assure que le span reste en ligne */
}

/* Media queries pour la responsivité */

/* Tablettes et écrans moyens */
@media screen and (max-width: 1200px) {
    #articles1 h1 {
        font-size: 45px;
    }
}

@media screen and (max-width: 992px) {
    #articles1 {
        padding: 50px 30px;
        min-height: 180px;
    }
    
    #articles1 h1 {
        font-size: 38px;
    }
}

/* Tablettes portrait et petits écrans */
@media screen and (max-width: 768px) {
    #articles1 {
        padding: 40px 20px;
        min-height: 160px;
    }
    
    #articles1 h1 {
        font-size: 32px;
        line-height: 1.3;
    }
}

/* Mobiles */
@media screen and (max-width: 576px) {
    #articles1 {
        padding: 30px 15px;
        min-height: 140px;
    }
    
    #articles1 h1 {
        font-size: 24px;
        line-height: 1.4;
        /* Permet au texte de se diviser sur plusieurs lignes si nécessaire */
        word-wrap: break-word;
        hyphens: auto;
    }
}

/* Très petits écrans */
@media screen and (max-width: 400px) {
    #articles1 {
        padding: 25px 10px;
        min-height: 120px;
    }
    
    #articles1 h1 {
        font-size: 20px;
        line-height: 1.5;
    }
}

/* STORY */
#story{
    background-image: url(__67c4b3e483fe2.png);
    background-size: cover;
    background-position: bottom;
    background-attachment: fixed;
    padding: 40px;
    height: auto;
}
.ourstory{
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.ourstory h1{
    text-align: center;
    color: var(--text-color-2);
    font-family: 'PT Serif', sans-serif;
    font-size: 50px;
    font-weight: 510;
}
.ourstory span{
    color: var(--text-color-hover);
    font-family: 'PT Serif', sans-serif;
    background-color: var(--title-color);
    font-size: 50px;
    font-weight: 510;
    padding: 0 5px;
}
.ourstory p{
    text-align: center;
    color: var(--navbar);
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 650;
    background-color: var(--title-color);
    padding: 20px;
    margin-bottom: 50px;
    border-radius: 5px;
}
.btn1{
    text-align: center;
    color: var(--title-color);
    font-family: 'PT Serif', sans-serif;
    font-size: 16px;
    font-weight: 500;
    background-color: var(--text-color-hover);
    padding: 15px;
    border-radius: 5px;
    text-decoration: none;
    border: var(--text-color-hover) 1px solid;
    transition: all ease-in-out 0.3s;
    display: block;
    margin: 0 auto;
    max-width: 150px;
}
.btn1:hover{
    color: var(--text-color-hover);
    background-color: var(--title-color);
}

/* NEWSLETTER */
#newsletter{
    background-color: var(--other);
    margin: 0;
    padding: 60px 20px;
    text-align: center;
}
#newsletter h1{
    color: var(--text-color-hover);
    font-family: 'PT Serif', sans-serif;
    font-size: 2.5rem;
    background-color: var(--bg-color);
    font-weight: 510;
    margin: 0 auto 30px;
    max-width: 500px;
    padding: 10px;
    border-radius: 5px;
}
#newsletter p{
    color: var(--text-color-2);
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 510;
    margin-bottom: 30px;
}
.mb-3 {
    margin: 0 auto;
    max-width: 500px;
    width: 100%;
}
#exampleFormControlInput1{
    padding: 15px 20px;
    border: 1px solid var(--text-color-hover);
    background-color: var(--title-color);
    margin: 0 auto 30px;
    text-align: left;
    color: var(--text-color-2);
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    border-radius: 3px;
    width: 100%;
    max-width: 500px;
    display: block;
    box-shadow: 0 3px 10px var(--shadow);
}
.send{
    background-color: var(--text-color-hover);
    color: var(--title-color);
    font-size: 17px;
    font-family: 'PT Serif', sans-serif;
    font-weight: 500;
    padding: 15px 20px;
    border: 1px solid var(--text-color-hover);
    border-radius: 5px;
    transition: all ease-in-out 0.3s;
    text-decoration: none;
    text-align: center;
    margin-top: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.send:hover{
    background-color: #F7F6F0;
    color: var(--text-color-hover);
    border: 1px solid var(--text-color-hover);
    cursor: pointer;
}

/* Ajustements pour le mode sombre - Contraste amélioré */
body.dark-mode #newsletter {
    background-color: var(--title-color); /* Fond plus sombre en mode sombre */
}
body.dark-mode #newsletter h1 {
    color: var(--title-color);
    background-color: var(--navbar); /* Couleur de fond du titre ajustée */
}
body.dark-mode #newsletter p {
    color: var(--navbar);
}
body.dark-mode #exampleFormControlInput1 {
    background-color: var(--navbar);
    color: var(--text-color-2);
    border: 1px solid var(--text-color-2);
}
body.dark-mode .send {
    background-color: var(--text-color-hover);
    color: var(--title-color);
}
body.dark-mode .send:hover {
    background-color: var(--navbar);
    color: var(--text-color-hover);
    border: 1px solid var(--text-color-hover);
}

/* FOOTER */
footer{
    background-color: var(--text-color-hover);
    padding: 30px 20px;
    color: var(--title-color);
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    font-weight: 500;
    text-align: center;
    margin: 0;
}

/* DARK MODE ADJUSTMENTS */
/* A la une dark mode */
body.dark-mode .text3 h2 {
    color: var(--text-color-hover);
}
body.dark-mode .text3 p {
    color: var(--navbar);
}
body.dark-mode #àlaune .liens {
    color: var(--text-color-hover);
}
body.dark-mode #àlaune .liens:hover {
    color: var(--navbar);
}

/* Articles dark mode */
body.dark-mode #articles {
    background-color: var(--title-color);
}
body.dark-mode .quatrearticles {
    background-color: rgba(40, 40, 40, 0.8);
}
body.dark-mode article h3 {
    color: var(--text-color-hover);
}
body.dark-mode article p {
    color: var(--navbar);
}

/* Articles2 dark mode */
body.dark-mode #articles2 .ourarticles {
    background-color: rgba(40, 40, 40, 0.8);
}
body.dark-mode #articles2 h1 {
    background-color: var(--bg-color);
    color: var(--title-color);
}

/* Story dark mode */
body.dark-mode .ourstory {
    background-color: rgba(0, 0, 0, 0.7);
}
body.dark-mode .ourstory h1 {
    color: var(--navbar);
}
body.dark-mode .ourstory span {
    background-color: var(--navbar);
    color: var(--text-color-hover);
}
body.dark-mode .ourstory p {
    background-color: rgba(40, 40, 40, 0.8);
    color: var(--navbar);
}


/* RESPONSIVE DESIGN - MEDIA QUERIES */
@media screen and (max-width: 1200px) {
    .text3 h2, .text2 h1, #articles2 h1, #newsletter h1, .ourstory h1, .ourstory span {
        font-size: 40px;
    }
    
    #newsletter h1 {
        max-width: 80%;
    }
}

@media screen and (max-width: 992px) {
    .title {
        font-size: 28px;
        margin-right: 40px;
    }
    
    .text3 h2, .text2 h1, #articles2 h1, #newsletter h1, .ourstory h1, .ourstory span {
        font-size: 32px;
    }
    
    .voilà {
        flex-direction: column-reverse;
    }
    
    .image1 {
        margin-bottom: 30px;
    }
    
    .text2 {
        flex-direction: column;
        text-align: center;
    }
    
    .text2 h1 {
        margin-bottom: 10px;
    }
    
    .text2 a {
        padding-left: 0;
    }
    
    #newsletter h1 {
        max-width: 90%;
    }
}

@media screen and (max-width: 768px) {
    /* Navbar responsive */
    #navbar {
        justify-content: space-between;
        padding: 15px;
    }
    
    .title {
        font-size: 24px;
        margin-right: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    #menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--text-color-hover);
        z-index: 1000;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        padding: 10px 0;
    }
    
    #menu.show {
        display: flex;
    }
    
    #menu li {
        margin: 8px 0;
        width: 100%;
        text-align: center;
    }
    
    .icons {
        padding: 0 10px;
    }
    
    /* Sections responsive */
    #àlaune, #articles, #articles2, #story, #newsletter {
        padding: 30px 15px;
    }
    
    .text3 h2, .text2 h1, #articles2 h1, #newsletter h1, .ourstory h1, .ourstory span {
        font-size: 28px;
    }
    
    .text3 p {
        font-size: 16px;
        text-align: center;
    }
    
    .quatrearticles {
        padding: 15px;
        margin-top: 25px;
    }
    
    article {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    article h3 {
        font-size: 20px;
    }
    
    #story, #articles2 {
        background-attachment: scroll;
    }
    
    .ourstory {
        padding: 15px;
    }
    
    .ourstory p {
        font-size: 15px;
        padding: 15px;
    }
    
    .btn1 {
        max-width: 200px;
    }
    
    #newsletter h1 {
        font-size: 28px;
    }
    
    #newsletter p {
        font-size: 16px;
    }
    
    #exampleFormControlInput1 {
        padding: 12px;
        font-size: 16px;
    }
    
    .send {
        padding: 12px 20px;
        font-size: 16px;
        width: 100%;
        max-width: 250px;
    }
}

@media screen and (max-width: 576px) {
    #navbar1 {
        padding-left: 0;
        text-align: center;
    }
    
    .text3 h2, .text2 h1, #articles2 h1, #newsletter h1, .ourstory h1, .ourstory span {
        font-size: 24px;
    }
    
    .text3 p, article p, .ourstory p, #newsletter p {
        font-size: 14px;
    }
    
    article h3 {
        font-size: 18px;
    }
    
    #image {
        height: 180px;
    }
    
    #exampleFormControlInput1 {
        padding: 10px;
        font-size: 14px;
    }
    
    .send {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    footer {
        padding: 20px;
        font-size: 14px;
    }
}
/* MEDIA QUERIES */
@media screen and (max-width: 992px) {

    #navbar {
        flex-direction: column;
        align-items: center;
        padding: 15px 0;
    }
    
    #navbar li {
        margin: 5px 10px;
    }
    
    .icons {
        margin-top: 15px;
    }
    
    .text1 h1, .text1 span {
        font-size: 2.8rem;
    }
    
    .text2 {
        flex-direction: column;
        text-align: center;
    }
    
    .text2 h1 {
        margin-bottom: 10px;
    }
    
    .text2 a {
        padding-left: 0;
    }
    
    .voilà {
        flex-direction: column;
    }
    
    .text3 {
        order: 1;
    }
    
    .image1 {
        order: 0;
        margin-bottom: 20px;
    }
    
    #newsletter h1 {
        margin-right: auto;
        margin-left: auto;
        max-width: 90%;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    #navbar ul {
        display: none;
        width: 100%;
        text-align: center;
    }
    
    #navbar ul.show {
        display: flex;
        flex-direction: column;
    }
    
    .text1 h1, .text1 span {
        font-size: 2.2rem;
    }
    
    .text3 h2 {
        font-size: 1.8rem;
    }
    
    article {
        flex-basis: 100%;
    }
    
    .btn1, .btn2, .btn3 {
        display: block;
        width: 80%;
        margin: 10px auto;
        text-align: center;
    }
    
    #hero {
        background-attachment: scroll;
    }
    
    #image, #story, #articles2 {
        background-attachment: scroll;
    }
}

@media screen and (max-width: 576px) {

    
    .text1 h1, .text1 span {
        font-size: 1.8rem;
    }
    
    .text3 h2 {
        font-size: 1.5rem;
    }
    
    .ourstory h1, .ourstory span {
        font-size: 2rem;
    }
    
    #newsletter h1 {
        font-size: 2rem;
    }
    
    .categories div {
        padding: 10px;
    }
    
    .categories div a img {
        max-width: 80px;
    }
}