/* ============================================================
   Thème Guitard — Charpente, Couverture, Zinguerie, Maçonnerie
   Design system : Montserrat (UI) + PT Serif (titres)
   ============================================================ */

:root {
  --ink: #0b0b0b;
  --ink-2: #161616;
  --ink-3: #272727;
  --grey: #7b7b7b;
  --grey-light: #b2b2b2;
  --bg: #f8f8f8;
  --white: #ffffff;
  --accent: #ff6606;

  --font-ui: 'Montserrat', sans-serif;
  --font-title: 'PT Serif', serif;

  --radius-media: 8px;
  --radius-btn: 3px;
  --container: 1240px;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--grey);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink-3); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--ink-2);
  line-height: 1.3;
}

p { margin: 0 0 1.8em; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75em;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: capitalize;
  text-align: center;
  padding: 16px 30px;
  border: 0;
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.btn svg { width: .9em; height: .9em; fill: currentColor; flex: none; }

.btn--light { background-color: var(--white); color: var(--ink-3); }
.btn--light:hover { background-color: var(--ink-3); color: var(--white); }

.btn--dark { background-color: var(--ink-3); color: var(--white); }
.btn--dark:hover { background-color: var(--accent); color: var(--white); }

.btn--accent-outline {
  background-color: var(--accent);
  color: var(--white);
  border: 2px solid var(--white);
  padding: 12px 26px;
}
.btn--accent-outline:hover { background-color: var(--ink-3); color: var(--white); }

/* Bouton "Découvrir" des cartes activités : accent souligné par des filets */
.link-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  max-width: 250px;
  margin: 20px auto 0;
  padding: 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  color: var(--accent);
  border-right: 1px solid var(--grey);
  border-bottom: 1px solid var(--grey);
  border-left: 1px solid var(--grey);
  text-decoration: none;
  transition: color .2s ease;
}
.link-cta svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.link-cta:hover { color: var(--ink-3); }

/* Lien texte accent avec flèche */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 1em;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.link-arrow svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.link-arrow:hover { color: var(--ink-3); }

/* ---------- Eyebrow / surtitres ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 20px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  color: var(--accent);
}
.eyebrow svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.eyebrow--center { justify-content: center; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */

.site-header {
  position: relative;
  z-index: 100;
  background-color: var(--ink);
}

.site-header__inner {
  display: flex;
  align-items: stretch;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  padding: 0 24px;
  background-color: var(--accent);
  flex: none;
}
.brand__logo { display: block; width: auto; height: 44px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 60px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--bg);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav { flex: 1; }
.site-nav__list {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 18px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bg);
  text-decoration: none;
  transition: color .2s ease;
}
.site-nav__link:hover { color: var(--grey-light); }
.site-nav__link.is-active { color: var(--accent); }

.site-nav__phone {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 24px;
  color: var(--bg);
}
.site-nav__phone svg { width: 16px; height: 16px; fill: currentColor; }
.site-nav__phone:hover { color: var(--accent); }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--ink-2);
  }
  .site-header.nav-open .site-nav { display: block; }
  .site-nav__list { flex-direction: column; }
  .site-nav__link { padding: 14px 24px; }
  .site-nav__phone { padding: 14px 24px; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  background-color: var(--ink-3);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: .5;
  pointer-events: none;
}
.hero--dimmed::before { opacity: .28; }
.hero--dark { background-color: var(--ink); }

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 200px var(--gutter);
}

.hero__logo { width: 500px; max-width: 80%; height: auto; }
.hero--page .hero__logo { width: 300px; }

.hero__title {
  margin: 0 0 30px;
  font-size: 42px;
  color: var(--white);
}

.hero__tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 auto;
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
  color: var(--white);
}
.hero__title + .hero__tagline,
.hero__logo + .hero__tagline { margin-top: 30px; }

.hero__rule {
  flex: 1 1 0;
  max-width: 220px;
  height: 1px;
  background-color: var(--white);
}

.hero__cta { margin-top: 80px; }
.hero--page .hero__cta { margin-top: 40px; }

@media (max-width: 1024px) {
  .hero__inner { padding-top: 150px; padding-bottom: 150px; }
}
@media (max-width: 767px) {
  .hero__inner { padding: 100px 30px; }
  .hero__title { font-size: 32px; }
  .hero__rule { display: none; }
  .hero__tagline { flex-direction: column; gap: 10px; }
  .hero__cta { margin-top: 40px; }
}

/* ============================================================
   SECTIONS GÉNÉRIQUES
   ============================================================ */

.section { padding: 100px var(--gutter); }
.section--tight-top { padding-top: 0; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
}

.section__title {
  margin: 0 0 40px;
  font-size: 35px;
}
.section__title--center { text-align: center; }

.section__intro {
  margin: 0 auto 60px;
  max-width: 720px;
  text-align: center;
  font-size: 16px;
  color: var(--accent);
}

/* ---------- Grille médias 2x2 ---------- */

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.media-grid__item {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-media);
}

/* ---------- Colonne texte + médias ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.split__col > :last-child { margin-bottom: 0; }
.split__title { margin: 0 0 40px; font-size: 35px; }
.split__body { color: var(--grey); }
.split__body strong { color: var(--ink-3); font-weight: 700; }
.split__body .align-center { text-align: center; }
.split__cta { margin-top: 40px; }

@media (max-width: 1024px) {
  .split { gap: 40px; }
  .media-grid__item { height: 150px; }
}
@media (max-width: 767px) {
  .section { padding: 60px 30px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split__title, .section__title { font-size: 28px; }
  .media-grid__item { height: 230px; }
}

/* ---------- Citation ---------- */

.quote { text-align: center; }
.quote__text {
  max-width: 900px;
  margin: 0 auto;
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-2);
}
.quote__author { margin: 30px 0 0; font-style: italic; }
@media (max-width: 767px) { .quote__text { font-size: 19px; } }

/* ============================================================
   ACTIVITÉS
   ============================================================ */

.activities__head { text-align: center; margin-bottom: 60px; }
.activities__eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--accent);
}
.activities__title { margin: 0; font-size: 29px; }

.activities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.activity-card { text-align: center; }
.activity-card__media {
  position: relative;
  min-height: 250px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.activity-card__badge {
  display: inline-flex;
  align-items: center;
  margin: 20px;
  padding: 20px;
  background-color: var(--accent);
  line-height: 0;
  color: var(--white);
}
.activity-card__badge svg { width: 38px; height: 38px; fill: currentColor; }
.activity-card__label {
  margin: 0;
  padding: 20px;
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  color: var(--white);
  background-color: var(--ink-3);
}

@media (max-width: 1024px) {
  .activities__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .activities__grid { grid-template-columns: 1fr; }
  .activities__title { font-size: 24px; }
}

/* ============================================================
   PANNEAU CTA (image + carte + panneau orange)
   ============================================================ */

.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.cta-split__media {
  display: flex;
  align-items: flex-end;
  min-height: 420px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.cta-split__card {
  width: 50%;
  padding: 30px;
  background-color: var(--white);
}
.cta-split__card-title { margin: 0 0 10px; font-size: 18px; }
.cta-split__card-text { margin: 0 0 10px; font-size: 14px; }

.cta-split__panel {
  padding: 80px;
  background-color: var(--accent);
}
.cta-split__panel-title {
  margin: 0 0 20px;
  font-size: 24px;
  text-transform: capitalize;
  color: var(--white);
}
.cta-split__panel-text {
  margin: 0 0 40px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
}

@media (max-width: 1024px) {
  .cta-split { grid-template-columns: 1fr; }
  .cta-split__media { width: 100%; }
  .cta-split__panel { padding: 60px; }
}
@media (max-width: 767px) {
  .cta-split__media { min-height: 500px; }
  .cta-split__card {
    width: 100%;
    border-right: 1px solid var(--grey-light);
    border-bottom: 1px solid var(--grey-light);
    border-left: 1px solid var(--grey-light);
  }
  .cta-split__panel { padding: 40px; }
}

/* ============================================================
   BANDEAU DÉCLARATION (pages intérieures)
   ============================================================ */

.statement {
  position: relative;
  overflow: hidden;
  text-align: center;
  background-color: var(--ink);
}
.statement::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--statement-bg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: .28;
  pointer-events: none;
}
.statement__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 160px var(--gutter) 260px;
}
.statement__eyebrow {
  margin: 0 0 60px;
  font-family: var(--font-ui);
  font-size: 18px;
  text-transform: uppercase;
  color: var(--accent);
}
.statement__icon {
  margin: 0 0 30px;
  line-height: 0;
  color: var(--white);
}
.statement__icon svg { width: 40px; height: 40px; fill: currentColor; }
.statement__text {
  margin: 0;
  padding: 0 100px;
  font-family: var(--font-title);
  font-size: 29px;
  font-weight: 700;
  color: var(--white);
}
@media (max-width: 767px) {
  .statement__inner { padding: 80px 30px; }
  .statement__text { padding: 0; font-size: 22px; }
  .statement__eyebrow { margin-bottom: 30px; font-size: 16px; }
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 60px;
  align-items: start;
}

.contact-panel {
  padding: 40px;
  background-color: var(--accent);
  color: var(--white);
}
.contact-panel a { color: var(--white); }
.contact-panel a:hover { color: var(--ink-3); }
.contact-panel__heading {
  margin: 0 0 10px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}
.contact-panel__block { margin: 0 0 20px; font-size: 14px; font-weight: 500; }
.contact-panel__text { font-size: 13px; font-weight: 500; }
.contact-panel__phone {
  display: flex;
  align-items: center;
  gap: .5em;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}
.contact-panel__phone svg { width: 1em; height: 1em; fill: currentColor; }

.contact-map { display: block; width: 100%; height: 450px; margin-top: 80px; border: 0; border-radius: var(--radius-media); }
.contact-form-wrap__title { margin: 0 0 30px; font-size: 24px; text-transform: capitalize; }

@media (max-width: 767px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-map { height: 320px; margin-top: 40px; }
}

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

.site-footer { background-color: var(--ink-2); }

.site-footer__main { padding: 120px var(--gutter); }
.footer-grid {
  display: grid;
  grid-template-columns: 30% 25% 15% 30%;
  gap: 60px;
  max-width: var(--container);
  margin: 0 auto;
}

.footer-col__logo { width: 258px; max-width: 100%; height: auto; margin-bottom: 20px; }
.footer-col__tagline {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
}
.footer-col__address {
  margin: 0 0 10px;
  font-size: 14px;
  text-align: center;
  color: var(--grey-light);
}
.footer-col__phone { text-align: center; font-size: 14px; color: var(--grey-light); }
.footer-col__phone a { color: var(--accent); }

.footer-col__title { margin: 0 0 20px; font-size: 20px; color: var(--white); }
.footer-col__list { margin: 0; padding: 0; list-style: none; }
.footer-col__list li { margin-bottom: 14px; }
.footer-col__list a {
  font-size: 14px;
  font-weight: 500;
  text-transform: capitalize;
  color: var(--grey-light);
}
.footer-col__list a:hover { color: var(--accent); }
.footer-col__map { border: 0; width: 100%; max-width: 400px; height: 250px; }

.site-footer__bottom {
  padding: 20px var(--gutter);
  background-color: var(--ink);
  font-family: var(--font-title);
  font-size: 14px;
  text-align: center;
  color: var(--grey-light);
}
.site-footer__bottom a { color: var(--bg); }
.site-footer__bottom a:hover { color: var(--accent); }

@media (max-width: 1024px) {
  .site-footer__main { padding-top: 100px; padding-bottom: 100px; }
  .footer-grid { grid-template-columns: 1fr 35% 20% 45%; }
}
@media (max-width: 767px) {
  .site-footer__main { padding: 80px 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 60px; text-align: center; }
  .footer-col__map { margin: 0 auto; }
}

/* ============================================================
   AVIS GOOGLE
   ============================================================ */

.reviews { padding: 100px var(--gutter); background-color: var(--white); }

.reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 50px;
}
.reviews__title { margin: 0 0 12px; font-size: 35px; }
.reviews__summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.reviews__score { font-family: var(--font-title); font-size: 28px; font-weight: 700; color: var(--ink-2); }
.reviews__count { font-size: 14px; font-weight: 500; }
.reviews__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.reviews__stars { display: inline-flex; gap: 2px; }
.reviews__stars svg { width: 20px; height: 20px; fill: var(--accent); }
.reviews__stars--small svg { width: 16px; height: 16px; }
.reviews__stars svg.is-off { fill: var(--grey-light); }

.reviews__slider { position: relative; }
.reviews__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 60px) / 3);
  gap: 30px;
  margin: 0;
  padding: 0 0 10px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }

.reviews__card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
  background-color: var(--bg);
  border-radius: var(--radius-media);
  scroll-snap-align: start;
}
.reviews__text {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reviews__author { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; }
.reviews__author strong { display: block; color: var(--ink-3); }
.reviews__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
}
.reviews__date { font-size: 13px; }
.reviews__link { margin-left: auto; font-size: 13px; font-weight: 600; }

.reviews__nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--ink-3);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color .2s ease, opacity .2s ease;
}
.reviews__nav:hover { background-color: var(--accent); }
.reviews__nav:disabled { opacity: 0; pointer-events: none; }
.reviews__nav svg { width: 22px; height: 22px; fill: var(--white); }
.reviews__nav--prev { left: -22px; }
.reviews__nav--next { right: -22px; }

@media (max-width: 1024px) {
  .reviews__track { grid-auto-columns: calc((100% - 30px) / 2); }
}
@media (max-width: 767px) {
  .reviews { padding: 70px 20px; }
  .reviews__title { font-size: 28px; }
  .reviews__track { grid-auto-columns: 85%; gap: 16px; }
  .reviews__nav { display: none; }
  .reviews__actions .btn { flex: 1; }
}

/* ============================================================
   BLOCKS COMMUNS (common.*)
   ============================================================ */

.block-title { margin-bottom: 2rem; }
.block-title-heading { margin: 0 0 .5rem; font-size: 2rem; }
.block-title-subtitle { margin: 0; color: var(--grey); font-size: 1rem; }
.block-title[data-align="center"] { text-align: center; }

.block-text {
  max-width: calc(860px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 100px var(--gutter);
  line-height: 1.7;
  color: var(--grey);
}
.block-text p { margin: 0 0 1.2em; }
.block-text a { color: var(--accent); }
.block-text h2 { margin: 2.2em 0 .8em; font-size: 26px; }
.block-text h3 { margin: 1.6em 0 .6em; font-size: 19px; }
.block-text h2:first-child { margin-top: 0; }
.block-text ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.block-text li { margin-bottom: .4em; }

@media (max-width: 767px) {
  .block-text { padding: 60px 20px; }
  .block-text h2 { font-size: 22px; }
}

.block-image { margin-bottom: 1.5rem; }
.block-image-media { display: block; width: 100%; height: auto; border-radius: var(--radius-media); }
.block-image-caption { margin-top: .5rem; font-size: .85rem; color: var(--grey); }

.block-form-wrap { max-width: 640px; }
.block-form-field { margin-bottom: 1.2rem; }
.block-form-label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: 14px; color: var(--ink-3); }
.block-form-input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--grey);
  background-color: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-btn);
}
.block-form-input:focus {
  outline: none;
  border-color: var(--grey);
  background-color: var(--bg);
}
.block-form-checkbox { margin-bottom: 1.2rem; }
.block-form-submit {
  padding: 14px 34px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  background-color: var(--accent);
  border: 0;
  border-radius: var(--radius-btn);
  cursor: pointer;
}
.block-form-submit:hover { background-color: var(--ink-3); }

.form-message-success,
.form-message-error {
  display: none;
  margin: 0 0 1.2rem;
  padding: 14px 18px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
}
.form-message-success { background: #e8f6ec; color: #1e7b3c; }
.form-message-error { background: #fdecea; color: #b3261e; }
