/* Plusquellec Paysage — feuille de style unique (reprise du thème « urban ») */

@font-face { font-family: 'Oswald'; font-weight: 400; font-display: swap; src: url('fonts/oswald-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 500; font-display: swap; src: url('fonts/oswald-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'PT Serif'; font-weight: 400; font-display: swap; src: url('fonts/pt-serif-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'PT Serif'; font-weight: 400; font-style: italic; font-display: swap; src: url('fonts/pt-serif-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'PT Serif'; font-weight: 700; font-display: swap; src: url('fonts/pt-serif-latin-700-normal.woff2') format('woff2'); }

:root {
  --accent: #c36248;
  --accent-dark: #a24f39;
  --sand: #f9dd98;
  --text: #5f5e58;
  --heading: #38352f;
  --bg: #f7f6f2;
  --bg-alt: #efeee9;
  --dark: #3c3d37;
  --dark-line: #4b4c45;
  --white: #fff;
  --font-head: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'PT Serif', Georgia, 'Times New Roman', serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --block: clamp(48px, 8vw, 100px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--font-body);
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--heading);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h1 a, h2 a, h3 a { color: inherit; text-decoration: none; }
h1 a:hover, h2 a:hover, h3 a:hover { color: var(--accent); }
p, ul, ol, table { margin: 0 0 1.2em; }
ul { padding-left: 1.2em; }
li::marker { color: var(--accent); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 16px; }
.skip-link:focus { left: 8px; }

.button {
  display: inline-block;
  padding: .85em 1.8em;
  font: 500 .95rem/1 var(--font-head);
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--white);
  background: var(--accent);
  border-radius: 2px;
  transition: background-color .2s;
}
.button:hover { color: var(--white); background: var(--accent-dark); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.brand img { width: 170px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  font: 400 1rem/1.2 var(--font-head);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--heading);
  text-decoration: none;
}
.site-nav a:hover, .site-nav .is-active > a, .site-nav [aria-current="page"] { color: var(--accent); }
.subnav-toggle {
  width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; color: inherit;
}
.subnav-toggle::before {
  content: ''; display: block; width: 8px; height: 8px; margin: 0 auto;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg);
  transition: transform .2s;
}
.subnav-toggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(-135deg); }
.nav-toggle {
  display: none;
  font: 500 1rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .08em;
  padding: 12px 16px; border: 2px solid var(--heading); background: none; color: var(--heading); cursor: pointer;
}

@media (min-width: 64em) {
  #menu { display: flex; align-items: center; gap: 4px; }
  #menu > li { position: relative; display: flex; align-items: center; }
  #menu > li > a { padding: 38px 12px; }
  .has-sub > a { padding-right: 0 !important; }
  .subnav {
    position: absolute; top: 100%; left: 0; min-width: 240px;
    padding: 12px 0 !important; background: var(--dark);
    display: none;
  }
  .has-sub:hover .subnav, .subnav.is-open { display: block; }
  .subnav a { color: rgba(255, 255, 255, .85); padding: 10px 24px; font-size: .95rem; }
  .subnav a:hover, .subnav [aria-current="page"] { color: var(--sand); }
}
@media (max-width: 63.99em) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--dark); display: none; max-height: calc(100vh - 96px); overflow-y: auto; }
  .site-nav.is-open { display: block; }
  #menu { padding: 8px var(--gutter) 24px; }
  #menu > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--dark-line); }
  #menu a { color: var(--white); padding: 16px 0; }
  #menu a:hover, #menu [aria-current="page"] { color: var(--sand); }
  .subnav-toggle { color: var(--white); width: 48px; height: 48px; }
  .subnav { flex-basis: 100%; display: none; padding: 0 0 12px 16px !important; }
  .subnav.is-open { display: block; }
  .subnav a { padding: 10px 0 !important; font-size: .95rem; }
}

/* ---------- Blocs ---------- */
.block { padding: var(--block) 0; }
.block--default { background: var(--bg); }
.block--muted { background: var(--bg-alt); }
.block--secondary { background: var(--dark); color: rgba(255, 255, 255, .8); }
.block--secondary h1, .block--secondary h2, .block--secondary h3 { color: var(--white); }
.block > .container > :last-child { margin-bottom: 0; }
.block p, .block ul:not(.cards, .gallery) { max-width: 75ch; }
.block p:has(> img) { max-width: none; }

.kicker {
  font: 400 1.05rem/1.2 var(--font-head);
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: .6em;
}

.block--hero {
  position: relative;
  padding: clamp(72px, 14vw, 160px) 0;
  background: var(--dark) center / cover no-repeat;
  text-align: center;
}
.block--hero::before { content: ''; position: absolute; inset: 0; background: rgba(35, 34, 30, .55); }
.block--hero .container { position: relative; }
.block--hero h1 { color: var(--white); margin: 0; }

.block--quote {
  position: relative;
  padding: clamp(120px, 20vw, 240px) 0 clamp(48px, 8vw, 80px);
  background: var(--dark) center / cover no-repeat;
}
.block--quote::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(35, 34, 30, .7)); }
.block--quote .container { position: relative; }
.quote {
  font: italic 400 clamp(1.4rem, 1rem + 1.8vw, 2.4rem)/1.3 var(--font-body);
  color: var(--white);
  margin: 0;
}

.block--cta { text-align: center; background: var(--bg-alt); }
.block--cta h2 { max-width: 30ch; margin-left: auto; margin-right: auto; }
.cta { margin-top: 1.5em; }

/* ---------- Accueil : présentation des activités ---------- */
.block--secondary:has(.features) { padding: 0; }
.block--secondary:has(.features) .container { max-width: none; padding: 0; }
.feature { display: grid; }
.feature__img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.feature__body { padding: clamp(32px, 6vw, 80px) var(--gutter); align-self: center; }
.feature__body p { max-width: 52ch; }
@media (min-width: 60em) {
  .feature { grid-template-columns: 1fr 1fr; min-height: 440px; }
  .feature--reverse .feature__img { order: 2; }
}

/* ---------- Galeries ---------- */
.gallery {
  list-style: none; padding: 0; margin: 2em 0 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.gallery a { display: block; overflow: hidden; background: var(--dark); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s, opacity .4s; }
.gallery a:hover img { transform: scale(1.05); opacity: .85; }

/* ---------- Tuiles de services ---------- */
.cards {
  list-style: none; padding: 0; margin: 2em 0 0;
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  text-align: center;
}
.card { position: relative; background: var(--white); padding-bottom: 20px; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 20px; }
.card h3 { margin: 0 16px .3em; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card p { margin: 0 16px; font-size: .95rem; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 48px; }
@media (min-width: 50em) { .contact { grid-template-columns: 1fr 1fr; } }
.contact__mail { background: var(--white); padding: clamp(24px, 4vw, 48px); }
.contact__address { font-size: .95rem; word-break: break-all; }

/* ---------- Mentions légales ---------- */
table { border-collapse: collapse; width: 100%; }
td { vertical-align: top; padding: 0 24px 0 0; }
@media (max-width: 40em) { td { display: block; padding: 0; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .75); padding: 40px 0; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer__brand { display: flex; align-items: center; gap: 16px; margin: 0; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; }
.site-footer__brand img { width: 110px; background: var(--white); padding: 6px 10px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--white); text-decoration: none; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; }
.site-footer a:hover { color: var(--sand); }

/* ---------- Visionneuse ---------- */
.lightbox {
  border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  background: #141412; color: var(--white);
}
.lightbox::backdrop { background: #141412; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); object-fit: contain; }
.lightbox button {
  position: absolute; border: 0; background: rgba(0, 0, 0, .4); color: var(--white);
  width: 48px; height: 48px; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox button:hover { background: var(--accent); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; margin: 0; font-family: var(--font-head); letter-spacing: .1em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
