:root {
  --yellow: #facf0e;
  --black: #010101;
  --white: #ffffff;
  --text: #111;
  --muted: #444;
  --line: rgba(1, 1, 1, 0.14);

  --page-bg: #ffffff;

  --max: 1200px;
  --pad: 18px;

  --shadow-soft: 0 2px 14px rgba(0, 0, 0, 0.10);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--page-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(var(--max), calc(100% - (var(--pad)*2)));
  margin: 0 auto;
}

/* Accessibilité */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: var(--yellow);
  color: #000;
  border-radius: 10px;
  z-index: 9999;
}

/* =========================
   Header + Nav
   ========================= */
.header {
  background: var(--page-bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand__logo {
  height: 100px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.nav__link {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 12px;
}

.nav__link:hover {
  background: rgba(250, 207, 14, 0.18);
}

.nav__link.is-current {
  background: rgba(250, 207, 14, 0.35);
  font-weight: 800;
}

/* Dropdown (sans JS) */
.nav__dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav__submenu {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  min-width: 320px;

  display: none;
  flex-direction: column;
  gap: 2px;

  padding: 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(1, 1, 1, 0.12);
  box-shadow: var(--shadow-soft);
  z-index: 999;
}

.nav__submenu a {
  display: block;
  text-decoration: none;
  padding: 10px 10px;
  border-radius: 12px;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav__submenu a:hover,
.nav__submenu a:focus {
  background: rgba(250, 207, 14, 0.22);
  outline: none;
}

.nav__submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

/* =========================
   Buttons
   ========================= */
.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 900;
  text-align: center;
}

.btn--large {
  padding: 14px 22px;
  font-size: 16px;
}

.btn--yellow,
.btn--primary {
  background: var(--yellow);
  color: #000;
}

.btn--yellow:hover,
.btn--primary:hover {
  filter: brightness(0.98);
}

.btn--ghost,
.btn--secondary {
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: #000;
}

.btn--ghost:hover,
.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.88);
}

/* =========================
   Hero
   ========================= */
.hero {
  position: relative;
  min-height: 55vh;
  /* ou ce que tu as mis */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 0 20px;
  overflow: hidden;

  /* ✅ la variable doit être sur le parent commun */
  --hero-text: #111;
  --hero-meta: #111;
}

/* Home: conserve un hero plus haut */
.hero--home {
  min-height: 70vh;
}

/* Si tu ne veux pas toucher au HTML, les navigateurs modernes détectent le bg home */
.hero:has(.hero__bg--home) {
  min-height: 70vh;
}

.hero__bg {
  /* Image de fond pilotable par variables (position par page sans dupliquer 3 gradients partout) */
  --hero-image: url("/images/hero.webp");
  --hero-pos: 50% 50%;
  --hero-overlay: 0.28;
  --hero-dark: 0.18;

  /* Couleur du texte du hero (héritage via .hero__content) */
  --hero-text: #111;

  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(0deg, rgba(255, 255, 255, var(--hero-overlay)), rgba(255, 255, 255, var(--hero-overlay))),
    linear-gradient(180deg, rgba(0, 0, 0, calc(var(--hero-dark) + 0.02)), rgba(0, 0, 0, var(--hero-dark))),
    var(--hero-image);
  background-position: var(--hero-pos);
  background-size: cover;
  background-repeat: no-repeat;
}

/* Exemples de réglages par page (tu changes juste les variables) */
.hero__bg--home {
  --hero-image: url("/images/hero.webp");
  --hero-pos: 70% 89%;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  margin: 0;
  padding: 0;
  color: var(--hero-text);
}

.hero__title {
  margin: 0;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 900;
  text-transform: uppercase;
}

.accent {
  color: var(--yellow);
}

.hero__subtitle {
  margin: 8px 0 0;
  font-size: 26px;
  font-weight: 900;
}


/* IMPORTANT: chez toi, .hero__meta forçait #111 => ça cassera le mode dark */
.hero__meta {
  margin: 14px auto 0;
  max-width: 820px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--hero-meta);
}

.hero__actions,
.hero__cta {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero--dark {
  --hero-text: #fff;
  --hero-meta: rgba(255, 255, 255, .92);
}

/* Bouton scroll (home seulement, si présent) */
.scrollCue {
  position: absolute;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  text-decoration: none;
}

.scrollCue__arrow {
  width: 12px;
  height: 12px;
  border-right: 3px solid #000;
  border-bottom: 3px solid #000;
  transform: rotate(45deg);
  opacity: 0.85;
}

.scrollCue:hover {
  background: rgba(255, 255, 255, 0.85);
}

/* =========================
   Intro + Sections
   ========================= */
.intro {
  padding: 28px 0;
}

.intro__inner {
  max-width: 980px;
  margin: 0 auto;
  font-size: 18px;
  color: #222;
}

.section {
  padding: 46px 0;
}

.section--beige {
  background: #f6f1db;
}

.section__title {
  margin: 0 0 18px;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.section__title--left {
  text-align: left;
  margin-bottom: 12px;
}

.section__title--small {
  font-size: 22px;
}

.section__divider {
  width: 260px;
  height: 2px;
  background: var(--yellow);
  margin: 10px auto 18px;
}

.section__sub {
  margin: 14px 0 6px;
  font-size: 16px;
  font-weight: 900;
}

.section__list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.section__list li {
  margin: 6px 0;
}

.section__note {
  margin-top: 14px;
  font-size: 0.95rem;
  opacity: 0.85;
  text-align: center;
}

.section__note a {
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.section__note a:hover {
  border-bottom-color: rgba(0, 0, 0, 0.55);
}

/* =========================
   Trust badges (réassurance)
   ========================= */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 10px auto 24px;
  max-width: 980px;
}

.trust-badges__item {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(250, 207, 14, 0.18);
  border: 1px solid rgba(1, 1, 1, 0.14);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .6px;
  line-height: 1.2;
  color: #000;
}

@media (max-width: 520px) {
  .trust-badges {
    justify-content: flex-start;
  }
}

/* =========================
   Cards / Grids
   ========================= */
.cards {
  --cols: 2;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.cards--3 {
  --cols: 3;
}

.cards--4 {
  --cols: 4;
}

.cards--tight {
  gap: 12px;
}

.card {
  background: var(--white);
  border: 1px solid rgba(1, 1, 1, 0.10);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 900px) {
  .cards--center-last>.card:last-child {
    grid-column: 1 / -1;
    /* prend toute la ligne */
    justify-self: center;
    /* centre dans la ligne */
    width: min(560px, 100%);
    /* même “gabarit” qu’une card */
  }
}

.card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.card__kicker {
  margin: 0;
  font-size: 15px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #333;
}

.card__text {
  margin: 0;
  font-size: 16px;
  color: #222;
}

.card__media {
  margin-top: auto;
  border-radius: 12px;
  overflow: hidden;
  /* Ratio stable = moins de recadrage agressif */
  aspect-ratio: 16 / 10;
  background: rgba(0, 0, 0, 0.04);
}

/* Prestations: listes courtes, scannables */
.card__list {
  margin: .65rem 0 0;
  font-size: 16px;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.card__list li {
  margin: .25rem 0;
}

.card__note {
  margin: .6rem 0 0;
  color: var(--muted);
  font-size: .95rem;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--img-pos, 50% 50%);
  display: block;
  transform: scale(1.01);
  transition: transform .25s ease;
}

.card:hover .card__media img {
  transform: scale(1.06);
}

.card__actions {
  margin-top: auto;
  padding-top: 12px;
}

/* =========================
   Split (image + texte)
   ========================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 26px;
  align-items: center;
  margin-top: 18px;
}

.split--reverse {
  grid-template-columns: 1.2fr 1fr;
}

.split--reverse .split__media {
  order: 2;
}

.split--reverse .split__content {
  order: 1;
}

.split__media {
  border: 1px solid rgba(1, 1, 1, 0.10);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}


.split__content {
  font-size: 16px;
  line-height: 1.75;
  color: #222;
}

.split__content p {
  margin: 0 0 12px;
}

.split__actions {
  margin-top: 10px;
  text-align: center;
}

/* =========================
   Link blocks (listes de liens)
   ========================= */
.linkblock {
  max-width: 760px;
  margin: 0 auto;
}

.linklist {
  list-style: none;
  padding: 0;
  margin: 0 auto 14px;
  display: grid;
  gap: 6px;
}

.linklist a {
  display: inline-block;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  padding: 4px 0;
  font-size: 16px;
}

.linklist a:hover {
  border-bottom-color: rgba(0, 0, 0, 0.55);
}

.linklist__arrow {
  display: inline-block;
  width: 22px;
}

.linkblock__actions {
  text-align: center;
  margin-top: 10px;
}

/* =========================
   Discover blocks
   ========================= */
.discover {
  margin-top: 22px;
  text-align: center;
}

.discover__title {
  margin: 18px 0 10px;
  font-size: 26px;
  font-weight: 900;
}

.discover__list {
  list-style: none;
  padding: 0;
  margin: 0 auto 14px;
  max-width: 760px;
  display: grid;
  gap: 8px;
  text-align: left;
}

.discover__list a {
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  padding: 4px 0;
  display: inline-block;
}

.discover__list a:hover {
  border-bottom-color: rgba(0, 0, 0, 0.55);
}

/* =========================
   FAQ
   ========================= */
.faq {
  max-width: 900px;
  margin: 0 auto;
}

/* =========================
   CTA blocks
   ========================= */
.cta {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(1, 1, 1, 0.10);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.cta--compact {
  padding: 14px;
}

.cta__actions {
  margin: 14px 0 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================
   Formulaire (contact)
   ========================= */
.form {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(1, 1, 1, 0.10);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form__success {
  margin: 1rem 0 1.25rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
}

.form__error {
  margin: 1rem 0 1.25rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(180, 0, 0, 0.22);
  border-left: 4px solid #b00020;
  background: #fff;
  color: var(--text);
  border-radius: 8px;
}

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.field__input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(1, 1, 1, 0.16);
  background: #fff;
  font: inherit;
  font-size: 16px;
}

.field__input:focus {
  outline: 2px solid rgba(250, 207, 14, 0.55);
  outline-offset: 2px;
  border-color: rgba(250, 207, 14, 0.75);
}

.field__textarea {
  resize: vertical;
  min-height: 140px;
}

.form__note {
  margin: 0;
  font-size: 12px;
  color: #333;
}

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contactInfo {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.contactInfo__item {
  padding: 10px 12px;
  border-left: 4px solid var(--yellow);
  background: rgba(0, 0, 0, 0.03);
  border-radius: 14px;
}

.contactInfo__label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contactInfo__value a {
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.20);
}

.contactInfo__value a:hover {
  border-bottom-color: rgba(0, 0, 0, 0.55);
}

/* =========================
   Footer
   ========================= */
.footer--contact {
  background: var(--yellow);
  color: #000;
  margin-top: 40px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  padding: 30px 0;
  align-items: start;
}

.footer__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .6px;
}

.footer__desc {
  margin: 0;
  max-width: 520px;
}

.footer__right {
  display: grid;
  gap: 12px;
}

.footer__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer__icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.08);
}

.footer__itemTitle {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.footer__itemText {
  font-size: 14px;
}

.footer__itemText a {
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.footer__itemText a:hover {
  border-bottom-color: rgba(0, 0, 0, 0.55);
}

.footer__bottom {
  background: #000;
  color: #fff;
}

.footer__bottomInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.footer__bottom .footer__nav a {
  color: #fff;
  text-decoration: none;
  opacity: .92;
}

.footer__bottom .footer__nav a:hover {
  opacity: 1;
}

/* Footer: nav en colonnes + sous-liens */
.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  font-size: 12px;
  letter-spacing: .6px;
}


.footer__navCol {
  display: block;
}

.footer__navTitle {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
  opacity: .9;
  margin: 0 0 8px;
}

.footer__nav a {
  display: block;
  padding: 4px 0;
  text-decoration: none;
  opacity: .92;
}

/* Mobile */
@media (max-width: 640px) {
  .footer__nav {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.footer__small {
  margin: 0;
  font-size: 12px;
  opacity: .85;
}

/* =========================
   Bouton "Retour en haut"
   ========================= */
.toTop {
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 900;
  background: rgba(250, 207, 14, .95);
  color: #000;
  border: 1px solid rgba(0, 0, 0, .18);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 120;
}

.toTop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (min-width: 1025px) {
  .toTop {
    display: none;
  }
}

/* =========================
   Hero backgrounds (par page)
   ========================= */
.hero__bg--home {
  /* alias, garde le hero par défaut */
}

.hero__bg--about {
  --hero-image: url("/images/preparation-chantier-terrain-padel-ssv-construction.webp");
  --hero-pos: 50% 15%;
}

.hero__bg--tp {
  --hero-image: url("/images/beton-balaye-plan-de-campagne-mise-en-place1.webp");
  --hero-pos: center;
}

.hero__bg--btp {
  --hero-image: url("/images/renovation-marseille-piece-finition-carrelage.webp");
  --hero-pos: center;
}

.hero__bg--moe {
  --hero-image: url("/images/maitrise-oeuvre-padel-reunion-plans-paca.webp");
  --hero-pos: center;
}

.hero__bg--contact {
  --hero-image: url("/images/plans-bureau-maitrise-oeuvre-contact.webp");
  --hero-pos: center;
}

.hero__bg--padel {
  --hero-image: url("/images/padel-chateau-arnoux-coulage-dalle-beton-drone.webp");
  --hero-pos: 50% 60%;
  /* Overlay qui rend le texte lisible */
  --hero-overlay: 0.00;
  /* pas de voile blanc */
  --hero-dark: 0.17;
}

.hero__bg--padel-construct {
  --hero-image: url("/images/padel-marignane-montage-structure-vitrages.webp");
  --hero-pos: 50% 70%;

  /* Overlay qui rend le texte lisible */
  --hero-overlay: 0.00;
  /* pas de voile blanc */
  --hero-dark: 0.42;
}

.hero__bg--padel-maint {
  --hero-image: url("/images/entretien-terrain-padel-beton-poreux-paca.webp");
  --hero-pos: center;
}

.hero__bg--padel-renov {
  --hero-image: url("/images/padel-marignane-pose-revetement-lestage.webp");
  --hero-pos: center;
}

.hero__bg--padel-slab {
  --hero-image: url("/images/padel-chateau-arnoux-preparation-plateforme-avant-dalle-drone.webp");
  --hero-pos: 50% 70%;
}

/* Hero background projets */
.hero__bg--projects {
  --hero-image: url("/images/padel-chateau-arnoux-preparation-plateforme-avant-dalle-drone.webp");
  --hero-pos: 50% 70%;
}

/* =========================
   Page Projets / Chantiers
   ========================= */


.projects {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 3rem;
}

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.project:nth-child(even) {
  direction: rtl;
}

.project:nth-child(even)>* {
  direction: ltr;
}

.project__media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: var(--img-pos, 50% 50%);
  /* ✅ permet img-pos-top */
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.project__title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--black);
}

.project__meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.project__meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.project__desc {
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.project__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.project__tags li {
  padding: 0.4rem 1rem;
  background: var(--yellow);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
}

/* CTA Simple */
.cta-simple {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
}

.cta-simple h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-simple p {
  margin-bottom: 2rem;
  color: var(--muted);
}



@media (max-width: 980px) {
  .project {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project:nth-child(even) {
    direction: ltr;
  }

  .project__media {
    order: 1;
  }

  .project__content {
    order: 2;
  }

  .project__media img {
    height: 260px;
    /* nouveau: image moins haute sur mobile */
  }
}


/* =========================
   Section Réalisation
   ========================= */
.realisation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2rem 0;
}

.realisation__content {
  max-width: 600px;
}

.realisation__content p {
  margin: 1.5rem 0;
}

.realisation__media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* =========================
   Bloc "Nos chantiers" (home)
   ========================= */
.chantiers {
  margin-top: 2rem;
}

.chantiers__title {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .9px;
}

.chantiers__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.chantier-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(1, 1, 1, 0.10);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;

}

.chantier-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.chantier-card__media {
  aspect-ratio: 16 / 10;
  background: rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.chantier-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--img-pos, 50% 50%);
  transform: scale(1.01);
  transition: transform .25s ease;
  position: absolute;
  inset: 0;
}

.chantier-card:hover .chantier-card__media img {
  transform: scale(1.06);
}

.chantier-card__body {
  padding: 12px 14px 14px;
}

.chantier-card__place {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.chantier-card__desc {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.chantiers__cta {
  margin-top: 1.2rem;
  text-align: center;
}

/* Helpers de cadrage image (évite l'effet "zoom qui massacre") */
.img-pos-top {
  --img-pos: 50% 18%;
}

.img-pos-center {
  --img-pos: 50% 50%;
}

.img-pos-bottom {
  --img-pos: 50% 82%;
}

.img-pos-left {
  --img-pos: 28% 50%;
}

.img-pos-right {
  --img-pos: 72% 50%;
}

@media (max-width: 980px) {
  .chantiers__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .chantiers__grid {
    grid-template-columns: 1fr;
  }

  .chantier-card__media {
    aspect-ratio: 4 / 3;
  }
}

/* =========================
   Section FAQ
   ========================= */
.faq__item {
  background: #fff;
  border: 1px solid rgba(1, 1, 1, 0.10);
  border-radius: 14px;
  padding: 16px 16px;
  box-shadow: var(--shadow-soft);
  margin: 12px 0;
}

.faq__item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--black);
}

.faq__item p {
  color: var(--muted);
  line-height: 1.7;
}

/* =========================
   Section CTA Final
   ========================= */
.cta-final {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: var(--radius);
}

.cta-final h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-final__subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.cta-final__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.cta-final__note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1.5rem;
}

/* =========================
   Avis Google (home)
   ========================= */
.section--reviews {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.reviews__title {
  text-align: center;
  margin-bottom: 1.25rem;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.review-card {
  background: #fff;
  border: 1px solid rgba(1, 1, 1, 0.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.review-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .75rem;
}

.review-card__name {
  font-weight: 900;
  line-height: 1.2;
}

.review-card__meta {
  font-size: .9rem;
  color: var(--muted);
  margin-top: .15rem;
}

.review-card__stars {
  color: var(--yellow);
  letter-spacing: .08em;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

/* Texte clampé par défaut (fermé) */
.review-card__text {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--review-clamp-lines, 6);
  overflow: hidden;

  /* fallback mesure/limite, aide la détection overflow */
  max-height: var(--review-clamp-maxh, none);
}

/* Quand ouvert: plus de clamp */
.review-card.is-expanded .review-card__text {
  display: block;
  max-height: none;
  overflow: visible;
}

/* Bouton Lire plus / Réduire */
.review-more__btn {
  margin-top: .75rem;
  align-self: flex-start;
  padding: .55rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .12);
  background: #fff;
  font-weight: 900;
  font-size: .95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.review-more__btn:hover {
  text-decoration: underline;
}

.reviews__actions {
  margin-top: 1.2rem;
  text-align: center;
}

@media (max-width:980px) {
  .reviews__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================
   Responsive + Navigation (PRO)
   Breakpoints:
   - Desktop: >= 1025px (menu horizontal + dropdown hover)
   - Tablet & Mobile: <= 1024px (hamburger + drawer + sous-menus JS)
   ========================= */

/* Base: éléments "mobile" cachés par défaut */
.nav-burger,
.nav-overlay,
.nav__close,
.nav__toggle {
  display: none;
}

/* Évite les doublons si un ancien .nav__arrow existe encore dans le HTML */
.nav__arrow {
  display: none !important;
}

.nav__link--cta {
  background: var(--yellow);
  color: #000;
  font-weight: 900;
}

.nav__link--cta:hover {
  background: rgba(250, 207, 14, .92);
}

/* Si on est sur une sous-page, on surligne le parent */
.nav__dropdown.is-current>.nav__parent>a.nav__link {
  background: rgba(250, 207, 14, 0.18);
}


/* Petit bonus: wrapper lien+toggle (utile surtout en mobile) */
.nav__parent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Desktop (>= 1025px) */
@media (min-width: 1025px) {

  /* Dropdown hover/focus */
  .nav__dropdown:hover .nav__submenu,
  .nav__dropdown:focus-within .nav__submenu {
    display: flex;
  }

  /* Flèche "desktop" (pas de bouton) */
  .nav__dropdown .nav__parent>a.nav__link::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: .7;
  }

  /* Sous-menu: un poil plus compact */
  .nav__submenu {
    min-width: 300px;
  }
}

/* Tablet + Mobile (<= 1024px) : hamburger */
@media (max-width: 1024px) {

  /* Variables un peu plus "tight" */
  :root {
    --pad: 16px;
  }

  body {
    font-size: 17px;
  }

  .section {
    padding: 42px 0;
  }

  /* Hero: moins "giga" sur tablette portrait */
  .hero {
    min-height: 50vh;
    padding: 44px 0 18px;
  }

  .hero--home,
  .hero:has(.hero__bg--home) {
    min-height: 60vh;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__subtitle {
    font-size: 22px;
  }

  .hero__meta {
    font-size: 16px;
    max-width: 760px;
  }

  /* Grids: éviter les colonnes écrasées */
  .cards {
    gap: 18px;
  }

  .cards--4 {
    --cols: 2;
  }

  .cards--3 {
    --cols: 2;
  }

  /* Split / blocs "image + texte" */
  .split,
  .split--reverse {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .split--reverse .split__media,
  .split--reverse .split__content {
    order: unset;
  }

  /* Footer: une colonne (plus lisible) */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Footer nav (si présent) : 2 colonnes au lieu de 3 */
  .footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Réalisations / pages split */
  .realisation {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .realisation__media img {
    height: clamp(260px, 38vw, 420px);
    object-fit: cover;
    object-position: var(--img-pos, 50% 30%);
  }

  /* Page chantiers */
  .project {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project:nth-child(even) {
    direction: ltr;
  }

  .project__media {
    order: 1;
  }

  .project__content {
    order: 2;
  }

  .project__media img {
    height: clamp(240px, 34vw, 360px);
    object-fit: cover;
  }

  /* Chantiers (home) : 2 colonnes dès la tablette */
  .chantiers__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Si impaire: la dernière carte reste dans la grille normale (pas de spanning) */
  /* On retire le comportement "pleine largeur centrée" qui fait moche en tablette portrait */

  /* Media un peu plus "paysage" pour éviter la carte géante */
  .chantier-card__media {
    aspect-ratio: 16 / 9;
  }

  .card__media {
    aspect-ratio: 16 / 9;
  }

  /* Reviews: 2 colonnes sur tablette */
  .reviews__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Affiche le bouton retour en haut sur tablette aussi */
  .toTop {
    display: grid;
  }

  /* Hamburger visible */
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    cursor: pointer;
    z-index: 100;
    border-radius: 8px;
    position: relative;
    background: transparent;
    border: 0;
  }

  .nav-burger:hover {
    background: rgba(250, 207, 14, 0.18);
  }

  .nav-burger span,
  .nav-burger__line {
    display: block;
    height: 3px;
    width: 100%;
    background: #000;
    border-radius: 2px;
    transition: transform .18s ease, opacity .18s ease;
  }

  /* Overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 90;
  }

  .nav-overlay.is-open {
    display: block !important;
  }

  /* Drawer */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(92vw, 380px);
    background: #fff;
    border-left: 1px solid rgba(1, 1, 1, 0.12);
    box-shadow: var(--shadow-soft);
    padding: 18px;
    transform: translateX(105%);
    transition: transform .22s ease;
    z-index: 99;

    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: nowrap;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav[data-open="true"] {
    transform: translateX(0) !important;
  }

  /* Close */
  .nav__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: #fff;
    font-weight: 900;
    cursor: pointer;
    margin-bottom: 10px;
  }

  .nav__close:hover {
    background: rgba(250, 207, 14, 0.18);
  }

  /* Liens */
  .nav__link {
    width: 100%;
    padding: 12px 12px;
  }

  /* Parent: lien + bouton */
  .nav__parent {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
  }

  .nav__parent .nav__link {
    flex: 1;
  }

  /* Mobile/tablette: pas de flèche ::after (on a le bouton) */
  .nav__dropdown .nav__parent>a.nav__link::after {
    content: none;
  }

  /* Bouton toggle sous-menu */
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: #fff;
    cursor: pointer;
    position: relative;
    flex: 0 0 auto;
  }

  .nav__toggle:hover {
    background: rgba(250, 207, 14, 0.18);
  }

  .nav__toggle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-right: 3px solid #000;
    border-bottom: 3px solid #000;
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0.85;
  }

  /* Dropdown container */
  .nav__dropdown {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    position: static;
  }

  /* Sous-menu */
  .nav__submenu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 8px;
    gap: 2px;
  }

  .nav__submenu::before {
    display: none;
  }

  /* Ouverture via JS */
  .nav__dropdown.is-open .nav__submenu {
    display: flex;
  }

  .nav__dropdown.is-open .nav__toggle::before {
    transform: translate(-50%, -50%) rotate(-135deg);
  }

  /* Logo un peu plus compact */
  .brand__logo {
    height: 92px;
  }
}

/* Ajustements "tablet portrait" (Surface Pro / iPad portrait ~768-920px) */
@media (max-width: 920px) {
  .hero__title {
    font-size: 34px;
  }

  .cards {
    gap: 16px;
  }

  /* Reviews: 1 colonne en tablette portrait */
  .reviews__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Chantiers: 1 colonne aussi en tablette portrait */
  .chantiers__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Centrer les sections intro/texte */
  .intro__inner {
    text-align: center;
  }

  .section__title {
    text-align: center;
  }

  .section__title--left {
    text-align: center;
  }
}

/* 7" portrait / gros phones (641–860): Réalisation plus “pro” (image moins large + texte centré) */
@media (min-width: 641px) and (max-width: 860px) {

  .realisation {
    text-align: center;
    justify-items: center;
  }

  .realisation__content {
    max-width: 680px;
    margin: 0 auto;
  }

  .realisation__content p {
    margin-left: auto;
    margin-right: auto;
  }

  /* Image moins “pavé” */
  .realisation__media {
    width: 100%;
    max-width: 560px;
    /* ajuste 520–600 selon ton goût */
    margin: 0 auto;
  }

  .realisation__media img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }
}

/* Mobile (<= 640px) */
@media (max-width: 640px) {
  :root {
    --pad: 16px;
  }

  body {
    font-size: 16px;
    line-height: 1.7;
  }

  .section {
    padding: 36px 0;
  }

  /* Cards: 1 colonne */
  .cards {
    --cols: 1;
  }

  /* Hero */
  .hero {
    min-height: 56vh;
    padding: 44px 0 18px;
  }

  .hero--home,
  .hero:has(.hero__bg--home) {
    min-height: 62vh;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__subtitle {
    font-size: 20px;
  }

  /* Masquer hero__meta sur mobile */
  .hero__meta {
    display: none;
  }

  /* Chantiers home */
  .chantiers__grid {
    grid-template-columns: 1fr;
  }

  .chantier-card__media {
    aspect-ratio: 4 / 3;
  }

  .card__media {
    aspect-ratio: 4 / 3;
  }

  /* Reviews */
  .reviews__grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  /* Footer nav */
  .footer__nav {
    grid-template-columns: 1fr;
  }

  /* Form: 2 -> 1 */
  .form__row {
    grid-template-columns: 1fr;
  }

  /* CTA final */
  .cta-final {
    padding: 2rem 1rem;
  }

  .cta-final h2 {
    font-size: 1.6rem;
  }

  /* Drawer un poil plus étroit */
  .nav {
    width: min(92vw, 360px);
  }

  .brand__logo {
    height: 78px;
  }
}

/* Très petits écrans */
@media (max-width: 420px) {
  :root {
    --pad: 14px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .btn {
    width: 100%;
  }

  .hero__actions,
  .hero__cta,
  .cta__actions,
  .cta-final__buttons {
    gap: 8px;
  }
}

/* (Optionnel) Lock scroll quand le menu est ouvert (JS ajoute body.nav-is-open). */
body.nav-is-open {
  overflow: hidden;
}

/* Contact form flash messages (static anchors) */
.form__flash {
  display: none;
}

#sent:target,
#error:target {
  display: block;
}