/* ============================================================
   CARAMEL – Base styles, CSS variables, reset
   ============================================================ */

/* Fonts are loaded in layouts/app.blade.php (Caesar Dressing + Lato, polices d’origine du template). */

/* ----------------------------------------------------------
   CSS Custom Properties
   ---------------------------------------------------------- */
:root {
  /* Brand colours — caramel, chocolat, crème
     (palette proposée, à valider sur le logo réel) */
  --clr-caramel:      #B9783F;   /* caramel : décor, filets, fonds */
  --clr-brand:        #8C5426;   /* caramel profond : boutons, liens (6,1:1 sur blanc) */
  --clr-brand-dark:   #6B3D1B;   /* survol */
  --clr-brand-light:  #B9783F;
  --clr-gold:         #D9A441;   /* beurre salé / or doux */
  --clr-gold-dark:    #B8862C;
  --clr-gold-light:   #E9C98A;
  --clr-rose:         #E8C4C0;   /* rose poudré (wedding cakes) */
  --clr-chocolate:    #4A2C1D;
  --clr-chocolate-deep: #3A2216;
  --clr-footer:       #24170F;

  /* Neutrals */
  --clr-dark:      #2B1D14;
  --clr-dark-2:    #3A281C;
  --clr-mid:       #4D3A2C;
  --clr-muted:     #6B5A4C;
  --clr-border:    #E8DCCB;
  --clr-cream:     #F7EFE4;
  --clr-cream-2:   #FBF6EF;
  --clr-white:     #FFFFFF;

  /* Section backgrounds */
  --bg-dark-section: var(--clr-chocolate);

  /* Typography */
  --font-brand:   'Caesar Dressing', serif;  /* logo, hero h1, section titles */
  --font-heading: 'Lato', system-ui, sans-serif;  /* h2, h3, card titles, quotes */
  --font-body:    'Lato', system-ui, sans-serif;      /* body text, descriptions */

  /* Spacing */
  --section-py: clamp(4rem, 8vw, 7rem);
  --container:  75rem;

  /* Transitions */
  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.25s;
  --dur-med:  0.4s;

  /* Shadows */
  --shadow-sm:   0 0.125rem 0.5rem rgba(0,0,0,0.08);
  --shadow-md:   0 0.5rem 1.5rem rgba(0,0,0,0.12);
  --shadow-lg:   0 1.25rem 3.125rem rgba(0,0,0,0.18);
  --shadow-card: 0 0.25rem 1.25rem rgba(0,0,0,0.10);

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
}

/* ----------------------------------------------------------
   Reset & Base
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--clr-dark);
  background: var(--clr-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ----------------------------------------------------------
   Typography helpers
   ---------------------------------------------------------- */
.font-brand   { font-family: var(--font-brand); }
.font-heading { font-family: var(--font-heading); }
.font-display { font-family: var(--font-heading); }

h1 {
  font-family: var(--font-brand);
  line-height: 1.1;
  color: var(--clr-dark);
}

h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--clr-dark);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-brand);
  padding: 0.4rem 1rem;
  border: 0.0625rem solid rgba(140, 84, 38, 0.25);
  border-radius: 6.25rem;
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-brand);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--clr-muted);
  max-width: 37.5rem;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-inline: auto; }

/* ----------------------------------------------------------
   Container
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 6.25rem;
  transition: all var(--dur-fast) var(--ease);
  min-height: 3rem;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--clr-brand);
  color: var(--clr-white);
  box-shadow: 0 0.25rem 1rem rgba(140, 84, 38, 0.35);
}
.btn-primary:hover {
  background: var(--clr-brand-dark);
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1.5rem rgba(140, 84, 38, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--clr-white);
  border: 0.125rem solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--clr-white);
  transform: translateY(-0.125rem);
}

.btn-outline-dark {
  background: transparent;
  color: var(--clr-dark);
  border: 0.125rem solid var(--clr-dark);
}
.btn-outline-dark:hover {
  background: var(--clr-dark);
  color: var(--clr-white);
  transform: translateY(-0.125rem);
}

.btn-gold {
  background: var(--clr-gold);
  color: var(--clr-white);
  box-shadow: 0 0.25rem 1rem rgba(217, 164, 65,0.35);
}
.btn-gold:hover {
  background: var(--clr-gold-dark);
  transform: translateY(-0.125rem);
}

.btn-whatsapp {
  background: var(--clr-brand);
  color: var(--clr-white);
  box-shadow: 0 0.25rem 1rem rgba(140, 84, 38, 0.35);
}
.btn-whatsapp:hover {
  background: var(--clr-brand-dark);
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1.5rem rgba(140, 84, 38, 0.45);
}

/* ----------------------------------------------------------
   Section helpers
   ---------------------------------------------------------- */
.section {
  padding-block: var(--section-py);
}

.section-dark {
  background: var(--bg-dark-section);
  color: var(--clr-white);
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--clr-white); }
.section-dark .section-badge {
  color: var(--clr-gold-light);
  border-color: rgba(217, 164, 65,0.3);
}

.section-cream   { background: var(--clr-cream); }
.section-cream-2 { background: var(--clr-cream-2); }

/* ----------------------------------------------------------
   Utility
   ---------------------------------------------------------- */
.overflow-hidden { overflow: hidden; }
