/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* =========================
   FONTS
========================= */

@font-face {
  font-family: "Swiss721";
  src: url(/Swiss721CnBT.woff2) format("woff2");
  font-style: normal;
}


/* =========================
   RESET
========================= */

body {
  margin: 0;
  padding: 0;
  background: white;
  color: #6f6f6f;; /* ← gris clair */

  letter-spacing: 0.04em;      /* ← AJOUT */
  line-height: 1.5;            /* ← AJOUT */

  -webkit-font-smoothing: antialiased;   /* ← AJOUT */
  -moz-osx-font-smoothing: grayscale;    /* ← AJOUT */
}

/* =========================
   LAYOUT GLOBAL
========================= */

.page {
  position: relative;
  height: 100dvh;
  width: 100%;
}


/* =========================
   UI OVERLAY (MENU + TITRE)
========================= */

.ui-overlay {
  position: fixed;
  top: 60px;
  left: 40px;
  z-index: 10;

  font-family: "Swiss721", Arial, sans-serif;
  font-weight: normal;

  font-size: 16px;
  line-height: 1.3;
  color: inherit;

  letter-spacing: 0.05em;   /* ← AJOUT */
}

.ui-overlay .title {
  font-size: 18px;
  margin-bottom: 14px;
}

.ui-overlay a {
  display: block;
  font-size: 14px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 1px;
  transition: color 0.4s ease;
}

a {
  letter-spacing: 0.04em;
}

/*.ui-overlay a:hover {
  opacity: 0.6;
}*/
.ui-overlay a:hover,
.project-title a:hover {
  color: #b5b5b5;
  opacity: 1; /* on enlève l’opacité */
}

/* =========================
   CARROUSEL
========================= */

.carousel-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.carousel-container {
  position: relative;
  width: 70%;
  height: 70vh;
  overflow: hidden;
}

.carousel-image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  animation: fade 30s infinite;
}

/* Décalage images */
.carousel-image:nth-child(1) { animation-delay: 0s; }
.carousel-image:nth-child(2) { animation-delay: 6s; }
.carousel-image:nth-child(3) { animation-delay: 12s; }
.carousel-image:nth-child(4) { animation-delay: 18s; }
.carousel-image:nth-child(5) { animation-delay: 24s; }


/* Animation fondu */
@keyframes fade {
  0%, 8.33%   { opacity: 0; }
  8.33%, 16.66% { opacity: 1; }
  16.66%, 25% { opacity: 1; }
  25%, 33.33% { opacity: 0; }
  33.33%, 100% { opacity: 0; }
}


/* =========================
   LANDING PAGE (logo)
========================= */

.landing-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  background: #ffffff;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.logo {
  width: 250px;
  max-width: 80%;
  height: auto;
}


/* =========================
   CONTACT / AGENCE
========================= */

.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  text-align: center;
  position: relative;
}

.agence-container {
  display: flex;
  justify-content: center;  /* centre horizontalement */
  align-items: center;      /* centre verticalement */
  min-height: 100vh;        /* prend toute la hauteur de la page */
  padding: 40px 20px;       /* respire sur desktop et mobile */
  box-sizing: border-box;
  text-align: center;       /* texte centré */
  background: white;
  flex-direction: column;   /* titre au-dessus du texte */
}

/* TITRE DE LA PAGE */
.agence-title {
  font-family: "Swiss721", Arial, sans-serif;
  font-weight: normal;
  font-size: 28px;       /* légèrement plus grand que le texte */
  margin-bottom: 20px;   /* espace entre titre et texte */
  line-height: 1.2;
  color: inherit;
  max-width: 800px;
  width: 100%;
  text-align: left;

  letter-spacing: 0.03em;   /* ← AJOUT */
}

/* TEXTE DE L'AGENCE */
.agence-text {
  font-family: "Swiss721", Arial, sans-serif;
  font-weight: normal;
  font-size: 20px;
  line-height: 1.6;        /* aéré et lisible */
  max-width: 800px;        /* limite la largeur pour confort de lecture */
  color: inherit;
  text-align: justify;      /* optionnel : rend le texte plus “pro” */
}

.agence-title,
.agence-text {
  width: 100%;
  max-width: 800px;
}

.contact-text,
.agence-text {
  font-family: "Swiss721", Arial, sans-serif;
  font-weight: normal;

  font-size: 22px;
  letter-spacing: 0.2px;
  line-height: 1.6;
  color: inherit;

  letter-spacing: 0.04em;   /* ← AJOUT */
}

/* =========================
   PAGE PROJETS
========================= */

.projets-container {
  display: flex;
  flex-direction: column;  /* liste verticale */
  justify-content: center;
  align-items: center;     /* centre horizontalement */
  padding: 80px 20px;      /* espace autour */
  font-family: "Swiss721", Arial, sans-serif;
  position: relative;
}

.project-card {
  text-align: center;
  margin-bottom: 40px;      /* espace entre les projets */
  max-width: 600px;         /* limite largeur pour lecture agréable */
}

.project-title {
  font-size: 24px;
  font-weight: normal;
  margin-bottom: 6px;
}

.project-title a {
  text-decoration: none;   /* supprime le soulignement */
  color: inherit;          /* conserve la couleur du texte */

  letter-spacing: 0.03em;   /* ← AJOUT */
  line-height: 1.2;         /* ← AJOUT */
}

/*.project-title a:hover {
  opacity: 0.6;
}*/
.ui-overlay a:hover,
.project-title a:hover {
  color: #b5b5b5;
  opacity: 1; /* on enlève l’opacité */
}

.project-location {
  font-size: 18px;
  font-weight: normal;
  color: rgb(100, 100, 100); /* un gris léger pour la localisation */
}

.project-show-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
  font-family: "Swiss721", Arial, sans-serif;
  color: inherit;
}

.project-show-title {
  font-size: 32px;
  font-weight: normal;
  margin-bottom: 20px;
  text-align: center;
}

.project-details {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.project-details li {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 6px;
}

.project-description {
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
}

.project-card {
  position: relative;
  display: block;
  margin-bottom: 40px;
  max-width: 600px;
  text-decoration: none;
  color: inherit;
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-cover {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-overlay {
  position: absolute;
  bottom: 20px;
  right: 20px;
  text-align: right;
  color: white;
}

.project-title {
  font-size: 20px;
  margin: 0;
}

.project-location {
  font-size: 14px;
  margin: 0;
  color: rgba(255,255,255,0.8);
}

.project-card:hover .project-title {
  color: #b5b5b5;
}

.project-card:hover .project-cover {
  transform: scale(1.03);
}

.back-arrow {
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 24px;
  color: inherit;
  text-decoration: none;
  font-weight: bold;
  z-index: 10;  /* toujours au-dessus des autres éléments */
}

.back-arrow:hover {
  color: #757473;
}

/* =========================
   SHOW
========================= */

.project-full-image {
  width: 100%;
  height: auto;
  display: block;
}

.project-image-section {
  width: 100%;
  margin-bottom: 20px;
}

.project-show-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
}

.partner-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.4s ease;
}

.partner-link:hover {
  color: #b5b5b5;
}

.project-architect-link {
  text-decoration: none;
  position: relative;
  color: inherit;
}

.project-architect-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  background: currentColor;
  left: 0;
  bottom: -2px;
  transition: width 0.3s ease;
}

.project-architect-link:hover::after {
  width: 100%;
}

.project-details-label {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 6px;
}

/* =========================
   MENU LOGO TOGGLE CLEAN
========================= */

/* Logo */
.menu-logo {
  width: 90px;
  height: auto;
  cursor: pointer;
  margin-bottom: 10px;
}

/* Menu caché par défaut */
.menu-links {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;

  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Desktop → hover */
@media (min-width: 769px) {
  .ui-overlay:hover .menu-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Mobile → JS toggle */
@media (max-width: 768px) {
  .menu-links.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* =========================
   RESPONSIVE
========================= */

/* Mobile */
@media (max-width: 768px) {

  :root {
    --content-width: 72%;
  }

  .ui-overlay {
    /*position: fixed;
    top: 60px;
    left: 40px;
    z-index: 10;

    font-family: "Swiss721", Arial, sans-serif;
    font-weight: normal;

    font-size: 16px;
    line-height: 1.3;
    color: rgb(6,6,6);

    display: flex;
    flex-direction: column;
    align-items: flex-start;*/

    position: fixed;
    top: 60px;

    left: 50%;
    transform: translateX(-50%);

    /*width: 72%;  EXACTEMENT comme ton carousel */
    width: var(--content-width);

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    z-index: 10;

    font-family: "Swiss721", Arial, sans-serif;
    font-size: 16px;
  }

  .ui-overlay .title {
    font-size: 14px;
  }

  .ui-overlay a {
    font-size: 13px;
  }

  .menu-logo {
    width: 70px;
  }

  .menu-links {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 6px;

    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;

    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .menu-links a {
    white-space: nowrap;     /* évite retour à la ligne */
    overflow: auto;
    gap: 16px;
  }

  .carousel-container {
    /*width: 72%;*/
    width: 100%;
    height: 45vh;
  }

  .contact-text,
  .agence-text {
    font-size: 14px;
  }

  .agence-text {
    font-size: 13px;
    line-height: 1.5;
    padding: 0 30px;  /* laisse un peu d’espace sur les côtés */
  }

  .agence-title {
    font-size: 20px;  /* réduit le titre sur mobile */
    padding: 0 30px;
  }

  .project-title {
    font-size: 20px;
  }

  .project-location {
    font-size: 16px;
  }

  .back-arrow {
    font-size: 20px;    /* légèrement plus petit */
    top: 15px;
    left: 15px;
    color: inherit;
  }
}

/* Très petits écrans */
@media (max-width: 480px) {
  .menu-logo {
    width: 70px;
  }
}

/* Très grands écrans */
@media (min-width: 1200px) {
  .logo {
    width: 250px;
  }

  .agence-text {
    font-size: 15px;
    line-height: 1.4;
  }

  .agence-title {
    font-size: 20px;
  }
}

/* =========================
   FIX iOS AUTO LINK (prix)
========================= */

.no-link {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: none;
}

.no-link,
.no-link * {
  color: inherit !important;
  text-decoration: none !important;
}
