/*
 * 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: 3s; }
.carousel-image:nth-child(3) { animation-delay: 6s; }
.carousel-image:nth-child(4) { animation-delay: 9s; }
.carousel-image:nth-child(5) { animation-delay: 12s; }
.carousel-image:nth-child(6) { animation-delay: 15s; }
.carousel-image:nth-child(7) { animation-delay: 18s; }
.carousel-image:nth-child(8) { animation-delay: 21s; }
.carousel-image:nth-child(9) { animation-delay: 24s; }
.carousel-image:nth-child(10) { animation-delay: 27s; }
.carousel-image:nth-child(11) { animation-delay: 30s; }
.carousel-image:nth-child(12) { animation-delay: 33s; }
.carousel-image:nth-child(13) { animation-delay: 36s; }


/* 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;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  text-align: center;
  position: relative;
  padding: 40px 20px;
  box-sizing: border-box;
}

.contact-image {
  margin-bottom: 30px;
}

.contact-photo {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
}

.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: 20px;
  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-title {
  margin-top: 10px;
  margin-bottom: 0px;
  font-size: 20px;
  font-weight: normal;
  text-align: right;
}

.project-location {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 14px;
  color: #6f6f6f;
  text-align: right;
}

.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: 50px;
}

.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 {
  font-size: 14px;
  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;
  }

  .contact-text,
  .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;
  }

  .admin-login-logo{

    width:90px;

  }

.admin-login-title{

    font-size:18px;

  }

.admin-login-form{

    max-width:100%;

  }

.admin-login-container{

    padding:30px;

  }
}

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

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

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

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

/* =========================
   FOOTER
========================= */

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  padding: 30px 20px;

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

.site-footer a {
  text-decoration: none;
  color: inherit;
  transition: color 0.4s ease;
}

.site-footer a:hover {
  color: #b5b5b5;
}

.footer-separator {
  color: #b5b5b5;
}

.instagram-icon {
  font-size: 14px;
}

/* =========================
   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;
}


/* =========================
   ADMIN LOGIN
========================= */

.admin-login-container {

  min-height: 100vh;

  display: flex;
  flex-direction: column;

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

  padding: 40px;

  box-sizing: border-box;

  background: white;

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

}

.admin-login-logo{

    width:120px;
    height:auto;

    margin-bottom:50px;

}

.admin-login-title{

    font-size:22px;
    font-weight:normal;

    margin-bottom:40px;

    color:inherit;

    letter-spacing:.04em;

}

.admin-login-form{

    width:100%;
    max-width:360px;

}

.admin-field{

    margin-bottom:30px;

}

.admin-login-form input:not([type="submit"]){

    width:100%;

    padding:14px 0;

    border:none;

    border-bottom:1px solid #d8d8d8;

    background:white;

    color:inherit;

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

    font-size:15px;

    outline:none;

    transition:border-color .3s ease;

}

.admin-login-form textarea {

    width: 100%;

    padding: 14px 0;

    border: none;

    border-bottom: 1px solid #d8d8d8;

    background: white;

    color: inherit;

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

    font-size: 15px;

    resize: vertical;

    outline: none;

    transition: border-color .3s ease;

}

.admin-login-form textarea:focus {

    border-bottom: 1px solid #6f6f6f;

}

.admin-login-form textarea::placeholder {

    color: #a5a5a5;

}

.admin-login-form input:not([type="submit"]):focus{

    border-bottom:1px solid #6f6f6f;

}

.admin-login-form input:not([type="submit"])::placeholder{

    color:#a5a5a5;

}

.admin-login-button{

    width:100%;

    padding:14px;

    margin-top:20px;

    border:1px solid #d8d8d8;

    background:white;

    cursor:pointer;

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

    font-size:14px;

    color:inherit;

    letter-spacing:.05em;

    transition:all .35s ease;

}

.admin-login-button:hover{

    color:#b5b5b5;

    border-color:#b5b5b5;

}

.admin-login-alert{

    margin-bottom:30px;

    font-size:14px;

    color:#8a8a8a;

}

/* =========================
   ADMIN SETTINGS
========================= */

.settings-section{
    width:100%;
    max-width:520px;
    margin-bottom:60px;
}

.settings-section h2{

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

    font-size:18px;

    margin-bottom:25px;

    color:inherit;

    letter-spacing:.04em;
}

.settings-checkbox{

    margin-bottom:30px;

    font-size:15px;
}

.settings-checkbox label{

    display:flex;
    align-items:center;
    gap:12px;

    cursor:pointer;
}

.settings-checkbox input{

    width:18px;
    height:18px;
}

.settings-email{

    margin-bottom:4px;
}

/* =========================
   ADMIN NEWS
========================= */

.admin-news-container {

    justify-content: flex-start;

    align-items: center;

    padding-top: 60px;

}

.admin-news-header {

    width: 100%;

    max-width: 1500px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 50px;

}

.news-add-button {

    text-decoration: none;

    color: inherit;

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

    font-size: 34px;

    font-weight: normal;

    transition: color .35s ease;

}

.news-add-button:hover {

    color: #b5b5b5;

}

/* ----- Grille ----- */

.news-grid {

    width: 100%;

    max-width: 1500px;

    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 35px;

}

/* ----- Carte ----- */

.news-card {

    display: flex;

    flex-direction: column;

}

/* Emplacement de la future image */

.news-card-image {

    width: 100%;

    aspect-ratio: 4 / 3;

    background: #efefef;

}

.news-image {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}

/* Corps de carte */

.news-card-body {

    margin-top: 16px;

}

.news-card-title {

    margin: 0 0 10px;

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

    font-size: 18px;

    font-weight: normal;

    color: inherit;

    line-height: 1.3;

}

.news-card-date {

    margin-bottom: 12px;

    font-size: 13px;

    color: #9b9b9b;

}

.news-card-content {

    font-size: 14px;

    line-height: 1.6;

    color: inherit;

}

/* Actions */

.news-actions {

    display: flex;

    justify-content: space-between;

    margin-top: 18px;

}

.news-actions a {

    text-decoration: none;

    color: inherit;

    font-size: 13px;

    transition: color .35s ease;

}

.news-actions a:hover {

    color: #b5b5b5;

}

/* =========================
   RESPONSIVE ADMIN NEWS
========================= */

@media (max-width: 1200px) {

    .news-grid {

        grid-template-columns: repeat(3, 1fr);

    }

}

@media (max-width: 900px) {

    .news-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}

@media (max-width: 768px) {

    .admin-news-container {

        padding: 80px 20px 40px;

    }

    .admin-news-header {

        width: 100%;

        margin-bottom: 30px;

    }

    .news-grid {

        grid-template-columns: 1fr;

        gap: 40px;

    }

    .news-card {

        width: 100%;

    }

}

.news-page-title {

    text-align: left;

    margin-bottom: 40px;

}

.news-card-body {

    text-align: left;

}

/* ===========================
   Détail d'une actualité
=========================== */

.news-detail {

    max-width: 900px;

    margin: 0 auto;

}

.news-detail-image {

    margin-bottom: 40px;

}

.news-detail-photo {

    width: 100%;

    display: block;

    border-radius: 8px;

}

.news-detail-title {

    text-align: left;

    margin-bottom: 10px;

}

.news-detail-date {

    color: #777;

    margin-bottom: 40px;

    text-align: left;

}

.news-detail-content {

    text-align: justify;

    line-height: 1.8;

}

/* Carte d'actualité cliquable */

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card-link:hover .news-card {
    transform: translateY(-4px);
    transition: transform 0.2s ease;
    cursor: pointer;
}
