/* =========================================================
   Michel Delorme — page de contact
   Page à but unique : joindre l'artisan. Une seule scène,
   fond vert marais, le canard comme touche d'identité.
   ========================================================= */

:root {
  --marais:   #123a30;
  --marais-2: #1f5e4f;
  --bois:     #7c4f2c;
  --ambre:    #d68a3c;
  --ambre-fonce: #b76e26;
  --lin:      #f2ece0;
  --lin-2:    #e7dcc8;
  --encre:    #221c16;
  --encre-doux: #4d4338;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Work Sans", system-ui, sans-serif;
  --rayon: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--lin);
  background: var(--marais);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: var(--serif); line-height: 1.05; margin: 0; font-weight: 600; }
p { margin: 0 0 1rem; }
img, svg { display: block; max-width: 100%; }

/* ---------- Mise en page ---------- */
.page {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1.25rem, 5vw, 2rem);
}

/* ---------- En-tête ---------- */
.entete { text-align: center; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.entete__titre { font-size: clamp(2.4rem, 8vw, 3.6rem); font-weight: 900; }
.surtitre {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ambre);
  font-weight: 600;
  margin: 0 0 0.4rem;
}

/* ---------- Carrousel ---------- */
.carrousel { margin: 0 auto 1.5rem; max-width: 520px; }
.carrousel__cadre {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--rayon);
  overflow: hidden;
  background: #0e2f28;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}
.diapo {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.diapo.actif { opacity: 1; pointer-events: auto; }
.diapo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.diapo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1rem 0.9rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--lin);
  text-align: left;
  background: linear-gradient(to top, rgba(8, 28, 24, 0.85), transparent);
}

.carrousel__fleche {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; line-height: 1;
  color: var(--encre);
  background: rgba(242, 236, 224, 0.85);
  border: none; border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease;
}
.carrousel__fleche:hover { background: var(--lin); }
.carrousel__fleche--prec { left: 0.7rem; }
.carrousel__fleche--suiv { right: 0.7rem; }

.carrousel__pause {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  color: var(--encre);
  background: rgba(242, 236, 224, 0.85);
  border: none; border-radius: 50%;
  cursor: pointer;
}
.carrousel__pause:hover { background: var(--lin); }

.carrousel__points {
  display: flex; justify-content: center; gap: 0.5rem;
  margin-top: 0.9rem;
}
.point {
  width: 9px; height: 9px;
  padding: 0;
  border: none; border-radius: 50%;
  background: rgba(242, 236, 224, 0.35);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.point.actif { background: var(--ambre); transform: scale(1.25); }

/* ---------- Contact ---------- */
/* ---------- Sélecteur de langue ---------- */
.langbar {
  display: flex;
  justify-content: flex-end;
  max-width: 640px;
  margin: 0 auto;
  padding: 0.9rem clamp(1.25rem, 5vw, 2rem) 0;
}
.langtoggle {
  display: inline-flex;
  border: 1px solid rgba(242, 236, 224, 0.25);
  border-radius: 999px;
  overflow: hidden;
}
.langtoggle__btn {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.85rem;
  border: none;
  background: transparent;
  color: #9fb4ad;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.langtoggle__btn:hover { color: var(--lin); }
.langtoggle__btn.actif { background: var(--ambre); color: var(--encre); }

/* ---------- Biographie ---------- */
.bio {
  display: flex;
  gap: clamp(1.25rem, 4vw, 2rem);
  align-items: flex-start;
  margin-bottom: clamp(2rem, 6vw, 3rem);
}
.bio__portrait { flex: 0 0 40%; max-width: 220px; }
.bio__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--rayon);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}
.bio__texte { flex: 1; }
.bio__texte h2 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); margin: 0.35rem 0 0.9rem; }
.bio__texte p { color: #d9e3df; margin: 0; }

.contact { margin-bottom: 2.5rem; }
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ambre);
}
.contact__intro { text-align: center; margin-bottom: 1.5rem; }
.contact__intro h2 { font-size: clamp(1.7rem, 5vw, 2.3rem); margin: 0.4rem 0 0.8rem; }
.contact__intro p { color: #d9e3df; margin: 0 auto; max-width: 30rem; }

/* ---------- Formulaire ---------- */
.formulaire {
  background: var(--lin);
  color: var(--encre);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border-radius: var(--rayon);
}
.champ { margin-bottom: 1.2rem; }
.champ label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.champ input,
.champ textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--encre);
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--lin-2);
  border-radius: var(--rayon);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.champ input:focus,
.champ textarea:focus {
  outline: none;
  border-color: var(--marais-2);
  box-shadow: 0 0 0 3px rgba(31, 94, 79, 0.2);
}
.champ textarea { resize: vertical; }

.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formulaire__retour { margin: 1rem 0 0; font-weight: 500; min-height: 1.2em; }
.formulaire__retour.est-succes { color: var(--marais-2); }
.formulaire__retour.est-erreur { color: #b3402c; }

/* ---------- Bouton ---------- */
.bouton {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border: none;
  border-radius: var(--rayon);
  cursor: pointer;
  background: var(--ambre);
  color: var(--encre);
  box-shadow: 0 6px 0 var(--ambre-fonce);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.bouton:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ambre-fonce); }
.bouton:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--ambre-fonce); }
.bouton:disabled { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- Pied ---------- */
.pied { margin-top: auto; text-align: center; font-size: 0.9rem; color: #9fb4ad; }
.pied p { margin: 0; }
.pied__fin { margin-top: 0.3rem; opacity: 0.7; }

/* ---------- Réactif ---------- */
@media (max-width: 560px) {
  .bio { flex-direction: column; align-items: center; text-align: center; }
  .bio__portrait { max-width: 200px; }
  .bio__texte { text-align: center; }
}

/* ---------- Focus clavier ---------- */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--ambre);
  outline-offset: 3px;
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .diapo { transition: none; }
}
