/* Ultramontano — charte tirée du logo */
:root {
  --vert: #008C45;
  --vert-fonce: #006B35;
  --rouge: #CD212A;
  --creme: #F4F5F0;
  --blanc: #FFFFFF;
  --gris-clair: #E3E0E0;
  --gris: #B8B1B1;
  --encre: #1B1A19;
  --texte: #3A3836;
  --ligne: #DAD6D2;

  --titre: "Oswald", "Arial Narrow", sans-serif;
  --corps: "Source Serif 4", Georgia, serif;

  --largeur: 1180px;
  --rayon: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--vert); }
.wrap { max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--titre);
  color: var(--encre);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); text-transform: uppercase; letter-spacing: .01em; }
h1 em { font-style: normal; color: var(--vert); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; }
p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--titre);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  color: var(--rouge);
  margin-bottom: 1rem;
}

/* Liseré tricolore */
.tricolore { display: flex; height: 6px; position: sticky; top: 0; z-index: 60; }
.tricolore span { flex: 1; }
.tricolore span:nth-child(1) { background: var(--vert); }
.tricolore span:nth-child(2) { background: var(--blanc); box-shadow: inset 0 -1px 0 var(--gris-clair), inset 0 1px 0 var(--gris-clair); }
.tricolore span:nth-child(3) { background: var(--rouge); }

/* En-tête */
.site-header {
  position: sticky; top: 6px; z-index: 50;
  background: rgba(244, 245, 240, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ligne);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-family: var(--titre);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .9rem;
  color: var(--encre);
  text-decoration: none;
}
.nav a:not(.btn):hover { color: var(--vert); }

/* Boutons */
.btn {
  display: inline-block;
  font-family: var(--titre);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .9rem;
  padding: .85em 1.6em;
  border-radius: var(--rayon);
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--vert); color: var(--blanc); }
.btn-primary:hover { background: var(--vert-fonce); }
.btn-ghost { border-color: var(--encre); color: var(--encre); }
.btn-ghost:hover { background: var(--encre); color: var(--creme); }
.nav .btn-pro { background: var(--encre); color: var(--creme); padding: .7em 1.3em; }
.nav .btn-pro:hover { background: var(--rouge); }
.btn-block { display: block; text-align: center; }

/* Emplacements d'images */
.visuel { margin: 0; overflow: hidden; border-radius: var(--rayon); }
.visuel img { width: 100%; height: 100%; object-fit: cover; }
.visuel-bandeau img { object-position: center 45%; }
.visuel-hero img { object-position: 68% center; } /* centre sur l'allée de cyprès et les oliviers */
.placeholder {
  height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: .4em;
  text-align: center;
  padding: 24px;
  border-radius: var(--rayon);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(184,177,177,.18) 14px 15px),
    var(--gris-clair);
  color: var(--texte);
  font-size: .9rem;
  line-height: 1.4;
}
.placeholder strong { font-family: var(--titre); text-transform: uppercase; letter-spacing: .08em; color: var(--encre); font-weight: 500; }
.placeholder small { color: #6f6a67; font-size: .78rem; }

/* 1. Accueil */
/* En-tête (6px + 84px) + accueil = hauteur de l'écran */
.hero {
  position: relative;
  min-height: calc(100vh - 91px);
  min-height: calc(100svh - 91px);
  display: flex; flex-direction: column;
  padding-top: 40px;
}
.hero-grid { flex: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; padding-bottom: 24px; }
.lead { font-size: 1.2rem; max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.visuel-hero { height: clamp(300px, calc(100svh - 380px), 620px); }
.montagnes { line-height: 0; margin-top: auto; }
.montagnes svg { width: 100%; height: clamp(140px, 22vh, 250px); }

/* Sections */
.section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }

/* 2. La maison */
.maison { background: var(--blanc); }
.maison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.visuel-maison { aspect-ratio: 3 / 2; }
.piliers { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 22px; }
.piliers li { display: flex; gap: 16px; align-items: flex-start; }
.piliers p { margin: 0; font-size: 1rem; }
.piliers h3 { margin-bottom: .2em; }
.pastille { flex: none; width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; }
.pastille.vert { background: var(--vert); }
.pastille.blanc { background: var(--creme); box-shadow: inset 0 0 0 2px var(--gris); }
.pastille.rouge { background: var(--rouge); }

/* 3. Gammes */
.visuel-bandeau { aspect-ratio: 21 / 9; margin-bottom: 40px; }
.cartes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cartes li {
  background: var(--blanc);
  padding: 26px 24px 22px;
  border-radius: var(--rayon);
  border-top: 4px solid var(--vert);
}
.cartes li:nth-child(2) { border-top-color: var(--gris); }
.cartes li:nth-child(3) { border-top-color: var(--rouge); }
.cartes li:nth-child(4) { border-top-color: var(--encre); }
.cartes p { font-size: .98rem; margin: 0; }
.note-pro { margin-top: 32px; font-size: 1rem; }
.bientot {
  font-family: var(--titre); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem;
  background: var(--gris-clair); padding: .2em .6em; border-radius: 20px; margin-left: .4em;
}

/* 4. Logistique & contact */
.logistique { background: var(--blanc); }
.logistique-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 64px; align-items: start; }
.trajet { display: flex; align-items: flex-start; margin: 36px 0 40px; }
.etape { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-family: var(--titre); text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; color: var(--encre); min-width: 76px; }
.etape-cle { color: var(--rouge); font-weight: 600; }
.point { width: 18px; height: 18px; border-radius: 50%; }
.point.vert { background: var(--vert); }
.point.gris { background: var(--gris); }
.point.rouge { background: var(--rouge); box-shadow: 0 0 0 6px rgba(205,33,42,.15); }
.point.noir { background: var(--encre); }
.ligne { flex: 1; height: 2px; margin-top: 8px; background: repeating-linear-gradient(90deg, var(--gris) 0 8px, transparent 8px 14px); }
.visuel-entrepot { aspect-ratio: 3 / 2; }

.contact {
  background: var(--creme);
  padding: 36px 32px;
  border-radius: var(--rayon);
  border-top: 4px solid var(--rouge);
  position: sticky; top: 120px;
}
.contact h2 { font-size: 1.8rem; }
.contact > p { font-size: 1rem; }
.coord { padding: 16px 0; border-top: 1px solid var(--ligne); }
.coord h3 { font-size: .85rem; letter-spacing: .12em; color: var(--rouge); margin-bottom: .4em; }
.coord address, .coord p { font-style: normal; margin: 0; font-size: 1rem; }
.contact .btn { margin-top: 20px; }
.a-completer { background: #FFF3B0; padding: 0 .25em; }

/* Pages secondaires (contact, espace pro, mentions légales) */
.sous-page { min-height: 100vh; display: flex; flex-direction: column; }
.sous-page .page { flex: 1; padding: 72px 0 96px; }
.etroit { max-width: 760px; }
.centre { text-align: center; }
.centre .lead { margin-left: auto; margin-right: auto; }
.centre .actions { justify-content: center; }
.page h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }

.formulaire { display: grid; gap: 8px; margin-top: 32px; }
.formulaire label { font-family: var(--titre); text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: var(--encre); margin-top: 14px; }
.formulaire input, .formulaire textarea {
  font: inherit; color: var(--encre);
  padding: .75em .9em;
  background: var(--blanc);
  border: 1px solid var(--gris);
  border-radius: var(--rayon);
  width: 100%;
}
.formulaire input:focus, .formulaire textarea:focus { outline: 2px solid var(--vert); outline-offset: 1px; border-color: var(--vert); }
.formulaire textarea { resize: vertical; }
.formulaire .btn { justify-self: start; margin-top: 20px; cursor: pointer; }
.piege { position: absolute; left: -9999px; }
.petit { font-size: .85rem; color: #6f6a67; margin-top: 12px; }
.retour:empty { display: none; }
.retour { padding: 14px 18px; border-radius: var(--rayon); border-left: 4px solid; margin-top: 24px; background: var(--blanc); }
.retour.ok { border-color: var(--vert); }
.retour.ko { border-color: var(--rouge); }

.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal p { font-size: 1rem; }

/* Pied de page */
.site-footer { background: var(--encre); color: #CFCBC6; padding: 32px 0; font-size: .9rem; }
.footer-inner { display: flex; align-items: center; gap: 24px; }
.footer-inner p { margin: 0; flex: 1; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner a { color: #CFCBC6; text-decoration: none; }
.footer-inner a:hover { color: var(--blanc); }

/* Menu mobile */
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--encre); margin: 6px 0; }

/* Écrans larges mais bas (portables) : on resserre pour tenir dans la hauteur */
@media (min-width: 961px) and (max-height: 760px) {
  .hero { padding-top: 20px; }
  h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
  .lead { font-size: 1.05rem; }
  .actions { margin-top: 1.2rem; }
  .eyebrow { margin-bottom: .6rem; }
  .visuel-hero { height: calc(100svh - 300px); }
  .montagnes svg { height: 120px; }
}

@media (max-width: 960px) {
  .hero-grid, .maison-grid, .logistique-grid { grid-template-columns: 1fr; gap: 40px; }
  .visuel-hero { height: auto; aspect-ratio: 16 / 10; }
  .cartes { grid-template-columns: repeat(2, 1fr); }
  .contact { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .header-inner { height: 72px; }
  .brand img { height: 46px; }
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--creme); border-bottom: 1px solid var(--ligne);
    padding: 8px 16px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--ligne); }
  .nav .btn-pro { margin-top: 14px; text-align: center; border-bottom: 0; }
  .section { padding: 64px 0; }
  .hero { padding-top: 32px; min-height: calc(100svh - 79px); }
  .montagnes svg { height: 120px; }
  .visuel-bandeau { aspect-ratio: 4 / 3; }
  .cartes { grid-template-columns: 1fr; }
  .trajet { flex-wrap: nowrap; }
  .etape { min-width: 0; font-size: .7rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
