/*
 Theme Name:     Blocksy Child
 Theme URI:      https://creetonboite.fr
 Description:    thème enfant de Blocksy
 Author:         Nina BROSSE
 Template:       blocksy
 Version:        1.0
*/

/* ==========================
   imports de polices
   ========================== */
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

/* ==========================
   reset et styles globaux
   ========================== */

/* on réinitialise le box-sizing et les marges */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

/* on définit les marges horizontales du body */
body {
  padding-left: 6.25rem;
  padding-right: 6.25rem;
}

/* on définit la taille de police de base */
html {
  font-size: 16px;
}

/* on réduit la taille de police sur mobile */
@media (max-width: 600px) {
  html {
    font-size: 14px;
  }
}

/* ==========================
   variables css
   ========================== */
:root {
  --rouge: #FF0000;
  --grisf: #27272a;
  --gris: #575757;
  --grisc: #D5D5D8;
  --realisation-width: calc((100% - 80px) / 3);
}

/* ==========================
   typographie
   ========================== */

h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase !important;
}

.animated-title {
  font-family: 'Anton', sans-serif;
  font-size: 6.25rem;
  color: var(--rouge);
  margin: 0;
  white-space: nowrap;
  display: block;
}

.animated-title span {
  display: inline-block;
  transition: transform 0.2s ease;
  cursor: default;
}

.animated-title span:hover {
  transform: scale(1.1);
}

.static-title {
  display: none;
}

/* on affiche la version statique du titre sur mobile */
@media (max-width: 768px) {
  .animated-title {
    display: none !important;
  }

  .static-title {
    display: block !important;
    font-family: 'Anton', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    color: var(--rouge);
  }
}

/* ==========================
   styles des onglets elementor
   ========================== */

.elementor-tabs-wrapper {
  display: flex;
  flex-direction: row;
}

.elementor-tab-title {
  width: 12.5rem;
  border-right: 1px solid #ddd;
  margin-bottom: 0.3125rem;
}

.elementor-tabs-content-wrapper {
  flex-grow: 1;
  padding-left: 1.25rem;
}

/* ==========================
   réalisations (portfolio)
   ========================== */

.liste-realisations {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: flex-start;
  width: 100%;
}

/* on passe en colonne sur mobile */
@media (max-width: 768px) {
  .liste-realisations {
    flex-direction: column !important;
  }
}

.archive-realisations-container {
    padding-left: 6.25rem !important;
    padding-right: 6.25rem !important;
    max-width: calc(100% - 12.5rem) !important; 
}

/*on redéfini les marges sur mobile*/
@media (max-width: 768px) {
  .archive-realisations-container {
    padding-left: 1.875rem !important;
    padding-right: 1.875rem !important;
    max-width: calc(100% - 3.75rem) !important; /* 100% - (30px * 2) */
  }
}

.archive-realisations-container

.realisation-item {
  flex: 1 1 calc((100% - 5rem) / 3);
  max-width: calc((100% - 5rem) / 3);
  min-width: 15.625rem;
  border: none !important;
  box-shadow: none !important;
}

.realisation-item .video iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.archive-realisations-container iframe:hover {
  transform: scale(1.05);
  z-index: 10;
}

.btn-en-savoir-plus {
  background-color: transparent;
  color: var(--grisc);
  transition: transform 0.3s ease, z-index 0.3s ease;
}

.btn-en-savoir-plus:hover {
  transform: scale(1.05);
  z-index: 10;
  opacity: 50;
}

@media (max-width: 768px) {
  .archive-realisations-container iframe:hover {
    transform: none;
  }

  .btn-en-savoir-plus:hover {
    background-color: var(--rouge);
  }
}

.realisation-item h3 {
  font-family: 'Anton', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 0.625rem;
  color: var(--rouge);
}

/* ==========================
   infos supplémentaires avec animation
   ========================== */

.realisation-item .infos-realisation {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.realisation-item.show-details .infos-realisation {
  max-height: 1000px;
  opacity: 1;
  margin-top: 1rem;
}

/* ==========================
   filtres
   ========================== */

#toggle-filtres {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'Anton', sans-serif;
  color: var(--gris);
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s ease;
  outline-offset: 2px;
}

#toggle-filtres:hover,
#toggle-filtres:focus {
  color: var(--rouge);
  outline: 2px solid var(--rouge);
  outline-offset: 3px;
}

#toggle-filtres span {
  font-size: 1.2rem;
  line-height: 1;
}

.custom-select-wrapper {
  position: relative;
  display: inline-block;
  max-width: 18.75rem;
  cursor: pointer;
  user-select: none;
}

.custom-select-label {
  color: var(--grisc);
  margin-bottom: 0.625rem;
  border-radius: 0.25rem;
  background: var(--grisf);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
}

.custom-select-label span.arrow {
  transition: transform 0.3s ease;
  margin-left: 0.5rem;
}

.custom-select-wrapper select {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* ==========================
   container & animation
   ========================== */

.container {
  max-width: 75rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 6.25rem;
  padding-right: 6.25rem;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  animation: fadeInLeft 0.6s ease-out forwards;
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================
   page location
   ========================== */

#slider {
  border-radius: 20px;
  border: 2px dotted #000;
  overflow: hidden;
}

/* ==========================
   page prestation
   ========================== */

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 300px;
  gap: 10px;
  box-sizing: border-box;
}

.item {
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}

.item:hover {
  transform: scale(1.05);
}

.title {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 15px 10px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
}

.title h3 {
  font-family: 'Anton', sans-serif;
  margin: 0 0 5px 0;
  color: white;
  font-size: 1rem;
}

.title p {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  font-size: 0.8rem;
}

.item.tall {
  grid-row: span 2;
}

/* ==========================
   bandeau cat contact
   ========================== */

.us {
  display: flex;
  flex-direction: column;
  letter-spacing: 10px;
  font-size: 110px;
}

/* ==========================
   carte google map full-bleed
   ========================== */

.map-fullbleed,
.map-fullbleed .elementor-widget,
.map-fullbleed iframe {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* ==========================
   liens de contact
   ========================== */

.no-link-style {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font-weight: normal;
}

/* ==========================
   texte mis en valeur dans à propos
   ========================== */

.highlight {
  font-family: 'Anton', sans-serif;
}

#red {
  color: red;
}

/*on supprime le bandeau cat contact sur mobile*/
@media (max-width: 768px) {
  .no-archive-margins{
    display:none;
  }
}