/* === VARIABLES === */
:root {
  --color-primary: #8b5a2b;
  --color-primary-dark: #6b4521;
  --color-text: #4a3a2f;
  --color-text-light: #5a4538;
  --color-secondary: #5a3f2f;
  --bg-light: #fdfbf7;
  --bg-card: white;
  --bg-header: #f5e9dc;
  --border-light: #f0e0c9;
  --shadow-light: rgba(0,0,0,0.06);
  --shadow-focus: rgba(139, 90, 43, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--bg-light);
}

/* === LIENS === */
a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

a:hover,
a:focus {
  text-decoration: underline;
  outline: none;
}

/* === IMAGES === */
img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.2rem 0;
  display: block;
}

/* === CONTENEUR === */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === HEADER === */
header {
  background: linear-gradient(to bottom, #f8f2ea 0%, var(--bg-header) 100%);
  padding: 1.8rem 0;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.header-home {
  background: linear-gradient(to bottom, var(--bg-header) 0%, #ecd9c6 100%);
  padding: 3rem 0;
}

header h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 0.4rem;
  letter-spacing: -0.5px;
}

.tagline {
  color: #7d6252;
  font-style: italic;
  font-size: 1.1rem;
}

/* === TITRES === */
h2 {
  color: var(--color-primary);
  margin: 2rem 0 1.2rem;
  font-size: 1.5rem;
  font-weight: 600;
}

h3 {
  color: var(--color-secondary);
  margin: 1.2rem 0 0.6rem;
  font-size: 1.25rem;
  font-weight: 600;
}

/* === SECTIONS === */
main > section {
  padding: 2.2rem 0;
}

.pensee p {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-light);
}

.partage article {
  margin: 2.5rem 0;
}

.communaute,
.commande-rapide {
  text-align: center;
}

/* === CARTES === */
.card {
  background: var(--bg-card);
  padding: 1.4rem;
  margin: 1.8rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow-light);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* === BOUTONS === */
.btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: background-color 0.25s, transform 0.15s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover,
.btn:focus {
  background-color: var(--color-primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* === BANNIÈRE D’EN-TÊTE AVEC IMAGE === */
.banner-header {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 2rem 0 0;
}

.banner-header img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.9);
}

.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: rgba(253, 251, 247, 0.88);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  max-width: 80%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  z-index: 2;
}

/* === FORMULAIRES === */
input,
textarea,
select,
button {
  padding: 0.7rem;
  margin: 0.5rem 0;
  border: 1px solid #d0c4b8;
  border-radius: 8px;
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input[type="number"] {
  padding: 0.4rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--shadow-focus);
}

button[type="submit"] {
  background-color: var(--color-primary);
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-top: 1rem;
}

button[type="submit"]:hover {
  background-color: var(--color-primary-dark);
}

/* === BOUTONS RADIO ULTRA-CORRIGÉS === */
.radio-group {
  margin: 0.8rem 0;
}

.radio-option {
  display: inline-block;
  vertical-align: top;
  margin-right: 20px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.3rem 0;
}

.radio-option input[type="radio"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.radio-option label {
  cursor: pointer;
}

.radio-option label:hover {
  color: var(--color-primary-dark);
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
  color: #8c7a6d;
  font-size: 0.95rem;
  border-top: 1px solid var(--border-light);
  margin-top: 2rem;
}

/* === ACCESSIBILITÉ === */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }
  .banner-content {
    max-width: 90%;
    padding: 1.5rem;
  }
  .banner-content h2 {
    font-size: 1.7rem;
  }
  .card {
    padding: 1.2rem;
  }
  main > section {
    padding: 1.8rem 0;
  }
  h2 {
    font-size: 1.45rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.6rem;
  }
  .banner-content {
    max-width: 95%;
    padding: 1.2rem 1rem;
  }
  .banner-content h2 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
  }
  input,
  textarea,
  select {
    font-size: 1rem;
  }
}