/* SGBR — feuille de style commune */
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --pierre: #ECEAE6;   /* fond clair, ton carrelage */
  --beton: #8E918D;    /* texte secondaire */
  --ardoise: #252C30;  /* texte et blocs sombres */
  --mer: #0D5C78;      /* accent Méditerranée */
  --bois: #B07D4F;     /* accent chaud, chêne */
  --blanc: #FFFFFF;
  --titre: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --texte: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --largeur: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ardoise);
  background: var(--pierre);
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mer); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--bois); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.55rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 62ch; }

.conteneur { width: min(100% - 2.5rem, var(--largeur)); margin-inline: auto; }

/* En-tête */
.entete { background: var(--ardoise); color: var(--blanc); }
.entete .conteneur {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-block: .9rem;
}
.logo {
  font-family: var(--titre); font-weight: 700; font-size: 1.9rem;
  letter-spacing: .04em; color: var(--blanc); text-decoration: none;
}
.logo span { color: var(--bois); }
.nav { display: flex; gap: .25rem 1.4rem; flex-wrap: wrap; }
.nav a {
  color: var(--blanc); text-decoration: none; font-weight: 500;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--bois); }
.entete-tel {
  font-family: var(--titre); font-weight: 600; font-size: 1.25rem;
  color: var(--blanc); text-decoration: none;
  background: var(--mer); padding: .35rem .9rem;
}

/* Boutons */
.bouton {
  display: inline-block; font-weight: 600; text-decoration: none;
  padding: .8rem 1.4rem; background: var(--mer); color: var(--blanc);
  border: 2px solid var(--mer);
}
.bouton:hover { background: #0a4a61; border-color: #0a4a61; }
.bouton.clair { background: transparent; color: var(--blanc); border-color: var(--blanc); }
.bouton.clair:hover { background: var(--blanc); color: var(--ardoise); }

/* Accueil : bandeau */
.bandeau {
  display: grid; grid-template-columns: 1.1fr .9fr;
  min-height: min(88vh, 820px); background: var(--ardoise); color: var(--blanc);
}
.bandeau-texte {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
}
.bandeau-nom {
  font-family: var(--titre); font-weight: 700;
  font-size: clamp(5.5rem, 16vw, 12rem); line-height: .82;
  letter-spacing: .02em; margin: 0 0 1.5rem;
  border-bottom: 6px solid var(--bois); padding-bottom: 1.2rem; width: fit-content;
}
.bandeau-accroche {
  font-family: var(--titre); font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.15; margin: 0 0 1rem;
}
.bandeau-texte p { color: #C9CCCA; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.bandeau-photo { position: relative; min-height: 320px; }
.bandeau-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section.blanche { background: var(--blanc); }
.intro { margin-bottom: 2.5rem; }
.intro p { color: #50585C; }

/* Aperçu services (accueil) */
.metiers { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ardoise); }
.metiers li {
  display: grid; grid-template-columns: 16rem 1fr; gap: 1.5rem;
  padding-block: 1.1rem; border-bottom: 1px solid #C9C6C0;
}
.metiers strong { font-family: var(--titre); font-size: 1.45rem; font-weight: 600; }
.metiers span { color: #50585C; }

/* Mosaïque accueil */
.apercu { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.apercu img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.lien-suite { margin-top: 1.8rem; }

/* Page services */
.service {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; padding-block: 2.5rem; border-bottom: 1px solid #C9C6C0;
}
.service:last-child { border-bottom: 0; }
.service:nth-child(even) .service-photo { order: 2; }
.service-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; max-height: 560px; }
.service ul { padding-left: 1.1rem; margin: 0; }
.service li { margin-bottom: .3rem; }

/* Réalisations */
.categorie { margin-bottom: 3.5rem; }
.categorie h2 { border-left: 6px solid var(--bois); padding-left: .8rem; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.galerie figure { margin: 0; background: var(--blanc); }
.galerie a { display: block; }
.galerie img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.galerie figcaption { padding: .7rem .9rem; font-size: .95rem; color: #50585C; }

/* Plaque de contact (élément commun) */
.plaque { background: var(--ardoise); color: var(--blanc); }
.plaque .conteneur {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.plaque h2 { margin-bottom: .3rem; }
.plaque p { color: #C9CCCA; margin: 0; }
.plaque-tel {
  font-family: var(--titre); font-weight: 700; font-size: clamp(2.2rem, 6vw, 3.8rem);
  color: var(--blanc); text-decoration: none; white-space: nowrap;
  border: 3px solid var(--bois); padding: .3rem 1.2rem; display: inline-block;
}
.plaque-tel:hover { background: var(--bois); }

/* Contact */
.coordonnees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.coordonnee { background: var(--blanc); padding: 1.6rem; border-top: 5px solid var(--mer); }
.coordonnee h3 { margin-bottom: .4rem; }
.coordonnee a, .coordonnee address {
  font-style: normal; font-size: 1.2rem; font-weight: 600;
  color: var(--ardoise); word-break: break-word;
}
.coordonnee .petit { font-size: .95rem; font-weight: 400; margin-top: .6rem; display: inline-block; color: var(--mer); }

/* Titre de page */
.titre-page { background: var(--ardoise); color: var(--blanc); padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.titre-page h1 { font-size: clamp(2.8rem, 8vw, 5rem); margin: 0 0 .4rem; }
.titre-page p { color: #C9CCCA; margin: 0; }

/* Mentions légales */
.legal h2 { font-size: 1.7rem; margin-top: 2rem; }
.a-completer { background: #F6E3B4; padding: 0 .3rem; }

/* Pied de page */
.pied { background: #1B2124; color: #A9AEAC; font-size: .95rem; }
.pied .conteneur {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.6rem;
}
.pied a { color: #D5D8D6; }

/* Mobile */
@media (max-width: 860px) {
  .bandeau { grid-template-columns: 1fr; }
  .bandeau-photo { order: -1; min-height: 46vh; }
  .metiers li { grid-template-columns: 1fr; gap: .2rem; }
  .apercu { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .service-photo { order: 0; }
  .plaque .conteneur { grid-template-columns: 1fr; }
  .coordonnees { grid-template-columns: 1fr; }
  .entete-tel { display: none; }
}

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