/*
 Theme Name:   GP Child
 Theme URI:    http://escalesouslesetoiles.fr/
 Description:  Child-theme de GeneratePress
 Author:       Nicolas LOUIS
 Author URI:   http://votre-site.exemple/
 Template:     generatepress
 Version:      1.0.0
*/

/* =========================================
   0. DÉCLARATION DES POLICES CUSTOM
   ========================================= */
@font-face {
  font-family: 'AV Cosmos';
  src: url('fonts/AVCosmos-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Glacial Indifference';
  src: url('fonts/GlacialIndifference-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Glacial Indifference bold';
  src: url('fonts/GlacialIndifference-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.site-footer {
	display: none;
}

.success {
	color:green;
}

.error {
	color:red;
}

html, body {
  background: #141414!important;
}

body:not(.home) {
  background: #F9FBFA!important;
}

/* ---------------------------------------------------
  DECALAGE AUTO SUR LES PAGES AUTRES QUE HOME
--------------------------------------------------- */

/* Déport global pour tout le site sauf la home */
body:not(.home) main{
  padding-top: 150px; /* mieux que margin-top pour éviter les collapses */
}

/* Optionnel: adapte pour mobile */
@media (max-width: 1036px) {
  body:not(.home) main{
    padding-top: 100px;
  }
}

/* ---------------------------------------------------
   1. MASQUER LE TITRE DE LA PAGE « ACCUEIL »
--------------------------------------------------- */
.page-template-default .entry-title,
.page-id-6 .entry-title {
  display: none !important;
}

/* ---------------------------------------------------
   2. SUPPRIMER L’ESPACE PAR DÉFAUT AU-DESSUS DE L’ENTRY-CONTENT
   (pour que le Cover colle entièrement en haut)
--------------------------------------------------- */
.entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ---------------------------------------------------
   3. FORCER LE COVER À DÉMARRER AU BORD SUPÉRIEUR,
   MÊME AVEC L’ADMIN-BAR (connecté)
--------------------------------------------------- */
.wp-block-cover.alignfull {
  margin-top: calc(0px - var(--wp-admin--admin-bar-height)) !important;
}

/* Réinitialiser tout scroll-padding automatique ajouté via admin-bar */
html {
  scroll-padding-top: 0 !important;
}

/* ---------------------------------------------------
   4. RENDRE LE HEADER PRINCIPAL TRANSPARENT ET AU-DESSUS
   (pour qu’il ne repousse pas le Cover vers le bas)
--------------------------------------------------- */
.site-header,
.main-navigation {
  background-color: transparent !important;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999; /* Assure que le header reste au-dessus du Cover */
}

/* Ajouter un léger dégradé sous le header pour un contraste sur le Cover */
.site-header:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0)
  )!important;
  z-index: -1; /* Placé derrière le contenu du header */
}

/* ---------------------------------------------------
   5. STYLE DU LOGO BLANC DANS LE HEADER
--------------------------------------------------- */
.custom-logo-link img,
.site-logo img {
  max-height: 120px;
  width: auto;
  display: block;
}

@media (max-width: 1200px) {
	.custom-logo-link img,
	.site-logo img {
		max-height: 80px;
	}
}

/* Forcer un fond transparent autour du logo (en cas d’erreur d’héritage) */
.site-logo,
.site-logo a {
  background: transparent !important;
}

/* ---------------------------------------------------
   6. MENU PRINCIPAL – ALIGNEMENT, COULEURS, ESPACEMENTS
--------------------------------------------------- */
.main-navigation .main-nav ul {
  display: flex!important;
  flex-wrap: nowrap;
  justify-content: flex-end; /* Menu aligné à droite */
  align-items: center;
  gap: 4rem;                 /* Espace entre chaque lien */
  overflow-x: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation .main-nav ul li a {
  font-family: 'AV Cosmos', sans-serif;
  text-transform: uppercase;
  font-size: 1.4rem;
  color: #ffffff!important;                    /* Liens en blanc par défaut */
  transition: color 0.2s ease,
              text-shadow 0.2s ease;
}

.main-navigation .main-nav ul li a:visited {
  color: #ffffff!important;
}

@media (max-width: 1480px) {
	.main-navigation .main-nav ul li a {
		font-size: 1.15rem!important;
	}
}

/* Couleur et effet au survol */
.main-navigation .main-nav ul li a:hover {
  color: #AEDFF7!important;
  /*text-shadow: 0 0 4px rgba(255, 102, 0, 0.6);*/
}
@media (max-width: 1600px) {
	.main-navigation .main-nav ul {
		gap:2rem!important;
	}
}
@media (max-width: 1480px) {
	.main-navigation .main-nav ul {
		gap:1rem!important;
	}
}

/* ---------------------------------------------------
   7. HEADER COLLANT (STICKY) – RÉDUCTION AU SCROLL
--------------------------------------------------- */
.is-sticky .site-header {
  padding: 0.5rem 0;        /* Reste plus compact lors du scroll */
  transition: padding 0.2s ease;
}

.is-sticky .site-logo img {
  max-height: 60px;         /* Logo légèrement réduit au scroll */
}

/* ---------------------------------------------------
   8. RÉGLAGES RESPONSIVE – MENU BURGER POUR MOBILE
--------------------------------------------------- */
@media (max-width: 1035px) {
  /* D'HABITUDE SUR 768px Cacher le menu horizontal par défaut, afficher le burger */
  .main-navigation .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block !important;  /* Assure la visibilité du burger */
    color: #ffffff!important;
  }

  /* Lorsque le burger est ouvert, afficher le menu vertical */
  .main-navigation.toggled .main-nav {
    display: block;
    background-color: rgba(0, 0, 0, 0.8);
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
  }

  .main-navigation .main-nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .main-navigation .main-nav ul li {
    text-align: center;
  }

  .main-navigation .main-nav ul li a {
    font-size: 1.1rem;
    color: #ffffff;
  }
}

/* ---------------------------------------------------
   9.AJUSTEMENT DU BURGER MENU PAR RAPPORT AU LOGO
--------------------------------------------------- */

@media (max-width: 768px) {
  /* Cibler uniquement l’inside-header de la page Accueil (ID 6) */
  .page-id-6 .inside-header {
    flex-direction: column-reverse !important;
	padding-top: 4rem;
  }
}

/* ---------------------------------------------------
   10. ON MASQUE LE MENU PAR DEFAUT DE GUTENBERG
--------------------------------------------------- */

/* On masque totalement le container mobile généré par GP */
@media (max-width: 1035px) {
  /* le wrapper global du burger GP */
  #mobile-menu-control-wrapper,
  .mobile-menu-control-wrapper {
    display: none !important;
  }

  /* le bouton lui-même (au cas où) */
  .menu-toggle {
    display: none !important;
  }
}


/*--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

/* ---------------------------------------------------
   Hero : aligner tout le contenu en haut/gauche du Cover 
   et donner une marge sous le paragraphe
--------------------------------------------------- */
.wp-block-cover .wp-block-cover__inner-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* pousse tout vers le haut */
  align-items: flex-start;     /* aligne tout à gauche */
  padding: 4rem 5% 2rem;       
  gap: 1rem;                   
  max-width: none;             /* on se sert du Group pour la largeur */
}

/* Limiter la largeur du groupe pour qu’il ne fasse pas 100% du Cover */
.wp-block-cover .wp-block-group {
  max-width: 600px;
  width: 100%;
}

/* Stabiliser l’espacement sous le paragraphe */
.wp-block-cover .wp-block-group > .wp-block-paragraph {
  margin-bottom: 2rem;         /* espace sous le texte avant le bouton */
}

/* Style du paragraphe du Hero (couleur + taille) */
.wp-block-cover .wp-block-group > .wp-block-paragraph {
  font-size: 1.1rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  opacity: 0.9;
}

/* Recentrer le contenu du Group sur mobile (optionnel) */
@media (max-width: 767px) {
  .wp-block-cover .wp-block-cover__inner-container {
    padding: 3rem 5% 2rem;
  }
  .wp-block-cover .wp-block-group {
    max-width: 100%;           /* occupe toute la largeur dispo */
  }
  .wp-block-cover .wp-block-group > h2 {
    font-size: 2rem;           /* adapter la taille du titre sur mobile */
  }
  .wp-block-cover .wp-block-group > .wp-block-paragraph {
    font-size: 1rem;
  }
}





/* ================================
   STYLES POUR LES LIGNES DE BANNIÈRE
   ================================ */
.banner-p1,
.banner-p2,
.banner-p3 {
  display: block;
  margin: 0;
  line-height: 1.1;
}

/* 1) « Votre nouvelle » */
.banner-p1 {
  font-family: 'AV Cosmos', sans-serif;
  font-weight: 400;
  font-size: 6rem!important;
  color: #AEDFF7;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
}

/* 2) « Émission YouTube » */
.banner-p2 {
  font-family: 'AV Cosmos', sans-serif;
  font-size: 6rem!important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-top: -0.5rem;
}

/* 3) « Une aventure… » */
.banner-p3 {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 1.5rem!important;
  font-style: italic;
  letter-spacing: 0.12rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1rem;
}

p.banner-p3 > mark {
  --band: 1em;          /* épaisseur du bandeau (0.28–.42em) */
  --padx: .10em;          /* petit padding latéral */

  color:#be845e;
  background:none !important;          /* écrase le style inline éventuel */
  padding:0 var(--padx);
  line-height:1.05;                    /* aide à bien caler le bandeau */
  /*box-shadow: inset 0 calc(var(--band) * -1) 0 rgba(174,223,247,.15);*/
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
  border-radius:.08em;                 /* léger adoucissement des bords */
}

/* ================================
   ADAPTATIONS MOBILE (≤767px)
   ================================ */
   @media (max-width: 1200px) {
  .banner-p1,
  .banner-p2 {
    font-size: 4rem!important;
  }
  .banner-p2 {
    margin-top: -0.3rem;
  }
  .banner-p3 {
    font-size: 1.2rem!important;
    max-width: 90%;
  }
  .hero-text {
    margin-top: 20vh;
    margin-left: 5%;
  }
}
   
@media (max-width: 767px) {
  .banner-p1,
  .banner-p2 {
    font-size: 2.5rem!important;
  }
  .banner-p2 {
    margin-top: -0.3rem;
  }
  .banner-p3 {
    font-size: 1rem!important;
    max-width: 90%;
  }
  .hero-text {
    margin-top: 20vh;
    margin-left: 5%;
  }
}

/* ================================
   STYLE DU BTN DANS LA COVER
   ================================ */
  
.banner-btn-group {
  width:100%!important;
  justify-content: flex-end!important;
}  

.banner-btn a {
  font-family: 'AV Cosmos', sans-serif;
  font-size: 2rem!important;
  border-radius: 10px;
  background-color: #be845e!important;
  padding: 15px 50px!important;
}
 
.banner-btn a:hover {
  background-color: #a06a4b!important;
}

@media (max-width: 1200px) {
	.banner-btn a {
		font-size: 1.5rem!important;
	}
}


/* ==============================================
   4. CENTRAGE DU HERO EN TABLETTE (responsive)
   ============================================== */
@media (max-width: 768px) {
  /* 1) On centre le contenu du Cover */
  .wp-block-cover .wp-block-cover__inner-container {
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding-left: 5% !important;
    padding-right: 5% !important;
  }

  /* 2) On centre le bloc hero-text s’il en existe un */
  .hero-text {
    margin: 0 auto !important;
    max-width: 90% !important;
    gap: 1rem !important;
  }

  /* 3) Aligne chaque élément du groupe au centre */
  .hero-text > * {
    align-self: center !important;
  }

  /* 4) Réductions typographiques pour tablette */
  .banner-p1,
  .banner-p2 {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
  }
  .banner-p3 {
    font-size: clamp(1rem, 3vw, 1.25rem) !important;
    max-width: 100% !important;
  }

  /* 5) Bouton centré */
  .banner-btn-group {
    justify-content: center !important;
    margin-top: 5rem !important;
  }
  .banner-btn {
    width: auto !important;
  }
}




/* ===============================================
   SECTION CONCEPT – CSS PRINCIPAL (DESKTOP)
   =============================================== */
.section-concept {
  background: linear-gradient(#000000, #141414);
  color: #fff;
  padding: 6rem 5% 0rem;
  font-family: 'Glacial Indifference', sans-serif;
}

/* Colonnes 50/50 avec espace fluide */
.section-concept .col-concept {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(1rem, 4vw, 2rem);
}

/* Colonne images (gauche) */
.section-concept .col1-concept {
  position: relative;
  flex: 1 1 45%;
  min-width: 300px;
}

/* 1) wrapper en relative pour que les enfants en absolute se positionnent dessus */
.concept-img-wrapper {
  position: relative;
  display: inline-block; 
}

/* 2) l’image */
.concept-img-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 3) styles communs aux légendes */
.concept-img-wrapper .legend {
  position: absolute;
  padding: 0.5rem 1rem;
  /*background: rgba(0, 0, 0, 0.6);*/
  color: #fff;
  font-family: 'Glacial Indifference', sans‑serif;
  font-size: 0.9rem;
  line-height: 1.2;
  max-width: 60%; /* limite la largeur du texte pour ne pas trop déborder */
}

/* 4) légende en haut à droite */
.concept-img-wrapper .legend--top-right {
  top: 1rem;
  right: 1rem;
  text-align: right;
}

/* 5) légende en bas à gauche */
.concept-img-wrapper .legend--bottom-left {
  bottom: 1rem;
  left: 1rem;
  text-align: left;
}







/* Positionne les descriptions collées aux légendes */
.concept-img-wrapper{ --legend-gap:.25rem; }

.concept-img-wrapper .legend,
.concept-img-wrapper .legend-desc{
  z-index:2;
}

/* style commun */
.concept-img-wrapper .legend-desc{
  position:absolute;
  font-size:.7rem;
  line-height:1.2;
  padding: 0 1rem;
  color:#be845e;
}

/* sous la légende top-right */
.concept-img-wrapper .legend-desc--top-right{
  top:1rem;
  right:1rem;
  text-align:right;
  transform:translateY(1.5rem);
}

/* au-dessus de la légende bottom-left */
.concept-img-wrapper .legend-desc--bottom-left{
  bottom:1rem;
  left:1rem;
  text-align:right;
  transform:translateY(.25rem);
}















/* Colonne texte (droite) */
.section-concept .col2-concept {
  flex: 1 1 50%;
  min-width: 300px;
  display: flex;
  flex-direction: column;
}

/* Titre + Icône */
.concept-titlediv {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.concept-title {
  font-family: 'AV Cosmos', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  margin: 0;
  padding-left: 40px;
  line-height: 1;
  color: #fff;
}

.concept-sep {
	margin-left:40px!important;
	border-top: 1px solid #fff;
	display: none;
}

/* Texte de présentation */
.concept-text {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  margin: 0 0 2rem;
}

.concept-quotediv {
	margin-top:4rem;
}

/* Citation en bas */
.concept-quote {
  font-family: 'Glacial Indifference', sans-serif;
  text-transform: uppercase;
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.5;
  border-left: 4px solid #AEDFF7;
  padding-left: 1rem;
  color: rgba(255,255,255,0.85);
  margin-top: auto; /* pousse en bas de col2 */
}

/* ===============================================
   RESPONSIVE – TABLETTE & MOBILE
   (on masque la colonne images pour alléger)
   =============================================== */
@media (max-width: 820px) {
  .section-concept {
    padding: 0px 5%;
	background: linear-gradient(
    to bottom,
    #000000 0%,
    #000000 5%,
    #141414 40%,
    #141414 100%);
  }

  .concept-title {
  padding-left: 0px;
}
  
  .section-concept .col-concept {
	flex-direction: column-reverse;
  }
  /* Masquer la colonne images */
  .section-concept .col1-concept {
    display: block;
    min-width: 100px;
  }
  
  .section-concept .concept-img {
	width: 90%;
  }
  /* Texte full width et centré */
  .section-concept .col2-concept {
    flex: 1 1 100%;
    align-items: center;
    text-align: start;
    min-width: 100px;
  }
  .concept-titlediv {
    justify-content: center;
  }
  .concept-sep {
	  display: none;
    margin: 0 auto 2rem;
  }
  
  .concept-quotediv {
	margin-top: 0;
  }
  .concept-text,
  .concept-quote {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  .concept-text {
	/*font-size: 0.8rem;*/
	line-height: 1.5;
  }
  
  .concept-text .wp-block-group__inner-container {
	padding: 0!important;
}
	  
}

/* Neutralise complètement les décalages “dual-calc” */
.no-sidebar .entry-content .alignfull {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

@media (max-width: 350px) {
  .concept-icon {
    display: none;
    }
  .concept-img-wrapper {
    display: none;
    }
}


/* ===============================================
   MOBILE : NAV EN SLIDE-IN & BURGER MENU
   =============================================== */

.custom-overlay{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .5s cubic-bezier(.77,.2,.05,1), visibility .3s;
  z-index: 998;
}

.custom-panel{
  position: fixed; top:0; right:0;
  width: 80vw;
  max-width: 400px;
  height: 100vh;
  background: #111;
  transform: translate3d(100%,0,0);
  transition: transform .5s cubic-bezier(.77,.2,.05,1);
  will-change: transform;
  z-index: 999;
  padding: 2rem 1.5rem; box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

#offcanvas-toggle:checked ~ .custom-panel{ transform: translate3d(0,0,0); }

/* Ouverture */
 #offcanvas-toggle:checked ~ .custom-overlay {
  opacity:1;
  visibility:visible;
  pointer-events: auto;
}

/* Empêche le scroll */
body.menu-open {
  overflow:hidden;
} 


/* Visually hidden mais interactif (OK iOS/Safari) */
.sr-only{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}


/* Bouton burger : reste au-dessus et visible en mobile */
.custom-burger{
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  z-index: 2147483647;
  background: transparent;
  border: 0;
  padding: .5rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  display: none;
  pointer-events: auto;
  touch-action: manipulation;
}
@media (max-width:1035px){
  .custom-burger{
    display: inline-block !important;
    z-index: 2147483647 !important; 
  } 
}

/* Barres (placement au centre + uniquement transform → pas de saccade) */
.custom-burger .bar{
  position: absolute; top: 50%; left: 50%;
  width: 30px; height: 3px; margin: 0;
  background: #fff; border-radius: 3px;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  transition: transform .5s cubic-bezier(.77,.2,.05,1), opacity .45s, background .5s;
  pointer-events:auto;
  z-index:2147483647;
}
.custom-burger .bar:nth-child(1){ transform: translate(-50%, -8px); }
.custom-burger .bar:nth-child(2){ transform: translate(-50%,  0); }
.custom-burger .bar:nth-child(3){ transform: translate(-50%,  8px); }

/* ÉTAT OUVERT : recentre puis rotate (aucune translation latérale) */
body.menu-open .custom-burger .bar:nth-child(1){
  transform: translate(-50%, 0) rotate(45deg); background: #AEDFF7;
}
body.menu-open .custom-burger .bar:nth-child(2){
  transform: translate(-50%, 0) scale(.2); opacity: 0;
}
body.menu-open .custom-burger .bar:nth-child(3){
  transform: translate(-50%, 0) rotate(-45deg); background: #AEDFF7;
}

/* Le burger NE se cache jamais quand c'est ouvert */
@media (max-width:1035px){
  body.menu-open .custom-burger{ display: inline-block !important; z-index: 10010 !important; }
}

/* (option) focus propre */
.custom-burger:focus{ outline: none; }
.custom-burger:focus-visible{ outline: 2px solid #AEDFF7; outline-offset: 4px; border-radius: 8px; }

body.menu-open .custom-overlay{ pointer-events:auto; }

/*Menu list*/
.custom-menu-list {
  list-style:none; padding:0; margin:4rem 0 0;
}
.custom-menu-list li {
  margin-bottom:1.5rem;
}
.custom-menu-list a {
  font-family:'AV Cosmos',sans-serif;
  font-size:1.25rem; color:#AEDFF7;
  text-transform:uppercase; text-decoration:none;
  transition:color .2s ease;
}
.custom-menu-list a:hover {
  color:#fff;
}

/* ====================
   SECTION ÉQUIPE TEXTE
   ==================== */

.equipe {
	padding: 4rem 5%;
	/*padding: 0px;*/
	font-family: 'Glacial Indifference', sans-serif;
	color:#fff;
	background-color: #141414;
	position: relative;
}

.equipe-titlediv {
  margin-bottom: 2rem;
}

.equipe .equipe-title {
  font-family: 'AV Cosmos', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
  color: #fff;
}

@media (max-width: 350px) {
  .equipe-title-img  {
    display: none;
    }
}

.equipe-sep {
  display:none;
  border: none;               
  border-top: 1px solid #fff; 
  width: 50%;    
  margin-left: 0;          
  margin-bottom: 2rem;
}

@media (max-width: 820px) {
	.equipe-sep {
	display:none;
    border-top: 0px solid #fff; 
	margin-bottom: 1rem;
    }
	
	.equipe-titlediv {
    margin-bottom: 1rem;
}
  }

.equipe-text {
	font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
}

/* ====================
   SECTION ÉQUIPE
   ==================== */
.team-section {
  position: relative;
  padding: 4rem 0;
  background-color: #141414;
}

.equipe::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 99vw;
  height: 100%;
  background: url('https://escalesouslesetoiles.fr/wp-content/uploads/2025/06/Picto-planete-blanc.webp')
              no-repeat center/contain;
  opacity: 0.1;
  pointer-events: none;
  z-index: 1;
  object-fit: cover;
}

/* GRID RESPONSIVE */
.team-section .team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

/* 2 cols tablettes, 1 en mobile */
@media (max-width: 1024px) {
  .team-section .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 400px) {
  .team-section .team-grid {
    grid-template-columns: 1fr;
  }
}

/* MEMBRE */
.team-member {
  position: relative;
  text-align: center;
  font-family: 'Glacial Indifference', sans-serif;
  color: #fff;
}

/* Cercle orange derrière l’avatar – on passe sur .team-member */
.team-member::before {
  content: '';
  position: absolute;
  top: 0;
  left: 73%;
  width: 120px;
  height: 120px;
  background: #be845e;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

@media (max-width: 768px) {
  .team-member::before {
    width: 100px!important;
    height: 100px!important;
  }
}

/* avatar rond et photo au-dessus */
.team-member .avatar {
  position: relative;
  display: inline-block;
  max-width: 180px;
  max-height: 180px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden; /* garde la photo en rond */
  z-index: 1;       /* au-dessus du cercle */
}

@media (max-width: 768px) {
  .team-member .avatar {
    width: 140px!important;
    height: 140px!important;
  }
}

/* Image ronde */
.team-member .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Nom */
.team-member .name {
  font-family: 'AV Cosmos', sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  margin: .5rem 0 .2rem;
  letter-spacing: .05em;
}

/* Rôle */
.team-member .role {
  font-size: .9rem;
  color: #be845e;
  line-height: 1.4;
}

/* ================
   SECTION ÉPISODES
   ================ */
.episodes-group {
  position: relative;
  background: 
    linear-gradient(to bottom, #141414 0%, rgba(20,20,20,0.5) 50%, rgba(20,20,20,0.5) 50%, #141414 100%),
    url('https://escalesouslesetoiles.fr/wp-content/uploads/2025/06/Fond-espace_recad.webp') center/cover no-repeat;
  padding: 0rem 5% 4rem;
  color: #fff;
  text-align: center;
  font-family: 'Glacial Indifference', sans-serif;
  overflow: hidden;
}

@media (max-width: 768px) {
  .episodes-group {
	background: #141414;
  }
}

.episodes-section .titlegroup {
  display: flex;
  align-items: center;      
  justify-content: center;
  gap: 0.7em;
}
	
.titlegroup img {
  height: 70px; 
}

@media (max-width: 350px) {
  .titlegroup img {
    display: none;
    }
}

/* Titre principal */
.episodes-title {
  font-family: 'AV Cosmos', sans-serif;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3rem);
}

.episodes-title {
	margin-bottom: 0!important;
}

/* Grille */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

/* Carte épisode */
.episode-card {
  /*background: rgba(0,0,0,0.6);*/
  border-radius: 0rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /*box-shadow: 0 8px 20px rgba(0,0,0,0.4);*/
}

/* Wrapper responsive pour iframe */
.episode-player {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  /*background: #000;*/
}
.episode-player iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 1rem;
  border: 0;
}

/* Titre sous la vidéo */
.episode-name {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 1.1rem;
  margin: 1rem;
  color: #fff;
  flex: 1;
  text-align: left;
  line-height: 1.4;
}

/* Bouton "Voir tous" */
.btn-episodes {
  display: inline-block;
  margin: 3rem auto 0;
  background: #AEDFF7;
  color: black !important;
  padding: 1rem 2.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'AV Cosmos', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-episodes:hover {
  background: #45b5ed;
  /*transform: translateY(-2px);*/
}

/* Réductions mobile */
@media (max-width: 600px) {
  .episodes-subtitle { font-size: 0.9rem; }
  .episode-name { font-size: 1rem; margin: 0.75rem; }
  .btn-episodes { margin-top: 2rem; padding: 0.75rem 2rem; }
}

/* Titre de groupe (Long format / Shorts) */
.episodes-group-title {
  font-family: 'AV Cosmos', sans-serif;
  font-size: 1.75rem;
  color: #AEDFF7;
  margin: 2rem 0 1rem;
  text-transform: uppercase;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;       /* ou ton espacement */
  max-width: 1200px;
  margin: 0 auto;
}

/* Par défaut, on masque la 4ᵉ carte */
.episodes-grid .episode-card:nth-child(4) {
  display: none;
}

/* On affiche la 4ᵉ carte *uniquement* en 2 colonnes */
@media (min-width: 663px) and (max-width: 991px) {
  .episodes-grid .episode-card:nth-child(4) {
    display: block;
  }
}

/* ================
   SECTION PARTENARIAT
   ================ */

#partenariat {
	background : #141414;
}

.section-partn {
  position: relative;
  /*padding: 6rem 5%;*/
  padding: 0;
  color: #fff;
  overflow: hidden;
  font-family: 'Glacial Indifference', sans-serif;
}

/* ====== GRID ====== */
.partn-grid {
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* ====== COLONNES 1/5 - 3/5 - 1/5 ====== */
/* flex-grow flex-shrink flex-basis */
.partn-col--thumbs { flex: 0.4 1 0; } /* 1 part */
.partn-col--text   { flex: 3 1 0; } /* 3 parts */
.partn-col--images { flex: 1 1 0; } /* 1 part */

/* --- VIGNETTES GAUCHE --- */
.partn-col--thumbs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.partn-thumb {
  width: 100%;
  display: block;
  border-radius: 4px;
  object-fit: cover;
}

/* --- TEXTE CENTRE --- */
.partn-col--text {
  max-width: 500px;
}

.partn-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 3rem;
  font-family: 'AV Cosmos', sans-serif;
  text-transform: uppercase!important;
}

.partn-title span {
	margin-bottom: 0;
	font-size: clamp(2rem, 5vw, 3rem);
}

.partn-title img {
	width: 70px;
	height: auto;
}

@media (max-width: 350px) {
  .partn-title img{
    display: none;
    }
}

.img-row {
	display: none;
}

.img-col {
	width: 70%;
}

.partn-icon {
  height: 1.2em;
  width: auto;
  display: block;
}

.partn-sep {
  border: none;
  border-top: 1px solid rgba(255,255,255,.6);
  margin: 0 auto 2rem;
  width: 80%;
}

.partn-col--text p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 1rem;
  color: rgba(255,255,255,.85);
}

/* --- IMAGES DROITE --- */
.partn-col--images {
  position: relative;
}
.partn-large {
  display: block;
  width: 90%;
  border-radius: 8px;
  object-fit: cover;
  position: relative;
}
.partn-large--top {
  top:   0;
  margin-bottom: 1rem;
}
.partn-large--bottom {
  top:  1rem;
}

.partn-btn-wrapper {
	text-align:center;
}

.btn-partn {
	display:inline-block;
}

/* ====== RESPONSIVE ≤820px ====== */
@media (max-width: 1100px) {
  .partn-grid {
    flex-direction: column;
    align-items: normal;
  }
  
  .img-col {
	display: none;
  }
  
  .img-row {
	display: block;
	height: 100px;
	margin : 3rem 0;
  }
  
  .partn-title {
  margin-bottom: 1rem;
  }
  
  .partn-col--images {
	  display: none;
  }
  
  .partn-col--text {
	max-width: none;
    text-align: start;
    padding: 0 1rem;
  }
}


/* ==============================
   Contact Hero – pleine largeur
   ============================== */
/* ======== HERO ======== */
.contact-group {
  position:relative;
  background:url('https://escalesouslesetoiles.fr/wp-content/uploads/2025/07/Photo10.webp') center/cover no-repeat;
}

.contact-hero{
  position:relative;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;   
  align-items:center;
  margin-top: 5rem;
}

/* sur‑teinte sombre légère pour le texte blanc */
.contact-group::before{
  content:"";
  position:absolute; inset:0;
  background:rgba(0,0,0,.45);
}

/* ======== POPUP FORM ======== */
.contact-popup{
  position:relative;
  width:clamp(280px, 40vw, 480px);
  background:#fff;
  color:#000;
  padding:2rem 2.5rem;
  border:4px solid rgba(255,255,255,.6);
  box-shadow:0 0 40px rgba(0,0,0,.4);
  font-family:'Glacial Indifference',sans-serif;
}

.contact-popup h2{
  margin:0 0 .75rem;
  font-family:'AV Cosmos',sans-serif;
  font-size:1.7rem;
}
.contact-popup .intro{font-size:.85rem;margin-bottom:1.2rem;}

/* formulaire */
.contact-popup form{
  display:flex;
  flex-direction:column;
  gap:1rem;
}
.contact-popup label{font-size:.75rem;line-height:1.4;}
.contact-popup input,
.contact-popup textarea{
  width:100%;padding:.45rem .6rem;
  border:1px solid #ccc;border-radius:3px;
  font-size:.85rem;font-family:inherit;
}
.contact-popup textarea{resize:vertical;}
.contact-popup button{
  align-self:flex-start;
  background:#be845e;color:#fff;
  border:none;border-radius:3px;
  padding:.6rem 1.8rem;
  font-family:'AV Cosmos',sans-serif;
  text-transform:uppercase;
  cursor:pointer;
  transition:background .2s;
}
.contact-popup button:hover{background:#a26a46!important;}

/* ======== BANDEAU BAS ======== */
.contact-footer{
  background-color: #141414;
  position:relative;
  z-index:1;
  margin-top:auto;          /* colle en bas */
  width:100%;
  padding:2rem 5%;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;           /* wrap si trop serré */
  color:#fff;font-family:'Glacial Indifference',sans-serif;
}
.footer-col{flex:1 1 0;}

.footer-col--logo {
	align-self:center;
}

.footer-col--logo img{
  width:min(300px,40vw);
}
.footer-col--infos h3,
.footer-col--social h3{
  font-family:'AV Cosmos',sans-serif;
  font-size:1.4rem;
  margin:0 0 .4rem;
  text-transform:uppercase;
  letter-spacing:.5px;
}
.footer-col--infos p{margin:0;font-size:1rem;}
.footer-col--infos a{color: #ffffff; text-decoration: none; font-size: 15px;}
.footer-col--infos a:hover{color: #AEDFF7;}

.social-links{
  display:flex;
  gap:1rem;
}
.social-links img{width:40px;height:auto}

/* ======== RESPONSIVE ≤ 768 ======== */
@media(max-width:768px){
  .contact-popup{width:90%;border-width:3px;}
  .contact-footer{
    flex-direction:column;
    align-items:center;text-align:center;
    gap:1.5rem;
  }
  .social-links img{width:34px}
}

/* ======== RESPONSIVE ≤ 350 ======== */
@media (max-width: 350px) {
  .site-main .wp-block-group__inner-container  {
    padding: 20px!important;
    }
}


/* ---- Wrapper vidéo : ratio stable & superposition ---- */
.yt-lazy,
.episode-player{
  position: relative;
  aspect-ratio: 16 / 9;   /* 16:9 partout */
  background: #000;
  overflow: hidden;
}

/* Miniature : remplit et recadre (les hqdefault 4:3 passent en 16:9) */
.yt-lazy > img,
.episode-player > img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  z-index: 1;
}

/* Iframe : au-dessus de l'image, fade-in */
.yt-lazy > iframe,
.episode-player > iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 2;
}
.yt-lazy.is-playing > iframe{ opacity: 1; }
.yt-lazy.is-playing > img{ opacity: 0; }

/* ---- Bouton Play "YouTube" (rouge + triangle blanc) ---- */

button:hover {
	background-color: unset!important;
}

.yt-play{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: none;              /* pas d'overlay gris */
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 3;                    /* au-dessus de l'image/iframe */
}

/* disque rouge + triangle ⇒ icône PNG */
.yt-play::before{
  content:"";
  width:80px; height:56px;  /* ajuste si besoin */
  background: url('https://escalesouslesetoiles.fr/wp-content/uploads/2025/08/youtube_filled.webp')
              center/contain no-repeat;
  border-radius:0;
  box-shadow:none;
  transition: transform .18s ease;
}

.yt-play::after{
  content:none;
  border:0;
}


/* léger feedback sans overlay gris */
.yt-lazy:hover .yt-play::before,
.yt-play:focus-visible::before{ transform: scale(1.06); }
.yt-play:focus-visible{ outline: 2px solid #fff; outline-offset: 4px; }

/* quand ça joue : le bouton disparaît (et n'intercepte plus les clics) */
.yt-lazy.is-playing .yt-play{
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}

@media (prefers-reduced-motion: reduce){
  .yt-play::before,
  .yt-lazy > iframe{ transition: none; }
}






/* ===========================
   HAMBURGER + OVERLAY + PANEL
   HTML (dans #menuToggle, dans cet ordre) :
   <input id="menuCheckbox" type="checkbox">
   <label class="burger" for="menuCheckbox"><span></span><span></span><span></span></label>
   <label class="menu-overlay" for="menuCheckbox" aria-hidden="true"></label>
   <ul id="menu">…</ul>
   =========================== */

/* Conteneur plein écran : permet à #menu (absolute) d’occuper toute la hauteur */
#menuToggle{
  position: fixed;
  inset: 0;                         /* top:0; right:0; bottom:0; left:0 */
  z-index: 3000;
  pointer-events: none;             /* ne capte rien par défaut */
}

/* Checkbox cliquable (au-dessus de tout) */
#menuToggle #menuCheckbox{
  position: fixed;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  opacity: 0; cursor: pointer;
  z-index: 3003;
  pointer-events: auto;             /* cliquable */
  -webkit-appearance: none; appearance: none;
}

/* Bouton burger (label) */
#menuToggle .burger{
  position: fixed;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  z-index: 3002;
  pointer-events: auto;             /* cliquable */
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

/* Barres du burger : centrées + transitions */
#menuToggle .burger span{
  position: absolute;
  left: 50%; top: 50%;
  width: 30px; height: 3px;
  background: #aedff7;                 /* barres blanches */
  border-radius: 3px;
  transform-origin: 50% 50%;
  transition: transform .5s cubic-bezier(.77,.2,.05,1), opacity .35s, background .35s;
  pointer-events: none;
}
/* placement initial */
#menuToggle .burger span:nth-of-type(1){ transform: translate(-50%, -10px); }
#menuToggle .burger span:nth-of-type(2){ background: #be845e; transform: translate(-50%,   0px); }
#menuToggle .burger span:nth-of-type(3){ transform: translate(-50%,  10px); }

/* ÉTAT OUVERT : croix centrée */
#menuToggle #menuCheckbox:checked ~ .burger span:nth-of-type(1){
  transform: translate(-50%, 0) rotate(45deg);
  background: #AEDFF7;
}
#menuToggle #menuCheckbox:checked ~ .burger span:nth-of-type(2){
  opacity: 0; transform: translate(-50%, 0) scale(.2);
}
#menuToggle #menuCheckbox:checked ~ .burger span:nth-of-type(3){
  transform: translate(-50%, 0) rotate(-45deg);
  background: #AEDFF7;
}

/* Overlay : assombrit le site (sous la croix, au-dessus du site) */
#menuToggle .menu-overlay{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
  z-index: 3000;
}
#menuToggle #menuCheckbox:checked ~ .menu-overlay{
  opacity: 1; visibility: visible; pointer-events: auto;
}

/* Panneau : ABSOLUTE mais pleine hauteur grâce au conteneur fixed */
#menu{
  position: absolute;
  margin: 0;
  top: 0; right: 0; bottom: 0; left: auto;   /* occupe toute la hauteur */
  width: min(80vw, 400px);
  background: #141414; color: #fff;
  padding: 100px 24px 24px;                  /* dégage la croix en haut */
  box-sizing: border-box;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translateX(100%);               /* caché à droite */
  transition: transform .5s cubic-bezier(.77,.2,.05,1);
  z-index: 3001;
  pointer-events: auto;                      /* liens cliquables */
}
#menuToggle #menuCheckbox:checked ~ #menu{
  transform: translateX(0);
}

/* Liens du menu (charte) */
#menu li{ list-style: none; padding: 10px 0; }
#menu a{
  font-family: 'AV Cosmos', sans-serif;
  text-transform: uppercase;
  font-size: 1.25rem;
  color: #AEDFF7;
  text-decoration: none;
  transition: color .2s ease;
}
#menu a:hover{ color: #fff; }

/* Bloquer le scroll de la page quand le menu est ouvert (CSS-only, browsers compatibles :has) */
@supports selector(body:has(*)){
  html:has(#menuCheckbox:checked),
  body:has(#menuCheckbox:checked){
    overflow: hidden;
  }
}

/* Option : confort iPhone (zone sûre bas) */
#menu{ padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

/* (facultatif) Cacher complètement le burger au-dessus d’un breakpoint */
@media (min-width: 1036px){
  #menuToggle{ display: none; }
}



/* Apparition douce du burger (desktop uniquement) */
@media (min-width:1036px){
  #menuToggle .burger{
    opacity: 0;
    transform: translateY(-6px) scale(.98);
    transition: opacity .25s ease, transform .25s ease;
  }
  #menuToggle.is-visible .burger{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width:1036px){
  html { overflow-y: scroll; 
  }
}


@media (min-width:1036px){
  html{
    overflow-y: auto;        /* laisse le navigateur gérer l’affichage natif */
    scrollbar-gutter: stable;/* réserve l’espace uniquement côté scrollbar */
  }
}

@supports not (scrollbar-gutter: stable){
  @media (min-width:1036px){
    html{ overflow-y: scroll; } /* force une rail, évite le layout shift */
  }
}


/* Desktop : espace réservé au scrollbar, look natif, fond sombre */
@media (min-width:1036px){
  html{
    background:#141414;     /* même fond que ton site */
    color-scheme: dark;      /* hint pour scrollbars natifs foncés */
    overflow-y: auto;        /* natif */
    scrollbar-gutter: stable;/* réserve l’espace côté scrollbar */
  }
  body{
    background:#141414;      /* au cas où certaines sections n’occupent pas 100vh */
  }
}

/* Fallback anciens navigateurs (ignorent scrollbar-gutter) */
@supports not (scrollbar-gutter: stable){
  @media (min-width:1036px){
    html{ overflow-y: scroll;
      background:#141414;
    }
  }
}

:root { --logo-w: clamp(120px, 14vw, 220px); }

.custom-logo-link img,
.site-logo img {
  width: var(--logo-w);
  height: auto;
}