/*
Theme Name: Twenty Nineteen Child
Description: A child theme of twentynineteen Theme
Author: WPKlik
Author URI: https://wpklik.com/
Version: 1.0
Template: twentynineteen
*/
@import url("../twentynineteen/style.css");

/* Global */
html {
  font-size: 1em;
}

#page {
  max-width: 932px;
  margin: auto;
  padding-left: 5px;
  padding-right: 5px;
}

#masthead.site-header .site-branding-container {
  max-width: 932px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  }

  @media only screen and (width <= 947px) and (width >= 768px) {
    #masthead.site-header .site-branding-container {
  padding-left: 1rem;
  padding-right: 1rem;
    }
  }

.site-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.main-navigation .main-menu > li > a,
.rubrique-link > a {
  color: black;
  font-size: 1em;
  font-weight: normal;
  opacity: 0.8;
}

.main-navigation .main-menu > li > a:hover,
#site-navigation .main-menu .current-menu-item > a,
#site-navigation .main-menu .current_page_item > a,
.yarpp-moreposts > h3 > a:hover {
  text-decoration: underline;
  color: black;
}

.current-menu-item > a {
  text-decoration: underline;
}

.archive .page-header .page-description,
.search .page-header .page-description {
  display: inline-block;
  font-weight: normal;
}

.archive .page-header {
  position: relative;
  top: 35px;
}

.wp-block-image {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.entry-content > .wp-block-image > * > img {
  max-height: 85vh;
  width: auto;
}

.entry-content > .wp-block-image.size-full,
.entry-content > .wp-block-image.size-medium_large {
  margin-top: 6em;
}

.entry-content > .wp-block-image.size-full:first-of-type,
.entry-content > .wp-block-image.size-medium_large:first-of-type {
  margin-top: 0;
}

.entry-content > .has-text-align-center {
  text-align: center;
}

.main-navigation {
  display: block;
  margin-top: 1rem;
}


@media only screen and (width >= 768px) {
  .archive .page-header,
  .search .page-header,
  .error404 .page-header {
    margin-left: 0;
    margin-bottom: 0;
  }
}

.no-results .page-header, .not-found .page-header
{margin-left: calc(10% + 60px);
margin-top: 3rem;}

@media only screen and (width <= 480px) {
  .main-navigation {
    font-size: 13px;
  }
}

/* ==========================================================================
   HEADER CUSTOM
   ========================================================================== */

.site-title a {
  font-family: Ubuntu, sans-serif;
  color: #d2ba9e;
  font-weight: 300;
  letter-spacing: 1.5px;
  text-decoration: none;
  font-size: 1.6em;
  margin-left: 0;
}

.site-title a:link,
.site-title a:visited {
  color: #d2ba9e;
}

.site-title a:hover,
.site-title a:focus {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

nav.main-navigation ul#menu-menu-1.main-menu > li > a {
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

nav.main-navigation ul#menu-menu-1.main-menu > li > a:hover,
nav.main-navigation ul#menu-menu-1.main-menu > li > a:focus {
  text-decoration: underline;
}

/* --- HEADER ÉTAT INITIAL (NON STICKY / NON FIXED) - GLOBAL --- */
#masthead.site-header {
  position: relative;
  z-index: 900;
  width: 100%;
  background-color: white;
  box-shadow: 0 1px 3px rgb(0 0 0 / 5%);
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  left: 0;
  right: 0;
  top: 0;
}

.site-branding {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
  max-width: 932px;
  margin-left: auto;
  margin-right: auto;
  padding: 15px 0;
  position: relative;
  transition: padding-top 0.3s ease-in-out, padding-bottom 0.3s ease-in-out,
    flex-wrap 0s, box-shadow 0.3s ease-in-out;
}

/* =============================================
   ÉTAT FIXE/RÉDUIT - PROPRIÉTÉS FONDAMENTALES (GLOBAL)
   ============================================= */
#masthead.header-is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background-color: white;
  box-shadow: 0 2px 5px rgb(0 0 0 / 10%);
  box-sizing: border-box;
  transform: translateY(-100%);
  animation: slideDownHeader 0.4s ease-out forwards;
}

#masthead.header-is-fixed .site-branding {
  padding-top: 3px;
  padding-bottom: 3px;
  flex-wrap: nowrap;
  transition: padding-top 0.3s ease-in-out, padding-bottom 0.3s ease-in-out,
    flex-wrap 0s, gap 0.3s ease-in-out, align-items 0.3s ease-in-out;
}

#masthead.header-is-fixed nav#site-navigation.main-navigation,
#masthead.header-is-fixed nav.social-navigation,
#masthead.header-is-fixed .site-title,
#masthead.header-is-fixed .custom-mobile-menu-toggle {
  margin-top: 0;
  margin-bottom: 0;
}

/* =============================================
   Styles MOBILE (< 768px) - Header TOUJOURS FIXE & Contenu Dégagé
   ============================================= */
@media only screen and (width <= 767px) {
  /* --- Force le HEADER à être FIXE sur mobile --- */
  #masthead.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 1px 3px rgb(0 0 0 / 5%);
    transform: none;
    animation: none;
  }

  /* --- Annule l'animation (sécurité) --- */
  #masthead.header-is-fixed {
    transform: none;
    animation: none;
    opacity: 1;
  }

  /* --- Styles du CONTENU du header mobile (toujours réduit) --- */
  .site-branding {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    padding: 5px;
    overflow: hidden;
    max-width: none;
    margin: 0;
    align-items: center;
    transition: none;
  }

  .site-title {
    padding-left: 5%;
    font-size: 1.3em;
    order: 2;
    margin: 0;
    flex: 0 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }
  nav.social-navigation {
    padding-right: 0;
    order: 3;
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0.8;
    display:none;
  }
  nav.social-navigation ul {
    display: flex;
    gap: 5px;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  nav.social-navigation ul li a svg {
    width: 30px;
    height: 30px;
  }
  nav#site-navigation.main-navigation {
    display: none;
    order: 4;
  }

  /* --- Empêche le contenu d'être recouvert par le header fixe mobile --- */
  #content.site-content {
    padding-top: 82px;
    box-sizing: border-box;
  }

  /* --- Ajustement position du MENU OUVERT sur mobile --- */
  body.mobile-menu-active nav#site-navigation.main-navigation {
    display: block;
    position: fixed;
    top: 82px;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 999; /* Sous le header fixe (1000) */
    max-height: calc(100vh - 82px); /* <<< HAUTEUR HEADER MOBILE */
    overflow-y: auto;
    box-shadow: 0 3px 5px rgb(0 0 0 / 10%);
    border-top: 1px solid #eee;
  }

  /* Styles pour ul, li, a dans le menu ouvert */
  body.mobile-menu-active
    nav#site-navigation.main-navigation
    ul#menu-menu-1.main-menu {
    display: block;
    max-height: none;
    overflow-y: visible;
    padding: 0px 0;
    margin: 0;
    list-style: none;
    width: 100%;
    justify-content: flex-start;
    gap: 0;
    background-color: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  body.mobile-menu-active
    nav#site-navigation.main-navigation
    ul#menu-menu-1.main-menu
    li {
    display: block;
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
    padding: 0;
    width: auto;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  body.mobile-menu-active
    nav#site-navigation.main-navigation
    ul#menu-menu-1.main-menu
    li:last-child {
    border-bottom: none;
  }
  body.mobile-menu-active
    nav#site-navigation.main-navigation
    ul#menu-menu-1.main-menu
    li
    a {
    display: block;
    padding: 12px 20px;
    font-size: 1em;
    color: #333;
    text-decoration: none;
    line-height: 1.5;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background-color: transparent;
  }
  body.mobile-menu-active
    nav#site-navigation.main-navigation
    ul#menu-menu-1.main-menu
    li
    a:hover,
  body.mobile-menu-active
    nav#site-navigation.main-navigation
    ul#menu-menu-1.main-menu
    li
    a:focus {
    background-color: #f5f5f5;
    color: #000;
  }
  body.mobile-menu-active
    nav#site-navigation.main-navigation
    ul#menu-menu-1.main-menu
    .current-menu-item
    > a {
    text-decoration: underline;
    color: black;
  }

  /* MENU HAMBURGER */

  /* --- Styles de Base du Bouton --- */
  .custom-mobile-menu-toggle {
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  body.mobile-menu-active nav#site-navigation.main-navigation nav.social-navigation {
    text-align: center;
    width: 100%;
    margin-top: 10px;
    padding-bottom: 15px; 
  }

  body.mobile-menu-active nav#site-navigation.main-navigation div.titre-menu-social-mobile
  {
    font-family: Arial, Helvetica, sans-serif;
    padding-top: 15px;
    text-align: center;
    display: block;
    width: 100%;
    border-top: 1px solid #eee; 
  }

  body.mobile-menu-active nav#site-navigation.main-navigation div.main-menu-more {
    display: none;
  }

  body.mobile-menu-active nav#site-navigation.main-navigation nav.social-navigation ul.social-links-menu {
    display: flex;           
    flex-direction: column;  
    align-items: flex-start; 
    list-style: none;
    padding-left: 0;         
    margin: 0;
    width: 100%; 
}


body.mobile-menu-active nav#site-navigation.main-navigation nav.social-navigation ul.social-links-menu li.menu-item {
    margin: 0; 
    width: 100%; 
}


body.mobile-menu-active nav#site-navigation.main-navigation nav.social-navigation ul.social-links-menu li.menu-item a {
    display: flex;       
    align-items: center;  
        padding: 8px 10%;   
    text-decoration: none;
    color: #333;          
}

body.mobile-menu-active nav#site-navigation.main-navigation nav.social-navigation ul.social-links-menu li.menu-item a span.screen-reader-text {
    position: static !important;  
    width: auto !important;       
    height: auto !important;     
    margin: 0 !important;         
    margin-left : 8px !important;
    padding: 0 !important;        
    overflow: visible !important; 
    clip: auto !important;        
    clip-path: none !important;   
    white-space: normal !important; 
    font-family: monospace !important;
    background-color: #f9f9f9;
}

  .custom-mobile-menu-toggle:hover,
  .custom-mobile-menu-toggle:focus,
  .custom-mobile-menu-toggle:active {
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
  }

  /* --- Styles de Base des Barres --- */
  .hamburger-bar {
    display: block;
    width: 100%;
    height: 1px;
    background-color: #333;
    border-radius: 1px;

    /* TRANSITION ESSENTIELLE pour l'animation */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  }

  /* --- Styles pour l'Animation en 'X' (classe .is-active) --- */
  .custom-mobile-menu-toggle.is-active .hamburger-bar:nth-child(2) {
    opacity: 0; /* Cacher barre du milieu */
  }

  .custom-mobile-menu-toggle.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(10.3px) rotate(45deg); /* Pivoter barre du haut */
  }

  .custom-mobile-menu-toggle.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-10.3px) rotate(-45deg); /* Pivoter barre du bas */
  }
} /* Fin @media max-width: 767px */

/* =============================================
   Styles DESKTOP (>= 768px) - Initial ET Fixe
   ============================================= */
@media only screen and (width >= 768px) {
  /* Cache Hamburger */
  .custom-mobile-menu-toggle {
    display: none;
  }

  /* --- Layout Desktop 2 Lignes Initial --- */
  .site-branding {
    padding: 15px 0;
    flex-wrap: wrap;
    max-width: 932px;
    margin-left: auto;
    margin-right: auto;
    gap: 10px 0;
    align-items: center;
  }
  .site-title {
    order: 1;
    font-size: 1.6em;
    margin: 0;
    margin-right: auto;
    flex-shrink: 0;
    padding-left: 0;
    line-height: normal;
    white-space: normal;
    overflow: visible;
  }
  nav.social-navigation {
    order: 2;
    margin-left: 0;
    flex-shrink: 0;
    padding-right: 0;
    opacity: 0.8;
  }
  nav#site-navigation.main-navigation {
    order: 3;
    flex: 1 1 100%;
    margin: 15px 0 0;
    padding: 0;
    border: none;
    min-height: auto;
    position: static;
    z-index: auto;
    display: block;
    font-size: 1.2em;
    opacity: 1;
  }
  nav#site-navigation.main-navigation ul#menu-menu-1.main-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    list-style: none;
    border: none;
    min-height: auto;
    position: static;
    background: none;
    box-shadow: none;
    z-index: auto;
    overflow: visible;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  nav#site-navigation.main-navigation ul#menu-menu-1.main-menu > li {
    display: list-item;
    border: none;
    margin: 0;
    padding: 0;
    min-height: auto;
    min-width: auto;
    width: auto;
    background: none;
  }

  /* Taille police INITIALE desktop */
  nav#site-navigation.main-navigation ul#menu-menu-1.main-menu > li > a {
    display: inline-block;
    padding: 5px 0;
    font-size: 0.9em;
    line-height: 1.4;
    color: black;
    background: none;
    border: none;
  }
  nav#site-navigation.main-navigation
    ul#menu-menu-1.main-menu
    .current-menu-item
    > a {
    text-decoration: underline;
  }

  /* --- Styles pour l'état FIXE/RÉDUIT sur Desktop (>= 768px) --- */
  #masthead.header-is-fixed .site-branding {
    padding: 3px 0px;
    flex-wrap: nowrap;
    max-width: 932px;
    margin-left: auto;
    margin-right: auto;
    gap: 15px;
    align-items: baseline;
  }
  #masthead.header-is-fixed nav#site-navigation.main-navigation,
  #masthead.header-is-fixed nav.social-navigation,
  #masthead.header-is-fixed .site-title {
    margin-top: 0;
  }
  #masthead.header-is-fixed .site-title {
    order: 1;
    font-size: 1.5em;
    margin-right: 0;
    flex-shrink: 0;
    padding-left: 0;
  }
  #masthead.header-is-fixed nav#site-navigation.main-navigation {
    order: 2;
    flex-basis: auto;
    flex-shrink: 1;
    font-size: 1em;
    opacity: 1;
    position: relative;
    top: -6px;
    display: block;
  }
  #masthead.header-is-fixed
    nav#site-navigation.main-navigation
    ul#menu-menu-1.main-menu {
    justify-content: center;
    width: auto;
    padding: 0;
    gap: 30px;
    display: flex;
    align-items: baseline;
  }

  /* Taille police FIXE desktop PAR DÉFAUT (>= 768px) */
  #masthead.header-is-fixed
    nav#site-navigation.main-navigation
    ul#menu-menu-1.main-menu
    > li
    > a {
    font-size: 1em;
    line-height: 1.4;
    padding: 0;
    display: inline-block;
  }
  #masthead.header-is-fixed nav.social-navigation {
    order: 3;
    margin-left: auto;
    opacity: 0.7;
    flex-shrink: 0;
    padding-right: 0;
  }
} /* Fin @media min-width: 768px */

/* =============================================
   AJUSTEMENT SPÉCIFIQUE TAILLE POLICE MENU FIXE (768px - 800px)
   ============================================= */

@media only screen and (width >= 768px) and (width <= 800px) {
  #masthead.header-is-fixed
    nav#site-navigation.main-navigation
    ul#menu-menu-1.main-menu
    > li
    > a {
    font-size: 0.9em;
  }
}

@keyframes slideDownHeader {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.archive .page-header .page-title,
.search .page-header .page-title,
.error404 .page-header .page-title {
  color: black;
  display: inline;
  letter-spacing: normal;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  font-size: 1em;
}

/* Articles */
.entry .entry-header,
.entry {
  margin-top: 1em;
  position: relative;
  font-family: Arial;
  font-size: 1em;
}

.wp-element-caption {
  font-family: arial, sans-serif;
  color: grey;
}

.entry .entry-content .wp-block-audio figcaption,
.entry .entry-content .wp-block-video figcaption,
.entry .entry-content .wp-block-image figcaption,
.entry .entry-content .wp-block-gallery .blocks-gallery-image figcaption,
.entry .entry-content .wp-block-gallery .blocks-gallery-item figcaption {
  font-size: 0.9em;
  font-family: arial,sans-serif;
  line-height: 1.6;
  margin: auto;
  padding: 0.5rem;
  text-align: center;
}

.entry .entry-title::before {
  display: none;
}

.entry-header > h1,
.woocommerce-products-header__title.page-title,
.entry-header > h2,
.entry-title > h1 {
  font-family: Ubuntu;
  font-weight: 400;
  font-size: 1.7em;
  color: #21759b;
  background-image: linear-gradient(to right, white, #f9f9f9);
}

.entry .entry-title a:hover,
.woocommerce-products-header__title.page-title {
  color: #3f92b6;
}

.entry-content > h5 {
  text-align: center;
  font-weight: normal;
}

.yarpp-moreposts,
.page-header {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.yarpp-moreposts.slide-down,
.page-header.slide-down {
  transform: translateY(-50px);
  animation: slideDown 0.6s ease-in forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(-150px);
    opacity: 1;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.yarpp-moreposts {
  z-index: 1000;
}

.yarpp-moreposts.is-sticky,
.page-header.is-sticky {
  opacity: 1;
  z-index: 1;
  background-color: white;
}

.yarpp-moreposts.is-sticky > h3,
.page-header.is-sticky {
  font-size: 1em;
  font-weight: 400;
  padding: 10px;
  margin: 0;
  text-align: justify;
  opacity: 0.8;
}

.page-header.is-sticky > .page-title {
  margin: 0 10px;
}

.page-header.is-sticky {
  opacity: 0.95;
}

.yarpp-moreposts > h3 {
  font-size: 1em;
  font-weight: 400;
  padding: 30px 0;
  text-align: center;
}

#article-navigation {
  display: flex;
  justify-content: space-around;
}

#load-more-articles {
  margin: auto;
  display: flex;
}

h1:not(.site-title)::before,
h2::before {
  display: none;
}

img.CtreTexte, img.size-large, .entry-content > .wp-block-video > video {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-height: 85vh;
  margin-top: 6em;
}


.entry-content img { 
  max-width: 100%; 
  height: auto;   
  width: auto;    
  display: block; 
}

.entry-content > *:first-child a > img,
.entry-content p:first-child + * > a > img {
  margin-top: 0;
}

div.date_article {
  font-family: Ubuntu;
  text-align: right;
  color: grey;
  padding-right: 20px;
  padding-top: 10px;
}

footer.entry-footer {
  display: flex;
  justify-content: space-around;
}

@media only screen and (width <= 480px) {
  footer.entry-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

.entry-content > p {
  width: 45em;
  text-align: justify;
}

.entry-content:first-child {
  margin: 1em;
}

.entry {
  margin-top: calc(3 * 1rem);
  margin-bottom: calc(3 * 1rem);
}

/* Commentaires */
.comments-area {
  margin: auto;
}

/* Pagination */
.nav-links {
  justify-content: center;
}

.nav-next-text,
.nav-prev-text {
  padding-bottom: 4px;
}

@media only screen and (width >= 768px) {
  .pagination .nav-links {
    margin-left: 0;
    padding: 0;
  }
}

/* Footer */
.footer-separator {
  border: 0;
  border-top: 1px solid #ccc;
  margin-top: 40px;
  margin-bottom: 15px;
}

hr {
  background-color: #fff;
  border: 0;
  height: 1px;
  width: 45%;
}

.footer-menu {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  padding: 0;
}

.footer-menu a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #afafaf;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-menu a:hover {
  color: #333;
}

.footer-navigation {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
}

.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.footer-menu li {
  margin: 0;
}

#colophon .site-info {
  text-align: center;
}


/* Page ArchivesGrille */
.post-4985 {
  margin-bottom: 0;
}

h2.year-title {
  margin-top: 75px;
  margin-bottom: 25px;
}

h2.year-title:first-of-type {
  margin-top: 0;
}

.archive-grid {
  display: grid;
  gap: 10px;
}

/* Pour les écrans de bureau et tablettes (6 images par ligne) */
@media (width >= 768px) {
  .archive-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Pour les écrans mobiles (4 images par ligne) */
@media (width <= 767px) {
  .archive-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.archive-grid-item {
  position: relative;
  overflow: hidden;
  padding-top: 100%; /* Pour maintenir un format carré */
}

.archive-grid-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: opacity 0.3s ease;
}

.archive-grid-item:hover img {
  opacity: 0.3;
}

.archive-grid-item .title-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  color: black;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: block;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.5em;
  max-height: none;
  text-align: center;
  background: none;
}

.archive-grid-item:hover .title-overlay {
  opacity: 1;
}

.year-title {
  font-size: 2em;
  margin-top: 20px;
  margin-bottom: 10px;
}

.load-more-button {
  display: block;
  margin: 40px auto;
  padding: 10px 20px;
  background-color: #0073aa;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
}

.load-more-button:hover {
  background-color: #005177;
}

/* --- Page Catégories --- */

.category-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px; 
}

.category-card-wrapper {
  width: 100%; 
  box-sizing: border-box; 
}

.category-card-link {
  text-decoration: none;
  color: inherit;
  display: block; 
}

.category-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden; 
  display: flex;
  flex-direction: column;
  position: relative; 
  height: 100%; 
  transition: box-shadow 0.3s ease; 
}

.category-card-link:hover .category-card {
   box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); 
}


.category-image-container {
  position: relative; 
  width: 100%;
  overflow: hidden; 
  background-color: #f0f0f0; 
  border-radius: 8px 8px 0 0;
  aspect-ratio: 1 / 1; 
}

/* --- Image Principale --- */
.category-image-main {
  display: block;
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; 
  object-fit: cover; 
  transition: opacity 0.4s ease-in-out; 
  border-radius: 8px 8px 0 0; 
}


.category-image-rotating {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; 
  opacity: 0; 
  visibility: hidden; 
  
  transition: opacity 0.4s ease-in-out, visibility 0s linear 0.4s; 
  border-radius: 8px 8px 0 0; 
}

.category-image-rotating.is-visible {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s; 
}


.category-image-rotating img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  border-radius: 8px 8px 0 0;
}


.category-title {
  padding: 10px 15px; 
  font-size: 1.15em; 
  margin: 0;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0)); 
  color: #ffffff; 
  border-radius: 0 0 8px 8px;
  box-sizing: border-box;
  z-index: 2; 
  text-align: left;
}


@media (min-width: 768px) { 
  .category-card-wrapper {
    
    width: calc((100% - 2 * 20px) / 3); 
  }
}

@media (max-width: 767px) { 
  
  

  
  .category-image-container {
    aspect-ratio: 16 / 9;
  }
}

/* --- Fin Page Catégories --- */

/* Diaporama */
.bwg_image_title {
  padding-bottom: 3px;
  height: 7%;
  font-family: Tahoma, sans-serif;
}

.bwg_popup_image {
  padding-bottom: 10px;
  height: 90%;
  object-fit: contain;
}

.bwg-title2 {
  visibility: hidden;
}

.mCSB_scrollTools {
  visibility: hidden;
}

#spider_popup_left,
#spider_popup_right {
  opacity: 0.2;
}

.woocommerce-result-count {
  display: none;
}

.orderby {
  display: none;
}

.woocommerce .content-area {
  margin: 0 auto;
}

.annonce-boutique {
  margin: 2em 0;
  padding: 15px;
  font-family: arial, sans-serif;
  font-size: 14px;
  text-align: justify;
  background-color: #e7e7e75e;
}

.annonce-boutique br {
  display: block;
  margin-bottom: 15px;
}

.product-date {
  font-family: Ubuntu;
  color: rgb(196 196 196);
}

.product_title {
  margin-bottom: 0;
  font-size: 1.7em;
}

h1.product_title.entry-title {
  margin-bottom: 10px;
}

h2.related-products-section-title {
  font-size: 1.3em;
}

/* --- Forcer la grille de produits similaires sur une seule ligne --- */
body.single-product ul.products {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  overflow: auto hidden;
  padding: 5px 0;
  list-style: none;
  margin-bottom: 2em;
  margin-left: 0;
  margin-right: 0;
}

body.single-product ul.products li.product {
  flex: 0 1 auto;
  width: calc(25% - 12px);
  min-width: 110px;
  max-width: none;
  margin: 0;
  margin-right: 15px;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: auto;
  float: none;
  clear: none;
}

body.single-product ul.products li.product:last-child {
  margin-right: 0;
}

body.single-product ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  position: relative;
  overflow: visible;
  background: none;
}

body.single-product
  ul.products
  li.product
  a.woocommerce-LoopProduct-link
  img.attachment-woocommerce_thumbnail:not(.secondary-image) {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 0.8em;
  max-width: 100%;
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease-in-out;
  backface-visibility: hidden;
  opacity: 1;
}

body.single-product
  ul.products
  li.product
  a.woocommerce-LoopProduct-link
  div.secondary-image-wrapper {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  background-color: #fff;
}

body.single-product
  ul.products
  li.product
  a.woocommerce-LoopProduct-link
  div.secondary-image-wrapper
  img.secondary-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
}

body.single-product
  ul.products
  li.product
  a.woocommerce-LoopProduct-link
  .woocommerce-loop-product__title,
body.single-product
  ul.products
  li.product
  a.woocommerce-LoopProduct-link
  .price {
  display: block;
  width: auto;
  height: auto;
  position: static;
  margin-top: 0;
  margin-left: 5px;
  margin-right: 5px;
  text-align: center;
  color: #333;
}

body.single-product
  ul.products
  li.product
  a.woocommerce-LoopProduct-link
  .woocommerce-loop-product__title {
  font-size: 0.9em;
  margin-bottom: 0.25em;
  line-height: 1.3;
}

body.single-product
  ul.products
  li.product
  a.woocommerce-LoopProduct-link
  .price {
  font-size: 0.85em;
  color: #666;
}

/* Prix barré promo */
body.single-product
  ul.products
  li.product
  a.woocommerce-LoopProduct-link
  .price
  del {
  display: block;
  opacity: 0.7;
  margin-bottom: -0.2em;
}

body.single-product
  ul.products
  li.product.has-secondary-image
  a.woocommerce-LoopProduct-link:hover
  img.attachment-woocommerce_thumbnail:not(.secondary-image) {
  opacity: 0;
}

body.single-product
  ul.products
  li.product.has-secondary-image
  a.woocommerce-LoopProduct-link:hover
  div.secondary-image-wrapper {
  opacity: 1;
}

/* Pastille Promo */
body.single-product
  ul.products
  li.product
  a.woocommerce-LoopProduct-link
  span.onsale {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 3;
  background-color: #e45050;
  color: white;
  padding: 2px 6px;
  font-size: 0.75em;
  border-radius: 3px;
  line-height: 1.2;
}

/* --- Fin CSS Page Produit Seul --- */

/* ---- Lightbox Woocommerce ---- */

.pswp--open .pswp__bg {
  background-color: #fff;
  opacity: 1;
}
.pswp--open .pswp__top-bar {
  background-color: #fff0;
}
.pswp--open .pswp__counter {
  color: #333;
}

/* --- Styles du BOUTON Parent (Transparence) --- */

body .pswp--open button.pswp__button--arrow--left,
body .pswp--open button.pswp__button--arrow--right {
  background: none;
  background-color: transparent;
  color: transparent;
  filter: none;
  overflow: visible;
}

body .pswp--open button.pswp__button::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none;
  background-image: none;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 28px 28px;
  opacity: 1;
  filter: none;
  visibility: visible;
}

/* --- Appliquer l'IMAGE SVG spécifique au ::before --- */

/* (Ces règles restent identiques, pointant vers les SVG avec fill="white" stroke="black") */
body .pswp--open button.pswp__button--close::before {
  background-image: url("design/svg/pswp-close.svg");
}

body .pswp--open button.pswp__button--arrow--left::before {
  background-image: url("design/svg/pswp-arrow-left.svg");
  background-size: 36px 36px;
}

body .pswp--open button.pswp__button--arrow--right::before {
  background-image: url("design/svg/pswp-arrow-right.svg");
  background-size: 36px 36px;
}

/* --- Effet Hover Seconde Image --- */

/* Conteneur du lien produit (la balise <a>) */
.products li.product a.woocommerce-loop-product__link {
  position: relative; /* Contexte pour le positionnement absolu */
  display: block;
  overflow: visible;
  aspect-ratio: 1 / 1;
  text-decoration: none;
}

/* Image principale */
.products
  li.product
  a.woocommerce-loop-product__link
  img.attachment-woocommerce_thumbnail:not(.secondary-image) {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  backface-visibility: hidden;
}

.products li.product div.secondary-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  overflow: hidden;
  background-color: #fff;
}

.products li.product div.secondary-image-wrapper img.secondary-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.products
  li.product
  a.woocommerce-loop-product__link
  .woocommerce-loop-product__title,
.products li.product a.woocommerce-loop-product__link .price {
  display: block;
  color: #333;
  margin-left: 5px;
  margin-right: 5px;
  position: static;
  margin-top: 0.5em;
}

.products
  li.product
  a.woocommerce-loop-product__link
  .woocommerce-loop-product__title {
  font-size: 1em;
  margin-bottom: 0.25em;
}

/* --- Effets au Survol --- */
.products
  li.product.has-secondary-image
  a.woocommerce-loop-product__link:hover
  img.attachment-woocommerce_thumbnail:not(.secondary-image) {
  opacity: 0;
}

.products
  li.product.has-secondary-image
  a.woocommerce-loop-product__link:hover
  div.secondary-image-wrapper {
  opacity: 1;
}

/* Vendu */
.products li.product.outofstock a img {
  opacity: 0.5;
  filter: grayscale(70%);
}

.products li.product.outofstock a {
  position: relative;
  display: block;
}

.products li.product.outofstock a::after {
  content: "Vendu";
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgb(255 82 82);
  color: white;
  padding: 3px 8px;
  font-size: 0.8em;
  border-radius: 3px;
  z-index: 5;
}

.single-product div.statut-produit.statut-vendu {
  color: rgb(255 82 82);
  font-weight: bold;
  border: 1px solid #e00;
  padding: 10px 15px;
  margin-top: 1em;
  margin-bottom: 1.5em;
  text-align: center;
  background-color: #ffeaea;
  clear: both;
}

body.single-product
  div.product.produit-est-vendu
  .woocommerce-product-gallery__image
  img {
  opacity: 0.6;
  filter: grayscale(40%);
}

/* --- Centrer l'IMAGE PRINCIPALE Produit sur Mobile (< 768px) --- */

@media (width <= 767px) {
  .single-product
    div.product
    .woocommerce-product-gallery
    .woocommerce-product-gallery__wrapper {
    text-align: center;
  }

  .single-product
    div.product
    .woocommerce-product-gallery
    .woocommerce-product-gallery__wrapper
    .woocommerce-product-gallery__image:first-child {
    display: inline-block;
    width: 90%;
    float: none;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
    position: static;
  }

  .single-product
    div.product
    .woocommerce-product-gallery
    .woocommerce-product-gallery__wrapper
    .woocommerce-product-gallery__image:first-child
    a,
  .single-product
    div.product
    .woocommerce-product-gallery
    .woocommerce-product-gallery__wrapper
    .woocommerce-product-gallery__image:first-child
    img.wp-post-image {
    display: block;
    width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
  }

  .single-product div.product .summary.entry-summary {
    width: 100%;
    float: none;
    clear: both;
    margin-top: 0;
  }

  .single-product div.product .summary .woocommerce-product-gallery__image {
    display: inline-block;
    margin: 5px;
    width: 80px;
  }

  .summary.entry-summary p.product-date {
    margin-top: 0;
  }

  h2.related-products-section-title {
    margin-top: 64px;
  }
}

/* Plugin Lightbox avec PhotoSwipe */
.pswp {
  --pswp-bg: #fff;
  --pswp-placeholder-bg: #222;
  --pswp-root-z-index: 100000;
  --pswp-preloader-color: rgb(79 79 79 / 40%);
  --pswp-preloader-color-secondary: rgb(255 255 255 / 90%);
  --pswp-icon-color: #fff;
  --pswp-icon-color-secondary: #4f4f4f;
  --pswp-icon-stroke-color: #4f4f4f;
  --pswp-icon-stroke-width: 2px;
  --pswp-error-text-color: var(--pswp-icon-color);
}

/* Livres */
img.couverture {
  width: 275px;
  float: left;
  margin-right: 30px;
  display: block;
}

img.decitre {
  display: inline-block;
  vertical-align: middle;
  padding-left: 3px;
  padding-right: 3px;
  height: 13px;
}

img.amazon {
  display: inline-block;
  height: 15px;
  vertical-align: middle;
  padding-left: 3px;
  padding-right: 6px;
}

img.youtube {
  display: inline-block;
  padding-right: 5px;
  height: 15px;
  vertical-align: middle;
}

img.link {
  display: inline-block;
  height: 15px;
  padding-left: 4px;
  padding-right: 3px;
  vertical-align: -1px;
}

div.bloclivre {
  padding-bottom: 45px;
}

p.shop {
  font-family: arial, sans-serif;
  text-align: right;
  margin-top: 3em;
}

p.resume {
  text-align: justify;
  width: 100%;
}

.descriptionlivre > div > h2,
.descriptionlivre > div > h3,
.descriptionlivre > div > p {
  clear: none;
}

.descriptionlivre > div > h2::before {
  content: none;
}

.descriptionlivre > div > h2 {
  font-size: 1.7em;
}

.descriptionlivre > div > h3 {
  font-size: 1.2em;
  padding: 0;
}

a.dotted {
  text-decoration: underline dashed;
}

a.youtube:hover {
  text-decoration: underline solid;
}

#rmdct {
  min-height: 374px;
}

#gst {
  min-height: 406px;
}

#val {
  min-height: 367px;
}

/* Transition Survol Interviews */
div.afficherlien {
  text-align: right;
  height: 2em;
  z-index: 6;
}

.afficherlien ul {
  list-style-type: none;
  display: block;
  position: relative;
  bottom: 8px;
}

.afficherlien li {
  margin-left: 7px;
  float: right;
  font-family: "Lucida Console";
  font-size: 0.75em;
  display: block;
}

div.afficherlien > ul {
  visibility: visible;
  opacity: 0;
  transition: visibility 0s, opacity 0.7s linear;
}

div.afficherlien:hover > ul {
  visibility: visible;
  opacity: 1;
}

/* Rubrique CV */

.wp-block-table > table > tbody > tr > td:first-child {
  vertical-align: top;
  width: 90px;
  letter-spacing: 2px;
  font-size: 1em;
  font-weight: bolder;
  color: grey;
}

.wp-block-table > table > tbody > tr > td {
  border-style: none;
}

#introCV {
  margin-bottom: 5em;
  font-style: italic;
}

#identiteCV {
  margin-bottom: 4em;
}

#contactsCV {
  margin-bottom: 5em;
  font-weight: bold;
  font-size: 1.1em;
}

.cv > * > h2 {
  font-family: Ubuntu;
  color: #21759b;
  font-size: 1.7em;
  background-image: linear-gradient(to right, white, #f9f9f9);
}

#cv h3 {
  margin-top: 5em;
  margin-bottom: 1em;
  font-style: normal;
  font-weight: bold;
  font-weight: 300;
  font-family: "Times New Roman";
  letter-spacing: 2px;
  font-size: 1.2em;
}

.wp-block-table > table {
  margin-left: 0;
}

tr > td {
  padding-top: 9px;
  padding-bottom: 9px;
}

tr:first-child {
  padding-top: 0;
}

#cv h4 {
  margin-left: 10px;
  font-weight: normal;
  margin-bottom: 10px;
  margin-top: 25px;
  font-style: italic;
  letter-spacing: 1px;
}

.mediaCV {
  margin-bottom: 4em;
}

#videos {
  margin-top: 2.5em;
}

#videos p {
  margin-left: 3px;
  margin-top: 10px;
  font-style: italic;
}

#cv a:hover {
  color: lightgrey;
  text-decoration: underline;
}

p.biography {
  text-align: justify;
}

.wp-block-heading > h2::before {
  display: none;
}

@media only screen and (width >= 1168px) {
  .site-header {
    margin: 0 auto;
    padding: 0;
  }

  .site-branding {
    margin: 0;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .hfeed .entry .entry-header,
  .entry .entry-header {
    margin: 3rem auto calc(1 * 1rem);
    max-width: calc(8 * (100vw / 12) - 28px);
  }

  .entry .entry-content,
  .entry .entry-summary {
    max-width: calc(6 * (100vw / 12) - 28px);
    padding: 0;
    padding-top: 1em;
  }

  .entry .entry-content > *,
  .entry .entry-summary > *,
  .entry
    .entry-summary
    > .wp-block-group
    > .wp-block-group__inner-container
    > *,
  .entry
    .entry-content
    > .wp-block-group
    > .wp-block-group__inner-container
    > * {
    margin: 1em auto 2em;
  }

  .entry .entry-footer {
    margin: 3rem auto calc(3 * 1rem);
    max-width: calc(8 * (100vw / 12) - 28px);
  }

  .woocommerce .content-area .site-main {
    max-width: 100%;
  }
}

@media only screen and (width >= 768px) {
  .entry .entry-content,
  .entry .entry-summary,
  .entry .entry-content > *,
  .entry .entry-summary > *,
  .entry
    .entry-summary
    > .wp-block-group
    > .wp-block-group__inner-container
    > *,
  .entry
    .entry-content
    > .wp-block-group
    > .wp-block-group__inner-container
    > * {
    margin: 0 auto 2em;
    max-width: calc(8 * (100vw / 12) - 28px);
  }

  .site-header {
    margin: 0 auto;
    padding: 0;
    max-width: calc(12 * (100vw / 12) - 28px);
  }

  .site-branding {
    margin: 0;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .hfeed .entry .entry-header,
  .entry .entry-header,
  .woocommerce-products-header {
    margin: 3rem auto calc(1 * 1rem);
    max-width: calc(12 * (100vw / 12) - 28px);
  }

  .entry .entry-content,
  .entry .entry-summary {
    padding: 0;
    padding-top: 1em;
  }

  .entry .entry-footer {
    margin: 3rem auto calc(3 * 1rem);
    max-width: calc(8 * (100vw / 12) - 28px);
  }

  .woocommerce .content-area .site-main {
    max-width: 100%;
  }
}

/* =============================================
   STYLES DU MENU MOBILE OUVERT (Overlay/Dropdown) - VERSION RENFORCÉE
   Activé via JS (ex: ajout classe 'mobile-menu-active' sur body)
   ============================================= */

body.mobile-menu-active nav#site-navigation.main-navigation {
  display: block;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background-color: white;
  z-index: 999;
  box-shadow: 0 3px 5px rgb(0 0 0 / 10%);
  border-top: 1px solid #eee;
  opacity: 1;
  visibility: visible;
  transform: none;
  overflow: visible;
}

body.mobile-menu-active
  nav#site-navigation.main-navigation
  ul#menu-menu-1.main-menu {
  display: block;
  max-height: 75vh;
  overflow: hidden auto;
  padding: 0 0;
  margin: 0;
  list-style: none;
  width: 100%;
  justify-content: flex-start;
  gap: 0;
  background-color: transparent;
  opacity: 1;
  visibility: visible;
  transform: none;
}

body.mobile-menu-active
  nav#site-navigation.main-navigation
  ul#menu-menu-1.main-menu
  li {
  display: block;
  border-bottom: 1px solid #f0f0f0;
  margin: 0;
  padding: 0;
  width: auto;
  background: none;
  opacity: 1;
  visibility: visible;
  transform: none;
}

body.mobile-menu-active
  nav#site-navigation.main-navigation
  ul#menu-menu-1.main-menu
  li:last-child {
  border-bottom: none;
}

body.mobile-menu-active
  nav#site-navigation.main-navigation
  ul#menu-menu-1.main-menu
  li
  a {
  display: block;
  padding: 12px 20px;
  font-size: 1em;
  color: #333;
  text-decoration: none;
  line-height: 1.5;
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  background-color: transparent;
}

body.mobile-menu-active
  nav#site-navigation.main-navigation
  ul#menu-menu-1.main-menu
  li
  a:hover,
body.mobile-menu-active
  nav#site-navigation.main-navigation
  ul#menu-menu-1.main-menu
  li
  a:focus {
  background-color: #f5f5f5;
  color: #000;
}

.custom-mobile-menu-toggle.is-active .hamburger-bar {
  transition: transform 0.3s ease, opacity 0.3s ease;
}