@font-face {
  font-family: 'Baar Sophia';
  src: url('fonts/BaarSophia.woff2') format('woff2'),
       url('fonts/BaarSophia.woff') format('woff'),
       url('fonts/BaarSophia.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Maiandra GD';
  src: url('fonts/maiandra-gd.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Variables modernes */
:root {
  --ivoire: #EBE7DE;
  --terre-emailee: #844A36;
  --bleu-ciel: #A2AEC6;
  --noir: #1a1a1a;
  --gris-clair: #f5f5f5;
}

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

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 0;
}

body {
  font-family: 'Baar Sophia', sans-serif;
  font-weight: 300;
  color: var(--terre-emailee);
  background: var(--ivoire);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Baar Sophia', sans-serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--terre-emailee);
  text-transform: uppercase;
}

a {
  color: var(--terre-emailee);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--bleu-ciel);
}

strong {
  color: var(--terre-emailee);
}

/* Titre vertical */
.page-title-vertical {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  font-size: 5rem;
  font-weight: 700;
  color: var(--bleu-ciel);
  line-height: 1.1;
  font-family: 'Baar Sophia', sans-serif;
  opacity: 0.35;
  letter-spacing: 0;
}

.page-title-vertical span {
  display: block;
  text-align: center;
}

.title-a-propos .title-space-after {
  margin-top: 0.35em;
}

.page-title-vertical.title-left {
  left: 3rem;
}

.page-title-vertical.title-right {
  right: 3rem;
}

/* Menu avec 3 carrés horizontaux */
.menu-hamburger {
  position: fixed;
  top: 2.15rem;
  left: 2rem;
  z-index: 1000;
  width: auto;
  height: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
  padding: 0;
}

.menu-hamburger span {
  width: 8px;
  height: 8px;
  background: var(--ivoire);
  transition: all 0.3s ease;
  display: block;
  border-radius: 0;
}

/* Menu déroulant sous le bouton - au survol */
.menu-hamburger:hover + .menu-overlay,
.menu-overlay:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-overlay {
  position: fixed;
  top: 5.5rem;
  left: 2rem;
  width: auto;
  background: transparent;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.menu-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}

.menu-link {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ivoire);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-family: 'Baar Sophia', sans-serif;
  transition: color 0.3s ease;
  padding: 0.8rem 0;
  display: block;
  white-space: nowrap;
}

.menu-link:hover {
  color: var(--terre-emailee);
}

/* Footer */
.site-footer {
  background: var(--ivoire);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(132, 74, 54, 0.1);
}

.footer-ligne {
  flex: 1;
  height: 1px;
  background: var(--terre-emailee);
  opacity: 0.5;
  margin: 0 0.5rem;
  min-width: 40px;
}

.footer-logo-bas {
  line-height: 0;
  flex-shrink: 0;
}

.footer-logo-bas img.footer-logo-img {
  width: 80px;
  height: auto;
  display: block;
}

.site-footer .footer-texte,
.site-footer p {
  font-size: 1rem;
  color: var(--terre-emailee);
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.1rem;
  text-align: center;
  flex: 1;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.footer-social a {
  color: var(--terre-emailee);
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--bleu-ciel);
}

.icon-social {
  width: 28px;
  height: 28px;
  display: block;
}

/* Hero moderne avec vidéo et logo */
.hero-modern {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.hero-tagline {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  font-size: 1rem;
  font-weight: 300;
  color: var(--ivoire);
  font-family: 'Baar Sophia', sans-serif;
  letter-spacing: 0.15rem;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(1) contrast(1.1) brightness(0.95);
  transition: filter 0.35s ease;
}

/* Suite d'images en fondu (hero) */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.2) brightness(0.95);
  transition: filter 0.35s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

.hero-slideshow img:nth-child(1) {
  animation: hero-fade-1 16s ease-in-out infinite;
}

.hero-slideshow img:nth-child(2) {
  animation: hero-fade-2 16s ease-in-out infinite;
}

.hero-slideshow img:nth-child(3) {
  animation: hero-fade-3 16s ease-in-out infinite;
}

.hero-slideshow img:nth-child(4) {
  animation: hero-fade-4 16s ease-in-out infinite;
}

/* Cycle 16s : 4 images, fondu ~2s (12.5%) entre chaque, même fenêtre pour chaque transition */
@keyframes hero-fade-1 {
  0%, 12.5% { opacity: 1; }
  25% { opacity: 0; }
  87.5% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes hero-fade-2 {
  0%, 12.5% { opacity: 0; }
  25%, 37.5% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes hero-fade-3 {
  0%, 37.5% { opacity: 0; }
  50%, 62.5% { opacity: 1; }
  75% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes hero-fade-4 {
  0%, 62.5% { opacity: 0; }
  75%, 87.5% { opacity: 1; }
  100% { opacity: 0; }
}

body.menu-hover .hero-video {
  filter: grayscale(1) contrast(1.05) brightness(0.55);
}

body.menu-hover .hero-slideshow img {
  filter: grayscale(1) contrast(1.05) brightness(0.55);
}

/* Grain 100 % statique : motif de points fixes (pas de feTurbulence) */
.hero-grain-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000' opacity='0.15'%3E%3Ccircle cx='3' cy='5' r='0.8'/%3E%3Ccircle cx='12' cy='2' r='0.6'/%3E%3Ccircle cx='18' cy='8' r='0.7'/%3E%3Ccircle cx='25' cy='3' r='0.5'/%3E%3Ccircle cx='31' cy='11' r='0.8'/%3E%3Ccircle cx='38' cy='6' r='0.6'/%3E%3Ccircle cx='44' cy='14' r='0.5'/%3E%3Ccircle cx='52' cy='4' r='0.7'/%3E%3Ccircle cx='58' cy='9' r='0.6'/%3E%3Ccircle cx='5' cy='18' r='0.6'/%3E%3Ccircle cx='14' cy='22' r='0.8'/%3E%3Ccircle cx='22' cy='16' r='0.5'/%3E%3Ccircle cx='28' cy='25' r='0.7'/%3E%3Ccircle cx='35' cy='19' r='0.6'/%3E%3Ccircle cx='42' cy='28' r='0.5'/%3E%3Ccircle cx='50' cy='21' r='0.8'/%3E%3Ccircle cx='8' cy='32' r='0.7'/%3E%3Ccircle cx='16' cy='36' r='0.5'/%3E%3Ccircle cx='24' cy='31' r='0.6'/%3E%3Ccircle cx='33' cy='38' r='0.8'/%3E%3Ccircle cx='40' cy='34' r='0.6'/%3E%3Ccircle cx='48' cy='42' r='0.5'/%3E%3Ccircle cx='56' cy='37' r='0.7'/%3E%3Ccircle cx='4' cy='45' r='0.6'/%3E%3Ccircle cx='11' cy='50' r='0.8'/%3E%3Ccircle cx='20' cy='46' r='0.5'/%3E%3Ccircle cx='27' cy='54' r='0.7'/%3E%3Ccircle cx='36' cy='48' r='0.6'/%3E%3Ccircle cx='45' cy='56' r='0.5'/%3E%3Ccircle cx='53' cy='51' r='0.8'/%3E%3Ccircle cx='60' cy='58' r='0.6'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

.hero-logo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.hero-logo {
  max-width: 55%;
  max-height: 55vh;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.1));
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-frise-image {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  z-index: 11;
  pointer-events: none;
}

.hero-frise-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center bottom;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Page Projet (projets.html) : zone ivoire + frise marron en bas comme vague frise sur l'accueil */
.projet-section.projet-page-section {
  /* reprend position relative + fond ivoire de .projet-section */
}

.projet-section .projet-frise-image {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  z-index: 11;
  pointer-events: none;
}

.projet-section .projet-frise-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center bottom;
  vertical-align: bottom;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--terre-emailee);
  color: var(--ivoire);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border-radius: 0;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--bleu-ciel);
  color: var(--ivoire);
}

.btn-secondary {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1px solid var(--terre-emailee);
  color: var(--terre-emailee);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  opacity: 1;
  background: var(--terre-emailee);
  color: var(--ivoire);
}

/* Sections modernes */
.intro-section {
  padding: 6rem 3rem;
  text-align: center;
}

.intro-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--terre-emailee);
}

.statement-section {
  padding: 8rem 3rem;
  background: var(--gris-clair);
}

.statement-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.statement-content h3 {
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  font-weight: 400;
  color: var(--terre-emailee);
}

.large-text {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  line-height: 1.6;
  margin-bottom: 3rem;
  font-weight: 300;
  color: var(--terre-emailee);
}

.vision-section {
  padding: 8rem 3rem;
}

.vision-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.vision-text h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 2rem;
  font-weight: 400;
  color: var(--terre-emailee);
  letter-spacing: 1.5px;
}

.vision-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--terre-emailee);
}

.vision-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Page À propos avec superposition */
.about-hero-section {
  position: relative;
  min-height: 100vh;
  background: var(--ivoire);
  padding: 5rem 3rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-bg-image {
  position: absolute;
  top: 2rem;
  right: 2rem;
  bottom: 2rem;
  width: auto;
  height: calc(100% - 4rem);
  max-width: 50%;
  object-fit: contain;
  object-position: right center;
  z-index: 2;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.about-overlay {
  display: none;
}

/* Début du texte aligné au niveau de l’angle haut droit de l’image (N&B) en dessous */
.about-content-box {
  position: relative;
  max-width: 500px;
  z-index: 3;
  text-align: left;
  margin: 0;
  padding: 0;
  margin-left: max(2rem, calc(50vw - 520px));
}

.about-content-box h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 2rem;
  color: var(--terre-emailee);
  letter-spacing: 2px;
  font-weight: 400;
  text-align: left;
}

.about-subtitle {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  color: var(--terre-emailee);
  opacity: 0.8;
  text-align: left;
}

.about-text-box p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  color: var(--terre-emailee);
  text-align: justify;
}

/* Section Services avec fond terre émaillée */
.services-section {
  background: var(--terre-emailee);
  min-height: 900px;
  position: relative;
  display: flex;
  align-items: flex-start;
  z-index: 10;
}

.services-section .page-content {
  position: absolute;
  /* Même espace au-dessus du titre que la page À propos (5rem) */
  top: 5rem;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  padding: 0 3rem;
  /* Ne pas dépasser la largeur de la zone à gauche de l'image Axelle (équivalent ~50 %) */
  max-width: min(800px, calc(50vw - 2rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Page d'accueil : bloc de texte et carrés décalés vers le titre bleu SERVICES */
.services-section:has(.services-carres) .page-content {
  margin-left: 35%;
  margin-right: 4.5rem;
}
.services-section:has(.services-carres) .services-carres {
  left: 5rem;
}

.services-section .page-content p:first-of-type {
  /* Légèrement remonté par rapport au titre */
  margin-top: 1.5rem;
}

.services-carres {
  position: absolute;
  left: 2rem;
  top: -2rem;
  bottom: auto;
  transform: translateY(0);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 50;
}

.service-carre {
  width: 300px;
  height: 300px;
  background: var(--ivoire);
  overflow: hidden;
}

.service-carre img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.15) brightness(1.12);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: translateZ(0);
  backface-visibility: hidden;
}
/* Image chantier (3e carré) : pas d'effet éclaircissant */
.service-carre:nth-child(3) img {
  filter: grayscale(100%) contrast(1.15);
}
/* Image bureau (2e carré) : pas d'effet éclaircissant */
.service-carre:nth-child(2) img {
  object-position: bottom;
  filter: grayscale(100%) contrast(1.15);
}

.services-section .page-content h1,
.services-section .page-content h2,
.services-section .page-content h3,
.services-section .page-content h4,
.services-section .page-content p,
.services-section .page-content li,
.services-section .bloc-texte p {
  color: var(--ivoire);
}

.services-section .page-content li:before {
  background: var(--ivoire);
}

.services-section .page-content strong {
  color: var(--ivoire);
  font-weight: 600;
}

.services-section .btn-primary {
  background: var(--ivoire);
  color: var(--terre-emailee);
}

.services-section .btn-primary:hover {
  background: var(--bleu-ciel);
  color: var(--ivoire);
}

.services-section .page-title-vertical {
  color: var(--bleu-ciel);
  opacity: 0.25;
}

.services-badges-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin-top: -0.5rem;
}

.services-badges {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.services-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14rem;
  min-height: 2.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--ivoire);
  color: var(--terre-emailee);
  font-family: 'Baar Sophia', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.services-badge:hover {
  background: var(--bleu-ciel);
  color: var(--ivoire);
}

/* Section Projet — commence après la section Services */
.projet-section {
  background: var(--ivoire);
  position: relative;
  z-index: 1;
  padding: 3.5rem 2rem 4rem;
  min-height: 92vh;
  box-sizing: border-box;
  margin-top: 0;
  scroll-margin-top: 0;
}

#projet {
  scroll-margin-top: 0;
}

/* Titre bleu section projet : à gauche, centré verticalement */
.projet-section .page-title-vertical {
  top: 50%;
  transform: translateY(-50%);
}

/* Titre marron au centre en haut */
.projet-section .page-content {
  position: absolute;
  top: 3rem;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  padding: 0;
  max-width: 85%;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.projet-section .page-content h1 {
  margin: 0;
  color: var(--terre-emailee);
  text-align: center;
}

/* Deux rectangles verticaux : sous le titre marron, même hauteur que le titre bleu */
.projet-rectangles-droite {
  position: absolute;
  left: 50%;
  top: 8rem;
  transform: translateX(-50%);
  height: 33rem;
  width: min(60vw, 600px);
  display: flex;
  gap: 1.75rem;
  z-index: 0;
}

.projet-rectangle {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease;
}

.projet-rectangle:hover {
  transform: scale(1.04);
}

.projet-rectangle:hover .projet-rectangle-titre {
  color: var(--bleu-ciel);
}

.projet-rectangle-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.projet-rectangle-image-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.projet-rectangle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Projet 1 : décaler le visuel à gauche dans le cadre (sans bouger le cadre) */
.projet-rectangle:first-child img {
  object-position: 48% center;
}

.projet-rectangle-titre {
  flex-shrink: 0;
  margin: 0;
  padding: 0.75rem 0 0;
  font-family: 'Baar Sophia', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--terre-emailee);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.5s ease;
  text-align: center;
}

/* Section Contact */
.contact-section {
  background: var(--terre-emailee);
  position: relative;
  padding: 1rem 0 1rem;
}

.contact-photo-gauche {
  position: absolute;
  left: 2rem;
  top: 10rem;
  width: 260px;
  z-index: 2;
  pointer-events: none;
}

.contact-photo-gauche img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.contact-section .page-content {
  background: transparent;
  padding: 1rem 3rem 1.5rem 5rem;
  padding-bottom: 1.5rem;
  /* Bloc centré ; texte décalé vers la droite ; légèrement baissé */
  max-width: min(800px, calc(50vw - 2rem));
  margin-left: auto;
  margin-right: auto;
  margin-top: 2rem;
}

.contact-section .page-content h1,
.contact-section .page-content h2,
.contact-section .page-content p,
.contact-section .bloc-texte p {
  color: var(--ivoire);
}

.contact-section .page-title-vertical {
  color: var(--bleu-ciel);
  opacity: 0.25;
}

.contact-section .champ-formulaire label {
  color: var(--ivoire);
}

.contact-section .champ-formulaire input,
.contact-section .champ-formulaire textarea {
  background: var(--ivoire);
  color: var(--terre-emailee);
  border: 1px solid rgba(235, 231, 222, 0.3);
}

.contact-section .bouton {
  background: var(--ivoire);
  color: var(--terre-emailee);
}

.contact-section .bouton:hover {
  background: var(--bleu-ciel);
  color: var(--ivoire);
}

.contact-section .bouton-contact {
  background: var(--bleu-ciel);
  color: var(--ivoire);
  max-width: 150px;
  padding: 0.8rem 2rem;
  font-size: 0.9rem;
}

.contact-section .bouton-contact:hover {
  background: var(--ivoire);
  color: var(--terre-emailee);
}

.contact-section .contact-telephone,
.contact-section .page-content .contact-telephone {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 2rem 0;
  color: var(--ivoire);
  visibility: visible;
}

.contact-section .contact-telephone-icon,
.contact-section .page-content .contact-telephone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ivoire);
  flex-shrink: 0;
}

.contact-section .contact-telephone-icon svg,
.contact-section .page-content .contact-telephone-icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

.contact-section .contact-telephone-numero,
.contact-section .page-content .contact-telephone-numero {
  color: var(--ivoire);
  text-decoration: none;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.contact-section .contact-telephone-numero:hover,
.contact-section .page-content .contact-telephone-numero:hover {
  color: var(--bleu-ciel);
}

.contact-frise {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
}

.contact-frise img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center bottom;
}

/* Page contact : frise blanche sous le bouton Envoyer, en bas de la partie marron */
.contact-section .contact-frise-bas {
  display: block;
  width: 100%;
  margin-top: 3rem;
  margin-bottom: 0;
  padding-bottom: 0;
  z-index: 100;
  pointer-events: none;
}

.contact-section .contact-frise-bas img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center bottom;
  vertical-align: bottom;
}

/* Contenu de page */
/* Tagline centrée en haut (pages sans hero) */
.page-tagline-top {
  text-align: center;
  padding: 2rem 1.5rem 1rem;
  font-size: 1rem;
  font-weight: 300;
  color: var(--terre-emailee);
  font-family: 'Baar Sophia', sans-serif;
  letter-spacing: 0.15rem;
}

/* Page Résidentiel : fond marron jusqu'en bas (plus de bande ivoire) */
body.page-residentiel {
  background: #8B4E34;
}
/* Page Résidentiel : bande ivoire en haut, éléments centrés verticalement */
.residentiel-top-bar {
  display: flex;
  align-items: center;
  min-height: 5.5rem;
  padding: 2rem 2rem;
  gap: 1rem;
  background: var(--ivoire);
}
.residentiel-top-bar .page-tagline-top {
  flex: 1;
  margin: 0;
  padding: 0;
  text-align: center;
}
.residentiel-top-bar .residentiel-back-arrow {
  position: relative;
  flex-shrink: 0;
}

/* Menu visible sur fond clair (page Résidentiel, etc.) */
.page-residentiel .menu-hamburger span {
  background: var(--terre-emailee);
}
.page-residentiel .menu-link {
  color: var(--terre-emailee);
}
.page-residentiel .menu-link:hover {
  color: var(--bleu-ciel);
}

/* Page Résidentiel : fond ivoire, texte marron, titre vertical bleu inchangé */
.page-residentiel .services-section {
  background: #8B4E34;
}
.page-residentiel .services-section .page-content h1,
.page-residentiel .services-section .page-content h2,
.page-residentiel .services-section .page-content h3,
.page-residentiel .services-section .page-content h4,
.page-residentiel .services-section .page-content p,
.page-residentiel .services-section .page-content li,
.page-residentiel .services-section .bloc-texte p,
.page-residentiel .services-section .projet-texte h2,
.page-residentiel .services-section .projet-texte p {
  color: var(--ivoire);
}
.page-residentiel .services-section .page-content strong {
  color: var(--ivoire);
  font-weight: 600;
}
.page-residentiel .services-section .page-content li:before {
  background: var(--ivoire);
}

/* Page Aménagement intérieur : couleurs inversées (fond ivoire, bande marron) */
body.page-amenagement {
  background: var(--ivoire);
}
.page-amenagement .residentiel-top-bar {
  background: var(--terre-emailee);
}
.page-amenagement .residentiel-top-bar .page-tagline-top {
  color: var(--ivoire);
}
.page-amenagement .residentiel-back-arrow {
  color: var(--ivoire);
}
.page-amenagement .residentiel-back-arrow:hover {
  color: var(--bleu-ciel);
}
.page-amenagement .services-section {
  background: var(--ivoire);
}
.page-amenagement .services-section .page-content h1,
.page-amenagement .services-section .page-content h2,
.page-amenagement .services-section .page-content p {
  color: var(--terre-emailee);
}
.page-amenagement .services-section .page-content {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  justify-content: flex-start;
  align-items: center;
  padding-top: 3rem;
}
.page-amenagement .services-section .page-content h1 {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 2rem;
}

/* Bloc Projet Vallouise : carré image + titre (effet survol comme section Projet) */
.page-amenagement .amenagement-projets-wrap {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.page-amenagement .amenagement-projet-vallouise {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  cursor: default;
  width: 100%;
  max-width: 360px;
}
.page-amenagement .amenagement-projet-vallouise.gallery-open {
  max-width: none;
  width: 100%;
}
/* Galerie en plein largeur de la page */
.page-amenagement .amenagement-projet-vallouise.gallery-open .amenagement-projet-gallery {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.page-amenagement .amenagement-projet-vallouise-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.page-amenagement .amenagement-projet-vallouise-card[hidden] {
  display: none;
}
/* Page détail Projet Vallouise : moodboard déroulant */
.page-amenagement .amenagement-projet-vallouise-detail {
  margin-top: 2rem;
}
.page-amenagement .amenagement-projet-vallouise-detail .amenagement-projet-vallouise-titre {
  margin-bottom: 1rem;
}
.page-amenagement .amenagement-moodboard {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}
.page-amenagement .amenagement-moodboard img {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  object-fit: contain;
}
.page-amenagement .amenagement-moodboard--large img {
  max-width: min(1100px, 85vw);
  width: 100%;
}
.page-amenagement .services-section--vallouise .page-content {
  max-width: none;
  width: 100%;
}
.page-amenagement .services-section--vallouise .amenagement-moodboard--large {
  margin-top: 2.5rem;
  gap: 2.5rem;
}
/* Moodboard Projet Vallouise — grand format centré */
.page-amenagement .vallouise-moodboard-centre {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.page-amenagement .vallouise-moodboard-centre.vallouise-moodboard-empile {
  flex-direction: column;
  gap: 2rem;
}
.page-amenagement .vallouise-moodboard-centre.vallouise-moodboard-empile img:last-child {
  margin-top: -2rem; /* colle les deux dernières images */
}
.page-amenagement .vallouise-moodboard-centre img {
  max-width: min(1100px, 92vw);
  width: 100%;
  height: auto;
  display: block;
  /* Qualité maximale à l'affichage */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  backface-visibility: hidden;
  transform: translateZ(0);
}
/* Projet Vallouise : garder les couleurs des moodboards sans fusion */
.services-section--vallouise .vallouise-moodboard-centre img {
  mix-blend-mode: normal;
  filter: none;
}

/* Projet Vallouise — Infos (localisation, surface, etc.) */
.page-amenagement .vallouise-infos {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto 0; /* un peu plus d'espace sous le titre */
  text-align: left;
  max-width: min(560px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.page-amenagement .vallouise-infos li {
  position: relative;
  margin: 0;
  padding-right: 1.5rem; /* place pour le carré à droite */
  color: var(--terre-emailee);
  font-size: 0.95rem;
  display: block;
}
.page-amenagement .vallouise-infos strong {
  color: var(--terre-emailee);
  font-weight: 600;
}
.page-amenagement .vallouise-infos li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.35em;
  height: 0.35em;
  background: #6b4423;
  flex-shrink: 0;
}

/* Projet Vallouise — Texte descriptif sous les points */
.page-amenagement .vallouise-texte {
  color: var(--terre-emailee);
  text-align: center;
  max-width: min(640px, 90vw);
  margin: 1.25rem auto 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Projet Vallouise — Images empilées (une sous l'autre) */
.page-amenagement .vallouise-images-empile {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: min(1100px, 92vw);
  margin-left: auto;
  margin-right: auto;
  line-height: 0;
}
.page-amenagement .vallouise-images-empile img {
  width: 100%;
  height: auto;
  display: block;
  /* Ne pas forcer optimize-contrast : il dégrade les photos quand le navigateur redimensionne */
  image-rendering: auto;
}

/* Projet Vallouise — Ancien moodboard mosaïque (conservé si réutilisation) */
.page-amenagement .vallouise-mosaic {
  margin-top: 2rem;
  max-width: min(1100px, 92vw);
  margin-left: auto;
  margin-right: auto;
}
/* Layout type modèle : positionnement absolu avec calque */
.page-amenagement .vallouise-mosaic-modele {
  position: relative;
  width: 100%;
  padding-bottom: 72%;
  background: var(--ivoire);
}
.vallouise-mosaic-modele .vallouise-mosaic-item {
  position: absolute;
  overflow: hidden;
  background: var(--ivoire);
}
.vallouise-mosaic-modele .vallouise-mosaic-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}
/* 1. Chaux : bande horizontale haut gauche, en arrière-plan */
.vallouise-mosaic-modele .mosaic-chaux {
  top: 0;
  left: 0;
  width: 44%;
  height: 30%;
  z-index: 1;
}
/* 2. Bois : bande verticale milieu gauche, sous la chaux */
.vallouise-mosaic-modele .mosaic-bois {
  left: 0;
  top: 24%;
  width: 24%;
  height: 40%;
  z-index: 2;
}
/* 3. Carreaux : bande verticale bas gauche */
.vallouise-mosaic-modele .mosaic-carreaux {
  left: 0;
  top: 52%;
  width: 24%;
  height: 38%;
  z-index: 2;
}
/* 4. Séjour 1 : vue cheminée, en haut à droite (chevauche la chaux) */
.vallouise-mosaic-modele .mosaic-sejour-1 {
  top: 0;
  right: 0;
  width: 54%;
  height: 40%;
  z-index: 2;
}
.vallouise-mosaic-modele .mosaic-sejour-1 img {
  object-position: center top;
}
/* 5. Séjour 2 : grande vue centrale, en avant */
.vallouise-mosaic-modele .mosaic-sejour-2 {
  left: 18%;
  top: 30%;
  width: 80%;
  height: 62%;
  z-index: 3;
}
.vallouise-mosaic-modele .mosaic-sejour-2 img {
  object-position: center center;
}
/* 6. Coussin : au-dessus du bois, chevauche chaux et bois */
.vallouise-mosaic-modele .mosaic-coussin {
  left: 6%;
  top: 16%;
  width: 30%;
  height: 24%;
  z-index: 4;
}
/* 7. Tapis : détail en bas à droite */
.vallouise-mosaic-modele .mosaic-tapis {
  right: 0;
  bottom: 0;
  width: 28%;
  height: 34%;
  z-index: 4;
}
.vallouise-mosaic-modele .mosaic-tapis img {
  object-position: center center;
}
@media (max-width: 768px) {
  .page-amenagement .vallouise-mosaic-modele {
    padding-bottom: 140%;
  }
  .vallouise-mosaic-modele .mosaic-chaux { top: 0; left: 0; width: 70%; height: 18%; }
  .vallouise-mosaic-modele .mosaic-bois { left: 0; top: 18%; width: 35%; height: 28%; }
  .vallouise-mosaic-modele .mosaic-carreaux { left: 0; top: 44%; width: 35%; height: 26%; }
  .vallouise-mosaic-modele .mosaic-sejour-1 { top: 18%; right: 0; width: 68%; height: 24%; }
  .vallouise-mosaic-modele .mosaic-sejour-2 { left: 0; top: 42%; width: 100%; height: 38%; }
  .vallouise-mosaic-modele .mosaic-coussin { left: 5%; top: 14%; width: 45%; height: 18%; }
  .vallouise-mosaic-modele .mosaic-tapis { right: 0; bottom: 0; width: 40%; height: 22%; }
}
.page-amenagement .amenagement-moodboard--large img.moodboard-stuck-prev {
  margin-top: -2.5rem;
}
.page-amenagement .amenagement-moodboard img.moodboard-no-bg {
  mix-blend-mode: multiply;
  background: transparent;
}
/* Galerie plein large : enchaînement d'images */
.page-amenagement .amenagement-projet-gallery {
  width: 100%;
  position: relative;
}
.page-amenagement .amenagement-projet-gallery[hidden] {
  display: none !important;
}
.page-amenagement .amenagement-projet-gallery .amenagement-gallery-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.page-amenagement .amenagement-projet-gallery .amenagement-gallery-close:hover {
  background: rgba(0, 0, 0, 0.75);
}
.page-amenagement .amenagement-gallery-images {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
}
.page-amenagement .amenagement-gallery-images img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  vertical-align: middle;
  margin: 0 auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  filter: contrast(1.03);
  backface-visibility: hidden;
}
.page-amenagement .amenagement-projet-vallouise-image {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(132, 74, 54, 0.08);
  border: 1px solid rgba(132, 74, 54, 0.15);
  overflow: hidden;
  transition: transform 0.5s ease;
}
.page-amenagement .amenagement-projet-vallouise:hover .amenagement-projet-vallouise-image {
  transform: scale(1.04);
}
.page-amenagement .amenagement-projet-vallouise-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  filter: contrast(1.03);
  backface-visibility: hidden;
}
.page-amenagement .amenagement-projet-vallouise-titre {
  font-family: 'Baar Sophia', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--terre-emailee);
  margin: 0;
  letter-spacing: 0.05em;
  transition: color 0.5s ease;
}
.page-amenagement .amenagement-projet-vallouise:hover .amenagement-projet-vallouise-titre {
  color: var(--bleu-ciel);
}

.page-amenagement .amenagement-mosaic {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  width: 100%;
  max-width: min(900px, 92vw);
  margin: 0 auto;
}
.page-amenagement .amenagement-mosaic-item {
  overflow: hidden;
  min-height: 0;
}
.page-amenagement .amenagement-mosaic-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.page-amenagement .amenagement-mosaic-feuillage {
  grid-column: 1;
  grid-row: 1;
  aspect-ratio: 3/4;
}
.page-amenagement .amenagement-mosaic-central {
  grid-column: 2;
  grid-row: 1;
  aspect-ratio: 4/3;
}
.page-amenagement .amenagement-mosaic-sejour {
  grid-column: 1 / -1;
  grid-row: 2;
  aspect-ratio: 21/9;
  max-height: 280px;
}
.page-amenagement .amenagement-mosaic-sejour img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  min-height: 180px;
}

/* Page Lampe à poser : petit carrousel à gauche, texte à droite */
.page-amenagement .lampe-section .page-content {
  max-width: min(1000px, 80vw);
  text-align: left;
  align-items: flex-start;
  padding-left: 1.5rem;
}
.page-amenagement .lampe-layout {
  margin-top: 2rem;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.lampe-carousel {
  flex: 0 0 560px;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-right: 0.5rem;
  /* Rendre la barre de défilement invisible mais garder le scroll */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.lampe-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}
.lampe-image-large {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(132, 74, 54, 0.15);
  background: rgba(132, 74, 54, 0.08);
}
.lampe-texte {
  flex: 1;
  min-width: 0;
  position: sticky;
  top: 6rem;
  align-self: flex-start;
}
.lampe-texte h2 {
  margin-top: 0.5rem;
}
.lampe-caracteristiques {
  list-style-type: square;
  padding-left: 1.25rem;
}
.lampe-caracteristiques li::marker {
  color: #6b4423;
}

@media (min-width: 1024px) {
  .page-amenagement .lampe-section .page-content h1 {
    white-space: nowrap;
  }

  .page-amenagement .lampe-layout {
    margin-left: -1rem;
  }
}

.page-amenagement .menu-hamburger span {
  background: var(--ivoire);
}
.page-amenagement .menu-link {
  color: var(--ivoire);
}
.page-amenagement .menu-link:hover {
  color: var(--bleu-ciel);
}

/* Page ERP : fond ivoire, texte marron, titre vertical bleu inchangé */
body.page-erp {
  background: var(--ivoire);
}
/* Page ERP : bande du haut inversée (fond marron, texte et flèche ivoire) */
.page-erp .residentiel-top-bar {
  background: var(--terre-emailee);
}
.page-erp .residentiel-top-bar .page-tagline-top {
  color: var(--ivoire);
}
.page-erp .residentiel-back-arrow {
  color: var(--ivoire);
}
.page-erp .residentiel-back-arrow:hover {
  color: var(--bleu-ciel);
}
.page-erp .menu-hamburger span {
  background: var(--ivoire);
}
.page-erp .menu-link {
  color: var(--ivoire);
}
.page-erp .menu-link:hover {
  color: var(--bleu-ciel);
}
.page-erp .services-section {
  background: var(--ivoire);
}
.page-erp .services-section .page-content h1,
.page-erp .services-section .page-content h2,
.page-erp .services-section .page-content h3,
.page-erp .services-section .page-content h4,
.page-erp .services-section .page-content p,
.page-erp .services-section .page-content li,
.page-erp .services-section .bloc-texte p,
.page-erp .services-section .projet-texte h2,
.page-erp .services-section .projet-texte p {
  color: var(--terre-emailee);
}
.page-erp .services-section .page-content strong {
  color: var(--terre-emailee);
  font-weight: 600;
}
.page-erp .services-section .page-content li:before {
  background: var(--terre-emailee);
}

/* Page ERP : même position que Résidentiel, croquis salon un peu plus petit */
.page-erp .residentiel-croquis-gauche {
  left: 5.5rem;
  top: 56%;
  transform: translateY(-50%);
  width: min(520px, 44vw);
  height: min(690px, 57vw);
  max-height: calc(100vh - 10rem);
}

/* Flèche retour (page Résidentiel uniquement) */
.residentiel-back-arrow {
  color: var(--terre-emailee);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, transform 0.2s ease;
}
.residentiel-back-arrow:hover {
  color: var(--bleu-ciel);
  transform: translateX(-3px);
}

/* Page Résidentiel : section à la taille du contenu, texte centré verticalement */
/* Page Résidentiel : section pleine hauteur pour centrer le bloc au milieu de la page */
.page-residentiel .services-section {
  min-height: calc(100vh - 6rem);
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-residentiel .services-section .page-content {
  position: relative;
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
  margin: 0 auto;
  margin-top: 1.5rem;
  padding-top: 5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
/* Zone de texte entre croquis et titre bleu (Résidentiel et ERP) */
.page-residentiel .services-section:has(.residentiel-croquis-gauche) .page-content {
  margin-left: min(600px, calc(60vw + 3.5rem));
  margin-right: min(5rem, 6vw);
  max-width: min(520px, calc(100% - 2rem));
}
/* Page ERP : texte plus proche du croquis, avec un espace */
body.page-erp .services-section:has(.residentiel-croquis-gauche) .page-content {
  margin-left: min(600px, calc(44vw + 1rem));
}
/* Titre bleu SERVICES : décalé un peu à gauche, taille légèrement réduite */
.page-residentiel .services-section .page-title-vertical.title-right {
  right: 5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 5rem;
}

/* Ligne image + texte (pages Résidentiel et ERP) */
/* Croquis en arrière-plan à gauche (Résidentiel) */
.residentiel-croquis-gauche {
  position: absolute;
  left: -1.5rem;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: min(720px, 60vw);
  height: min(960px, 80vw);
  max-height: calc(100vh - 10rem);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.residentiel-croquis-gauche img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}
/* Page Résidentiel uniquement : croquis cuisine un peu plus petit, baissé et décalé vers le texte */
.page-residentiel:not(.page-erp) .residentiel-croquis-gauche {
  left: 1rem;
  width: min(660px, 55vw);
  height: min(880px, 73vw);
  top: 53%;
  transform: translateY(-50%);
}

/* Page Résidentiel : blocs empilés, paragraphes à même largeur */
.page-residentiel .services-section .projet-ligne:first-child,
.page-residentiel .services-section .projet-ligne:last-child {
  flex: none;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.page-residentiel .services-section .projet-ligne:first-child {
  margin-bottom: 1rem;
}
.page-residentiel .services-section .projet-texte {
  max-width: 100%;
}
.page-residentiel .services-section .projet-texte p {
  max-width: 48em;
}
/* Titre « Projet résidentiel » décalé à gauche (le texte h2/p est décalé à droite ci-dessous) */
.page-residentiel .services-section .page-content h1 {
  margin-left: -4rem;
}
/* Texte (h2 et paragraphes) légèrement à droite, pas le titre h1 */
.page-residentiel .services-section .projet-texte h2,
.page-residentiel .services-section .projet-texte p {
  margin-left: 3.5rem;
}
/* Premier bloc : texte légèrement baissé sous le titre marron (h1) */
.page-residentiel .services-section .projet-ligne:first-child .projet-texte h2 {
  margin-top: 1.25rem;
}
/* Espace sous le titre « Dossier d'étude » */
.page-residentiel .services-section .projet-ligne:first-child .projet-texte p {
  margin-top: 1rem;
}
.projet-texte h1 {
  margin-top: 0;
}

.projet-ligne {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}
/* Première ligne : un peu à gauche */
.projet-ligne:first-child {
  margin-right: 2rem;
}
/* Deuxième ligne : un peu à droite */
.projet-ligne:last-child {
  margin-left: 2rem;
}
/* Page Résidentiel : annuler les marges latérales pour le layout flex */
.page-residentiel .services-section .projet-ligne:first-child,
.page-residentiel .services-section .projet-ligne:last-child {
  margin-left: 0;
  margin-right: 0;
}
.projet-image {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  overflow: hidden;
  background: var(--ivoire);
}
.projet-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.15);
}
.projet-texte {
  flex: 1;
  min-width: 0;
}
.projet-texte h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}
.projet-texte p {
  margin: 0;
}

/* Anciennes images carrées (conservé si nécessaire) */
.residentiel-carres {
  position: absolute;
  left: clamp(2rem, 10vw, 8rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 5;
}
.residentiel-carre {
  width: 280px;
  height: 280px;
  background: var(--ivoire);
  overflow: hidden;
}
.residentiel-carre img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 3rem 4rem;
  position: relative;
  z-index: 2;
  text-align: left;
}

.page-content h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 2rem;
  text-align: left;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.page-content h2 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin: 2rem 0 1rem;
  font-weight: 400;
  text-align: left;
  letter-spacing: 1.5px;
}

.page-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  color: var(--terre-emailee);
  text-align: justify;
}

.page-content ul {
  margin: 2rem 0;
  padding-left: 0;
  list-style: none;
  text-align: left;
}

.page-content li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--terre-emailee);
  text-align: justify;
  display: block;
  width: 100%;
}

.page-content li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: currentColor;
  display: block;
}

.bloc-texte {
  margin-bottom: 3rem;
}

.bloc-texte p {
  color: var(--terre-emailee);
  text-align: justify;
  font-size: 1rem;
  line-height: 1.8;
}

/* Boutons */
.bouton {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--terre-emailee);
  color: var(--ivoire);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

.bouton:hover {
  background: var(--bleu-ciel);
  color: var(--ivoire);
}



/* Footer moderne */
.footer-modern {
  background: var(--gris-clair);
  padding: 5rem 3rem 3rem;
  margin-top: 6rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  font-weight: 400;
  color: var(--terre-emailee);
}

.footer-col a {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: var(--terre-emailee);
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--bleu-ciel);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.7;
  color: var(--terre-emailee);
}

/* Formulaire de contact moderne */
.formulaire-contact {
  max-width: 600px;
  margin: 2rem 0;
}

/* Formulaire sur le même axe que le texte (aligné à gauche avec le contenu) */
.contact-section .formulaire-contact {
  margin-left: 0;
  margin-right: 0;
}
.contact-section .champ-formulaire {
  margin-bottom: 1.25rem;
}

.champ-formulaire {
  margin-bottom: 2rem;
}

.champ-formulaire label {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
  color: var(--terre-emailee);
}

.champ-formulaire input,
.champ-formulaire textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-family: inherit;
  font-size: 1rem;
  background: white;
  color: var(--terre-emailee);
  transition: border-color 0.3s;
}

.champ-formulaire input:focus,
.champ-formulaire textarea:focus {
  outline: none;
  border-color: var(--terre-emailee);
}

.champ-formulaire textarea {
  resize: vertical;
  min-height: 150px;
}

.formulaire-contact .bouton {
  width: 100%;
  max-width: none;
  margin-top: 1rem;
}

.formulaire-confirmation {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.formulaire-confirmation[hidden] {
  display: none;
}

.formulaire-confirmation--succes {
  background: rgba(132, 74, 54, 0.1);
  color: var(--terre-emailee);
  border: 1px solid rgba(132, 74, 54, 0.3);
}

.formulaire-confirmation--erreur {
  background: rgba(180, 60, 60, 0.1);
  color: #8b3a3a;
  border: 1px solid rgba(180, 60, 60, 0.3);
}

/* Confirmation visible sur la page contact (fond sombre) */
.contact-section .formulaire-confirmation--succes {
  background: var(--ivoire);
  color: var(--terre-emailee);
  border: 1px solid rgba(235, 231, 222, 0.5);
}

.contact-section .formulaire-confirmation--erreur {
  background: rgba(235, 231, 222, 0.95);
  color: #8b3a3a;
  border: 1px solid rgba(180, 60, 60, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
  .vision-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-tagline {
    font-size: 0.85rem;
    top: 1.5rem;
    letter-spacing: 0.12rem;
  }

  .menu-hamburger {
    top: 1.65rem;
    left: 1.5rem;
  }

  .menu-hamburger span {
    width: 7px;
    height: 7px;
  }

  .about-hero-section {
    padding: 6rem 2rem 6rem;
    flex-direction: column;
  }

  .about-bg-image {
    position: relative;
    width: calc(100% - 4rem);
    max-width: 100%;
    height: auto;
    top: auto;
    right: auto;
    bottom: auto;
    margin-bottom: 3rem;
  }

  .about-content-box {
    max-width: 100%;
    padding: 0 1.5rem;
  }

  .services-carres {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: center;
    margin: 2rem auto;
    gap: 1rem;
  }

  .service-carre {
    width: 170px;
    height: 170px;
  }

  .services-section .page-content {
    max-width: 100%;
  }

  .services-section:has(.services-carres) .page-content {
    margin-left: auto;
    margin-right: auto;
  }

  .menu-overlay {
    top: 5rem;
    left: 1.5rem;
  }

  .menu-link {
    font-size: 1.1rem;
    padding: 0.7rem 0;
  }

  .hero-logo {
    max-width: 80%;
    max-height: 50vh;
  }

  .page-title-vertical {
    font-size: 3.5rem;
    line-height: 1.1;
  }

  .page-title-vertical.title-left {
    left: 1.5rem;
  }

  .page-title-vertical.title-right {
    right: 1.5rem;
  }

  .about-hero-section {
    padding: 6rem 2rem 4rem;
  }

  .about-bg-image {
    max-width: 40%;
    top: 3rem;
    right: 2rem;
    bottom: 3rem;
  }

  .intro-section,
  .statement-section,
  .vision-section {
    padding: 4rem 2rem;
  }

  .footer-modern {
    padding: 4rem 2rem 2rem;
  }

  .footer-content {
    gap: 2rem;
  }

  .page-content {
    padding: 8rem 2rem 4rem;
  }

  .galerie-projets {
    grid-template-columns: 1fr;
  }

  .projet-ligne {
    flex-direction: column;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 2rem !important;
  }
  .page-residentiel .services-section .page-content h1 {
    margin-left: 0;
  }
  .projet-image {
    width: 220px;
    height: 220px;
  }
  .page-amenagement .lampe-layout {
    flex-direction: column;
  }
  .lampe-carousel {
    flex-basis: auto;
  }
}

@media (max-width: 480px) {
  .hero-tagline {
    font-size: 0.75rem;
    top: 1rem;
    letter-spacing: 0.1rem;
  }

  .menu-hamburger {
    top: 1.15rem;
    left: 1rem;
  }

  .menu-hamburger span {
    width: 6px;
    height: 6px;
  }

  .about-hero-section {
    padding: 6rem 1.5rem 6rem;
    flex-direction: column;
  }

  .about-bg-image {
    position: relative;
    width: calc(100% - 3rem);
    max-width: 100%;
    height: auto;
    top: auto;
    right: auto;
    bottom: auto;
    margin-bottom: 2rem;
  }

  .about-content-box {
    max-width: 100%;
    padding: 0 1rem;
  }

  .services-carres {
    flex-direction: column;
    gap: 1.5rem;
  }

  .service-carre {
    width: 142px;
    height: 142px;
  }

  .menu-overlay {
    top: 4.5rem;
    left: 1rem;
  }

  .menu-link {
    font-size: 1rem;
    padding: 0.6rem 0;
    letter-spacing: 0.08rem;
  }

  .btn-primary,
  .btn-secondary,
  .bouton {
    padding: 0.9rem 2rem;
    font-size: 0.8rem;
  }

  .page-title-vertical {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .page-title-vertical.title-left {
    left: 0.8rem;
  }

  .page-title-vertical.title-right {
    right: 0.8rem;
  }

  .about-hero-section {
    padding: 6rem 1.5rem 3rem;
  }

  .about-bg-image {
    max-width: 45%;
    top: 2rem;
    right: 1rem;
    bottom: 2rem;
  }
}
