/******************************************************************
Theme Name: Croft Collection v2
Theme URI: http://www.themble.com/bones
Description: 
Author URI: http://www.croftcollection.com
Version: 1.7
Tags: fluid-layout, responsive-layout, accessibility-ready, translation-ready, microformats, rtl-language-support

License: WTFPL
License URI: http://sam.zoy.org/wtfpl/

******************************************************************/
/* -------------------------
   Styles test HP V2.5 2025
-------------------------- */

#header {
  width : 840px; 
  height :185px!important; 
  background:transparent url(styles/defaut/bkg-2025-sacredartefact-wolog.jpg) center center no-repeat!important;
  background-color:#F7F7F7;
  color:#000;
}

body.home #milieu{
  background-color: #e5e5e5;
  background-image:none;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
}

.home-wrapper {
  max-width: 840px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

/* Liens */

.home-wrapper a {
  color: #6D6D6D;  
  text-decoration: underline;
}

.home-wrapper a:hover {
  text-decoration: none;
}

/* Titres */

.home-wrapper h1 {
  font-size: 20px;
  margin: 0 0 10px;
}

.home-wrapper h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 500;
    font-size:18px;
    margin: 25px 0 15px;
    background-color: #666;
    padding: 5px 0 5px 15px;
    color: white;
}

.home-wrapper h3 {font-size: 15px;margin: 8px 0 6px;}

/* Paragraphes */

.home-wrapper p {
  line-height: 1.5;
  margin: 0 0 10px;
}
.home-row:last-child{margin-bottom:0}
.home-row-footer {
  margin-top: 18px;
  text-align: center;
}

.card,
.news-featured,
.card-news {
  position: relative;
}

/* --- Ruban catégorie --- */
.ribbon-categorie {
  position: absolute;
  top: 60px;
  left: -35px;
  background:#ddd;  
  color: #333;  
  font-size: 12px;
  font-family:arial, helvetica, sans-serif ;
  font-weight: 600;
  padding: 4px 40px;  
  text-transform: uppercase;
  text-align: center;
  transform: rotate(-45deg);
  transform-origin: left top;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  pointer-events: none;
  z-index: 20;
}


/* -------------------------
   HERO / INTRO
-------------------------- */

.home-hero {margin-bottom: 10px;display: flex;flex-direction: row;}
.home-hero h1{color:#444}
.home-hero div p{font-size: .8em;text-align: left;}
.home-hero div a{position:relative;color: #333;text-decoration: none;font-weight: 600;padding-bottom: 3px;}
.home-hero div a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height:1px;
  background: #6D6D6D;
  transition: width 0.25s ease;
}
.home-hero div a:hover:after {width: 100%;}
.home-hero div a:hover{color: #333;}

.home-hero > *:first-child {
  flex: 1 1 auto;
  margin-right: 20px;
}

.home-hero .home-shortcuts-block {
  flex: 0 0 240px;
  margin-left: auto;
}


/* Raccourcis catégories */

/* --- Explorer Croft Collection (hero right) --- */

.home-shortcuts-block {
  background:#f9f9f9;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  padding: 15px 10px;
  box-sizing: border-box;
  width: 100%;
  max-width: 240px;
}

.home-shortcuts-block h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  text-align: center;
}

.shortcuts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shortcuts-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f7f7f7;
  padding:4px 10px;
  border-radius: 4px;
  text-decoration: none;
  color: #444;
  font-size: 12px;
  border: 1px solid #e8e8e8;
}

.shortcuts-list li a:hover {
  background: #e5e5e5;
}
.shortcuts-list li a:after{display:none}


/* -------------------------
   STRUCTURE DE LIGNES / COLONNES
-------------------------- */

.home-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.home-col {flex: 1;min-width: 260px;}

/* Ligne spécifiques */

.home-articles-next {align-items: flex-start;}
.home-col-articles { flex: 2;}
.home-col-next { flex: 1;}

/* Sections pleines largeur */

.home-section { margin-bottom: 30px;}

/* -------------------------
   Cartes génériques
-------------------------- */

.card,
.home-row .card {
  background: #ffffff;
  border: 1px solid #e1e1e1;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 6px;
  overflow: hidden;
}
.card:hover,.home-row .card:hover {background:#f5f5f5;}

.card figure {margin: 0 0 8px;}

.card img {
    display: block;
    width: auto;
    height: auto;
    max-height: 150px;
    max-width: 100%;
    margin: 0 auto;
}

.card-meta {font-size:.75em;color: #777;
    border-bottom: 1px #e5e5e5 solid;
    padding-bottom: 5px;}


.card-link {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    position: relative;
}

.card:hover .card-link:after,
.card-news:hover .card-link:after,
.card-link:hover .card-link::after {
  transform: translateX(3px);
}
.card-link::after {
  content: "›";              
  font-size: 15px;
  transform: translateX(0);
  transition: transform 0.2s ease;
}


/* Grille de cartes */

.card-grid {display: grid; gap: 16px;}


.home-col-articles-next h2{margin-top:10px;}



.card-article a{text-decoration: none;color: #333;}


/* -------------------------
   PROCHAINE SORTIE 
-------------------------- */

.next-carousel {position: relative;}
.next-carousel .card{height: 276px;}
.next-carousel a{text-decoration: none;color:#333}
.next-carousel h3{text-align: center;margin-top:0}
.next-carousel .card-pic {
    width: auto!important;
    max-height: 150px!important;
    margin: 0 auto!important;
}

.next-carousel {position: relative;overflow: hidden;}

.next-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  font-size: 12px;
  justify-content: center;
}

.meta-separator {color: #666;font-weight: 600;}

/* Badge inline */
.badge-sortie,
.badge-sortie-inline {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  text-transform: uppercase;
  background: #ededed;
  color: #333;
}

.next-date {color: #555;}



.badge-sortie-inline,
.badge-sortie {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.next-date {color: #555;}

.card-next {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
}

.card-next.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.badge-sortie {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #333;
}

.badge-sortie--preco {
  background: #c0392b;
}

.badge-sortie--nouveau {
  background: #2980b9;
}

.badge-sortie--dispo {
  background: #f39c12;
}

.next-carousel .card-next figure {
  position: relative;
}

/* --- Style des flèches --- */
.next-prev,
.next-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  background: rgba(0,0,0,0.45);
  border-radius: 50%;
  color: #ffffff;
  font-size: 22px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, background 0.25s ease; z-index: 10;
}

.next-prev {left: 12px;}
.next-next {right: 12px;}
.next-carousel:hover .next-prev,
.next-carousel:hover .next-next {opacity: 1;pointer-events: auto;}
.next-prev:hover,.next-next:hover {background: rgba(0,0,0,0.75);}

@media (max-width: 768px) {
  .next-prev,
  .next-next {
    display: none;
  }
}

/* Conteneur des bullets */
.next-carousel-dots {text-align: center;}

/* Chaque bullet */
.next-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 4px;
  border-radius: 50%;
  background: #aaa;
  cursor: pointer;
  transition: background 0.25s ease;
}

/* Bullet actif */
.next-dot.active {background: #222;}


/* -------------------------
   BLOCS NEWS (7 cartes)
-------------------------- */

/* News mise en avant */

.card-featured {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-bottom: 18px;
}

.card-featured .card-body {
  display: flex;
  flex-direction: column;
}

.card-featured figure {
  flex: 0 0 220px;
}
.news-featured {
  display: block;     /* annule le flex de .card */
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 25px;

  border-bottom: 1px #ccc solid;
    padding-bottom: 5px;
}

/* Titre + meta */
.news-featured-header h3 {
  font-size: 22px;
  margin: 0 0 6px;
}

.news-featured-header h3 a {
  text-decoration: none;
  color: #444;
}

.news-meta {
  font-size: 13px;
  color: #555;
  margin-bottom: 12px;
}

/* Image de la news mise en avant – toujours entière */
.news-featured-figure {
  margin: 10px 0 15px;
  max-height: 300px;   
  overflow: hidden; 
  text-align: center;
}

.news-featured-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  object-position: center;
  display: block;
  max-height: 300px;
}


/* Contenu (chapo + article) */
.news-featured-main {
  margin-bottom: 18px;
}

.news-chapo {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
  color: #333;
}

.news-content p {
  margin-bottom: 12px;
  line-height: 1.55;
  color: #444;
  font-size: .85em;
}

/* Prochaine sortie (si activé) */
.news-prochaine-sortie {
  font-size: 13px;
  background: #f1f1f1;
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 10px;
  display: inline-block;
}

/* Footer : source + partage */
.news-featured-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid #e4e4e4;
  padding-top: 12px;
}

.news-source {
  margin: 0;
}

.news-source a {
  color: #444;
  text-decoration: none;
  font-size:1.25em;
}

.news-share {
  font-size:.85em;color:#555;
}

.news-share-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 8px;
}

.news-share-list a {
  font-size: 12px;
  text-decoration: none;
  color: #555;
}

.news-share-list a:hover {
  color: #000;
}
.social-icons {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #888;
  font-size: 13px;
  color: #888;
  text-decoration: none;
  background: #fff;
}

.social-icons a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-icons a:hover {
  background: #888;
  color: #ffffff;
}
.card-grid.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card-news {
  background: #fff;
  padding: 12px;
  border-radius: 6px;
}
.card-news:hover h3{text-decoration: none;}

.card-news figure {
  margin: 0 0 10px;
  max-height: 160px;
  overflow: hidden;
  border-radius: 4px;
}

.card-news img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;object-position: top center;
}

.card-news h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}

.card-news .card-meta {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

.card-news .card-link {
  margin-top: 6px;
  margin-bottom:0;
}

.home-news .card-news a {
  text-decoration: none;
}

.home-news .card-news a:hover {
  text-decoration: none;
}

.home-news .card-news h3 {

    font-size: .95em;
    font-weight: 600;
    color: #222;
}


.home-news .card-news .news-chapo {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
}


@media (max-width: 900px) {
  .card-grid.card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .card-grid.card-grid-3 {
    grid-template-columns: 1fr;
  }

  .news-featured-figure {
    max-height: 200px;
  }
}
/*********************************************
 * ACTUALITÉS TR
 *********************************************/

.home-news-tr {margin: 40px 0;}

/* Grille 4 colonnes */
.card-grid-news-tr {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Cartes TR */
.card-news-tr {
  background: #fff;
  border-radius: 6px;
  padding: 10px 12px;
  min-height: 230px;     
  display: flex;
  flex-direction: column;
}

.card-news-tr a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Image */
.card-news-tr figure {
  margin: 0 0 8px;
  max-height: 130px;
  overflow: hidden;
  border-radius: 4px;
}

.card-news-tr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;    
}

.card-meta-tr {
  font-size: 12px;
  color: #555;
  margin: 4px 0 6px;
}

.card-meta-tr strong {
  font-weight: 700;
  color: #333;
}

/* Titre */
.card-news-tr h3 {
  font-size: 14px;
  margin: 0 0 10px;
  color: #222;
  flex-grow: 1; 
}

.home-news-tr .card-news-tr a {
  text-decoration: none;
}

.home-news-tr .card-news-tr a:hover {
  text-decoration: none;
}


/* Responsive */
@media (max-width: 1000px) {
  .card-grid-news-tr {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .card-grid-news-tr {
    grid-template-columns: 1fr;
  }
}



/* -------------------------
   RÉSEAUX + NEWSLETTER
-------------------------- */

.home-social-newsletter .home-col {
  background: #ffffff;
  border: 1px solid #e1e1e1;
  padding: 14px;
}

.home-social-newsletter h2 {margin-top: 0;}

.social-icons {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #888;
  font-size: 13px;
  color: #888;
  text-decoration: none;
}

.social-icons a:hover {
  background: #888;
  color: #ffffff;
}

/* Formulaire newsletter (home + footer) */

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.newsletter-form input[type="email"] {
  flex: 1 1 190px;
  padding: 7px;
  border: 1px solid #cfcfcf;
  font-size: 14px;
  box-sizing: border-box;
}

.newsletter-form button {
  padding: 7px 14px;
  border: none;
  background: #888;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
}

.newsletter-form button:hover {
  background: #ccc;
}

/* -------------------------
   GALERIES – VIGNETTES
-------------------------- */

.home-row.home-piwigo {
  display: block;
}

.home-piwigo .home-row-header {
  margin-bottom: 16px;
}

.card-grid.card-grid-piwigo {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.card-piwigo {
  background: #fff;
  border-radius: 6px;
  padding: 10px;
  box-sizing: border-box;
}

.card-piwigo a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Image */
.card-piwigo figure {
  margin: 0 0 8px;
  max-height: 140px;
  overflow: hidden;
  border-radius: 4px;
}

.card-piwigo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.piwigo-meta {
  margin: 4px 0 6px;
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.card-piwigo h3 {
  font-size: 14px;
  margin: 0;
  color: #222;
    text-align: center;
}
.piwigo-root {
  font-size: 12px;
  font-weight: 600;
  color: #444;
}

.piwigo-parent {
  color: #666;
}

.piwigo-sep {
  color: #999;
}



/* Responsive */
@media (max-width: 1000px) {
  .card-grid.card-grid-piwigo {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .card-grid.card-grid-piwigo {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .card-grid.card-grid-piwigo {
    grid-template-columns: 1fr;
  }
}


/* Boutons génériques */
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding:8px 15px;
  border: 1px solid #d0d0d0;
  background: #f7f7f7;
  color:#6D6D6D;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  text-decoration: none !important;
}

.btn-link:hover {
  background: #e5e5e5;
  border-color: #c4c4c4;
}

.btn-link:after {
    content: "›";
    font-size: 15px;
    transform: translateX(0);
    transition: transform 0.2s ease;
}
card-link:hover .btn-link:after {
    transform: translateX(3px);
}

/* Archives */

.home-archives {
  text-align: center;
  margin-top: 10px;
}


/* -------------------------
   ACCESSIBILITÉ
-------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* -------------------------
   RESPONSIVE
-------------------------- */
/* TABLETTE ONLY */
@media (min-width:880px and max-width: 1023px) {
body.home #conteneur,
body.home #milieu,
body.home #header,
body.home .home-wrapper {
  max-width:840px;
  width: 840px;
  overflow-x: hidden;
}
}

@media (max-width:840px) {
  #conteneur, #header, #milieu{width:100% !important;}
}

/* TABLETTE LARGE ~<= 1024px */
@media (max-width: 1024px) {


html,
body {
  max-width: 100%;
  overflow-x: hidden;
}



#header {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  height: 185px !important;
  background-color: #F7F7F7;
  color: #000;
}


  .home-wrapper {
    padding: 20px 15px 35px;
    box-sizing: border-box;
  }

  /* Grilles un peu moins serrées */
  .card-grid {
    gap: 14px;
  }

  /* Actualités TR : 2 colonnes */
  .card-grid-news-tr {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Piwigo : 3 colonnes */
  .card-grid.card-grid-piwigo {
    grid-template-columns: repeat(3, 1fr);
  }
  
.card-piwigo img{ object-fit: contain;}

  .footer-inner {
    gap: 20px;
  }
}

/* TABLETTE / PETIT ÉCRAN ~<= 900px */
@media (max-width: 900px) {

  /* Derniers articles (2 cartes) : 2 colonnes */
  .card-grid.card-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* News goodies : la mise en avant reste OK,
     on ne touche pas encore trop à la structure */
  .card-featured {
    flex-direction: column;
  }

  .card-featured figure {
    flex: 0 0 auto;
  }
}

/* MOBILE LARGE ~<= 768px */
@media (max-width: 768px) {

  .home-wrapper {
    padding: 15px 10px 30px;
  }

  /* Toutes les "lignes" passent en colonne */
  .home-row {
    flex-direction: column;
  }

  .home-col {
    min-width: auto;
  }


  .home-articles-next {
    align-items: stretch;
  }

  .home-col-articles,
  .home-col-next {
    flex: 1 1 100%;
  }


  .card-grid.card-grid-3 {
    grid-template-columns: 1fr;
  }

  .next-prev,
  .next-next {
    display: none;
  }

  /* Hero en colonne sur mobile */
  .home-hero {
    flex-direction: column;
    gap: 12px;
  }

  .home-hero > *:first-child {
    margin-right: 0;
  }

  .home-hero .home-shortcuts-block {
    max-width: 100%;
    margin-left: 0;
  }

  /* Liste de raccourcis */

#home-shortcuts{display:none;}

  .shortcuts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .shortcuts-list li {
    flex: 1 1 calc(50% - 6px);
  }

  .shortcuts-list li a {
    width: 100%;
    font-size: 12px;
    padding: 5px 10px;
    justify-content: center;
    box-sizing: border-box;
  }


  /* Actualités TR : 2 colonnes */
  .card-grid-news-tr {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Piwigo : 2 colonnes */
  .card-grid.card-grid-piwigo {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-piwigo h3 {
    font-size: 13px;
  }


  .home-social-newsletter .home-col {
    padding: 12px;
  }

  .newsletter-form {
    gap: 6px;
  }

  .newsletter-form input[type="email"],
  .newsletter-form button {
    font-size: 13px;
  }
}

/* MOBILE ~<= 600px */
@media (max-width: 600px) {

  /* Actualités TR : 1 carte par ligne */
  .card-grid-news-tr {
    grid-template-columns: 1fr;
  }

  /* News goodies : 6 cartes en 1 colonne */
  .card-grid.card-grid-3 {
    grid-template-columns: 1fr;
  }

  .news-featured-figure {
    max-height: 200px;
  }

  /* Piwigo : 1 carte par ligne */
  .card-grid.card-grid-piwigo {
    grid-template-columns: 1fr;
  }

  .home-wrapper h1 {
    font-size:2.4vh;
  }

}

/* MOBILE PETIT ~<= 480px */
@media (max-width: 480px) {

  /* Hero : paragraphes plus aérés */
  .home-hero p {
    font-size: 14px;
  }

  .shortcuts-list li {
    flex: 1 1 100%;
  }

  .shortcuts-list li a {
    padding: 6px 12px;
    border-radius: 4px;
  }



  .card,
  .home-row .card {
    padding: 10px;
  }

  .card h3 {
    font-size: 14px;
  }

  .card-piwigo figure {
    max-height: 160px;
  }

  .social-icons {
    justify-content: center;
  }

  .social-icons a {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  /* Newsletter : full width */
  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-form input[type="email"],
  .newsletter-form button {
    width: 100%;
  }

  /* Footer : colonnes empilées */
  .footer-inner {
    flex-direction: column;
  }

  .footer-col {
    min-width: 100%;
  }

  .footer-bottom {
    font-size: 11px;
  }
}
