/*
Theme Name: nun theme
Theme URI: nundesign.fr
Description: Hello Elementor Child Theme
Author: nun - Vincent Lamarche
Author URL: nundesign.fr
Template: hello-elementor
Version: 1.0.0
License: GNU General Public License v2 or later
License URL: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hello-elementorchild
*/



.elementor-menu-cart__wrapper .elementor-menu-cart__container{overflow:visible;}
.elementor-menu-cart__container{background-color:transparent!important;}

#content{padding-top:100px;}

.elementor-kit-68 a{color:#222;}
.elementor-kit-68 h3{font-size:1.8rem; line-height:1.8rem;}
.elementor-kit-68 h1, .elementor-kit-68 h2{color:#000; margin-bottom:10px; height:auto;}

.widget_shopping_cart_content li {list-style-type: none;}
.widget_shopping_cart_content ul{padding-inline-start: 0px;}

.wc-block-product-filters{font-family:"carolineale";}

.woocommerce-mini-cart__buttons a, a.wc-forward, a.checkout{margin-right:10px; padding:10px; background:transparent; border:solid 1px #CCC; transition:background 0.5s ease, color 0.5s ease;}
.woocommerce-mini-cart__buttons a:hover, a.wc-forward:hover, a.checkout:hover;{background:#B87757; color:#FFF; border:solid 1px #B87757;}


.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button{margin-right:10px; padding:10px; background:transparent; border:solid 1px #CCC; transition:background 0.5s ease, color 0.5s ease;}
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button:hover;{background:#B87757; color:#FFF; border:solid 1px #B87757;}
.product_list_widget li {margin-bottom:20px;}

.woocommerce ul.cart_list li img, .woocommerce ul.product_list_widget li img, .attachment-woocommerce_thumbnail, .size-woocommerce_thumbnail{width:40px;}

.woocommerce-cart .elementor-kit-68 a{color:#FFF;}

body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link){text-decoration:none;}
.wc-block-cart__submit-container{border:solid 1px #B87757; color:#B87757; transition:background 0.5s ease;}
.wc-block-components-button__text{color:#B87757; transition:color ease 0.5s; font-size:20px;}
.wc-block-cart__submit-button{background:transparent;}

.wc-block-components-checkout-place-order-button:hover .wc-block-components-checkout-place-order-button__text{color:#FFF;}

.wc-block-cart__submit-container:hover{background:#B87757; color:#FFF;}
.wc-block-cart__submit-container:hover .wc-block-components-button__text{color:#FFF!important;}

.elementor-1169 .elementor-element.elementor-element-6a09c553.elementor-wc-products .added_to_cart{margin-left:15px;}

.alignwide{padding:0; margin:0;}

.news-block h2{color:#FFF;}
h3.wc-block-components-product-name {font-size:1.2rem; line-height:1.2rem;}

.woocommerce-checkout h1, .woocommerce-cart h1{margin-bottom:40px;}

button, [type=submit], [type=button]{border:1px solid #B87757; background:transparent; transition: background 0.5s ease; color:#B87757;}
button:hover, button:focus, [type=submit]:hover, [type=submit]:focus, [type=button]:hover, [type=button]:focus{border:1px solid #B87757; background:#B87757; color:#FFF;}

.wc-block-cart__empty-cart__title.with-empty-cart-icon:before{width:5em;}

.elementor-1169 .elementor-element.elementor-element-6a09c553.elementor-wc-products ul.products li.product .button:hover{border:1px solid #B87757; background:#B87757; color:#FFF;}

.custombutton submit{color:#FFF;}
.custombutton submit:hover{background:#FFF; color:#000;}

.woocommerce-error, .woocommerce-info, .woocommerce-message{background:#FFF;}


#nun-lightbox-wrapper {
    position: relative;
    overflow: hidden;
}

#nun-lightbox-img {
    transition: transform 0.35s ease, opacity 0.35s ease;
}

#news a{color:#FFF;}
#news a:hover{color:#B87757;}


h2.wc-block-cart__empty-cart__title {font-size:15px; text-align:left;}
.wp-block-woocommerce-empty-cart-block a{text-decoration: none;}
.wp-block-woocommerce-empty-cart-block .wp-block-button a {background:transparent; border:solid 1px #CCC; color:#B87757; text-decoration: none; transition: color ease 0.5s, background ease 0.5s;}
.wp-block-woocommerce-empty-cart-block .wp-block-button a:hover {background:#B87757; color:#FFF; text-decoration: none;}
.wc-block-cart__empty-cart__title.with-empty-cart-icon:before {margin:0 0 2em;}


/* ===========================
   PÉDAGOGIES – ARCHIVE GRAPHIC GRID
   =========================== */

.pedagogies-archive.wrapper {
  width: 100%;
  max-width: 100%;
  padding: 8rem 5.5vw 8rem 5.5vw;
}

.pedago-archive-inner {
  max-width: 1600px;
  margin: 0 auto;
}

.pedago-archive-inner .pedago-title-page {
  white-space: nowrap;
  margin: 0 0 4rem;
  line-height: 0.9;

  /* Taille fluide calée sur la largeur utile (max 1600px) */
  font-size: calc(min(100vw, 1600px) / 2);
}


.pedago-filters {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e3e3e3;
}

.pedago-filters-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
  margin-top: 0.8rem;
}

.pedago-filter-field {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pedago-filter-field span {margin-bottom: 5px;
}

.pedago-filter-field select,
.pedago-filter-field input {
  margin-top: 0.3rem;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 1rem;
  outline: none;
  background: #fafafa;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pedago-filter-field select:focus,
.pedago-filter-field input:focus {
  border-color: #111;
  background-color: #fff;
}



/*** PEDAGO ARCHIVE ***/


/* ===========================
   PÉDAGOGIES – ARCHIVE GRAPHIC GRID
   =========================== */


.pedago-archive-inner {
  max-width: 1600px;
  margin: 0 auto;
}

/*** PEDAGO ARCHIVE ***/

/* Grille simple (sans masonry JS) */
.pedago-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.6rem;
  grid-auto-rows: auto;
  grid-auto-flow: row;
}

/* Largeurs (on garde tes spans) */
.pedago-card--w25  { grid-column: span 3; }   /* ≈ 25 % */
.pedago-card--w33  { grid-column: span 4; }   /* ≈ 33 % */
.pedago-card--w50  { grid-column: span 6; }   /* 50 %  */
.pedago-card--w66  { grid-column: span 8; }   /* ≈ 66 % */
.pedago-card--w100 { grid-column: span 12; }  /* 100 % */


.pedago-card-inner{background:#FFF; box-shadow: 10px 10px 20px rgba(0,0,0,0.05);}
.pedago-card-content{padding:40px;}


/* Sécurité : aucune position chelou */
.pedago-card,
.pedago-card-inner,
.pedago-thumb {
  position: static;
}

/* Vignette */
.pedago-thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}





/* ===========================
   PÉDAGOGIE – SINGLE
=========================== */

.single-pedago.wrapper,
.single-pedagogie.wrapper {
  width: 100%;
  max-width: 100%;
  padding: 0;
  box-sizing:border-block;
}

.pedago-article-inner {
  max-width: 100%;
  margin: 0 auto;
}


/* Titre : il doit OCCUPER sa hauteur */
h1.pedago-main-title {
  position: relative !important;
  display: block;
  font-size: 9rem;
  color:#FFF;
  margin: 0 0 3rem;
  line-height: 0.87;
}

/* Meta ligne sous le titre, plus étroite */
.pedago-meta-line {
  position: relative;
  display: block;
  font-size: 0.8rem;
  color: #CCC;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 1.8rem;
}

/* Gros chapeau typographique façon magazine */

.pedago-chapeau-leading {
  font-size: 2rem;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0em;
  margin-top:80px;
}

/* Layout 2 colonnes : contenu + sommaire étroit */

.pedago-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 2fr); /* ~80% / 20% */
  gap: 5rem;
  padding:6%;
}

.pedago-main-thumb {
  margin: 0 0 1.8rem;
}

.pedago-main-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.pedago-content {
  font-size: 1.4rem;
  line-height: 2rem;
  padding:80px;
  background:#FFF;
  box-shadow:0px 0px 8px rgba(0, 0, 0, 0.05);
}

.pedago-content p {
  margin-bottom: 1rem;
}

/* Titres de contenu : assurés de prendre de la place */

.pedago-content h1,
.pedago-content h2,
.pedago-content h3,
.pedago-content h4,
.pedago-content h5,
.pedago-content h6 {
  position: static !important;
  display: block;
  clear: both;
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
}

.pedago-content h2 {
  font-size: 3.5rem;
  margin-top:3.3rem;
}

.pedago-content h3 {
  font-size: 2.5rem;
  margin-top:2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Sidebar / sommaire */

.pedago-sidebar {
  position: relative;
}

.pedago-toc {
  position: sticky;
  top: 10rem;
  padding: 1.1rem 1.0rem 1.3rem;
  border-radius: 5px;
  background: #FFF;
  border: 1px solid #ececec;
  font-size: 1rem;
}

.pedago-toc-title {
  font-size: 0.7rem;
  letter-spacing: 0em;
  margin: 0 0 0.8rem;
}

.pedago-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pedago-toc-link {
  display: block;
  font-size: 1rem;
  padding: 0.22rem 0;
  color: #555;
  text-decoration: none;
  line-height: 1.4;
}

.pedago-toc-link.is-active {
  color: #000;
  font-weight: 600;
}

/* ========= Responsive ========= */

/* Viewport plus petit : contenu ~75%, sommaire ~25% */

@media (max-width: 1024px) and (min-width: 720px) {
  .pedago-layout {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); /* 75 / 25 */
    gap: 2rem;
  }
}

/* Mobile : une seule colonne, sommaire passe au-dessus */

@media (max-width: 719px) {
  .pedago-layout {
    grid-template-columns: 1fr;
  }

  .pedago-sidebar {
    order: -1;
    margin-bottom: 1.6rem;
  }

  .pedago-toc {
    position: static;
    max-width: 25%; /* <= 25% de la largeur visuelle si tu limites via width du parent */
  }

  .single-pedago.wrapper,
  .single-pedagogie.wrapper {
    padding-inline: 1.1rem;
  }
}


/* ===== SINGLE PÉDAGOGIE – CONTAINER ===== */

.single-pedago.wrapper,
.single-pedagogie.wrapper {
  width: 100%;
  max-width: 100%;
}

.pedago-article-inner {
  max-width: 100%;
  margin: 0 auto;
}

/* ===== HERO BANDEAU ===== */

/* ===== HERO STICKY PLEIN ÉCRAN ===== */

.pedago-header {
  margin-bottom: 0;
}

/* Container global : plus haut que 100vh pour créer l'effet "pinned" */
.pedago-hero {
  position: relative;
  width: 100%;
  height: 100vh;             /* tu peux monter à 200vh si tu veux que l'image reste plus longtemps */
  margin: 0;
  overflow: visible;
}

/* Bloc qui contient l'image : sticky */
.pedago-hero-media {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

.pedago-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Voile sombre sur l'image */
.pedago-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,0.05) 0, transparent 30%),
              linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.85));
  pointer-events: none;
}

/* Bandeau flouté + sombre qui vient se poser sur l'image */
.pedago-hero-band {
  position: relative;
  z-index: 2;
  height:100vh;
  max-width:100vw;
  margin: -100vh auto;
  padding: 5rem 10rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

/* Ajustements typographiques dans le bandeau */
.pedago-meta-line {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 0.8rem;
  opacity: 0.9;
}

.pedago-main-title {
  font-size: 3.4rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.8rem;
  line-height: 1.08;
  color: #fff;
}

.pedago-chapeau-leading {
  font-size: 1.6rem;
  line-height: 1.7;
  font-style: italic;
  margin: 0;
}

/* Fallback sans image */
.pedago-hero--noimg {
  height: auto;
  padding: 6rem 0 3rem;
  background: #111;
}

.pedago-hero--noimg .pedago-hero-media {
  display: none;
}

.pedago-hero--noimg .pedago-hero-band {
  margin: 0 auto;
}

/* ===== Layout contenu + sommaire sous le hero ===== */

.pedago-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 2fr);
  gap: 3rem;
  padding: 10vw 8vw;
}

.pedago-content {
  font-size: 1.4rem;
  line-height: 1.7;
}






/* Meta ligne dans le hero */
.pedago-meta-line {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 0.6rem;
  opacity: 0.9;
}

/* Titre : blanc + mix-blend-difference */
.pedago-main-title {
  font-size: 3rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.7rem;
  line-height: 1.1;
  color: #fff;
  mix-blend-mode: difference;
}

/* Gros chapeau typographique */
.pedago-chapeau-leading {
  font-size: 1.4rem;
  line-height: 1.8;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.03em;
}

/* Fallback hero sans image */
.pedago-hero--noimg {
  background: #111;
}

/* ===== IMAGE PLEINE LARGEUR SOUS LE HERO ===== */

.pedago-hero-image {
  margin: 0 0 2.5rem;
}

.pedago-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== LAYOUT CONTENU + SOMMAIRE ===== */

.pedago-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 2fr); /* ~80% / 20% */
  gap: 3rem;
}

.pedago-content {
  font-size: 1.5rem;
  line-height: 1.5;
}

.pedago-content p {
  margin-bottom: 1rem;
}

/* Sidebar / sommaire très étroit */

.pedago-sidebar {
  position: relative;
}


.pedago-toc-title {
  font-size: 0.4rem;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}

.pedago-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pedago-toc-link {
  display: block;
  font-size: 0.85rem;
  padding: 0.22rem 0;
  color: #555;
  text-decoration: none;
  line-height: 1.4;
}

.pedago-toc-link.is-active {
  color: #000;
  font-weight: 600;
}

.pedago-card--w25 h2.pedago-card-title{font-size:2.1rem; line-height:2rem; margin-bottom:1.4rem;}
.pedago-card--w33 h2.pedago-card-title{font-size:2.6rem; line-height:2.7rem; margin-bottom:1.8rem;}
.pedago-card--w50 h2.pedago-card-title{font-size:3rem; line-height:2.9rem; margin-bottom:2.2rem;}
.pedago-card--w66 h2.pedago-card-title{font-size:4rem; line-height:3.9rem; margin-bottom:3rem;}
.pedago-card--w100 h2.pedago-card-title{font-size:5.6rem; line-height:5.5rem; margin-bottom:4rem;}


.pedago-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%; /* permettra d’appliquer une hauteur harmonisée */
}

.pedago-card-equalizer {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}


/* ===== Responsive ===== */

/* Viewport moyen : contenu ~75%, sommaire 25% */

@media (max-width: 1024px) and (min-width: 720px) {

  .pedago-hero-band {
    margin-top: -35vh;
    padding: 2rem 2rem;
  }

  .pedago-main-title {
    font-size: 2.6rem;
  }

  .pedago-layout {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 2rem;
    padding-inline: 4vw;
  }
}

@media (max-width: 719px) {
  .single-pedago.wrapper,
  .single-pedagogie.wrapper {
    padding-inline: 1.1rem;
  }

  .pedago-hero-media {
    height: 90vh;
  }

  .pedago-hero-band {
    margin-top: -30vh;
    padding: 1.6rem 1.4rem;
    border-radius: 18px;
  }

  .pedago-main-title {
    font-size: 2rem;
  }

  .pedago-layout {
    grid-template-columns: 1fr;
    padding-inline: 1.1rem;
  }

  .pedago-sidebar {
    order: -1;
    margin-bottom: 1.6rem;
  }

  .pedago-toc {
    position: static;
  }
}


/* === HERO PÉDAGOGIE : IMAGE FIXE + BANDEAU QUI GLISSE === */

.pedago-header {
  margin-bottom: 0;
}

/* Container global : plus grand que 100vh pour que l'image reste "pinned" */
.pedago-hero {
  position: relative;
  width: 100%;
  height: 100vh;            
  margin: 0;
  overflow: visible;
  text-align:center;
}

/* L'image de cover qui occupe tout l'écran et reste fixée au scroll */
.pedago-hero-media {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

.pedago-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Voile doux au-dessus de l'image (optionnel) */
.pedago-hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.65));
  z-index: 2;
}


/* Méta, titre, chapo dans le bandeau */
.pedago-meta-line {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.9;
  margin: 0 0 0.8rem;
}

.pedago-main-title {
  font-size: 3.4rem;
  line-height: 1.05;
  letter-spacing: 0.06em;
  margin: 0 0 0.7rem;
}

.pedago-chapeau-leading {
  font-size: 1.6rem;
  line-height: 1.7;
  font-style: italic;
  margin: 0;
}

/* Fallback si pas d'image */
.pedago-hero--noimg {
  height: auto;
  padding: 6rem 0 3rem;
  background: #111;
}

.pedago-hero--noimg .pedago-hero-media {
  display: none;
}

.pedago-hero--noimg .pedago-hero-band {
  margin: 0 auto;
}

/* Layout contenu sous le hero (pour rester nickel) */
.pedago-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 2fr);
  gap: 3rem;
  padding: 7.5vw 7.5vw;
}

/* === Responsive === */

@media (max-width: 1024px) {
  .pedago-hero {
    height: 170vh;
  }

  .pedago-hero-band {
    margin: calc(100vh - 50vh) auto 0;
    padding: 2rem 2rem;
  }

  .pedago-main-title {
    font-size: 2.6rem;
  }

  .pedago-layout {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 2rem;
    padding-inline: 4vw;
  }
}

@media (max-width: 720px) {
  .single-pedago.wrapper,
  .single-pedagogie.wrapper {
    padding-inline: 1.1rem;
  }

  .pedago-hero {
    height: 150vh;
  }

  .pedago-hero-band {
    margin: calc(100vh - 55vh) auto 0;
    padding: 1.6rem 1.4rem;
    border-radius: 18px;
  }

  .pedago-main-title {
    font-size: 2.1rem;
  }

  .pedago-layout {
    grid-template-columns: 1fr;
    padding-inline: 1.1rem;
  }

  .pedago-sidebar {
    order: -1;
    margin-bottom: 1.6rem;
  }
}





/* Bandeau de filtres */
.nun-cat-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.nun-cat-filter-btn {
    border: solid 1px #AAA;
    padding: 0.8rem 1.3rem;
    border-radius: 999px;
    background: transparent;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.nun-cat-filter-btn:hover {
    background: #B87757;
}

.nun-cat-filter-btn.is-active {
    background: #111;
    color: #fff;
    border-color:#111;
}

/* Grille produits (Elementor ou WooCommerce) */
.woocommerce ul.products,
.elementor-products-grid {
    opacity: 1;
    transition: opacity 0.2s ease;
}

/* Fade out */
.nun-products-fade-out {
    opacity: 0;
}

/* Fade in (on repasse juste à 1 avec la même transition) */
.nun-products-fade-in {
    opacity: 1;
}



@media (min-width: 768px) and (max-width: 1279px) {
  .pedago-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

.pedago-card--w33  { flex: 0 0 calc(33.333% - (1.6rem / 3)); }
.pedago-card--w50  { flex: 0 0 calc(50% - (1.6rem / 2)); }
.pedago-card--w66  { flex: 0 0 calc(66.666% - (1.6rem / 3)); }
.pedago-card--w100 { flex: 0 0 100%;}
}


/* ===========================
   PÉDAGOGIES – ARCHIVE – FLEX ROWS
   =========================== */

.pedagogies-archive.wrapper {
  width: 100%;
  max-width: 100%;
  padding: 4rem 5vw 4rem 5vw;
}

.pedago-archive-inner {
  max-width: 1600px;
  margin: 0 auto;
}

/* Conteneur global */
.pedago-grid {
  display: block;
}

/* Une ligne = un flex row */
.pedago-row {
  display: flex;
  gap: 1.6rem;
  margin-bottom: 1.6rem;
}

/* Les cartes prennent la même hauteur grâce à flex */
.pedago-card {
  display: flex;
}

.pedago-card-inner {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.pedago-card-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.10);
}

/* Image */
.pedago-thumb img {
  display: block;
  width: 100%;
  height: auto;
}


/* Largeurs (desktop) */

.pedago-card--w33  { flex: 0 0 calc(33.333% - (1.6rem / 3)); }
.pedago-card--w50  { flex: 0 0 calc(50% - (1.6rem / 2)); }
.pedago-card--w66  { flex: 0 0 calc(66.666% - (1.6rem / 3)); }
.pedago-card--w100 { flex: 0 0 100%;}

/* Responsive tablette */
@media (max-width: 1024px) and (min-width: 720px) {
  .pedago-row {
    flex-wrap: wrap;
  }

  .pedago-card--w100 { flex-basis: 100%; }
  .pedago-card--w66  { flex-basis: 100%; } /* plus lisible */
  .pedago-card--w50  { flex-basis: 50%;  }
  .pedago-card--w33  { flex-basis: 50%;  }
}

/* Mobile : une carte par ligne */
@media (max-width: 719px) {
  .pedago-row {
    flex-direction: column;
  }

  .pedago-card--w100,
  .pedago-card--w66,
  .pedago-card--w50,
  .pedago-card--w33 {
    flex-basis: 100%;
  }
}


/* Filtres pédagogies : alignés comme sur la boutique */

.pedago-filters-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
}

/* Catégorie = largeur auto, Recherche = s’étire */
.pedago-filter-field {
  flex: 0 0 auto;
  min-width: 200px;
}

.pedago-filter-field.pedago-filter-search {
  flex: 1 1 auto;
}

/* Sur mobile : ils repassent l’un sous l’autre */
@media (max-width: 719px) {
  .pedago-filters-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .pedago-filter-field,
  .pedago-filter-field.pedago-filter-search {
    flex: 1 1 auto;
    width: 100%;
  }
}



/* Transition de la grille pédagogies (fade) */

.pedago-grid {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* En cours de filtrage : fade out */
.pedago-grid.is-fading-out {
  opacity: 0;
}

/* Retour : fade in */
.pedago-grid.is-fading-in {
  opacity: 1;
}



/* Filtres pédagogies : côte à côte, avec la recherche qui s'étire */
.pedago-filters-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
}

.pedago-filter-field {
  flex: 0 0 auto;
  min-width: 200px;
}

.pedago-filter-field.pedago-filter-search {
  flex: 1 1 auto;
}

@media (max-width: 719px) {
  .pedago-filters-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .pedago-filter-field,
  .pedago-filter-field.pedago-filter-search {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* === FADE PÉDAGOGIES === */
/* On cible précisément la grille de la page "Apprendre" pour être sûr
   que rien d'autre ne casse la transition. */

.pedagogies-archive.wrapper #pedago-list {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* État en cours de filtrage : on baisse l'opacité */
.pedagogies-archive.wrapper #pedago-list.is-fading {
  opacity: 0;
}
