/* ===========================================================
   Alma Aurea Events — feuille de style principale
   Palette : or #c59b5f / crème #f5efeb / brun-noir #211815
   Polices : Cinzel (titres), Cormorant Garamond (sous-titres),
             Montserrat (texte courant, menus)
   NB : pas de photo pour l'instant — toutes les zones visuelles
   utilisent des cadres/placeholders élégants (.visual-placeholder),
   à remplacer par de vraies photos dès qu'elles seront fournies.
   =========================================================== */

:root {
  --gold: #c59b5f;
  --gold-dark: #a9823f;
  --gold-dark: #a9823f;
  --cream: #f5efeb;
  --dark: #3a281e;
  --white: #ffffff;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  color: var(--dark);
  background-color: var(--cream);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--dark);
}

.subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  padding: 14px 34px;
  background-color: var(--gold);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  transition: background-color 0.25s ease, color 0.25s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: transparent;
  color: var(--gold);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--dark);
}

.eyebrow {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--white);
  border-bottom: 1px solid rgba(33, 24, 21, 0.08);
}

#formulaire-devis {
  scroll-margin-top: 110px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo img {
  height: 76px;
  width: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav li {
  display: flex;
  align-items: center;
}

.main-nav .btn {
  line-height: 1;
}

.main-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-dark);
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background-color: var(--dark);
}

/* ---------- Hero (photo si fournie, sinon dégradé de secours) ---------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-color: var(--dark);
  background-image:
    radial-gradient(circle at 50% 30%, rgba(197, 155, 95, 0.25) 0%, rgba(33, 24, 21, 0) 60%),
    repeating-linear-gradient(135deg, rgba(197, 155, 95, 0.04) 0px, rgba(197, 155, 95, 0.04) 2px, transparent 2px, transparent 40px);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58, 40, 30, 0.35) 0%, rgba(58, 40, 30, 0.2) 45%, rgba(58, 40, 30, 0.55) 100%);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(197, 155, 95, 0.35);
  pointer-events: none;
  z-index: 2;
}

/* ---------- Carrousel du hero d'accueil ---------- */

.hero-carousel {
  background-image: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.25;
  margin-bottom: 18px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.hero .subtitle {
  color: var(--gold);
  display: block;
  margin-bottom: 32px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.page-hero {
  min-height: 40vh;
}

/* ---------- Sections ---------- */

section {
  padding: 90px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 14px;
}

.alt-bg {
  background-color: var(--white);
}

.dark-bg {
  background-color: var(--dark);
  color: var(--cream);
}

.dark-bg h2,
.dark-bg h3 {
  color: var(--cream);
}

/* ---------- Grids / cards ---------- */

.grid {
  display: grid;
  gap: 32px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background-color: var(--white);
  border: 1px solid rgba(33, 24, 21, 0.08);
  padding: 40px 28px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(33, 24, 21, 0.1);
}

.card .icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.card p {
  font-size: 0.92rem;
  color: #4a3f3b;
}

.card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border-bottom: 1px solid var(--gold);
}

/* ---------- Placeholder visuel (remplace les photos en attendant) ---------- */

.visual-placeholder {
  position: relative;
  width: 100%;
  min-height: 360px;
  background-color: var(--cream);
  border: 1px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 24px;
}

.visual-placeholder::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(197, 155, 95, 0.4);
}

.visual-placeholder .monogram {
  font-family: 'Cinzel', serif;
  font-size: 2.4rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.visual-placeholder .caption {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold-dark);
  font-size: 1rem;
}

/* ---------- Photo feature block (texte + placeholder) ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature .gold-line {
  width: 60px;
  height: 2px;
  background-color: var(--gold);
  margin-bottom: 20px;
}

.feature img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border: 1px solid var(--gold);
}

.feature.reverse {
  direction: rtl;
}

.feature.reverse > * {
  direction: ltr;
}

/* ---------- Process steps ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.process .step-number {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 10px;
}

/* ---------- Gallery (placeholders en attendant les photos) ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border: 1px solid var(--gold);
}

.gallery .visual-placeholder {
  min-height: 260px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--gold-dark);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(33, 24, 21, 0.2);
  background-color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-field input,
.form-field textarea,
.form-field select {
  transition: border-color 0.2s ease;
}

.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
  border-color: #d12c2c;
  border-width: 2px;
  background-color: #fdf2f2;
}

.field-error {
  display: none;
  color: #d12c2c;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 6px;
}

.form-field.has-error .field-error {
  display: block;
}

.contact-info li {
  margin-bottom: 22px;
  font-size: 0.95rem;
}

.contact-info .label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.notice-banner {
  background-color: #fff7e8;
  border: 1px dashed var(--gold);
  padding: 14px 18px;
  font-size: 0.82rem;
  margin-bottom: 26px;
}

/* ---------- Alertes élégantes (toasts) ---------- */

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  margin-bottom: 28px;
  border: 1px solid var(--gold);
  border-left-width: 5px;
  background-color: var(--white);
  box-shadow: 0 10px 30px rgba(33, 24, 21, 0.12);
  font-size: 0.92rem;
  font-weight: 500;
  animation: toastIn 0.4s ease;
}

.toast .toast-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  background-color: var(--gold);
}

.toast-error {
  border-color: #d12c2c;
  background-color: #fdf2f2;
  color: #8a1f1f;
}

.toast-error .toast-icon {
  background-color: #d12c2c;
}

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--dark);
  color: var(--cream);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.footer-grid p,
.footer-grid li {
  font-size: 0.88rem;
  color: #cfc4bd;
  margin-bottom: 10px;
}

.footer-grid a:hover {
  color: var(--gold);
}

.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.85rem;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 239, 235, 0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: #a89d97;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature,
  .contact-grid { grid-template-columns: 1fr; }
  .feature.reverse { direction: ltr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .main-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-top: 1px solid rgba(33,24,21,0.08);
    padding: 20px 24px;
  }
  .site-header.open .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .grid-4, .grid-3, .grid-2, .gallery { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}
