/**** Calcule sur une base de 360px ****/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/****** LOGIQUE LIGHTBOX *******/

.lightbox-open {
    overflow: hidden;
    touch-action: none;
}

#lightbox {
    touch-action: none;
    pointer-events: auto;
}

#lightbox-img {
    touch-action: none;
}

#zoomFab,
#zoomPanel {
  display: none;
}

.is-ready #zoomFab {
  display: flex;
}

.is-ready #zoomPanel {
  display: none;
}

/******** HEADER ************/

.banderole {
    width: 100vw;
    height: 20vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banderole h1 {
    text-align: center;
}

/******** CONTACT -- MAIN -- ***********/

.contact_main {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 12.5vw;
    padding-top: 10vw;
    padding-bottom: 12.5vw;
}

/******** PITCH *************/

.pitch p {
    width: 78vw;
    height: 16vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-size: 4vw;
    font-weight: 400;
    word-wrap: break-word;
}

/******** PHOTO CAROUSEL ********/

/* ── Wrapper section ──────────────────────────────────────── */
.photo_entreprises {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
 
/* ── Flèches carousel (masquées en portrait, JS les affiche en landscape) ── */
.carousel-arrow {
  display: none; /* JS les affiche uniquement en landscape */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8vw;
  height: 8vw;
  border-radius: 50%;
  border: 0.15vw solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
 
.carousel-arrow svg {
  width: 5vw;
  height: 5vw;
  pointer-events: none;
}
 
.carousel-arrow:hover  { background: rgba(0, 0, 0, 0.35); }
.carousel-arrow:active { transform: translateY(-50%) scale(0.92); }
 
.carousel-arrow--prev { left: -5vw; }
.carousel-arrow--next { right: -5vw; }
 
/* ── Card fixe ────────────────────────────────────────────── */
.carousel-card {
  width: 88.89vw;
  height: 55.56vw;
  position: relative;
  border-radius: 3vw;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}
 
.carousel-card:active { cursor: grabbing; }
 
/* ── Track qui glisse ─────────────────────────────────────── */
.carousel-track {
  display: flex;
  align-items: center;
  height: 100%;
  will-change: transform;
  transition: none;
}
 
/* ── Chaque photo ─────────────────────────────────────────── */
.carousel-item {
  flex-shrink: 0;
  width: 86.89vw;
  height: 44.44vw;
  margin: 0 2.22vw;
  border-radius: 2.78vw;
  overflow: hidden;
  filter: brightness(0.55);
  transform: scale(0.95);
  will-change: transform, filter;
  padding: 0.6vw;
  box-sizing: border-box;
}
 
.carousel-item.active-slide {
  filter: brightness(1);
  transform: scale(1);
  filter: drop-shadow(0.3vw 0.2vw 0.56vw rgba(0, 0, 0, 0.3));
}
 
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
 
/* ── Dots ─────────────────────────────────────────────────── */
.dots {
  position: absolute;
  bottom: 2.22vw;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.39vw;
  z-index: 3;
}
 
.dot {
  width: 1.39vw;
  height: 1.39vw;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.3s, transform 0.3s;
}
 
.dot.active {
  background: white;
  transform: scale(1.4);
}
 
/* ── Lightbox ─────────────────────────────────────────────── */

.lightbox-open #zoomFab,
.lightbox-open #zoomPanel {
  display: none !important;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 100;
  justify-content: center;
  align-items: center;
}
 
.lightbox.open { display: flex; }
 
/* L'animation zoomIn s'applique uniquement à l'ouverture.
   Les classes lb-exit-* et lb-enter-* du JS gèrent ensuite
   les transitions entre images — on retire l'animation CSS
   sur ces états pour éviter les conflits. */
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 3.33vw;
  box-shadow: 0 2.22vw 11.11vw rgba(0, 0, 0, 0.6);
  /* transition gérée par le JS via les classes lb-exit / lb-enter */
  transition: opacity 0.22s ease, transform 0.22s ease;
}
 
/* Animation d'ouverture lightbox (première apparition uniquement) */
.lightbox.open img:not(.lb-exit-left):not(.lb-exit-right):not(.lb-enter) {
  animation: zoomIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
 
/* ── Bouton fermeture lightbox ────────────────────────────── */
.lightbox-close {
  position: absolute;
  top: 2.5vw;
  right: 8vw;
  color: white;
  font-size: 14vw;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 101;
}
 
.lightbox-close:hover { opacity: 1; }
 
@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/******** SOCIAL ICON ******/

.social_icon_card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 88.89vw;
    height: 16.5vw;
    border-radius: 3vw;
}

.social_icon_card a {
    width: 14vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8vw;
    padding-top: 1vw;
    text-decoration: none;
}

.social_icon_card svg.icon-social {
    width: 9.73vw;
    height: 9.73vw;
    filter: drop-shadow(0.8vw 0.2vw 0.56vw rgba(0, 0, 0, 0.3)); /* ombre discrete */
    transition: transform 0.15s;
}

.social_icon_card a:hover svg.icon-social {
    transform: translateY(-0.56vw); /* leger effet “soulevement” */
}

.social_icon_card a:active svg.icon-social {
    transform: translateY(0.56vw); /* effet “appui” responsive */
}

.social_icon_card p {
    width: 14vw;
    font-size: 2.2vw;
    text-align: center;
}

/******** FORMULAIRE ********/

.formulaire {
    width: 88.89vw;
    height: 130vw;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    border-radius: 3vw;
}

.formulaire input::placeholder,
.formulaire textarea::placeholder {
    color: var(--placeholder-color);
}

.formulaire h2 {
    font-size: 5.56vw;
    font-weight: 400;
}

.form_contact {
    width: 70vw;
    height: 85vw;
    display: flex;
    flex-direction: column;
    gap: 7vw;
    align-items: center;
    position: relative /* error_email */
}

.form_contact input {
    width: 70vw;
    height: 6vw;
    font-size: 3.33vw;
    padding-left : 1.2vw;
    border-radius: 1.39vw;
    border-style: none;
    filter: drop-shadow(0.3vw 0.2vw 0.56vw rgba(0, 0, 0, 0.3));
}

#error_nom { /* message d'erreur validité nom */
    position: absolute;
    top: 7vw;
    left: 0vw;
    font-size: 3vw;
    font-family: sans-serif;
    color: var(--error-color);
}

#error_prenom { /* message d'erreur validité prenom */
    position: absolute;
    top: 20vw;
    left: 0vw;
    font-size: 3vw;
    font-family: sans-serif;
    color: var(--error-color);
}

#error_email { /* message d'erreur validité email */
    position: absolute;
    top: 33vw;
    left: 0vw;
    font-size: 3vw;
    font-family: sans-serif;
    color: var(--error-color);
}

#error_message { /* message d'erreur validité message */
    position: absolute;
    top: 73vw;
    left: 0vw;
    font-size: 3vw;
    font-family: sans-serif;
    color: var(--error-color);
}

.form_contact textarea {
    max-width: 70vw;
    min-width: 70vw;
    min-height: 19.4vw;
    max-height: auto;
    overflow: auto; /* barre de defilement à l'interieur */
    resize: none; /* ne pemet pas le redimensionnement */
    font-size: 3.3vw;
    padding : 0.8vw 1.2vw 0 1.2vw;
    border-radius: 1.39vw;
    border-style: none;
    filter: drop-shadow(0.3vw 0.2vw 0.56vw rgba(0, 0, 0, 0.3));
}

.form_contact button {
    width: 31.1vw;
    height: 5vw;
    font-size: 3vw;
    border-radius: 1.39vw;
    border-style: none;
    filter: drop-shadow(0.3vw 0.2vw 0.56vw rgba(0, 0, 0, 0.3));
}

.condition_form_contact {
    width: 77vw;
    height: 18.9vw;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative /* message d'erreur condition */
}

#error_checkbox { /* message d'erreur condition */
    position: absolute;
    bottom: 3.5vw;
    left: 3.9vw;
    font-size: 3vw;
    color: var(--error-color);
}

.condition_form_contact input {
    width: 3vw;
    height: 3vw;
    align-self: flex-start;
    filter: drop-shadow(0.3vw 0.2vw 0.56vw rgba(0, 0, 0, 0.3));
}

.condition_form_contact p {
    width: 72.2vw;
    height: 18.9vw;
    font-size: 2.7vw;
}

.formulaire input[type="checkbox"] {
    position: relative;
    -webkit-appearance: none; /* désactive le style natif */
    -moz-appearance: none;
    appearance: none;
    background-color: var(--checkbox-bg); /* couleur décoché */
}

.formulaire input[type="checkbox"]:checked {
    background-color: var(--checkbox-checked); /* couleur coché */
}

/* Tick proportionnel à la taille de la checkbox */
.formulaire input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 0.7vw;      /* position horizontale du tick */
    top: 0.2vw;       /* position verticale du tick */
    width: 0.8vw;     /* largeur du tick */
    height: 1.5vw;    /* hauteur du tick */
    border: solid var(--checkbox-tick);
    border-width: 0 0.3vw 0.3vw 0;
    transform: rotate(45deg);
}

/******* SECTION PLAN ********/

.map {
    width: 88.89vw;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border-radius: 3vw;
    padding-top: 3vw;
    padding-bottom: 5vw;
    gap: 3.5vw;
}

.map p {
    font-size: 3.61vw;
    font-weight: 400;
    word-wrap: break-word;
    width: 75vw;
}

.map iframe {
    width: 58.33vw;
    height: 30.56vw;
    margin: 0 auto;
    transform: translateX(6vw); /* décale vers la droite */
    filter: drop-shadow(0.3vw 0.2vw 0.56vw rgba(0, 0, 0, 0.3));
}

/******** HORAIRES ********/

.horaires {
    width: 88.89vw;
    height: auto;
    text-align: center;
}

.horaires p {
    font-size: 4vw;
    font-weight: 400;
    margin-bottom: 2.8vw;
}

.horaires ul {
    list-style: none;
}


.horaires li {
    font-size: 3.5vw;
    font-weight: 400;
    margin-bottom: 0.8vw;
}

/********* QRCODE **********/

.qr_code {
    width: 88.89vw;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.6vw;
}

.qr_code img {
    width: 22.40vw;
    height: 22.40vw;
}

.qr_code button {
    /* width: 33vw;  → supprimer */
    height: 6vw;
    padding: 0 4vw; /* espace horizontal flexible */
    border-radius: 2vw;

    font-size: 2.5vw;
    font-weight: 400;
    text-align: center;
    line-height: 6vw;
    border: none;
    cursor: pointer;
}

.qr_code p {
    font-size: 4vw;
    font-weight: 400;
}

/******** FOOTER ********/

.footer_mentions {
    width: 100vw;
    height: 22vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5vw;
}

.footer_mentions p {
    font-size: 3.5vw;
}

.footer_mentions a {
    font-size: 3.5vw;

}

/********** POP UP CONFIRMATION FORMULAIRE *********/

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    width: 80vw;
    padding: 8vw;
    border-radius: 3vw;
    text-align: center;
    box-shadow: 0 1.5vw 4vw rgba(0,0,0,0.15);
    color: #333;
}

.popup-content p {
    font-size: 4vw;
    margin: 0;
    line-height: 1.5;
}

#popup_close {
    float: right;
    font-size: 6vw;
    font-weight: bold;
    cursor: pointer;
    width: 6vw;
    height: 6vw;
    line-height: 6vw;
    text-align: center;
    border-radius: 50%;
}

/*********** MENTION ***********/

.mention_main {
    width: 80vw;
    font-size: 4.2vw;
    font-family: sans-serif;
    line-height: 1.4;
    margin: 0 auto;
    padding: 10vw 0
}

.mention_main h2 {
    font-size: 11.1vw;
    font-family: sans-serif;
    padding: 0 0 8.3vw 0
}

.mention_main h3 {
    font-size: 8.3vw;
    font-family: sans-serif;;
    padding: 4.2vw 0
}

.mention_main ul {
    padding: 4.2vw 0 0 10vw
}

.mention_main p {
    padding: 4.2vw 0
}

/******** COOKIES ****************/

/* Style du bandeau cookies */
#cookie_banner {
  position: fixed;
  bottom: 3vw;
  left: 2.5vw;
  right: 2.5vw;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  padding: 3vw 8vw;
  display: flex;
  flex-direction: column;
  gap: 2vw;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 3.5vw;
  z-index: 9999;
  box-shadow: 0 -0.2vw 2vw rgba(0,0,0,0.3);
  border-radius: 1vw;
  border: 1vw solid rgba(0, 0, 0, 0.1);

  animation: fadeUp 0.8s ease-out;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(60vw);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hide {
  opacity: 0;
  transform: translateY(60vw);
  pointer-events: none;
}

/* Boutons */
.cookie_actions {
  display: flex;
  gap: 2vw;
}

#cookie_banner p {
    width: 85vw;
}

#cookie_banner button {
  padding: 0.8vw 2.5vw;
  border: none;
  border-radius: 2vw;
  cursor: pointer;
  font-weight: bold;
  font-size: 3vw;
}

#accept_cookies {
  background-color: #2e7d32;
  color: #fff;
}

#accept_cookies:hover {
  opacity: 0.9;
}

#decline_cookies {
  background-color: #555;
  color: #fff;
}

#decline_cookies:hover {
  opacity: 0.85;
}

/******** PAGE 404 ********/

.page-404 {

margin: 0;

font-family: Arial, Helvetica, sans-serif;

background: #ffffff;
color: #000000;

display: flex;
justify-content: center;
align-items: center;

height: 100vh;

text-align: center;

}

/* Container */

.container-404 {

width: 85vw;

}

/* Logo */

.logo-404 {

width: 18vw;

margin-bottom: 6vw;

}

/* Code 404 */

.code-404 {

font-size: 22vw;

font-weight: bold;

margin: 0;

}

/* Message */

.message-404 {

font-size: 4vw;

margin-top: 4vw;
margin-bottom: 6vw;

color: #444;

line-height: 1.4;

}

/* Boutons container */

.buttons-404 {

display: flex;

flex-direction: column;

gap: 3vw;

margin-bottom: 8vw;

}

/* Boutons */

.btn-404 {

padding: 3vw 6vw;

border: 0.4vw solid #000;

border-radius: 2vw;

text-decoration: none;

font-size: 3.5vw;

font-weight: bold;

color: #000;

transition: 0.2s;

}

/* Hover */

.btn-404:hover {

background: #000;
color: #fff;

}

/* Secondary */

.secondary {

opacity: 0.7;

}

/* Footer */

.footer-404 {

font-size: 4.5vw;

color: #777;

}