/*
Theme Name: MyTheme
Theme URI: https://example.com
Author: GL
Author URI: https://example.com
Description: Un thème personnalisé pour WordPress.
Version: 1.0
*/

body {
    margin: 0;
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.top {
    background-color: #05a2d1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

a,
a:hover {
    text-decoration: none;
}

p {
    font-weight: 600;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #05a2d1;
    color: white;
    width: 1140px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

header ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav {
    display: flex;
}

.nav-link {
    display: block;
    padding: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-size: 20px;
    padding: 10px;
    font-weight: 600;
}

nav a:hover {
    background: white;
    color: #05a2d1;
    padding: 10px;
    text-decoration: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
}

.menu {
    display: flex;
    flex: 1;
    justify-content: flex-end;
}

.top {
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

.top.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #05a2d1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.container {
    display: flex;
    gap: 20px;
}

.cat {
    display: block;
}

.main-article {
    flex: 2;
    padding: 20px;
}

.main-article img {
    border-radius: 20px;
    margin-bottom: 12px;
}

.main-article h3 {
    color: #000;
    font-size: 24px;
    margin-bottom: 12px;
}

.main-article h3 a {
    color: #000;
}

.main-article h3 a:hover {
    color: #05a2d1;
    text-decoration: none;
}

p.excerpt {
    font-size: 15px;
}

p.meta {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #666675;
}

.side-articles {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article,
.main-article {
    border-radius: 5px;
    overflow: hidden;
    padding: 0;
    background-color: #fff;
}

.article img,
.main-article img {
    width: 100%;
    height: auto;
}

.article h3,
.main-article h2 {
    font-size: 1.2em;
    margin: 10px 0;
}

.meta {
    font-size: 0.9em;
    color: #666;
}

.excerpt {
    font-size: 1em;
    color: #333;
}

.left-column,
.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article {
    border-radius: 5px;
    overflow: hidden;
    padding: 10px;
    background-color: #fff;
}

.article img {
    width: 100%;
    height: auto;
}

.article h3 {
    font-size: 1.2em;
    margin: 10px 0;
}

.meta {
    font-size: 0.9em;
    color: #666;
}

.excerpt {
    font-size: 1em;
    color: #333;
}

.column {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.column .article {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.column .article div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.column .article img {
    width: 150px;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
}

.column .article h3 {
    font-size: 20px;
    margin: 0;
    color: #000;
}

.column .article .meta {
    color: #666;
}

.column .article a {
    text-decoration: none;
    color: inherit;
}

h2.cat a {
    background: #05a2d1 !important;
    border-radius: 10px;
    padding: 2px 10px 2px 10px;
    color: white !important;
    margin-top: 40px;
    position: relative;
    margin-bottom: 20px;
    display: inline-block;
}

h2.cat a:hover {
    background: #05a2d1 !important;
    border-radius: 10px;
    padding: 2px 10px 2px 10px;
    color: white !important;
    margin-top: 40px;
    position: relative;
    margin-bottom: 20px;
    text-decoration: none;
}

.article {
    border-radius: 5px;
    overflow: hidden;
    padding: 10px;
    background-color: #fff;
}

.article img {
    width: 100%;
    height: auto;
}

.article h3 {
    font-size: 20px;
    margin: 10px 0;
}

.article h3 a {
    font-size: 20px;
    color: #000;
}

.article h3 a:hover {
    color: #05a2d1;
    text-decoration: none;
}

.meta {
    font-size: 0.9em;
    color: #666;
}

.excerpt {
    font-size: 1em;
    color: #333;
}

.footer {
    background: #05a2d1;
    padding: 30px 0;
    margin: 30px 0 0;
}

.site-footer {
    padding: 10px;
    font-size: 15px;
    font-weight: 600;
}

.footer-copyright {
    margin-right: 20px;
    color: #fff;
    display: block;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: auto;
}

.footer-menu li {
    font-size: 15px;
    margin-right: 5px;
    color: #fff;
    display: inline;
}

.footer-menu li a {
    color: #fff;
}

.footer-menu li a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-menu li:last-child {
    margin-right: 0;
}

.side-articles .article {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: stretch;
}

.side-articles .article img {
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    width: 128px;
}

.side-articles .article .content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.side-articles .article h3 {
    font-size: 1.25em;
    margin: 0;
}

.side-articles .article h3 a {
    font-size: 20px;
    color: #000;
}

.side-articles .article h3 a:hover {
    color: #05a2d1;
    text-decoration: none;
}

.side-articles .article .meta {
    font-size: 0.9em;
    color: #666;
    margin: 0;
}

.side-articles .article .excerpt {
    font-size: 0.9em;
    color: #333;
}


/* single */

article {
    display: block;
}

#page {
    display: block !important;
    padding: 55px 10px 20px 10px;
}

#page h1 {
    font-size: 32px;
    line-height: 32px;
}

#page h1.category {
    margin-bottom: 20px;
    display: block;
}

#page .meta {
    font-size: 14px;
    margin: 10px 0 20px;
}

#page img.featured {
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin-bottom: 30px;
}

#page h2,
#page h3 {
    font-size: 27px;
    margin: 40px 0 20px;
    color: #05a2d1;
}

#page h3 {
    font-size: 24px;
}

#page p,
#page ul li {
    font-size: 18px;
    font-weight: 500;
    line-height: 30px;
}

.entry-content p a {
    color: #05a2d1;
    text-decoration: none;
}

.entry-content p a:hover {
    color: #05a2d1;
    text-decoration: none;
}

#page blockquote {
    background-color: #ffffff !important;
    font-size: 18px !important;
    border-radius: 10px;
    padding: 14px;
    border: none !important;
    box-shadow: 0 0 12px 1px #f0f0f0;
    text-align: left;
    line-height: 28px;
}

#page blockquote p {
    margin-bottom: 0;
}

#page .entry-meta {
    margin: 20px 0;
}

#page span.tags-links a {
    border-left: 8px solid #05a2d1 !important;
    background-color: #f0f0f0 !important;
    font-size: 1.1rem !important;
    border-radius: 8px;
    box-shadow: -1px -1px 11px 4px #f0f0f0;
    padding: 10px;
    color: #000;
}

#page span.tags-links a {
    display: inline-block;
}

#page .tags-links a {
    margin-left: 10px;
    margin-bottom: 10px;
}

.social-share {
    margin: 3em 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
    align-items: center;
    text-align: center;
    contain: content;
}

.social-share>.button {
    color: #57515f;
    flex: 33%;
    flex-grow: 1;
    flex-basis: 0%;
    font-size: .9em;
    padding: .75em !important;
    border-radius: .8em;
    border-style: solid;
    border-width: 1px;
    border-color: #f0f0f0;
    display: inline-block;
}

.button-facebook .icon {
    fill: #1777f2 !important;
}

.button-twitter .icon {
    fill: #000000 !important;
}

.button-whatsapp .icon {
    fill: #05cd51 !important;
}

svg.icon {
    vertical-align: middle;
}

[data-goto]:hover,
[data-share-url]:hover,
.gb-query-loop-item {
    cursor: pointer;
}

.button-facebook:hover {
    border-color: #1777f2 !important;
    color: #1777f2 !important;
}

.button-twitter:hover {
    border-color: #000000 !important;
    color: #000000 !important;
}

.button-whatsapp:hover {
    border-color: #05cd51 !important;
    color: #05cd51 !important;
}

@media (min-width: 768px) {
    .author-box {
        grid-template-columns: 96px auto;
    }
}

.author-box {
    padding: 2em;
    margin: 3em 0;
    display: grid;
    grid-template-columns: 48px auto;
    grid-gap: 1.5em;
    background-color: #f0f0f0;
    border-radius: .8em;
}

.author-box .h4 {
    font-weight: 700;
    font-size: 20px;
}

.author-box .avatar img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%!important;
}

a.author-name {
    background: #fff;
    padding: 3px 14px 3px 14px;
    border-radius: 20px;
    color: #05a2d1;
}

a.author-name:hover {
    color: #fff;
    padding: 3px 14px 3px 14px;
    border-radius: 20px;
    background: #05a2d1;
    text-decoration: none;
}

.author-box p {
    margin: 1em 0 0 !important;
}

.related,
.related-cat {
    display: flex;
}

.related-articles-cat,
.related-articles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.related-articles-cat {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.latest-posts img {
    width: 100%;
    height: auto;
}

.related-articles-cat .item,
.related-articles .item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    color: #fff;
    text-align: left;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
}

.related-articles-cat .item {
    height: 400px;
}

.related-articles .item::before,
.related-articles-cat .item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 0.3s ease-in-out;
}

.related-articles-cat .item:hover::before,
.related-articles .item:hover::before {
    transform: scale(1.1);
}

.related-articles-cat .item::after,
.related-articles .item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    transition: background 0.3s ease-in-out;
}

.related-articles-cat .item:hover::after,
.related-articles .item:hover::after {
    background: rgba(0, 0, 0, 0.3);
}

.related-articles-cat .item a,
.related-articles .item a {
    position: relative;
    z-index: 2;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px 20px 0;
    height: 100%;
    width: 100%;
}

.related-articles-cat .item a:hover,
.related-articles .item a:hover {
    text-decoration: none;
}

.related-articles .item .post-date,
.related-articles-cat .item .post-date {
    position: relative;
    z-index: 2;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    margin: 0 0 5px;
}

.related-articles .item a:hover,
.related-articles-cat .item a:hover {
    text-decoration: none;
}

.related-articles .item .post-date,
.related-articles-cat .item .post-date {
    padding: 0 20px 20px;
}

.related-articles .item a,
.related-articles-cat .item a {
    font-size: 20px;
    opacity: 1;
}

.related-articles-cat .item .post-date,
.related-articles .item .post-date {
    font-size: 14px;
    opacity: 1;
    font-weight: 500;
}

h2.comments-title {
    color: #000!important;
}

@media (min-width: 768px) {
    .related-articles {
        grid-template-columns: repeat(3, 1fr);
    }
    .related-articles-cat {
        grid-template-columns: repeat(4, 1fr);
    }
}

nav.pagination {
    display: inherit;
}

.paging-navigation {
    flex: 1 1 100%;
    clear: both;
    text-align: center;
    padding: 15px 0 0;
}

.paging-navigation .nav-next,
.paging-navigation .nav-previous {
    display: none;
}

.paging-navigation .nav-links .current {
    font-weight: 700;
    font-size: 18px;
    color: #05A2D1;
}

.paging-navigation .nav-links>* {
    padding: 0 10px;
}

.nav-links a.page-numbers {
    color: #000;
    font-size: 18px;
    margin-left: 0;
}

.nav-links a.page-numbers:hover {
    text-decoration: none;
    color: #05a2d1;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

h1.category.page {
    margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
    color: #57515f;
    background-color: #f7f8f9;
    border-color: #b2b2be;
}

input[type=email],
input[type=number],
input[type=password],
input[type=search],
input[type=tel],
input[type=text],
input[type=url],
select,
textarea {
    border: 1px solid;
    border-radius: 0;
    padding: 10px 15px;
    max-width: 100%;
}

textarea {
    width: 100%;
}

button,
input[type=button],
input[type=reset],
input[type=submit] {
    background: #55555e;
    color: #fff;
    border: 1px solid transparent;
    cursor: pointer;
    -webkit-appearance: button;
    padding: 10px 20px;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"],
a.button,
a.wp-block-button__link:not(.has-background) {
    color: #fff;
    background-color: #05a2d1;
}

.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-details .author-name {
    font-size: 1.5em;
    margin: 0;
}


/* About Section */

.about-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1.5rem;
}

.section-title {
    text-align: center;
    color: #179ddf;
    font-size: 2rem;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.about-image {
    max-width: 300px;
    height: auto;
}

.about-text {
    flex: 1;
    margin-left: 2rem;
}

.about-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background: #179ddf;
    color: #fff!important;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
}

.btn:hover {
    display: inline-block;
    background: #179ddf;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
}

.stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem;
    text-align: center;
    gap: 1rem;
}

.stats span {
    font-size: 1.75rem;
    font-weight: bold;
    color: #179ddf;
}


/* Team Section */

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.about-image {
    flex: 1;
    max-width: 50%;
    object-fit: cover;
}

.about-text {
    flex: 1;
    max-width: 50%;
}

.team {
    background-color: #fff;
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: #f1f1f1;
    padding: 1rem;
    border-radius: 10px;
}

.team-member img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.team-member h3 {
    margin-bottom: 0.5rem;
}

.team-member p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}


/* Styles pour les écrans mobiles */

@media (max-width: 768px) {
    header {
        width: auto;
        margin: 0;
    }
    header {
        justify-content: space-between;
    }
    .logo {
        flex: 1;
        text-align: center;
        order: 2;
    }
    .hamburger {
        display: flex;
        order: 1;
    }
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 61px;
        left: 0;
        background-color: #05a2d1;
        width: 100%;
        padding: 10px;
        z-index: 999;
        padding-top: 30px;
    }
    .menu.active {
        display: flex;
    }
    .container {
        flex-direction: column;
    }
    .main-article,
    .side-articles {
        width: 100%;
    }
    .side-articles .article img {
        width: 150px;
    }
    header nav ul li {
        margin-bottom: 25px;
    }
    header nav a {
        margin-left: 0;
    }
    h2.cat a {
        font-size: 20px;
    }
    .team-members {
        grid-template-columns: 1fr;
        /* Une seule colonne sur mobile */
    }
    .team-member {
        text-align: center;
        /* Alignement centré pour une meilleure lisibilité */
    }
    .about-content {
        flex-direction: column;
        /* Colonne pour empiler les éléments */
    }
    .about-text {
        order: 1;
        /* "Qui sommes-nous ?" passe en premier */
        max-width: 100%;
        /* Utilisation de toute la largeur */
        text-align: center;
        /* Alignement centré pour le texte */
    }
    .about-image {
        order: 2;
        /* L'image passe en second */
        max-width: 100%;
        /* Utilisation de toute la largeur */
    }
    .stats {
        flex-direction: column;
        /* Empile les éléments verticalement */
        gap: 1rem;
        /* Espace entre les éléments */
    }
    .stats span {
        width: 100%;
        /* Chaque élément occupe toute la largeur */
        text-align: center;
        /* Centrer le texte */
    }
}

@media (max-width: 768px) {
    #page {
        display: block !important;
        padding: 20px 10px 20px 10px;
    }
    article {
        width: 100%;
        display: block;
        margin: 0;
    }
    .hide-on-mobile {
        display: none !important;
    }
}

@media screen and (min-width: 769px) {
    .logo {
        text-align: left;
    }
}
