/* ==========================================================
   Location de basson français
   Feuille de style commune à toutes les pages
   ========================================================== */

:root {
  --creme: #f7f2ea;
  --papier: #fffdf9;
  --bois: #3b2418;        /* palissandre foncé */
  --bois-clair: #6b4430;
  --laiton: #b08a3e;      /* accent laiton */
  --laiton-clair: #e9dcc0;
  --texte: #2a211c;
  --texte-doux: #6a5d55;
  --trait: #e3d8c8;
  --rayon: 10px;
  --largeur: 1120px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--bois-clair); text-underline-offset: 3px; }
a:hover { color: var(--laiton); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--bois);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1em; }

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 20px;
}

.lien-evitement {
  position: absolute; left: -999px; top: 0;
  background: var(--bois); color: #fff; padding: 8px 14px; z-index: 100;
}
.lien-evitement:focus { left: 10px; top: 10px; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(59, 36, 24, .96);
  backdrop-filter: blur(6px);
  color: #fff;
}
.entete .conteneur {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 70px; gap: 20px;
}
.logo {
  color: #fff; text-decoration: none;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  line-height: 1.1; letter-spacing: .01em;
}
.logo small {
  display: block; font-family: var(--sans); font-size: .7rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--laiton-clair); font-weight: 500;
}
.logo:hover { color: #fff; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: #f1e8da; text-decoration: none; font-size: .88rem;
  letter-spacing: .06em; text-transform: uppercase; font-weight: 500;
}
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a[aria-current="page"] { background: var(--laiton); color: #fff; }

.bouton-menu {
  display: none; background: none; border: 1px solid rgba(255,255,255,.35);
  color: #fff; border-radius: 8px; padding: 8px 12px; font: inherit; font-size: .9rem; cursor: pointer;
}

@media (max-width: 760px) {
  .bouton-menu { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bois); display: none; padding: 10px 20px 18px;
  }
  .nav.ouvert { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { border-radius: 8px; padding: 12px 14px; }
}

/* ---------- Bandeau d'accueil ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex; align-items: flex-end;
  background: var(--bois) url("../images/hero.jpg") center / cover no-repeat;
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(30,18,12,.35) 0%, rgba(30,18,12,.1) 55%, rgba(30,18,12,0) 100%),
    linear-gradient(180deg, rgba(30,18,12,0) 50%, rgba(30,18,12,.45) 100%);
}
.hero h1, .hero p, .hero .surtitre { text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 2px 14px rgba(0,0,0,.45); }
.hero .conteneur { position: relative; padding-top: 80px; padding-bottom: 64px; }
.hero h1 { color: #fff; max-width: 16ch; margin-bottom: .3em; }
.hero p { font-size: 1.15rem; max-width: 46ch; color: #f3ebdf; }
.surtitre {
  display: inline-block; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--laiton-clair); margin-bottom: 14px; font-weight: 600;
}

.bandeau-page {
  background: var(--bois); color: #fff; padding: 64px 0 56px;
}
.bandeau-page h1 { color: #fff; margin: 0; }
.bandeau-page p { color: #e9dfd2; margin: 12px 0 0; max-width: 60ch; }

/* ---------- Boutons ---------- */
.boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-plein { background: var(--laiton); color: #fff; }
.btn-plein:hover { background: #9a7732; color: #fff; }
.btn-contour { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-contour:hover { background: #fff; color: var(--bois); }
.btn-sombre { background: var(--bois); color: #fff; }
.btn-sombre:hover { background: var(--bois-clair); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-claire { background: var(--papier); }
.entete-section { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.entete-section p { color: var(--texte-doux); }
.filet {
  width: 56px; height: 2px; background: var(--laiton); border: 0; margin: 0 auto 18px;
}

/* ---------- Cartes bassons ---------- */
.grille-bassons {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
@media (max-width: 900px) { .grille-bassons { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

.carte {
  background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon);
  overflow: hidden; display: flex; flex-direction: column;
}
.carte-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--trait); }
.carte-photos button {
  padding: 0; border: 0; background: #eee7dc; cursor: zoom-in; aspect-ratio: 3 / 5; overflow: hidden;
}
.carte-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.carte-photos button:hover img { transform: scale(1.04); }
.carte-corps { padding: 22px 24px 26px; }
.carte-corps .etiquette {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--laiton); font-weight: 600;
}
.carte-corps h3 { margin: 6px 0 8px; }
.carte-corps p { color: var(--texte-doux); font-size: .95rem; margin: 0; }

/* ---------- Atouts ---------- */
.atouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 820px) { .atouts { grid-template-columns: 1fr; } }
.atout { padding: 28px; border-top: 2px solid var(--laiton); background: var(--papier); border-radius: 0 0 var(--rayon) var(--rayon); }
.atout h3 { font-size: 1.3rem; }
.atout p { color: var(--texte-doux); margin: 0; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon);
  margin-bottom: 12px;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--bois);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--laiton); border-bottom: 2px solid var(--laiton);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .reponse { padding: 0 24px 20px; color: var(--texte-doux); }
.faq .reponse ul { margin: 0 0 1em; padding-left: 1.2em; }

/* ---------- Bloc contact ---------- */
.appel {
  background: var(--bois); color: #efe5d8; border-radius: 16px;
  padding: 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.appel h2 { color: #fff; }
@media (max-width: 820px) { .appel { grid-template-columns: 1fr; padding: 32px 24px; } }

.coordonnees { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.coordonnees li { display: flex; gap: 14px; align-items: center; }
.coordonnees .icone {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(176,138,62,.18); color: var(--laiton-clair);
}
.coordonnees svg { width: 20px; height: 20px; }
.coordonnees small { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.coordonnees a { color: #fff; text-decoration: none; font-weight: 600; font-size: 1.05rem; word-break: break-all; }
.coordonnees a:hover { color: var(--laiton-clair); }

/* ---------- Tableau informations ---------- */
.tableau {
  width: 100%; border-collapse: collapse; background: var(--papier);
  border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden;
}
.tableau th, .tableau td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--trait); vertical-align: top; }
.tableau thead th {
  background: var(--bois); color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
}
.tableau tbody th { font-family: var(--serif); font-size: 1.2rem; color: var(--bois); width: 38%; }
.tableau tr:last-child th, .tableau tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .tableau thead { display: none; }
  .tableau tr { display: block; border-bottom: 1px solid var(--trait); }
  .tableau tbody th, .tableau td { display: block; width: auto; border: 0; }
  .tableau tbody th { padding-bottom: 4px; }
  .tableau td { padding-top: 0; }
}

.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 820px) { .deux-colonnes { grid-template-columns: 1fr; gap: 32px; } }

.encadre {
  background: var(--papier); border: 1px solid var(--trait); border-left: 3px solid var(--laiton);
  border-radius: var(--rayon); padding: 24px 28px;
}

/* ---------- Formulaire ---------- */
.formulaire { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 32px; }
@media (max-width: 520px) { .formulaire { padding: 22px 18px; } }
.champ { margin-bottom: 18px; }
.champ label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--bois); }
.champ input, .champ textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d6c9b6; border-radius: 8px;
  background: #fff; font: inherit; color: var(--texte);
}
.champ input:focus, .champ textarea:focus { outline: 2px solid var(--laiton); outline-offset: 1px; border-color: var(--laiton); }
.champ textarea { min-height: 160px; resize: vertical; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mention { font-size: .8rem; color: var(--texte-doux); margin-top: 12px; }

.message-retour { border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; font-weight: 500; display: none; }
.message-retour.succes { display: block; background: #e7f2e3; color: #2d5a24; border: 1px solid #bcd8b3; }
.message-retour.erreur { display: block; background: #f8e6e3; color: #7a2b1f; border: 1px solid #e4bdb5; }

/* ---------- Pied de page ---------- */
.pied { background: #24160f; color: #bfb2a4; padding: 44px 0 30px; font-size: .9rem; }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.pied a { color: #e9dcc0; text-decoration: none; }
.pied a:hover { color: #fff; }
.pied .logo { font-size: 1.15rem; }
.pied ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.pied .copyright { flex-basis: 100%; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; margin-top: 10px; font-size: .8rem; }

/* ---------- Visionneuse photo ---------- */
.visionneuse {
  position: fixed; inset: 0; z-index: 200; background: rgba(20,12,8,.92);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.visionneuse.ouverte { display: flex; }
.visionneuse img { max-height: 90vh; max-width: 100%; border-radius: 6px; }
.visionneuse button {
  position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.12); color: #fff;
  border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; line-height: 1;
}
