/*
Theme Name: L'ARCADEM
Author: Clara Kern
Author URI: 
Description: Site internet de l'arcadem
Version: 1.0
Text Domain: arcadem_vintage
*/

/*definition des variables*/

:root {
  --primary-color: #f2f0ef;
  --secondary-color: #e4a96b;
}

/* Style global */
body {
  font-family: "American Typewriter", serif;
  background-color: var(--primary-color);
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

.header {
  font-family: "American Typewriter", serif;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background-color: var(--primary-color);
}

.navcontainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
}

.logo {
  margin-right: 24px;
}

/* Image du logo */
.logo img {
  height: 48px; /* taille du logo */
  width: auto; /* proportions respectées */
  display: block; /* retire l’espace blanc sous l’image */
}

/* Lien du logo */
.logo a {
  text-decoration: none; /* pas de souligné */
  display: inline-block; /* permet de cliquer toute la zone du logo */
}

nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;

  /* transition pour la disparition douce */
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/*Navigation responsive - buger menu en petit*/
#toggle-menu,
.toggle-label {
  display: none;
}

@media screen and (max-width: 900px) {
  .logo img {
    height: 46px;
  }
}

@media screen and (max-width: 900px) {
  nav ul.container-flex {
    display: none;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 99;
    background-color: #f1e9d9;
    top: 100%;
  }

  nav ul.container-flex li.flex-item a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }

  .toggle-label {
    display: block;
  }

  #toggle-menu:checked ~ ul {
    display: block;
  }
}

/* Menu list */
.container-flex {
  display: flex;
  gap: 40px;
  list-style: none;
  font-weight: normal;
  transition: font-weight 0.3s ease;
}

/* Liens du menu */
.flex-item a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  transition: font-weight 0.2s ease;
}

.flex-item {
  cursor: pointer;
}

/* Section image plein écran */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Image de fond */
.hero-img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
  object-position: center;
}

.collections {
  padding: 20px;
}

.collections-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 5px 60px; /* marge interne: haut / côtés / bas */
}

.collections-title {
  margin: 0 0 30px 0;
  font-weight: 300;
  font-size: 32px;
  text-align: left;
  line-height: 1.2;
  color: #000;
}

.collections-hero-text{
  max-width: 680px;              /* limite la largeur pour le confort de lecture */
  font-size: 18px;
  font-weight: 300;              /* légèrement renforcé pour la lisibilité */
  line-height: 1.6;
  letter-spacing: 0.3px;
}


/* FLEX responsive: 4 → 2 → 1 */
.collections-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

/* Carte = une colonne flex */
.card {
  overflow: hidden;
  background: var(--primary-color);
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column; /* FLEX COLUMN à l'intérieur de la carte */
  flex: 1 1 calc(25% - 30px); /* 4 colonnes sur desktop */
  /* max-width: calc(25% - 30px); */
  gap: 0px;
}

/* 2 colonnes sur tablette */
@media (max-width: 840px) {
  .card {
    flex: 1 1 calc(50% - 30px);
    /* max-width: calc(50% - 30px); */
  }
}

/* 1 colonne sur mobile */
@media (max-width: 540px) {
  .card {
    flex: 1 1 100%;
    /* max-width: 100%; */
  }
}

.card-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  margin-bottom: 16px;
  transition: transform 0.25s ease;
}

/* Zoom uniquement sur l'image */
.card-img:hover {
  transform: scale(1.04);
}


/* Titre cliquable */
.card-title-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}


.card-title {
  font-weight: 300; 
  font-size: 24px;
  margin-bottom: 10px;
}


.card-text {
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: #000;
  margin-bottom: 50px;
  /* text-align: center; */
}

/* Lien global (optionnel) */
a {
  text-decoration: none;
  color: inherit;
}

.events {
  background: #c36a2d;
  padding: 26px 24px;
}

/* Titre */
.events-title {
  text-align: left;
  font-family: "American Typewriter", serif;
  font-weight: 300;
  font-size: 44px;
  margin-bottom: 14px;
  letter-spacing: 0.2px;
  color: #1c1c1c;
}

/* Lien du titre événements : style footer */
.events-title a {
  color: inherit;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  padding-bottom: 4px;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  font-weight: 300;
  text-decoration: none;
}

.events-title a:hover {
  border-bottom-color: rgba(0, 0, 0, 0.75);
  opacity: 0.85;
  cursor: pointer;
}

/* Bloc sous le titre : texte + galerie */
.events-content {
  max-width: 1050px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background: var(--primary-color);
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

.events-info {
  width: 38%;
}

.events-gallery {
  width: 48%;
}

.events-gallery img {
  max-width: 92%;
  margin-left: auto; /* pousse l’image vers la droite */
}

/* Texte */
.events-info p {
  font-family: "American Typewriter", serif;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 300;
  text-align: left;
  margin: 0;
  color: #1c1c1c;
}

/* Image : plus “pro” */
.events-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  filter: contrast(1.05) saturate(1.05);
}

/* ==========================
   RESPONSIVE gallery event 
   ========================== */

@media (max-width: 900px) {
  .events {
    padding: 32px 16px;
  }

  .events-title {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .events-content {
    gap: 18px;
    padding: 18px;
  }

  .events-info {
    width: 100%;
  }

  .events-gallery {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
  }

  .events-gallery.page_event {
    width: 100%;
    margin: 2em auto;
  }

  .events-info p {
    font-size: 24px;
    line-height: 1.35;
  }
}


.join {
  padding: 40px 0;
}

.join-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px; /* même espace entre chaque élément */
  border: 1px solid black;
  padding: 10px;
}

/* Optionnel : centrer quand nécessaire */
.join-inner .section-separator,
.collections-inner .section-separator,
.section-separator-wrapper {
  text-align: center;
}
.section-separator-wrapper .section-separator {
  margin-left: auto;
  margin-right: auto;
}

/* TITRE + TEXTE même taille / même poids */
.join-title,
.join-text {
  font-size: 28px;
  font-weight: 300;
  margin: 20px;
}

/* BOUTON centré */
.join-btn {
  background: #000;
  color: #fff;
  padding: 12px 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;

}

.half-image {
  width: 100%;
  height: 70vh;
  overflow: hidden; /* coupe ce qui dépasse */
}

.half-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* bandeau horizontal propre */
  object-position: center 35%; /* dé-zoome visuellement – ajuste si besoin */
  display: block;
  border-top: 2px solid black;
  border-bottom: 0.5px solid black;
}

/* ===== FOOTER INFOS ===== */
.info {
  padding: 20px;
}

.info#infos {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 5px 60px;
}

/* Conteneur des colonnes : FLEX ROW + WRAP */
.info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

/* Une colonne du footer */
.info-block {
  text-align: left;
  flex: 1 1 calc(25% - 30px); /* 4 colonnes sur desktop */
  max-width: calc(25% - 30px);
}

/* 2 colonnes sur tablette */
@media (max-width: 840px) {
  .info-block {
    flex: 1 1 calc(50% - 30px);
    max-width: calc(50% - 30px);
  }
}

/* 1 colonne sur mobile */
@media (max-width: 540px) {
  .info-block {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Titres */
.info-title {
  margin: 0 0 10px 0;
  font-size: 24px;
}

/* Texte */
.info-block p {
  font-size: 15px;
  line-height: 1.7;
}

/* Lien Insta */
.info-block a {
  color: inherit;
  border-bottom: 1px solid transparent;
}

.info-block a:hover {
  border-bottom-color: #000;
}

/* =======================================
   BOUTIQUE / COLLECTIONS – L’ARCADEM
======================================= */

/* Conteneur général */
.collections-page-inner {
  max-width: 1440px;
  margin: 0 auto;
}

/* --------------------------------------------------
   BANDE DU HAUT — titre + liste des catégories
-------------------------------------------------- */
.collections-page-header {
  background-color: var(--primary-color);
  padding: 40px 40px 8px; /* 140px pour laisser la place au header fixe */
}

.collections-page-texte {
  font-family: "American Typewriter", serif;
  font-weight: 300;
  font-size: 24px;
  text-align: left;
  line-height: 1.2;
  margin: 0;              /* IMPORTANT */
  padding: 0;             /* IMPORTANT */
}

/* --------------------------------------------------
   BANDE COLLECTION – une seule ligne horizontale
-------------------------------------------------- */
.collection-row {
  background-color: var(--primary-color);
  padding: 8px 40px 20px;
}

/* ITEM */
.collection-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

/* LINK = clickable area for Featherlight */
.collection-item .collection-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

/* ULTRA LARGE : 6 images */
@media (min-width: 2000px) {
  .collection-item {
    flex: 0 0 16.666%;
  }
}

/* TABLETTE : 3 images */
@media (max-width: 1080px) {
  .collection-item {
    flex: 0 0 33.333%;
  }
}

/* MOBILE : 2 images */
@media (max-width: 850px) {
  .collection-item {
    flex: 0 0 50%;
  }
}

/* TRÈS PETIT MOBILE : 1 image */
@media (max-width: 500px) {
  .collection-item {
    flex: 0 0 100%;
  }
}

/* IMAGE */
.collection-item .collection-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* OVERLAY */
.collection-item .collection-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 16px;
}

.collection-overlay-box {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 8px;
  max-width: 80%;
  text-align: center;

  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

.collection-overlay-box p {
  font-family: "American Typewriter", serif;
  font-size: 16px;
  font-weight: 300;
  margin: 0;
  color: whitesmoke;
  line-height: 1.4;
}

/* HOVER EFFECTS */
.collection-item:hover img {
  transform: scale(1.14);
  filter: grayscale(15%);
}

.collection-item:hover .collection-overlay {
  opacity: 1;
}

/* --------------------------------------------------
   FEATHERLIGHT LIGHTBOX – optional polish
-------------------------------------------------- */
.featherlight .featherlight-content {
  max-width: 92vw;
  max-height: 92vh;
}

.featherlight img {
  max-width: 92vw;
  max-height: 92vh;
  height: auto;
  width: auto;
}

/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */
@media screen and (max-width: 1100px) {
  .collection-row-images {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .collections-page-header {
    padding: 120px 20px 10px;
  }

  .collection-row {
    padding: 16px 20px;
  }

  .collection-row-images {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .collection-overlay-box {
    max-width: 90%;
  }
}

/* =============================
   PAGE ÉVÉNEMENTS — ORANGE / AFFICHE / ANGLES DROITS
   (HTML: <section class="event-block" id="evenements">
          <div class="event-page-inner"><div class="event-content">...)
============================= */

.admin-bar {
  --header-offset: 60px;
} /* WP admin bar */


.event-block {
  background-color: #c36a2d;
  padding-top: calc(var(--header-offset) + 28px);
  padding-bottom: 34px;
}

/* 3) Conteneur centré */
.event-page-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 4) Affiche : cadre rectangulaire */
.event-content {
  border: 1px solid #000;
  border-radius: 0;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  background: var(--primary-color);
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  padding: 30px 28px;
}

/* 5) Texte  */
.event-text {
  width: 42%;
  max-width: 460px;
  margin: 0;

  font-family: "American Typewriter", serif;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 300;
  text-align: left;
}

.event-text p {
  margin: 0 0 16px;
}

/* 6) Galerie */
.events-gallery.page_event {
  width: 48%;
  margin: 0;
  max-width: none;
}

/* Swiper dans la colonne + cadre rectangulaire */
.events-gallery.page_event .swiper {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
}

/* Images responsives */
.events-gallery.page_event img {
  width: 100%;
  height: auto;
  display: block;
}

/* 7) Responsive */
@media (max-width: 900px) {
  .event-content {
    padding: 32px 18px 26px; 
    gap: 22px;
  }

  .event-content::before {
    width: calc(100% + 44px);
    margin: -50px -22px 30px;
  }

  .event-text,
  .events-gallery.page_event {
    width: 100%;
    max-width: none;
  }
}

/* --------------------------------------------------
   BANDE COLLECTION - FLECHES 
-------------------------------------------------- */

/* --- Flèches swiper personnalisées --- */
.swiper-button-prev,
.swiper-button-next {
  color: #000 !important; /* flèche noire */
  width: 28px; /* taille du bouton */
  height: 28px;
}

/* Taille de l’icône */
.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 22px !important; /* taille de la flèche */
  font-weight: bold;
}

/* --- SECTION INFOS / CONTACT --- */

.info-contact-page {
  max-width: 1100px;
  margin: 0 auto;
  /* gros padding-top pour ne plus être caché sous le header fixe */
  padding: 120px 20px 60px; /* ajuste 120px selon la hauteur de ton header */
  box-sizing: border-box;
}

/* Si tu arrives sur #infos via un lien de menu,
   ça évite que le titre soit coupé sous le header fixe */
#infos {
  scroll-margin-top: 120px; /* même valeur que le padding-top */
}

/* TITRES */

.info-contact-page-title {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* LIGNE EN 2 COLONNES */

.info-contact-page-row {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

/* Colonnes gauche/droite */

.info-contact-page-col {
  flex: 1;
}

/* HORAIRES */

.info-contact-page-horaires p {
  margin: 0;
  line-height: 1.6;
}

/* ADRESSE */

.info-contact-page-adresse p {
  margin: 0 0 0.8rem;
}

/* MAP */

.info-contact-page-map {
  margin: 1rem 0 1.5rem;
}

.info-contact-page-map-iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

/* CONTACT */

.info-contact-page-contact p {
  margin: 0;
  line-height: 1.6;
}

/* --- RESPONSIVE --- */

@media (max-width: 900px) {
  .info-contact-page {
    padding-top: 100px;
  }

  #infos {
    scroll-margin-top: 100px;
  }

  .info-contact-page-row {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .info-contact-page {
    padding: 90px 16px 40px;
  }

  .info-contact-page-map-iframe {
    height: 240px;
  }
}

@media screen and (max-width: 600px) {
  #wpadminbar {
    position: fixed !important;
  }
}