/*
 * ARPOZ SELECTA
 * arpoz.css
 *
 * Extraction du CSS spécifique ARPOZ depuis le style.css
 * actuellement utilisé avec ColorMag 2.1.3.
 *
 * IMPORTANT :
 * - fichier d'extraction / préparation pour la future architecture ;
 * - aucun nettoyage ni refactorisation du CSS historique ;
 * - le style.css actuel n'est pas modifié par cette extraction ;
 * - le CSS reste une responsabilité du Theme / futur thème enfant.
 */

/* ==========================================================
   ARPOZ — MODIFICATIONS DU SOCLE COLORMAG
   ========================================================== */

/* ==========================================================
   ARPOZ — MODIFICATIONS DU SOCLE COLORMAG
   ========================================================== */

h2 {
    color: #289dcc;
    font-size: 26px;
}

h3 {
    font-size: 20px;
    font-weight: normal;
}

blockquote,
.wp-block-quote,
.wp-block-quote.is-style-large,
.wp-block-quote.has-text-align-right {
    padding: 30px 30px 20px 45px;
    margin-bottom: 20px;
    background-color: #f8f8f8;
    color: #000000;
    border-radius: 5px;
    border-left: 0;
}

blockquote p::before,
.wp-block-quote p::before,
.wp-block-quote.is-style-large p::before,
.wp-block-quote.has-text-align-right p::before {
    color: #000000;
}


.bt-showhide {
  padding: 4px;
  border: none;
  cursor: pointer;
  font-size: 13px;
}


/* CTA */

/* Conteneur Flex pour les CTA */
.cta-container {
    display: flex;
    justify-content: center; /* Centre les CTA horizontalement */
    align-items: center; /* Centre les CTA verticalement */
    gap: 10px; /* Espacement entre les CTA */
    flex-wrap: wrap; /* Permet aux CTA de passer à la ligne si nécessaire */
    padding: 10px; /* Espacement interne autour des CTA */
}

/* Style des CTA */
.cta-button {
    display: inline-flex; /* Utilise Flexbox pour aligner le contenu à l'intérieur du bouton */
    justify-content: center; /* Centre le texte à l'intérieur du bouton */
    align-items: center; /* Centre le texte verticalement à l'intérieur du bouton */
    height: 35px; /* Hauteur des CTA */
    padding: 0 15px; /* Espacement interne horizontal */
    background-color: #289dcc; /* Couleur de fond des CTA */
    color: white; /* Couleur du texte */
    text-decoration: none; /* Retire la décoration du texte */
    border-radius: 5px; /* Coins arrondis */
    font-size: 14px; /* Taille du texte */
    font-weight: bold; /* Gras du texte */
    transition: background-color 0.3s ease; /* Transition pour l'effet au survol */
}

/* Effet au survol */
.cta-button:hover {
    background-color: #000000; /* Couleur de fond au survol */
}

/* Responsive design */
@media (max-width: 600px) {
    .cta-button {
        font-size: 12px; /* Réduit la taille du texte sur les petits écrans */
        padding: 0 10px; /* Réduit l'espacement interne horizontal sur les petits écrans */
    }
}

/* ART */

/* Container principal pour les articles */
.genre-art-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px; /* Espace entre les cartes */
}

/* Style des cartes d'article */
.art-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex: 1 1 calc(33.333% - 20px); /* Chaque carte prend un tiers de la largeur */
	max-width: calc(33.333% - 20px); /* Limite la largeur maximale */
    box-sizing: border-box;
    transition: transform 0.2s ease;
}

.art-card:hover {
    transform: translateY(-5px);
}

/* Vignettes d'article */

.art-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.art-thumbnail2 {
    width: 300px; /* ou 100% si responsive */
    height: 162px; /* hauteur uniforme pour toutes les cartes */
    overflow: hidden;
}

.art-thumbnail2 img {
    width: 100%;
	height: 100%;
	object-fit: cover; /* recadre l'image pour remplir le conteneur */
	object-position: center; /* centre l'image verticalement et horizontalement */
    display: block;
}



/* Contenu des articles */
.art-content {
    padding: 15px;
}

.art-content h2 {
    font-size: 1.2em;
    margin: 0 0 10px;
    color: #333;
}

.art-content p {
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
}

/* Responsive: 3 colonnes sur grands écrans, 2 sur moyens, 1 sur petits */
@media (max-width: 992px) {
    .art-card {
        flex: 1 1 calc(50% - 20px); /* 2 colonnes sur les écrans moyens */
		max-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .art-card {
        flex: 1 1 calc(100% - 20px); /* 1 colonne sur les petits écrans */
		max-width: calc(100% - 20px);
    }
}

.genre-art-container .art-card a {
    text-decoration: none !important; /* Enlève le soulignement */
}

.genre-art-container .art-card a:hover h2 {
    text-decoration: none !important; /* Optionnel : ajoute le soulignement au survol */
}

/* ✅ Cartouche tag artiste */

.cartouche-artiste {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 2rem;
    gap: 15px;
    transition: box-shadow 0.3s ease;
}

.cartouche-artiste:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cartouche-image {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.cartouche-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.cartouche-text {
    flex: 1;
}

.cartouche-text h2 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
}

.cartouche-text p {
    margin: 0;
    color: #555;
    font-size: 1rem;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 600px) {
    .cartouche-artiste {
        flex-direction: column;
        align-items: stretch;
    }

    .cartouche-image {
        width: 100%;
        height: auto;
    }

    .cartouche-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .cartouche-text {
        margin-top: 10px;
    }
}

/* Alphabet */

.alphabet-filter-wrap {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 8px;
  max-width: 100%;
  margin: 20px auto;
  padding: 0 10px;
  box-sizing: border-box;
  justify-items: center;
}

.alpha-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

.alpha-box:hover {
  background-color: #0073aa;
  color: #fff;
}

.alpha-box.active {
  background-color: #0073aa;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Responsive - sur mobile, on passe à 7 colonnes */
@media (max-width: 768px) {
  .alphabet-filter-wrap {
    grid-template-columns: repeat(7, 1fr);
  }
}

.article-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* aligne drapeau et catégorie verticalement */
}

.article-categories .flag-icon {
    width: auto;
    height: 20px;
    vertical-align: middle;
    cursor: help; /* indique le tooltip */
    position: relative;
    top: 1px; /* ajuste la hauteur, mettre 2px ou 3px si besoin */
}

.article-categories .flag-icon + .flag-icon {
    margin-left: 5px; /* espace entre les drapeaux */
}

/* Drapeaux cliquables */
.article-categories a.flag-link {
    display: inline-flex; /* pour que margin fonctionne correctement */
    margin-right: 5px; /* espace entre drapeaux */
}

.article-categories a.flag-link .flag-icon {
    cursor: pointer; /* main */
}

.region-flag {
	float: left;
	margin-right: 15px;
	margin-bottom: 10px;
}

.region-flag img {
    border-radius: 12px;
}

/* Pour les écrans petits (mobile) */
@media screen and (max-width: 768px) {
    .region-flag {
        float: none;          /* plus de float */
        display: block;       /* force bloc */
        margin: 0 auto 10px;  /* centré avec marge dessous */
        width: 100%;          /* optionnel : adapte la largeur */
    }
}
.breadcrumb {
    font-size: 12px;
    margin: 5px 0;
    padding: 2px 0;
    color: #444;
}
.breadcrumb a {
    color: #0073aa;
}

.frame {
	background-color:#f8f8f8; 
	padding: 10px; 
	margin-top: 30px; 
	margin-bottom: 30px;  
	border-radius: 20px; 
	box-shadow: 0 1px 3px 0 rgb(0 0 0 / 10%); 
	color: #000;
}

.media-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 2rem 0;
}

.media-item img {
  max-width: 100%;
  height: auto;
  display: block;
}

.media-item.video iframe {
  max-width: 100%;
}

/* Mobile */
@media (max-width: 768px) {
  .media-row {
    flex-direction: column;
  }
}

.single-related-posts .post-meta-date {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}


.block-grey {
	background-color:#f8f8f8; 
	padding: 10px; 
	margin-top: 30px; 
	margin-bottom: 30px;  
	border-radius: 20px; 
	box-shadow: 0 1px 3px 0 rgb(0 0 0 / 10%); 
	color: #000;
}

.block-white {
	background-color:#ffffff; 
	padding: 10px; 
	margin-top: 30px; 
	margin-bottom: 30px;  
	border-radius: 20px; 
	box-shadow: 0 1px 3px 0 rgb(0 0 0 / 10%); 
	color: #000;
}

.block-black {
	background-color:#303440; 
	padding: 10px; 
	margin-top: 30px; 
	margin-bottom: 30px;  
	border-radius: 20px; 
	box-shadow: 0 1px 3px 0 rgb(0 0 0 / 10%); 
	color: #000;
}
/* Pagination personnalisée Arpoz – compatible ColorMag */
.arpoz-pagination {
    clear: both;
    width: 100%;
    margin: 40px 0;
    text-align: center;
}

/* Liens et page courante */
.arpoz-pagination a,
.arpoz-pagination span {
    display: inline-block;
    margin: 0 4px;
    padding: 8px 12px;
    background: #f2f2f2;
    border-radius: 3px;
    text-decoration: none;
    line-height: 1.4;
}

/* Page active */
.arpoz-pagination .current {
    background: #0073aa;
    color: #fff;
    font-weight: 600;
}

/* Hover */
.arpoz-pagination a:hover {
    background: #e2e2e2;
}

/* ============================= */
/* GRID */
/* ============================= */

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* ============================= */
/* CARD */
/* ============================= */

.album-card {
    background: #ffffff;
    border: 1px solid #e5e5e5; /* léger contour comme articles */
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.album-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* ============================= */
/* COVER */
/* ============================= */

.album-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 235 / 127;
    overflow: hidden;
}

.album-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================= */
/* SVG VINYLE */
/* ============================= */

.album-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-svg {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    display: block;
    transition: transform 0.35s ease;
}

.album-card:hover .album-svg {
    transform: rotate(12deg) scale(1.08);
}

/* ============================= */
/* BADGE */
/* ============================= */

.album-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #289dcc;
    color: #ffffff;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* ============================= */
/* CONTENT */
/* ============================= */

.album-content {
    padding: 20px;
    background: #ffffff;
}

.album-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.album-title {
    font-size: 20px;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.5;
}

.album-date {
    font-size: 13px;
    color: #888;
}

/* ============================= */
/* NAVIGATION */
/* ============================= */

.calendar-nav {
    display: flex;
    justify-content: space-between;
    margin: 25px 0;
    font-weight: 600;
}

.calendar-nav a {
    text-decoration: none;
}

h1.review {
    color: #333333;
    font-weight: normal;
    font-family: 'Open Sans', sans-serif;
	line-height: 1.2;
	padding: 5px 0 0;
    font-size: 32px;
}

/* ============================= */
/* FILTER TAGS */
/* ============================= */

.calendar-filter {
    margin: 20px 0 40px 0; /* espace au-dessus et avant le grid */
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    padding: 8px 14px;
    border-radius: 6px;
    background: #f2f2f2;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.filter-tag:hover {
    background: #e6e6e6;
}

.filter-tag.active {
    background: #222;
    color: #fff;
    border-color: #222;
}

.filter-tag.disabled {
    background: #f7f7f7;
    color: #bbb;
    border-color: #eee;
    cursor: default;
    pointer-events: none;
}

/* ============================= */
/* FILTER */
/* ============================= */

/* Wrapper */
.calendar-filter-wrapper {
    margin: 20px 0 40px 0;
}

/* Desktop visible par défaut */
.desktop-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ============================= */
/* MOBILE DROPDOWN PREMIUM */
/* ============================= */

.calendar-filter-wrapper .mobile-filter {
    display: none;
}

.select-wrapper {
    position: relative;
}

.mobile-filter select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border-radius: 30px; /* pill */
    border: 1px solid #ddd;
    font-size: 14px;
    background: #fff;
    appearance: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.mobile-filter select:focus {
    outline: none;
    border-color: #222;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

/* Icône ▾ */
.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 14px;
    color: #666;
}

/* Responsive switch */
@media screen and (max-width: 991px) {

    .calendar-filter-wrapper .desktop-filter {
        display: none !important;
    }

    .calendar-filter-wrapper .mobile-filter {
        display: block !important;
        width: 100%;
    }

}

/* ============================= */
/* TAGS ANIMATION */
/* ============================= */

.filter-tag {
    padding: 8px 16px;
    border-radius: 6px;
    background: #f2f2f2;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    transform: translateY(-2px);
    background: #e9e9e9;
}

.filter-tag.active {
    background: #222;
    color: #fff;
    border-color: #222;
}

/* ============================= */
/* GRID FADE */
/* ============================= */

.album-grid {
    animation: fadeInGrid 0.4s ease;
}

@keyframes fadeInGrid {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FORCE MOBILE FILTER SWITCH */

@media screen and (max-width: 1200px) {

    body .calendar-filter-wrapper .desktop-filter {
        display: none !important;
    }

    body .calendar-filter-wrapper .mobile-filter {
        display: block !important;
    }

}

/* ============================= */
/* ALIGNER DATE EN BAS */
/* ============================= */

.album-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.album-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.album-date {
    margin-top: auto;
}

/* ============================= */
/* ANALYZER */
/* ============================= */

.analyzer-block {
    position: relative;
    text-align: center;
}

.analyzer-image-wrapper {
    position: relative;
    display: inline-block;
}

.analyzer-image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================= */
/* ACTION BUTTONS */
/* ============================= */

.analyzer-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
	flex-direction: column;
    gap: 10px;
}

.analyzer-actions a {
    background: rgba(0, 0, 0, 0.65);
    padding: 2px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;

    /* Supprime tout style global du thème */
    border: none;
    outline: none;
    box-shadow: none;
}

.analyzer-actions a:hover {
    background: #289dcc;
    transform: scale(1.08);
}

.analyzer-actions a:focus {
    outline: none;
    box-shadow: none;
}

.analyzer-actions img {
    width: 24px;
    height: 24px;
    display: block;
}

/* ================================
   BLOC FILTRE (desktop + mobile)
================================ */
.archive-filtre {
    background: #f5f5f5;
    padding: 12px 15px;
    border-radius: 10px;
    margin-top: 15px;
	margin-bottom: 20px;
}

/* layout interne */
.filtre-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* label */
.filtre-label {
    font-size: 14px;
    color: #555;
}

/* dropdown */
.select-wrapper {
    position: relative;
}

#filtre-annee {
    appearance: none;
    padding: 8px 35px 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 14px;
    cursor: pointer;
    min-width: 140px;
}

/* flèche */
.select-wrapper::after {
    content: "▾";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
    font-size: 12px;
}

/* ================================
   MOBILE
================================ */
@media (max-width: 768px) {

    .filtre-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filtre-label {
        font-size: 13px;
    }

    #filtre-annee {
        width: 100%;
    }
}

/* Titres */
.ttgenre {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin: 10px 0 15px;
}

/* Wrapper global (style / région) */
.genres-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* Mobile */
@media (max-width: 768px) {
  .genres-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Grille interne */
.widget .genre-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* Cartes */
.widget .genre-card {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 18px 10px;
  border-radius: 10px;

  background: linear-gradient(135deg, #289dcc, #277c9c);
  color: #fff;

  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;

  box-shadow: 0 4px 10px rgba(0,0,0,0.1);

  transition: all 0.25s ease;
}

/* Hover */
.widget .genre-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, #1c6f8c, #155a70);
}

/* Carte pleine largeur (optionnel) */
.genre-card.full {
  grid-column: span 2;
}


h3.related {
	color: #ffffff;
}


/* ==========================================================
   A CHECKER
   ========================================================== */

/*
 * Sélecteurs conservés volontairement en fin de fichier
 * car leur utilisation actuelle n'a pas été démontrée
 * dans les templates ARPOZ vérifiés.
 */

.rip {
	font-size: 10pt; 
	line-height: 2em;
}

.small {font-size: 13px !important;}
