/* POLICES */
@font-face {
  font-family: 'Open Sans';
  src: url('fonts/OpenSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('fonts/OpenSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('fonts/OpenSans-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* VARIABLES */
:root {
  --vert:        #4a5c2f;
  --vert-hover:  #354320;
  --vert-terne:  #9aaa82;
  --texte:       #2d2d2d;
  --leger:       #6b6b6b;
  --fond:        #ffffff;
  --fond-section:#f7f7f4;
  --bordure:     #e0ddd5;
  --rayon:       10px;
  --largeur:     860px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* BASE */
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--texte);
  background: var(--fond);
}
a { color: var(--vert); text-decoration: none; }
a:hover { color: var(--vert-hover); text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }

/* BANDEAU — conteneur fixe unique header + nav */
.bandeau {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 var(--bordure);
  transition: box-shadow 0.3s ease;
}

/* HEADER — à l'intérieur du bandeau, n'est plus fixe lui-même */
.header {
  padding: 14px 40px;
  transition: padding 0.3s ease;
}
.header__inner {
  max-width: var(--largeur);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.header__logo {
  height: 72px;
  width: auto;
  border-radius: var(--rayon);
  flex-shrink: 0;
  transition: height 0.3s ease;
}
.header__texte { display: flex; flex-direction: column; gap: 2px; }
.header__titre {
  font-size: 1.20rem;
  font-weight: 600;
  color: var(--vert);
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: font-size 0.3s ease;
}
.header__sous-titre {
  font-size: 1rem;
  color: var(--leger);
  font-style: italic;
  overflow: hidden;
  max-height: 2em;
  opacity: 1;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

/* NAV — à l'intérieur du bandeau, suit naturellement */
.nav {
  background: var(--vert);
  /* plus de position:fixed ni de top: — le bandeau s'en charge */
}
.nav__inner {
  max-width: var(--largeur);
  margin: 0 auto;
  display: flex;
}
.nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 8px 22px;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: block;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: var(--vert-hover); color: #fff; text-decoration: none; }

/* État réduit */
.bandeau.reduit { box-shadow: 0 2px 8px rgba(0,0,0,0.09); }
.bandeau.reduit .header { padding: 7px 40px; }
.bandeau.reduit .header__logo { height: 50px; }
.bandeau.reduit .header__sous-titre { max-height: 0; opacity: 0; }
.bandeau.reduit .header__titre { font-size: 1.2rem; }

/* DÉCALAGE CONTENU */
.page-content { padding-top: 142px; }

/* SECTIONS */
.section {
  padding: 72px 40px;
  max-width: var(--largeur);
  margin: 0 auto;
}
.section--alt {
  background: var(--fond-section);
  padding: 72px 40px;
}
.section--alt > .section__inner {
  max-width: var(--largeur);
  margin: 0 auto;
}
.section__titre {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--vert);
  margin-bottom: 32px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bordure);
  letter-spacing: -0.01em;
}
/* DÉCALAGE ANCRES DE NAVIGATION */
#presentation,
#produits,
#contact {
  scroll-margin-top: 70px;
}


/* PRÉSENTATION */
.presentation__corps {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 52px;
  align-items: start;
}
.presentation__texte p {
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.presentation__texte p:last-child { margin-bottom: 0; }
.photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--fond-section);
  border: 2px dashed var(--bordure);
  border-radius: var(--rayon);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--leger);
  font-size: 0.82rem;
  font-style: italic;
  text-align: center;
  padding: 20px;
}
.presentation__photo img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--rayon);
  display: block;
}

/* PRODUITS & SERVICES */
.produits__liste { display: flex; flex-direction: column; }
.produit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--bordure);
}
.produit:first-child { border-top: 1px solid var(--bordure); }
.produit__texte { flex: 1; }
.produit__titre {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--texte);
  margin-bottom: 5px;
}
.produit__desc {
  font-size: 0.86rem;
  color: var(--leger);
  line-height: 1.6;
  margin: 0;
}
.btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.btn--actif { background: var(--vert); color: #fff; }
.btn--actif:hover { background: var(--vert-hover); color: #fff; text-decoration: none; }
.btn--inactif { background: #ececec; color: var(--vert-terne); pointer-events: none; cursor: default; }

/* CONTACT */
.contact__bloc { font-style: normal; }
.contact__ligne {
  display: flex;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--bordure);
  font-size: 0.92rem;
  align-items: baseline;
}
.contact__ligne:first-child { border-top: 1px solid var(--bordure); }
.contact__label {
  min-width: 85px;
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--leger);
  flex-shrink: 0;
  padding-top: 1px;
}
.contact__valeur a { color: var(--vert); }
.contact__valeur a:hover { text-decoration: underline; }
.contact__note {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--leger);
  font-style: italic;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--bordure);
  padding: 22px 40px;
  text-align: center;
  font-size: 0.77rem;
  color: var(--leger);
}
.footer a { color: var(--leger); text-decoration: underline; }
.footer a:hover { color: var(--texte); }

/* RESPONSIVE — TABLETTE */
@media (max-width: 768px) {
  .header { padding: 12px 20px; }
  .header.reduit { padding: 7px 20px; }
  .nav a { padding: 8px 14px; font-size: 0.74rem; }
  .section { padding: 52px 24px; }
  .section--alt { padding: 52px 24px; }
  .presentation__corps { grid-template-columns: 1fr; }
  .photo-placeholder { aspect-ratio: 16/9; }
  .produit { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* RESPONSIVE — MOBILE */
@media (max-width: 480px) {
  .header { padding: 10px 16px; }
  .header.reduit { padding: 6px 16px; }
  .header__logo { height: 50px; }
  .header.reduit .header__logo { height: 32px; }
  .header__titre { font-size: 1.20rem; }
  .page-content { padding-top: 116px; }
  .nav__inner { justify-content: space-around; }
  .nav a { padding: 7px 8px; font-size: 0.7rem; letter-spacing: 0.03em; }
  .section { padding: 36px 16px; }
  .section--alt { padding: 36px 16px; }
  .footer { padding: 18px 16px; }
}

/* MENTIONS LÉGALES */
.ml-bloc {
  margin-bottom: 36px;
}

.ml-titre {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--vert);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.ml-texte {
  font-size: 0.9rem;
  color: var(--texte);
  margin-bottom: 10px;
  line-height: 1.75;
}
.ml-texte:last-child { margin-bottom: 0; }

.ml-maj {
  font-size: 0.8rem;
  color: var(--leger);
  font-style: italic;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--bordure);
}

.ml-retour {
  margin-top: 16px;
  font-size: 0.88rem;
}

/* BOUTON RETOUR EN HAUT */
.retour-haut {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 36px;
  height: 36px;
  background: var(--vert);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  text-decoration: none;
  opacity: 0;
  pointer-events: none; /* non cliquable quand invisible */
  transition: opacity 0.3s ease, background 0.2s ease;
}

.retour-haut.visible {
  opacity: 0.55;       
  pointer-events: auto;
}

.retour-haut.visible:hover {
  opacity: 1;
  text-decoration: none;
}