/* 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;
    --shadow: rgba(0,0,0,0.1);
}
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 */
#à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;
    }
}

/* Style pour la section principale de l'article */
#article-content {
    background-color: var(--title-color);
    padding: 40px 20px;
}

.article-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--other);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Style pour les métadonnées de l'article (date, auteur, etc.) */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
}

.article-meta span, .article-meta a {
    color: var(--text-color-hover);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 700; /* Texte en gras pour les métadonnées */
}

/* Règle spécifique pour les icônes des métadonnées */
.article-meta i {
    margin-right: 5px;
    font-size: 16px;
    color: var(--text-color-hover); /* Couleur contrastée pour les icônes */
}

/* Supprimer l'effet hover pour les icônes des métadonnées */
.article-meta i:hover {
    color: var(--text-color-hover); /* Même couleur au hover - pas d'effet */
}

.article-meta a:hover {
    text-decoration: underline;
    /* Garde l'effet hover sur le texte, mais pas sur l'icône */
}

/* Style pour l'introduction */
.article-intro {
    border-left: 4px solid var(--text-color-hover);
    padding-left: 20px;
    margin: 20px 0 40px;
}

.article-intro p {
    font-family: 'PT Serif', sans-serif;
    font-size: 18px;
    color: var(--text-color-hover);
    line-height: 1.6;
    font-style: italic;
}

/* Style pour le corps de l'article */
.article-body {
    margin-bottom: 40px;
}

.article-body h3 {
    color: var(--text-color-hover);
    font-family: 'PT Serif', sans-serif;
    font-size: 28px;
    font-weight: 510;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-color);
}

.article-body h4 {
    color: var(--text-color-hover);
    font-family: 'Open Sans', sans-serif;
    font-size: 23px;
    font-weight: 610;
    margin: 30px 0 15px;
    padding-bottom: 10px;
}

.article-body p {
    color: var(--text-color-2);
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.article-body ul {
    color: var(--text-color-2);
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.article-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: block;
}

/* Boîte de conseils et astuces */
.tips-box {
    background-color: var(--bg-color);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.tips-box h4 {
    color: var(--text-color-hover);
    font-family: 'PT Serif', sans-serif;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.tips-box h4 i {
    margin-right: 10px;
    color: var(--text-color-hover);
}

.tips-box ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.tips-box li {
    color: var(--text-color-2);
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Style pour la conclusion */
.article-conclusion {
    background-color: rgba(223, 101, 69, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
}

.article-conclusion h3 {
    color: var(--text-color-hover);
    font-family: 'PT Serif', sans-serif;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 15px;
}

.article-conclusion p {
    color: var(--text-color-2);
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Style pour les boutons de partage et les tags */
.article-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--bg-color);
}

.share-buttons h4 {
    color: var(--text-color-hover);
    font-family: 'PT Serif', sans-serif;
    font-size: 18px;
    margin-bottom: 15px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-color);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.share-btn i {
    color: var(--text-color-hover);
    font-size: 18px;
    margin: 0;
}

.share-btn:hover {
    background-color: var(--text-color-hover);
    transform: translateY(-3px);
}

.share-btn:hover i {
    color: var(--title-color);
}

.article-tags {
    margin-top: 20px;
}

.article-tags span {
    color: var(--text-color-hover);
    font-family: 'PT Serif', sans-serif;
    font-size: 16px;
    margin-right: 10px;
}

.tag {
    display: inline-block;
    background-color: var(--bg-color);
    color: var(--text-color-hover);
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 20px;
    margin-right: 5px;
    margin-top: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--text-color-hover);
    color: var(--title-color);
}

/* ARTICLES - pour la section "Articles similaires" */
#articles{
    background-image: url(th-726322594.jpg);
    background-size: cover;
    background-position: bottom;
    background-attachment: fixed;
    padding: 40px;
    height: auto;
    position: relative;
}

#articles::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.ourarticles{
    padding-top: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.text2{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.text2 h1{
    text-align: left;
    color: var(--other);
    font-family: 'PT Serif', sans-serif;
    font-size: 50px;
    font-weight: 510;
    margin: 0;
}

.text2 a{
    color: var(--other);
    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(--bg-color);
}

.quatrearticles{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
    background-color: var(--other);
    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: var(--text-color-2);
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 510;
}

article h3{
    color: var(--text-color-hover);
    font-family: 'PT Serif', sans-serif;
    font-size: 23px;
    font-weight: 510;
    margin-top: 15px;
}

/* 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;
}

/* 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;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

/* Ajustements pour le mode sombre */
body.dark-mode .article-container {
    background-color: rgba(40, 40, 40, 0.9);
}

body.dark-mode .article-meta span, 
body.dark-mode .article-meta a {
    color: var(--navbar);
}

body.dark-mode .article-meta i {
    color: var(--navbar);
}

body.dark-mode .article-meta i:hover {
    color: var(--navbar);
}

body.dark-mode .article-intro p {
    color: var(--navbar);
}

body.dark-mode .article-body h3,
body.dark-mode .article-conclusion h3,
body.dark-mode .tips-box h4,
body.dark-mode .share-buttons h4,
body.dark-mode .article-tags span {
    color: var(--navbar);
}

body.dark-mode .article-body p, 
body.dark-mode .tips-box li, 
body.dark-mode .article-conclusion p,
body.dark-mode .article-body ul {
    color: var(--navbar);
}

body.dark-mode .tips-box {
    background-color: rgba(223, 101, 69, 0.2);
}

body.dark-mode .tips-box h4 i {
    color: var(--navbar);
}

body.dark-mode .article-conclusion {
    background-color: rgba(223, 101, 69, 0.2);
}

body.dark-mode .share-btn {
    background-color: var(--text-color-hover);
}

body.dark-mode .share-btn i {
    color: var(--title-color);
}

body.dark-mode .tag {
    background-color: var(--text-color-hover);
    color: var(--title-color);
}

body.dark-mode .tag:hover {
    background-color: var(--navbar);
    color: var(--text-color-hover);
}

/* Ajustements pour le mode sombre - Articles et Newsletter */
body.dark-mode #articles {
    background-color: var(--title-color);
}

body.dark-mode #articles::before {
    background-color: rgba(0, 0, 0, 0.6);
}

body.dark-mode .text2 h1,
body.dark-mode .text2 a {
    color: var(--navbar);
}

body.dark-mode .quatrearticles {
    background-color: rgba(40, 40, 40, 0.8);
}

body.dark-mode article h3 {
    color: var(--navbar);
}

body.dark-mode article p {
    color: var(--navbar);
}

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);
}

/* RESPONSIVE DESIGN - MEDIA QUERIES */
@media screen and (max-width: 1200px) {
    .text3 h2, .text2 h1, #newsletter h1 {
        font-size: 40px;
    }
    
    #newsletter h1 {
        max-width: 80%;
    }
    
    .article-container {
        padding: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-body h3 {
        font-size: 24px;
    }
    
    .tips-box {
        padding: 15px;
    }
}

@media screen and (max-width: 992px) {
    .title {
        font-size: 28px;
        margin-right: 40px;
    }
    
    .text3 h2, .text2 h1, #newsletter h1 {
        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, #article-content, #newsletter {
        padding: 30px 15px;
    }
    
    .text3 h2, .text2 h1, #newsletter h1 {
        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;
    }
    
    .article-intro {
        padding-left: 15px;
    }
    
    .article-body h3 {
        font-size: 22px;
    }
    
    .article-body p, .article-intro p, .tips-box li, .article-conclusion p {
        font-size: 15px;
    }
    
    .article-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-tags {
        margin-top: 20px;
    }
    
    #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, #newsletter h1 {
        font-size: 24px;
    }
    
    .text3 p, article p, #newsletter p {
        font-size: 14px;
    }
    
    article h3 {
        font-size: 18px;
    }
    
    .article-container {
        padding: 15px;
    }
    
    .article-body h3 {
        font-size: 20px;
    }
    
    .tips-box h4 {
        font-size: 18px;
    }
    
    .article-conclusion h3 {
        font-size: 20px;
    }
    
    #exampleFormControlInput1 {
        padding: 10px;
        font-size: 14px;
    }
    
    .send {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    footer {
        padding: 20px;
        font-size: 14px;
    }
}