/* Boulangerie Lomoto — site vitrine
   Feuille de style partagée, aucune dépendance externe. */

:root {
  --brun-fonce: #3b2418;
  --brun: #6b4226;
  --brun-clair: #a9744f;
  --creme: #fbf3e7;
  --creme-fonce: #f1e2cb;
  --or: #c98a3a;
  --texte: #2c1d13;
  --texte-doux: #6b5744;
  --blanc: #ffffff;
  --succes: #2f6b3f;
  --erreur: #a13a2f;
  --rayon: 12px;
  --ombre: 0 4px 16px rgba(59, 36, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--texte);
  background: var(--creme);
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: var(--brun);
}

.conteneur {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* En-tête */
.entete {
  background: var(--brun-fonce);
  color: var(--creme);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--ombre);
}

.entete-barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 960px;
  margin: 0 auto;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--creme);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--or);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--creme);
  text-decoration: none;
  font-weight: 500;
  opacity: 0.9;
}

.nav a:hover,
.nav a.actif {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Héros */
.heros {
  background: linear-gradient(160deg, var(--brun) 0%, var(--brun-fonce) 100%);
  color: var(--creme);
  padding: 64px 20px;
  text-align: center;
}

.heros h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 12px;
}

.heros p {
  font-size: 1.1rem;
  color: var(--creme-fonce);
  max-width: 560px;
  margin: 0 auto 28px;
}

.bouton {
  display: inline-block;
  background: var(--or);
  color: var(--brun-fonce);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--rayon);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bouton:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201, 138, 58, 0.4);
}

.bouton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.bouton-secondaire {
  background: transparent;
  color: var(--creme);
  border: 2px solid var(--creme);
}

/* Héros à deux colonnes (texte + photo), utilisé sur la page Produits */
.heros-duo-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  text-align: left;
}

.heros-duo .heros-texte {
  flex: 1 1 320px;
}

.heros-duo .heros-texte h1,
.heros-duo .heros-texte p {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.heros-duo .heros-image {
  flex: 1 1 240px;
  max-width: 320px;
  margin: 0 auto;
}

.heros-duo .heros-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--rayon);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

/* Sections */
.section {
  padding: 56px 20px;
}

.section h2 {
  font-size: 1.6rem;
  color: var(--brun-fonce);
  margin-bottom: 8px;
  text-align: center;
}

.section-intro {
  text-align: center;
  color: var(--texte-doux);
  max-width: 600px;
  margin: 0 auto 36px;
}

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.carte {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 24px;
  box-shadow: var(--ombre);
}

.carte h3 {
  margin-top: 0;
  color: var(--brun);
}

.section-alt {
  background: var(--creme-fonce);
}

/* Section illustrée (photo + texte), utilisée pour « Qui sommes-nous » */
.section-illustree {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.section-illustree .illustration {
  flex: 1 1 260px;
  max-width: 340px;
  margin: 0 auto;
}

.section-illustree .illustration img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}

@media (max-width: 700px) {
  .section-illustree .illustration img {
    height: auto;
    object-fit: initial;
  }
}

.section-illustree .texte {
  flex: 2 1 320px;
}

.section-illustree .texte h2 {
  text-align: left;
}

.section-illustree .texte .section-intro {
  text-align: left;
  margin: 0;
  max-width: none;
}

/* Galerie de photos produits */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.carte-galerie {
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  overflow: hidden;
}

.carte-galerie img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.carte-galerie p {
  margin: 0;
  padding: 14px 18px;
  color: var(--texte-doux);
  font-size: 0.92rem;
}

/* FAQ (accordéon natif, sans JS) */
.faq {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 4px 20px;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  color: var(--brun-fonce);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--or);
  font-size: 1.3rem;
  font-weight: 700;
  margin-left: 12px;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0;
  padding: 0 0 18px;
  color: var(--texte-doux);
}

/* Formulaire */
.formulaire-carte {
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 32px;
  max-width: 480px;
  margin: 0 auto;
}

.champ {
  margin-bottom: 18px;
}

.champ label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--brun-fonce);
}

.champ .aide {
  display: block;
  font-size: 0.85rem;
  color: var(--texte-doux);
  margin-top: 4px;
  font-weight: 400;
}

.grille-produits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.champ-produit label {
  display: block;
  font-weight: 500;
  font-size: 0.88rem;
  margin-bottom: 4px;
  color: var(--brun-fonce);
}

.champ-produit input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d9c7ae;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--creme);
  color: var(--texte);
}

.champ-produit input:focus {
  outline: 2px solid var(--or);
  outline-offset: 1px;
}

.total-bacs {
  margin: 14px 0 0;
  font-size: 0.95rem;
  color: var(--brun-fonce);
}

.total-bacs strong {
  font-size: 1.15rem;
}

@media (max-width: 480px) {
  .grille-produits {
    grid-template-columns: 1fr;
  }
}

.champ input,
.champ textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d9c7ae;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--creme);
  color: var(--texte);
}

.champ input:focus,
.champ textarea:focus {
  outline: 2px solid var(--or);
  outline-offset: 1px;
}

.champ textarea {
  resize: vertical;
  min-height: 80px;
}

.message {
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.message-erreur {
  background: #fbeae7;
  color: var(--erreur);
  border: 1px solid #f0c8c0;
}

.message-succes {
  background: #eaf3ec;
  color: var(--succes);
  border: 1px solid #c6e0cc;
}

.message-info {
  background: #f1e9db;
  color: var(--brun-fonce);
  border: 1px solid #e2cea9;
}

.salutation {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brun-fonce);
  margin-bottom: 4px;
}

.qualite-badge {
  display: inline-block;
  background: var(--creme-fonce);
  color: var(--brun);
  font-size: 0.85rem;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.lien-discret {
  background: none;
  border: none;
  color: var(--texte-doux);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  margin-top: 12px;
  display: inline-block;
}

.chargement::after {
  content: "…";
}

/* Pied de page */
.pied {
  background: var(--brun-fonce);
  color: var(--creme-fonce);
  text-align: center;
  padding: 32px 20px;
  font-size: 0.9rem;
}

.pied a {
  color: var(--creme);
}

@media (max-width: 600px) {
  .entete-barre {
    flex-direction: column;
    gap: 10px;
    padding: 14px 20px;
  }

  .formulaire-carte {
    padding: 24px 18px;
  }
}
