/* =============================================
   Le Caramel du Marin — caramel.alexandracrea.fr
   Charte bleu marine & doré, esprit maritime
   ============================================= */

:root {
  --navy: #2C3E6B;
  --navy-dark: #1A2744;
  --navy-light: #4A5F8F;
  --gold: #D4A96A;
  --gold-dark: #B8893E;
  --gold-light: #E8C28B;
  --gold-pale: #F5E6CE;
  --cream: #FAF6F0;
  --warm-white: #FEFCF8;
  --sand: #EDE0D1;
  --text: #1A2744;
  --text-light: #5A6A7E;
  --border: #D6D9E2;
  --shadow: rgba(28, 39, 68, 0.08);
  --radius: 10px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  color: var(--text);
  background-color: var(--warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-dark);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typos --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy-dark);
  line-height: 1.3;
}

h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 600; }

.script-font {
  font-family: 'Dancing Script', cursive;
  color: var(--gold);
}

/* --- Header / Navigation --- */
.site-header {
  background: var(--navy-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
}

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

.logo small {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: -2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding-bottom: 4px;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: white;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 39, 68, 0.55) 0%, rgba(26, 39, 68, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 40px 24px;
}

.hero-content h1 {
  color: white;
  font-size: 3.2rem;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content .subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  max-width: 550px;
  margin: 0 auto 28px;
  font-style: italic;
}

.hero-content .tagline {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

/* --- Boutons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-gold:hover {
  background: var(--gold-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 169, 106, 0.35);
}

.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.6);
  color: white;
  background: transparent;
  margin-left: 12px;
}

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

.btn-navy {
  background: var(--navy);
  color: white;
}

.btn-navy:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 62, 107, 0.3);
}

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

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

/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section-navy {
  background: var(--navy-dark);
  color: white;
}

.section-navy h2,
.section-navy h3 {
  color: white;
}

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

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto;
}

.section-navy .section-title p {
  color: rgba(255,255,255,0.65);
}

.section-title .divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* --- Grille produits --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(28, 39, 68, 0.12);
  border-color: var(--gold-light);
}

.section-navy .product-card {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}

.section-navy .product-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--gold);
}

.product-card-visual {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.product-card-body {
  padding: 24px;
}

.product-card-body h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.product-card-body p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 14px;
  line-height: 1.6;
}

.section-navy .product-card-body p {
  color: rgba(255,255,255,0.6);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 6px;
}

.tag-gold {
  background: var(--gold-pale);
  color: var(--gold-dark);
}

.tag-navy {
  background: rgba(44, 62, 107, 0.1);
  color: var(--navy);
}

.section-navy .tag-gold {
  background: rgba(212, 169, 106, 0.2);
  color: var(--gold-light);
}

/* --- Image bandeau --- */
.image-banner {
  position: relative;
  overflow: hidden;
  max-height: 350px;
}

.image-banner img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center;
}

.image-banner .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 24px;
  background: linear-gradient(transparent, rgba(26, 39, 68, 0.8));
  color: white;
  text-align: center;
}

/* --- A propos --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-text h2 {
  margin-bottom: 16px;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-light);
}

/* --- Contact rapide --- */
.contact-bar {
  background: var(--navy);
  color: white;
  padding: 40px 0;
  text-align: center;
}

.contact-bar h2 {
  color: white;
  margin-bottom: 8px;
}

.contact-bar p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 24px;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 0 20px;
  border-top: 3px solid var(--gold);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 24px;
}

.footer-brand .logo {
  margin-bottom: 12px;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-links h4 {
  color: white;
  font-size: 0.9rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--gold-light);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .hero-content h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }

  .burger { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 20px 24px;
    gap: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .main-nav.open { display: flex; }

  .hero { min-height: 380px; }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .section { padding: 48px 0; }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .image-banner,
  .image-banner img {
    max-height: 220px;
    height: 220px;
  }

  .btn-outline-white {
    margin-left: 0;
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content .subtitle { font-size: 1rem; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
}
