/*
Theme Name: Twenty Twenty Child
Theme URI: https://hippoh-mag.fr
Description: Thème enfant de twentytwenty
Author: nina
Author URI: https://hippoh-mag.fr
Template: twentytwenty
Version: 1.0.0
*/

.page-id-121 h1 {
    font-size: 2rem;
    color: red;
}

.page-template-template-full-width {
    background-color: black;
}

.desktop-nav-toggle {
    display: none !important;
}


.primary-menu .menu-item a:hover {
  text-decoration: none;
  color: #0904ff;
  font-weight: 700;
}

.toggle-text {
    display: none !important;
}

.svg-icon:hover {
    color: #0904ff;
}
/* ===== HERO FORCER HAUTEUR ===== */

.hero-overlay {
    position: absolute !important;
    inset: 0 !important;
}

.hero-content {
    position: relative !important;
    z-index: 1 !important;
}

.hero-titre {
    color: #fff !important;
    font-size: 4.5rem !important;
    padding-left: 70px;
}

.hero-wrap,
.entry-content,
.singular .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

.hero {
    width: 100%;
    height: 100%;
    position: relative;
    width: auto;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-description {
    color: #fff !important;
    padding-left: 70px;
}


/* Montessart  les titres H1 */
h1 {
	line-height: 1.25;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    padding: 10px;
    font-size: 30px !important;
}

/* Montserrat pour tout le reste */
body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

h2,
h3,
h4,
h5,
h6,
.faux-heading {
	letter-spacing: 0em;
	line-height: 1.25;
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
}

p,
li {
    font-family: 'Montserrat', sans-serif;
}

a {
    text-decoration: none;
}

a:hover {
    color: #0904ff;
}

/* Retirer les éléments soulignés */

.site-title a:hover,
.site-title a:focus {
	text-decoration: none;
}

.entry-title a:focus,
.entry-title a:hover {
	text-decoration: none;
}

.post-meta a:focus,
.post-meta a:hover {
	text-decoration: none;
}

.wp-block-archives a:hover,
.wp-block-categories a:hover,
.wp-block-latest-posts a:hover,
.wp-block-latest-comments a:hover,
.wp-block-archives a:focus,
.wp-block-categories a:focus,
.wp-block-latest-posts a:focus,
.wp-block-latest-comments a:focus {
	text-decoration: none;
}

/* ARTICLES EN HOME PAGE */


.voir-plus {
    text-align: center;
    margin: 30px 0;
}

/* ===== TOP BAR ===== */

.top-bar {
    background-color: #111;
    color: #fff;
    width: 100%;
    z-index: 99999;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 20px;
}

.top-bar .lang-current {
    background: none;
    border: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.top-bar .lang-list {
    background: #111;
    border: 1px solid #444;
    border-radius: 4px;
}

.top-bar .lang-list li a {
    color: #fff;
    font-size: 0.8rem;
    padding: 6px 12px;
}

.top-bar .lang-list li a:hover {
    background: #333;
    color: #fff;
}

.top-bar-newsletter {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.top-bar-newsletter:hover {
    text-decoration: underline !important;
}

/* ===== TOP BAR LANG DROPDOWN ===== */

.lang-dropdown {
    position: relative;
}

.lang-current {
    background: none !important;
    border: none !important;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    letter-spacing: 0.05em;
}

.lang-arrow {
    font-size: 0.7rem;
}

.lang-list {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    background: #111;
    border: none;
    border-radius: 0;
    list-style: none;
    margin: 0;
    z-index: 99999;
    text-align: left;
}

.lang-list li {
    margin: 0;
    padding: 0;
}

.lang-list li a {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.lang-list li a:hover {
    background: none;
    text-decoration: underline;
}

/* Ouverture au clic */
.lang-dropdown.open .lang-list {
    display: block;
}


/* CUSTOM COLORS */

:root .has-accent-background-color {
	color: #fff;
}

:root .has-primary-background-color {
	background-color: #000;
	color: #f5efe0;
}

:root .has-secondary-background-color {
	background-color: #6d6d6d;
	color: #fff;
}

:root .has-subtle-background-background-color {
	background-color: #dcd7ca;
	color: #000;
}

:root .has-background-background-color {
	background-color: #f5efe0;
	color: #000;
}

:root .has-primary-color {
	color: #000;
}

:root .has-secondary-color {
	color: #6d6d6d;
}

:root .has-subtle-background-color {
	color: #dcd7ca;
}

:root .has-background-color {
	color: #f5efe0;
}

.color-accent,.color-accent-hover:hover,.color-accent-hover:focus,:root .has-accent-color,.has-drop-cap:not(:focus):first-letter,.wp-block-button.is-style-outline,a {
    color: #000000;
}

blockquote,.border-color-accent,.border-color-accent-hover:hover,.border-color-accent-hover:focus {
    border-color: #0904ff;
}

button,.button,.faux-button,.wp-block-button__link,.wp-block-file .wp-block-file__button,input[type="button"],input[type="reset"],input[type="submit"],.bg-accent,.bg-accent-hover:hover,.bg-accent-hover:focus,:root .has-accent-background-color,.comment-reply-link {
    background-color: #0904ff;
}

.fill-children-accent,.fill-children-accent * {
    fill: #0904ff;
}

/* Variable CSS du thème */
:root {
    --global--color-primary: #000;
}

/* Sélecteurs spécifiques Twenty Twenty */
body:not(.overlay-header) .primary-menu > li > a,
body:not(.overlay-header) .primary-menu > li > .icon,
.modal-menu a,
.footer-menu a,
.footer-widgets a:where(:not(.wp-block-button__link)),
#site-footer .wp-block-button.is-style-outline,
.wp-block-pullquote:before,
.singular:not(.overlay-header) .entry-header a,
.archive-header a,
.header-footer-group .color-accent,
.header-footer-group .color-accent-hover:hover {
    color: #000;
}

h1,
.heading-size-1 {
    font-size: 30px !important;
    font-weight: 800;
    line-height: 1.2;
}

h2,
.heading-size-2 {
    font-size: 25px !important;
}

h3,
.heading-size-3 {
    font-size: 20px !important;
}

h4,
.heading-size-4 {
    font-size: 18px !important;
}

h5,
.heading-size-5 {
    font-size: 18px !important;
}

h6,
.heading-size-6 {
    font-size: 18px !important;
    letter-spacing: 0.03125em;
    text-transform: uppercase;
}

p,
li {
    font-size: 16px !important;
}

/* ===== LOOKALIKE DES ARTICLES LIST ===== */

.articles-home {
    display: flex;
    gap: 10px;
    margin: 20px;
    padding: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 900px) {
    .articles-home {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .articles-home {
        grid-template-columns: 1fr;
    }
}

.article-card {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    width: 350px;
    height: 500px;
    display: flex;
    cursor: pointer;
}

.article-card:hover {
    border: solid;
    border-color: #c6c5c5;
    border-width: 3px;
    border-radius: 20px;
}

.article-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
    border-radius: 16px;
}

/* Catégorie : colonne 2, ligne 1, alignée à droite */
.article-categorie {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 12px;
    position: relative;
    z-index: 1;
}

.article-categorie a {
    color: #fff !important;
    border: 0.5px solid #656565;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 0.02em;
    padding: 4px 12px;
    text-decoration: none;
    white-space: nowrap;
    text-transform: uppercase;
}

/* Titre : colonne 1, dernière ligne, aligné à gauche */
.article-infos {
    grid-column: 1 / -1;
    grid-row: 3;
    position: relative;
    z-index: 1;
    padding: 16px;
    align-self: end;
}

.article-titre {
    margin: 0;
}

.article-titre a {
    color: #fff !important;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    display: block;
    text-align: left;
}

@media (max-width: 768px) {
    .article-card {
        width: 100%;
        height: 300px;
    }
}



/* ===== VOIR PLUS ===== */

#load-more {
    background: none;
    border: 1px solid #000;
    border-radius: 20px;
    padding: 10px 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    color: #000;
}

#load-more:hover {
    background: #000;
    color: #fff;
}

.archive-titre {
    text-align: center;
    text-transform: uppercase;
}

/* === FOOTER === */

.powered-by-wordpress {
    display: none !important;
}


/* === LOOKALIKE POSTS === */

.attachment-post-thumbnail {
    border-radius: 10px;
}

.featured-media img {
    margin: 0;
    display: block;
    width: 100%;
    margin: 0;
    border-radius: 10px;
}


p > img {
    border-radius: 10px;
}

/* === PAGE CATÉGORIE - fix padding === */

.archive-header {
    padding: 0;
}

@media (min-width: 700px) {
    .archive-header {
        padding: 0;
    }
}

/* ===  YT ===*/

/* bordures arrondies */
.wp-block-embed__wrapper iframe {
  border-radius: 16px;
  display: block; /* évite l'espace sous l'iframe */
  overflow: hidden;
  transform: translateZ(0);
}

/* ===  IMAGES ===*/

/* bordures arrondies */
figure.wp-block-image img  {
    border-radius: 10px;
}

/* ===  BLOCK IMAGES + TXT ===*/
.wp-block-media-text {
    border-radius: 16px;
    overflow: hidden;
}

.wp-block-columns.has-background {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.filtres-categories {
    display: flex;
    justify-content: center;
}

.filtre-btn {
    border-radius: 10px;
    border: solid 1px black;
    background-color: rgba(255, 255, 255, 0);
    color:#000;
    margin: 5px;
    padding: 8px !important;
}

.filtre-btn:hover {
    text-decoration: none;
    background-color: #000;
    color:#fff
}