* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: Arial, sans-serif;
    color: #1e1e1e;
    background-color: #f3f0ea;
    line-height: 1.6;
  }
  
  .hero {
    min-height: 100vh;
    background-color: #111;
    color: white;
    display: flex;
    flex-direction: column;
  }
  .hero-logo-background {
    height: 107vh;
    background-image: url("logo.jpg");
    background-size: 85% auto;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #111;
  }
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 8%;
  }
  
  .logo {
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  
  .navbar ul {
    display: flex;
    gap: 24px;
    list-style: none;
  }
  
  .navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
  }
  
  .navbar a:hover {
    color: #c28b36;
  }
  
  .hero-content {
    padding: 32px 8% 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .hero-logo {
    width: min(760px, 85vw);
    max-height: 55vh;
    object-fit: contain;
    margin-bottom: 36px;
  }
  .hero-content h1 {
    font-size: clamp(42px, 8vw, 92px);
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
  }
  
  .hero-content p {
    max-width: 760px;
    font-size: clamp(18px, 2vw, 24px);
    margin-bottom: 28px;
    color: #e8e2d6;
  }
  
  .btn {
    display: inline-block;
    background-color: #c28b36;
    color: white;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
  }
  
  .btn:hover {
    background-color: #9c6d28;
    transform: translateY(-2px);
  }
  
  .section {
    padding: 90px 8%;
  }
  .section-intro {
    max-width: 900px;
  }
  
  .section-label {
    display: inline-block;
    margin-bottom: 18px;
    color: #c28b36;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
  }
  
  .atelier-section h2 {
    max-width: 850px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    margin-bottom: 28px;
  }
  
  .atelier-section p {
    max-width: 820px;
    font-size: 20px;
    line-height: 1.8;
  }
  .section h2 {
    font-size: 42px;
    margin-bottom: 24px;
  }
  
  .section p {
    max-width: 800px;
    font-size: 18px;
  }
  
  .dark {
    background-color: #1e1e1e;
    color: white;
  }
  
  .cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
  }
  
  .card {
    background-color: #2d2d2d;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid #444;
  }
  
  .card h3 {
    color: #c28b36;
    margin-bottom: 16px;
  }
  .elysium-subtitle {
    color: #f0cf63;
    font-weight: normal;
  }
  .card-cta {
    display: inline-block;
    margin-top: 22px;
    color: #c28b36;
    font-weight: bold;
    text-decoration: none;
  }
  
  .card-cta:visited {
    color: #c28b36;
  }
  
  .card-cta:hover {
    color: #f0cf63;
    text-decoration: underline;
  }
  .card h4 {
    margin-bottom: 14px;
    color: #e8e2d6;
    font-size: 17px;
    font-weight: normal;
    line-height: 1.4;
  }
  .contact {
    text-align: center;
  }
  
  .contact p {
    margin: 0 auto 32px;
  }
  
  footer {
    background-color: #111;
    color: #aaa;
    text-align: center;
    padding: 24px;
    font-size: 14px;
  }
  .gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
  }
  
  .gallery-item {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d8d2c7;
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  }
  
  .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .gallery-item h3 {
    padding: 20px;
    font-size: 20px;
    color: #1e1e1e;
    text-align: center;
  }
  .page-header {
    background-color: #111;
    color: white;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
  }
  
  .page-header-content {
    flex: 1;
    padding: 80px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1000px;
  }
  
  .page-header-content h1 {
    font-size: clamp(42px, 7vw, 88px);
    line-height: 1;
    margin-bottom: 28px;
  }
  
  .page-header-content p {
    max-width: 760px;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.7;
    color: #e8e2d6;
  }
  
  .photo-wall {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  
  .photo-wall img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .photo-wall img:hover {
    transform: scale(1.02);
    opacity: 0.9;
  }
  
  .back-link {
    display: inline-block;
    margin-top: 42px;
    color: #c28b36;
    font-weight: bold;
    text-decoration: none;
  }
  
  .back-link:hover {
    text-decoration: underline;
  }
  
  .lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.92);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 40px;
    z-index: 9999;
  }
  
  .lightbox.active {
    display: flex;
  }
  
  .lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
  }
  
  .lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: white;
    font-size: 48px;
    cursor: pointer;
  }
  .contact-section {
    background-color: #1e1e1e;
    color: white;
  }
  
  .contact-section h2 {
    max-width: 800px;
    margin: 0 auto 28px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
  }
  
  .contact-section p {
    max-width: 820px;
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.8;
  }
  
  .contact-actions {
    margin-top: 36px;
    margin-bottom: 28px;
  }
  
  .contact-note {
    color: #c9c0b5;
    font-size: 16px !important;
  }
  .site-footer {
    background-color: #111;
    color: #c9c0b5;
    padding: 56px 8% 32px;
    text-align: center;
  }
  
  .footer-content {
    max-width: 900px;
    margin: 0 auto;
  }
  
  .footer-brand {
    color: #c28b36;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
  }
  
  .footer-text {
    font-size: 17px;
    margin-bottom: 28px;
  }
  
  .footer-nav {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 32px;
  }
  
  .footer-nav a {
    color: #e8e2d6;
    text-decoration: none;
    font-weight: bold;
  }
  
  .footer-nav a:hover {
    color: #c28b36;
  }
  
  .footer-copy {
    font-size: 14px;
    color: #8f867d;
  }
  @media (max-width: 800px) {
    .navbar {
      flex-direction: column;
      gap: 18px;
      padding: 22px 6%;
    }
  
    .logo {
      font-size: 14px;
      text-align: center;
    }
  
    .navbar ul {
      flex-direction: column;
      gap: 12px;
      text-align: center;
    }
  
    .navbar a {
      font-size: 15px;
    }
  
    .hero-logo-background {
      height: 38vh;
      background-size: 96% auto;
      background-position: center 18px;
    }
    
    .hero-content {
      min-height: 190px;
      padding: 0 6%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
    }
    .hero {
      min-height: auto;
    }
  
    .hero-content p {
      max-width: 320px;
      font-size: 18px;
      line-height: 1.6;
      margin: 0 0 24px;
    }
  
    .btn {
      padding: 13px 22px;
      font-size: 15px;
    }
  
    .section {
      padding: 64px 6%;
    }
  
    .section-label {
      font-size: 12px;
      letter-spacing: 2.5px;
    }
  
    .atelier-section h2,
    .services-section h2,
    .galerie-section h2,
    .contact-section h2 {
      font-size: 34px;
      line-height: 1.08;
    }
  
    .atelier-section p,
    .services-section p,
    .galerie-section p,
    .contact-section p {
      font-size: 17px;
      line-height: 1.7;
    }
  
    .cards {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  
    .card {
      padding: 26px;
    }
  
    .card h3 {
      font-size: 22px;
    }
  
    .gallery {
      grid-template-columns: 1fr;
      gap: 22px;
    }
  
    .gallery-item h3 {
      font-size: 19px;
      padding: 18px;
    }
  
    .page-header {
      min-height: 52vh;
    }
  
    .page-header-content {
      padding: 56px 6%;
    }
  
    .page-header-content h1 {
      font-size: 38px;
      line-height: 1.05;
    }
  
    .page-header-content p {
      font-size: 17px;
      line-height: 1.65;
    }
  
    .photo-wall {
      grid-template-columns: 1fr;
      gap: 18px;
    }
  
    .lightbox {
      padding: 18px;
    }
  
    .lightbox-img {
      max-width: 96vw;
      max-height: 82vh;
    }
  
    .lightbox-close {
      top: 14px;
      right: 18px;
      font-size: 42px;
    }
  
    .footer-nav {
      flex-direction: column;
      gap: 14px;
    }
  
    .site-footer {
      padding: 46px 6% 30px;
    }
  
    .footer-brand {
      font-size: 20px;
    }
  
    .footer-text {
      font-size: 16px;
    }
  }
      
      @media (max-width: 1100px) {
        .cards {
          grid-template-columns: repeat(2, 1fr);
        }
      
        .gallery {
          grid-template-columns: repeat(2, 1fr);
        }
        .photo-wall {
            grid-template-columns: repeat(2, 1fr);
          }
      }
      
      @media (max-width: 800px) {
        .navbar {
          flex-direction: column;
          gap: 20px;
        }
      
        .navbar ul {
          flex-direction: column;
          text-align: center;
        }
      
        .cards {
          grid-template-columns: 1fr;
        }
      
        .gallery {
          grid-template-columns: 1fr;
        }
        .photo-wall {
            grid-template-columns: 1fr;
          }
      }
      
/* PAGE RÉALISATIONS */

.realisations-page {
  background-color: #111;
  color: #f3f0ea;
}

/* Menu : conserve sa place et suit le défilement */

.realisations-page > .navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #111;
  color: #f3f0ea;
  border-bottom: 1px solid #303030;
}

.realisations-page .navbar a[aria-current="page"] {
  color: #c28b36;
}

/* Introduction */

.realisations-intro {
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 8% 40px;
}

.realisations-intro h1 {
  margin-bottom: 12px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
}

.realisations-intro p {
  color: #c8c3ba;
  font-size: 18px;
}

/* Galerie sur deux colonnes */

.realisations-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 8% 64px;
}

.realisations-page .projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 32px;
}

.realisations-page .project {
  min-width: 0;
}

.realisations-page .project .photo-wall {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 0;
}

/* Photos entières, sans couper les ouvrages */

.realisations-page .project .photo-wall img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 4px;
  cursor: zoom-in;
  transform: none;
}

.realisations-page .project h2 {
  margin: 18px 0 8px;
  color: #c28b36;
  font-size: 24px;
  line-height: 1.25;
}

.realisations-page .project p {
  color: #c8c3ba;
  font-size: 16px;
  line-height: 1.7;
}

/* Les deux vues du puits, côte à côte */

.realisations-page .project-wide {
  grid-column: 1 / -1;
}

.realisations-page .project-wide .photo-wall {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Bouton Contact */

.realisations-contact {
  margin-top: 64px;
  text-align: center;
}

/* Smartphone */

@media (max-width: 800px) {
  .realisations-page > .navbar {
    flex-direction: column;
    gap: 10px;
    padding: 12px 6%;
  }

  .realisations-page .navbar ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
  }

  .realisations-intro {
    padding: 36px 6% 28px;
  }

  .realisations-main {
    padding: 0 6% 40px;
  }

  .realisations-page .projects-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .realisations-page .project-wide .photo-wall {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .realisations-page .project h2 {
    font-size: 22px;
  }

  .realisations-contact {
    margin-top: 40px;
  }
}
/* Accueil : adapter chaque carte à son contenu */
#galerie .gallery {
  align-items: start;
}
/* Boutons de navigation des photos agrandies */

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;

  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;

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

  background-color: rgba(17, 17, 17, 0.85);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: #c28b36;
  color: #111;
}

.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: 3px solid #f0cf63;
  outline-offset: 4px;
}

/* Boutons adaptés aux petits écrans */

@media (max-width: 800px) {
  .lightbox-prev,
  .lightbox-next {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}
/* Logo plus compact sur l’accueil */
.hero {
  min-height: auto;
}

.hero-logo-background {
  height: 65vh;
  background-size: auto 100%;
  background-position: center;
}

@media (max-width: 800px) {
  .hero-logo-background {
    height: 30vh;
    background-size: contain;
  }
}
.contact-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #111;
  color: #f3f0ea;
}

.contact-page .navbar {
  background-color: #111;
  border-bottom: 1px solid #303030;
}

.contact-page .navbar a[aria-current="page"] {
  color: #c28b36;
}

.contact-page-content {
  flex: 1;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px 8%;
}

.contact-page-content h1 {
  margin-bottom: 24px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
}

.contact-page-content p {
  color: #c8c3ba;
  font-size: 18px;
}

.contact-details {
  margin-top: 40px;
}

.contact-details h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

.contact-details .contact-email {
  color: #c28b36;
  font-size: clamp(20px, 3vw, 28px);
  overflow-wrap: anywhere;
}

@media (max-width: 800px) {
  .contact-page .navbar ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }
}
/* Formulaire de contact */
.contact-form {
  display: grid;
  gap: 24px;
  margin-top: 36px;
}

.contact-form .form-field {
  display: grid;
  gap: 8px;
}

.contact-form label {
  color: #f3f0ea;
  font-size: 17px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #666;
  border-radius: 6px;
  background-color: #1e1e1e;
  color: #f3f0ea;
  font: inherit;
  font-size: 17px;
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #c28b36;
  outline: 2px solid #c28b36;
  outline-offset: 2px;
}

.contact-form .form-note {
  font-size: 14px;
  color: #c8c3ba;
}

.contact-form .btn {
  justify-self: start;
  min-height: 48px;
  border: 0;
  font: inherit;
  font-weight: bold;
  background-color: #c28b36;
  color: #111;
  cursor: pointer;
}

.contact-form .btn:hover {
  background-color: #dba44c;
}

.contact-form .btn:focus-visible {
  outline: 3px solid #f0cf63;
  outline-offset: 4px;
}
/* ==================================================
   PREMIER LOT — ACCUEIL, OFFRES ET CONTACT
   À ajouter à la fin du fichier style.css existant.
   ================================================== */

/* Navigation et accès au clavier */

html {
  scroll-padding-top: 110px;
}

section[id] {
  scroll-margin-top: 110px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #c28b36;
  outline-offset: 6px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 12px 18px;
  background: #f3f0ea;
  color: #111;
  font-weight: bold;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.home-page .navbar .logo {
  color: #f3f0ea;
  text-decoration: none;
}

.home-page .navbar .logo:hover {
  color: #f0cf63;
}

/* Accueil */

.home-page .hero {
  min-height: auto;
  background: #111;
}

.home-hero-layout {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 132px 8% 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: center;
}

.hero-brand {
  min-width: 0;
}

.hero-brand-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.home-page .hero-content {
  padding: 0;
  min-width: 0;
  align-items: flex-start;
  text-align: left;
}

.home-page .hero-content .section-label {
  margin-bottom: 22px;
}

.home-page .hero-content h1 {
  margin: 0 0 24px;
  font-size: clamp(32px, 3.5vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-transform: none;
}

.home-page .hero-content p {
  margin: 0 0 22px;
  max-width: 620px;
  font-size: 19px;
  line-height: 1.7;
}

.home-page .hero-content .hero-location {
  margin-bottom: 30px;
  font-size: 15px;
  color: #c9c0b5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.home-page .btn {
  background: #c28b36;
  color: #111;
  border: 1px solid #c28b36;
  text-align: center;
}

.home-page .btn:hover {
  background: #f0cf63;
  border-color: #f0cf63;
  color: #111;
}

.home-page .btn-secondary {
  color: #f3f0ea;
  background: transparent;
  border-color: #7d7364;
}

.home-page .btn-secondary:hover {
  color: #f0cf63;
  background: transparent;
  border-color: #f0cf63;
}

/* Textes et liens */

.home-page .section-intro > p + p {
  margin-top: 20px;
}

.home-page .section h2 {
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.home-page .section p {
  line-height: 1.8;
}

.text-link {
  display: inline-block;
  margin-top: 26px;
  color: #79521d;
  font-weight: bold;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Trois offres principales */

.home-page .services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.home-page .services-grid .card {
  display: flex;
  flex-direction: column;
}

.card-number {
  display: block;
  margin-bottom: 20px;
  color: #aaa095;
  font-size: 14px;
  letter-spacing: 2px;
}

.home-page .card h3 {
  color: #f0cf63;
  font-size: 23px;
  line-height: 1.3;
}

.home-page .card p {
  font-size: 17px;
  color: #e8e2d6;
}

.home-page .card-cta {
  color: #f0cf63;
  margin-top: auto;
  padding-top: 26px;
}

.home-page .card-cta:visited {
  color: #f0cf63;
}

/* Collaborations professionnelles */

.professionals-section {
  background: #eae4da;
}

.professional-layout,
.elysium-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 60px;
  align-items: start;
}

.professional-content p + p {
  margin-top: 20px;
}

.professional-content .btn {
  margin-top: 28px;
}

.repair-note {
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid #c6bcad;
}

.repair-note h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.home-page .repair-note p {
  max-width: 950px;
  font-size: 17px;
}

.repair-note .text-link {
  margin-top: 16px;
}

/* Liens des galeries :
   les photos seront ajoutées au prochain lot. */

.home-page .home-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-gallery .gallery-item {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-top: 3px solid #c28b36;
}

.gallery-category {
  color: #79521d;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.home-gallery .gallery-item h3 {
  padding: 0;
  margin: 16px 0 12px;
  font-size: 25px;
  line-height: 1.25;
  text-align: left;
}

.home-page .home-gallery .gallery-item p {
  color: #514b42;
  font-size: 17px;
}

.gallery-open {
  display: block;
  margin-top: auto;
  padding-top: 26px;
  color: #79521d;
  font-weight: bold;
}

/* Élysium Design */

.elysium-section {
  background: #e5e5dc;
  border-top: 1px solid #d0d0c5;
}

.elysium-section .section-label {
  color: #26495c;
}

.home-page .elysium-section h2 {
  color: #26495c;
  font-size: clamp(28px, 3vw, 40px);
}

.elysium-section .text-link {
  color: #26495c;
}

/* Contact */

.home-page .contact-section > p + p {
  margin-top: 20px;
}

.home-page .contact-section .section-label {
  color: #f0cf63;
}

.home-page .contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
  margin-bottom: 30px;
}

.contact-email {
  color: #f0cf63;
  font-size: 21px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-email:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Tablettes */

@media (max-width: 1100px) {
  .home-hero-layout {
    gap: 32px;
    padding-left: 6%;
    padding-right: 6%;
  }

  .home-page .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .services-grid .card:last-child {
    grid-column: 1 / -1;
  }

  .professional-layout,
  .elysium-layout {
    gap: 36px;
  }

  .home-page .home-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Téléphones */

@media (max-width: 800px) {
  html {
    scroll-padding-top: 120px;
  }

  section[id] {
    scroll-margin-top: 120px;
  }

  .home-page .navbar {
    gap: 10px;
    padding: 12px 5%;
  }

  .home-page .navbar .logo {
    font-size: 13px;
    letter-spacing: 0.5px;
  }

  .home-page .navbar ul {
    gap: 8px 15px;
  }

  .home-page .navbar a {
    font-size: 14px;
  }

  .home-hero-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 122px 6% 48px;
  }

  .hero-brand {
    width: min(100%, 420px);
    margin: 0 auto;
  }

  .home-page .hero-content {
    min-height: auto;
    padding: 0;
    align-items: center;
    text-align: center;
  }

  .home-page .hero-content .section-label {
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
  }

  .home-page .hero-content h1 {
    font-size: clamp(29px, 7vw, 40px);
    margin-bottom: 20px;
  }

  .home-page .hero-content p {
    max-width: 520px;
    font-size: 17px;
    margin-bottom: 18px;
  }

  .home-page .hero-content .hero-location {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .hero-actions {
    width: 100%;
    justify-content: center;
  }

  .home-page .section h2 {
    font-size: 32px;
  }

  .home-page .services-grid,
  .home-page .home-gallery,
  .professional-layout,
  .elysium-layout {
    grid-template-columns: 1fr;
  }

  .home-page .services-grid .card:last-child {
    grid-column: auto;
  }

  .professional-layout,
  .elysium-layout {
    gap: 18px;
  }

  .home-gallery .gallery-item {
    padding: 26px;
  }

  .repair-note {
    margin-top: 38px;
  }

  .contact-email {
    font-size: 19px;
  }
}

@media (max-width: 380px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* Respect des préférences de mouvement */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .home-page *,
  .home-page *::before,
  .home-page *::after {
    transition: none;
    animation: none;
  }
}
/* Menu fixe et transparent sur toutes les pages */

.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background-color: rgba(17, 17, 17, 0.65);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.navbar.scrolled {
  background-color: rgba(17, 17, 17, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
/* Formulaire de contact */

.home-page .project-form {
  max-width: 850px;
  margin: 36px auto;
  padding: 32px;
  text-align: left;
  background: #292929;
  border: 1px solid #484848;
  border-radius: 8px;
}

.home-page .project-form .form-required-note {
  margin: 0 0 24px;
  font-size: 14px;
  color: #c9c0b5;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 16px;
  font-weight: bold;
  color: #f3f0ea;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #766e62;
  border-radius: 4px;
  background: #f3f0ea;
  color: #1e1e1e;
  font: inherit;
  font-size: 16px;
}

.form-field textarea {
  resize: vertical;
  min-height: 150px;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 3px solid #f0cf63;
  outline-offset: 3px;
}

.form-field input[type="file"] {
  padding: 10px;
}

.form-field input[type="file"]::file-selector-button {
  padding: 8px 12px;
  margin-right: 12px;
  border: 0;
  border-radius: 3px;
  background: #ded6c8;
  color: #111;
  cursor: pointer;
}

.form-field small {
  color: #c9c0b5;
  font-size: 13px;
  line-height: 1.6;
}

.home-page .project-form .form-privacy-note {
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #c9c0b5;
}

.project-form button.btn {
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.project-form button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.home-page .project-form .form-status {
  margin: 22px 0 0;
  padding: 16px;
  font-size: 16px;
  line-height: 1.6;
  border-radius: 4px;
}

.form-status[data-state="success"] {
  background: #20392b;
  color: #e3f5e9;
  border: 1px solid #6eaa83;
}

.form-status[data-state="error"] {
  background: #422825;
  color: #ffe8e2;
  border: 1px solid #cf9587;
}

.new-tab-note {
  font-size: 13px;
  font-weight: normal;
}

@media (max-width: 800px) {
  .home-page .project-form {
    padding: 24px 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-form button.btn {
    width: 100%;
  }
}
/* ==================================================
   PORTFOLIO — PRÉSENTATION PAR PROJET
   ================================================== */

.portfolio-page .navbar .logo {
  color: #f3f0ea;
  text-decoration: none;
}

.portfolio-page .navbar .logo:hover {
  color: #f0cf63;
}

.portfolio-page .page-header {
  min-height: auto;
}

.portfolio-page .page-header-content {
  max-width: 1200px;
  padding: 150px 8% 64px;
}

.portfolio-page .page-header-content h1 {
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.08;
}

.portfolio-page .page-header-content p {
  font-size: 20px;
}

.portfolio-section {
  max-width: 1400px;
  margin: 0 auto;
}

.portfolio-project + .portfolio-project {
  margin-top: 72px;
  padding-top: 64px;
  border-top: 1px solid #d0c7b9;
}

.project-intro {
  max-width: 850px;
  margin-bottom: 30px;
}

.portfolio-page .project-intro h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
}

.project-intro p + p {
  margin-top: 16px;
}

.photo-wall.project-photos {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}

.project-photo {
  margin: 0;
  min-width: 0;
}

.project-photo-main {
  grid-column: 1 / -1;
}

.photo-wall.project-photos img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.project-photo figcaption {
  margin-top: 10px;
  color: #665d51;
  font-size: 14px;
  line-height: 1.6;
}

.photo-wall.project-photos-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 680px;
}

.portfolio-contact {
  margin-top: 72px;
  padding: 36px;
  background: #eae4da;
  border: 1px solid #d0c7b9;
  border-radius: 8px;
}

.portfolio-page .portfolio-contact h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

.portfolio-contact p {
  margin-bottom: 24px;
}

.portfolio-page .btn {
  color: #111;
  border: 1px solid #c28b36;
}

.portfolio-page .btn:hover {
  background: #f0cf63;
  border-color: #f0cf63;
}

.portfolio-page .back-link {
  color: #79521d;
}

.portfolio-page .footer-nav {
  margin-top: 24px;
}

.photo-wall img:focus-visible {
  outline: 3px solid #79521d;
  outline-offset: 5px;
}

/* La page reste immobile derrière la photo agrandie. */

body.photo-open {
  overflow: hidden;
}

@media (max-width: 800px) {
  .portfolio-page .page-header-content {
    padding: 140px 6% 44px;
  }

  .portfolio-page .page-header-content h1 {
    font-size: 36px;
  }

  .portfolio-page .page-header-content p {
    font-size: 17px;
  }

  .photo-wall.project-photos {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-photo-main {
    grid-column: auto;
  }

  .portfolio-project + .portfolio-project {
    margin-top: 48px;
    padding-top: 44px;
  }

  .portfolio-contact {
    margin-top: 48px;
    padding: 26px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-wall img,
  .gallery-item,
  .btn {
    transition: none;
  }
}
/* ==================================================
   CADRES PHOTOS — DIMENSIONS ADAPTÉES À CHAQUE IMAGE
   ================================================== */

.project-carousel,
.project-carousel.project-photos-single {
  position: relative;
  width: min(100%, 820px);
  max-width: 100%;
  margin: 30px auto 0;
  overflow: hidden;

  background: #fffdf8;
  border: 1px solid #d8d0c3;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(30, 25, 18, 0.10);
}

.project-carousel .project-photo {
  margin: 0;
}

.project-carousel .project-photo[hidden] {
  display: none;
}

.carousel-image-button {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.project-carousel .project-photo img,
.project-carousel .carousel-image-button img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 0;
  transform: none;
  opacity: 1;
}

.project-carousel .project-photo figcaption {
  margin: 0;
  padding: 16px 20px;
  min-height: 0;

  background: #fffdf8;
  color: #51483c;
  font-size: 15px;
  line-height: 1.6;
}

.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;

  padding: 10px 18px 14px;
  background: #fffdf8;
  border-top: 1px solid #eee7db;
}

.carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;
  flex-shrink: 0;

  border: 1px solid #705321;
  border-radius: 50%;
  background: #24211c;
  color: #f0cf63;

  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.carousel-arrow:hover {
  background: #4a3820;
}

.carousel-arrow[hidden] {
  display: none;
}

.carousel-counter {
  color: #665d51;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.carousel-image-button:focus-visible,
.carousel-arrow:focus-visible,
.viewer-close:focus-visible {
  outline: 3px solid #c28b36;
  outline-offset: -4px;
}

.carousel-error {
  padding: 20px;
  color: #8c3023;
  font-size: 14px;
  line-height: 1.6;
}

/* Agrandissement */

.portfolio-viewer {
  width: min(1150px, 96vw);
  max-width: 96vw;
  max-height: 94vh;
  margin: auto;
  padding: 56px 16px 18px;
  overflow: auto;

  border: 1px solid #63594c;
  border-radius: 10px;
  background: #151515;
  color: #f3f0ea;
}

.portfolio-viewer::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.viewer-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 40px;
  height: 40px;

  border: 0;
  background: transparent;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
}

.viewer-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.viewer-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100% - 112px);
  max-height: 68vh;
  object-fit: contain;
}

.portfolio-viewer .viewer-caption {
  margin: 18px 0 0;
  color: #e8e2d6;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
}

.portfolio-viewer .viewer-counter {
  margin: 8px 0 0;
  color: #c9c0b5;
  text-align: center;
  font-size: 14px;
}

body.photo-open {
  overflow: hidden;
}

@media (max-width: 800px) {
  .project-carousel .project-photo figcaption {
    padding: 14px 16px;
    font-size: 14px;
  }

  .viewer-stage {
    gap: 6px;
  }

  .viewer-stage .carousel-arrow {
    width: 34px;
    height: 34px;
  }

  .viewer-stage img {
    max-width: calc(100% - 80px);
    max-height: 64vh;
  }

  .portfolio-viewer {
    padding-left: 8px;
    padding-right: 8px;
  }
}
/* Photos des trois cartes de l’accueil */

#galerie.services-section .home-project-photo {
  width: fit-content;
  max-width: 100%;
  margin: 22px auto;
  overflow: hidden;
  border: 1px solid rgba(194, 139, 54, 0.4);
  border-radius: 8px;
  background: #eee8de;
}

#galerie.services-section .home-project-photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 300px;
  margin: 0 auto;
}

#galerie.services-section .home-project-photo figcaption {
  padding: 12px 14px;
  color: #35302a;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: left;
}
/* Cadrage rapproché de la façade */

.project-carousel:has(
  > figure:not([hidden]) img[src$="facade-gardecorps.jpg"]
) {
  width: min(100%, 820px) !important;
}

.project-carousel img[src$="facade-gardecorps.jpg"] {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: 50% 35%;
}
/* Façade : conserver le cadrage dans la photo agrandie */

.portfolio-viewer .viewer-image[src$="facade-gardecorps.jpg"] {
  width: 1000px;
  max-width: calc(100% - 112px);
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: 50% 35%;
}

@media (max-width: 650px) {
  .portfolio-viewer .viewer-image[src$="facade-gardecorps.jpg"] {
    max-width: calc(100% - 80px);
  }
}
/* Accueil et galeries : menu compact sur mobile */

@media (max-width: 768px) {
  .home-page .navbar,
  .portfolio-page .navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 5%;
  }

  .home-page .navbar .logo,
  .portfolio-page .navbar .logo {
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-align: center;
  }

  .home-page .navbar ul,
  .portfolio-page .navbar ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin: 0;
    padding: 0;
  }

  .home-page .navbar ul li,
  .portfolio-page .navbar ul li {
    margin: 0;
    padding: 0;
  }

  .home-page .navbar ul a,
  .portfolio-page .navbar ul a {
    font-size: 14px;
    line-height: 1.5;
  }

  .home-page .home-hero-layout {
    padding-top: 122px;
  }

  .portfolio-page .page-header-content {
    padding-top: 122px;
  }
}