/* ===== Calculateur Champagne — feuille de style ===== */

:root {
  --bordeaux: #6b1d34;
  --bordeaux-fonce: #4a1224;
  --or: #c9a227;
  --or-clair: #e8d48b;
  --creme: #fdf9f0;
  --texte: #2f2a26;
  --gris: #8a817a;
  --ombre: 0 4px 18px rgba(74, 18, 36, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2rem 1rem 3rem;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--texte);
  background:
    linear-gradient(160deg, #fdf9f0 0%, #f6ecdd 100%);
  min-height: 100vh;
}

/* Image de fond en filigrane discret */
body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: min(45vw, 520px);
  height: 100%;
  background: url("champagne.png") no-repeat center right / contain;
  opacity: 0.10;
  pointer-events: none;
}

h1 {
  font-size: 1.9rem;
  letter-spacing: 0.03em;
  color: var(--bordeaux);
  border-bottom: 3px solid var(--or);
  padding-bottom: 0.4rem;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

h3 { margin-top: 2.5rem; }

a { color: var(--bordeaux); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Liens de menu (dans des h2) en cartes */
h2 a, h2 {
  display: block;
  max-width: 640px;
  margin: 0 auto 0.9rem;
  padding: 0.8rem 1.2rem;
  background: #fff;
  border: 1px solid #eadfc9;
  border-left: 5px solid var(--or);
  border-radius: 10px;
  font-size: 1.15rem;
  color: var(--bordeaux);
  box-shadow: var(--ombre);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
h2 a:hover, h2:hover {
  text-decoration: none;
  transform: translateX(4px);
  border-left-color: var(--bordeaux);
}
h2 {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  color: var(--gris);
  font-size: 0.95rem;
}

/* Champs et libellés : formulaire aligne */
body { line-height: 2; }
input[type="number"], input[type="text"] {
  font: inherit;
  padding: 0.35rem 0.55rem;
  margin: 0 0.3rem;
  width: 130px;
  border: 1px solid #d9cbb2;
  border-radius: 8px;
  background: #fff;
  color: var(--texte);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus {
  outline: none;
  border-color: var(--or);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25);
}

button {
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--bordeaux), var(--bordeaux-fonce));
  border: none;
  border-radius: 10px;
  padding: 0.55rem 1.4rem;
  margin: 0.6rem 0.2rem;
  cursor: pointer;
  box-shadow: var(--ombre);
  transition: transform 0.12s ease, filter 0.12s ease;
}
button:hover { filter: brightness(1.12); transform: translateY(-1px); }
button:active { transform: translateY(0); }

/* ===== Page d'accueil : petit logo centre au-dessus du titre ===== */
body.accueil { text-align: center; }
img.logo {
  display: block;
  margin: 0 auto 0.5rem;
  max-width: 160px;
  height: auto;
  border-radius: 12px;
}
body.accueil::before { display: none; }

/* Zone centrale lisible sur les grandes pages */
@media (min-width: 700px) {
  body { padding: 2rem 2rem 3rem; }
  h1 { text-align: center; }
}

/* Bloc parametres replie sur les pages de calcul */
details.params {
  max-width: 640px;
  margin: 0 auto 1rem;
  background: #fff;
  border: 1px solid #eadfc9;
  border-radius: 10px;
  box-shadow: var(--ombre);
  padding: 0.6rem 1rem;
  text-align: left;
}
details.params summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--bordeaux);
}
details.params[open] summary { margin-bottom: 0.4rem; }
