/*
Theme Name: Touche d'Histoire
Template: twentytwentyfour
Description: Thème enfant de Twenty Twenty-Four pour le site Touche d'Histoire
Version: 1.0.0
Author: Touche d'Histoire
Text Domain: touche-dhistoire
*/

/* ── Base reset TT4 ────────────────────────────────────────── */
body {
    margin: 0;
    padding: 0;
}

.wp-site-blocks {
    padding: 0 !important;
    margin: 0 !important;
}

a {
    text-decoration: none!important;
    color: inherit;
}

.tdh-button {
    width: fit-content !important;
    border-radius: 30px !important;
    padding: 6px 18px !important;
    margin: 10px auto !important;
    font-family: 'Young Serif', serif !important;
    font-size: 15px !important;
    text-decoration: none !important;
    color: #ffffff !important;
    background-color: #f8b932 !important;
}
.tdh-textBlue {
     color: #2E5563 !important;
 }
 .tdh-button.tdh-sizeXL {
    padding: 9px 24px !important;
    margin: 40px auto !important;
    font-size: 20px !important;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
    background-color: #517481 !important;
    width: 100%;
}

.tdh-footer {
    max-width: 1350px;
    width: 90%;
    margin: 50px auto!important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tdh-footer-principal {
    display: flex;
    gap: 20px;
}
@media (max-width: 1024px) {
    .tdh-footer-principal {
        flex-direction: row;
    }
}
@media (max-width: 769px) {
    .tdh-footer {
        justify-content: center;
        flex-direction: column!important;
    }
    .tdh-footer-principal {
        flex-direction: column!important;
    }
}

/* Logo : border-right + gap de 40px avec la nav */
.tdh-footer-logo {
    width: 250px;
}

.tdh-footer-logo-img {
    margin: 0 !important;
    width: 100%;
}

.tdh-footer-logo-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Navigation : 263px + gap de 200px avec l'instagram */
.tdh-footer-nav {
    flex-shrink: 0;
    margin-right: 200px;
    color: #ffffff;
}

/* Liens principaux : Young Serif 20px, line-height normal */
.tdh-footer-nav > ul > li  {
    font-family: var(--wp--preset--font-family--young-serif) !important;
    font-size: 18px !important;
    color: #ffffff !important;
    line-height: normal !important;
    margin: 5px 0 !important;
    display: block!important;
}
.tdh-footer-nav .wp-block-navigation-submenu .wp-block-navigation__submenu-container {
    display: block;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    width: auto;
    height: auto;
    position: relative;
    border: none!important;
    background: none!important;
}
.tdh-footer-nav .wp-block-navigation-submenu .wp-block-navigation__submenu-container li {
    font-family: var(--wp--preset--font-family--mulish) !important;
    margin: 0 !important;
    padding: 0 !important;
}
.tdh-footer-nav .wp-block-navigation-submenu .wp-block-navigation__submenu-container li a {
    padding: 0 !important;
    font-weight: 100;
}
.wp-singular {
    padding-top: 130px;
    background: #8faab3!important;
}

.tdh-header {
    position: fixed!important;
    top: 0!important;
    left: 0!important;
    right: 0!important;
    z-index: 9999!important;
    background: linear-gradient(
      to bottom,
      rgba(117, 153, 165, 1) 0%,
      rgba(117, 153, 165, 0.7) 50%,
      rgba(117, 153, 165, 0.05) 95%,
      rgba(117, 153, 165, 0) 100%
    )!important;
    padding: 10px 40px!important;
}
.wp-singular .tdh-header {
    background: #8faab3!important;
}
.tdh-header .tdh-header-logo {
    width: 250px;
}
.tdh-header .tdh-header-nav
{
    display: flex;
    gap: 10px;
}
.tdh-header .tdh-header-nav li a {
    background: #517481!important;
    color: #ffffff!important;
    padding: 5px 12px;
    border-radius: 30px;
    font-family: var(--wp--preset--font-family--young-serif);
    font-weight: 200!important;
    font-size: 16px!important;
    text-decoration: none;
}
.tdh-header .tdh-header-nav li a:hover {
    background: #244753 !important;
}

.tdh-header .tdh-header-nav li.is-style-onward a {
    background: #DC9D14!important;
    color: #162c33 !important;
}
.tdh-header .tdh-header-nav li a:hover {
    background: #244753 !important;
    color: #ffffff!important;
}
@media (max-width: 1150px) {
    .tdh-header .tdh-header-nav { gap: 6px; }
    .tdh-header .tdh-header-nav li a {
        padding: 5px 10px;
        font-size: 15px !important;
    }
}

/* ── BURGER MENU (tablette + mobile ≤ 1024px) ────────────── */

/* Bouton burger — caché sur desktop */
.tdh-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10000;
}

.tdh-burger span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Croix quand ouvert */
.tdh-burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tdh-burger--open span:nth-child(2) { opacity: 0; }
.tdh-burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
    /* Afficher le burger */
    .tdh-burger { display: flex; }

    /* Cacher la nav horizontale */
    .tdh-header-nav {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background-color: rgba(25,25,25,0.65) !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 20px !important;
        z-index: 9998;
    }
    .tdh-header-nav .tdh-header-nav {
        display: flex !important;
    }

    /* Afficher quand ouvert */
    .tdh-header-nav.tdh-header-nav--open {
        display: flex !important;
    }
    .tdh-header .tdh-header-nav { gap: 10px; }
    .tdh-header .tdh-header-nav li a {
        padding: 10px 30px;
        font-size: 20px !important;
    }
}

/*.sideMenu {
    position: fixed;
    top: 165px;
    left: 0;
    z-index: 99999999;
    width: 100%;
    background: #244753 !important;
    color: #ffffff!important;
    padding: 20px 0!important;
    border-radius: 0;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.sideMenu li {
    width: fit-content;
}
.sideMenu li  a {
    width: 100%!important;
    padding: 5px 15px!important;
}
.sideMenu li  a:hover {
    background: #DC9D14 !important;
}*/