/* ============================================================
   BY NICOLE & CO — Styles globaux
   Palette : bleu-teal, sable chaud, marine sombre
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&display=swap');

/* --- Variables CSS --- */
:root {
  /* Couleurs principales — palette By Nicole & Co */
  --sage:        #5a9ba6;   /* teal principal */
  --sage-light:  #89bec7;   /* teal clair */
  --sage-dark:   #2e6272;   /* teal profond */
  --sage-pale:   #cde9ee;   /* teal pâle */

  --cream:       #ddf1f5;   /* fond principal — bleu-teal clair */
  --cream-dark:  #bfe0e8;   /* teal légèrement plus soutenu */
  --cream-deep:  #9ccbd6;   /* teal moyen */

  --terra:       #c4875a;   /* cuivre/sable chaud — CTAs */
  --terra-light: #d4a478;
  --terra-pale:  #f0ddd0;

  --gold:        #c49e5a;   /* or sable */
  --gold-light:  #d4b87a;
  --gold-pale:   #ede0c4;

  --dark:        #1e3840;   /* marine sombre (couleur texte logo) */
  --mid:         #2e5460;
  --light:       #5a8090;
  --white:       #ffffff;

  /* Typographie */
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;

  /* Espacements */
  --section-py:  5rem;
  --container:   1180px;
  --gap:         2rem;
  --radius:      1rem;
  --radius-sm:   0.5rem;
  --radius-lg:   2rem;

  /* Ombres */
  --shadow-sm:   0 2px 8px rgba(30, 56, 64, 0.08);
  --shadow-md:   0 6px 24px rgba(30, 56, 64, 0.13);
  --shadow-lg:   0 16px 48px rgba(30, 56, 64, 0.18);

  /* Transitions */
  --transition:  0.3s ease;
  --transition-slow: 0.6s ease;

  /* Z-index */
  --z-nav:     100;
  --z-overlay: 200;
  --z-modal:   300;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark);
  background-color: var(--cream);
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

button, input, textarea, select {
  font-family: var(--font-sans);
  font-size: 1rem;
}

/* --- Typographie --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { color: var(--mid); }

/* --- Conteneur principal --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Sections --- */
.section {
  padding: var(--section-py) 0;
}

.section--cream    { background: var(--cream); }
.section--white    { background: var(--cream-dark); }
.section--sage     { background: var(--sage-pale); }
.section--terra    { background: var(--terra-pale); }
.section--gold     { background: var(--gold-pale); }
.section--dark     { background: var(--sage-dark); color: var(--white); }

/* --- En-têtes de section --- */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Ligne décorative sous les titres */
.section-header h2::after,
.decorated::after {
  content: '';
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--gold);
  margin: 0.8rem auto 0;
}

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 3rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--terra);
  color: var(--white);
  border-color: var(--terra);
}
.btn-primary:hover {
  background: var(--terra-light);
  border-color: var(--terra-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-sage {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}
.btn-sage:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--terra);
  border-color: var(--terra);
}
.btn-outline:hover {
  background: var(--terra);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.1rem 2.6rem;
  font-size: 1rem;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  padding: 0.7rem 0;
  background: transparent;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: transparent;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  transition: color var(--transition);
}

.navbar__logo img {
  height: 120px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.55));
  transition: filter var(--transition);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.navbar__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  position: relative;
  transition: color var(--transition);
  letter-spacing: 0.02em;
}

.navbar.scrolled .navbar__links a { color: rgba(255,255,255,0.88); }

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

.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}

.navbar__links a:hover {
  color: var(--white);
}
.navbar.scrolled .navbar__links a:hover { color: var(--white); }

.navbar__cta {
  background: var(--terra) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 2rem;
  font-weight: 500;
}
.navbar__cta::after { display: none !important; }
.navbar__cta:hover { background: var(--terra-light) !important; transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

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

.navbar.scrolled .hamburger span { background: var(--white); }

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--cream);
  z-index: calc(var(--z-nav) - 1);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--dark);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--terra); }

/* --- Footer --- */
.footer {
  background: var(--sage-dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__logo img {
  height: 120px;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.55));
}

.footer__tagline {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--white);
}

.footer h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links a {
  font-size: 0.92rem;
  color: var(--white);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--terra-light); }

.footer__contact p {
  font-size: 0.92rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer__contact a { transition: color var(--transition); }
.footer__contact a:hover { color: var(--terra-light); }

.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.footer__social a:hover {
  background: var(--terra);
  border-color: var(--terra);
  transform: translateY(-2px);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #ffffff;
}

.footer__bottom p {
  color: #ffffff !important;
}

.footer__contact a {
  color: var(--white);
}

/* --- Cartes de service --- */
.service-card {
  background: #f0fafc;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--sage);
  transform: scaleY(0);
  transition: transform var(--transition);
  transform-origin: bottom;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { transform: scaleY(1); }

.service-card__icon {
  width: 56px;
  height: 56px;
  background: var(--sage-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  color: var(--sage-dark);
  transition: all var(--transition);
}
.service-card:hover .service-card__icon {
  background: var(--sage);
  color: var(--white);
}

.service-card__icon svg { width: 28px; height: 28px; }

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
}

.service-card__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--terra);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
}
.service-card__link:hover { gap: 0.8rem; }

/* Service "vedette" (Fleurs de Bach) */
.service-card--featured {
  background: linear-gradient(135deg, var(--gold-pale), var(--terra-pale));
  border: 1px solid rgba(196, 163, 90, 0.3);
}
.service-card--featured::before { background: var(--gold); }
.service-card--featured .service-card__icon {
  background: var(--gold-pale);
  color: var(--gold);
}
.service-card--featured:hover .service-card__icon {
  background: var(--gold);
  color: var(--white);
}

.service-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
}

/* --- Grilles --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); }

/* --- Placeholders d'images --- */
.img-placeholder {
  background: var(--cream-dark);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.img-placeholder::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  background: rgba(0,0,0,0.4);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  white-space: nowrap;
}

.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Animations scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Délais en cascade */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- Bouton retour en haut --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--terra);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--terra-light);
  transform: translateY(-3px);
}

/* --- Étoiles --- */
.stars {
  display: flex;
  gap: 2px;
  color: var(--gold);
  font-size: 1rem;
}

/* --- Tags / Badges --- */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  background: var(--sage-pale);
  color: var(--sage-dark);
}

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

/* --- Formulaires --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark);
}

.form-control {
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--cream-deep);
  border-radius: var(--radius-sm);
  background: #f0fafc;
  color: var(--dark);
  transition: border-color var(--transition);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--sage);
}

.form-control.error { border-color: var(--terra); }

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

/* --- Utilitaires --- */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1       { gap: 0.5rem; }
.gap-2       { gap: 1rem; }
.gap-3       { gap: 1.5rem; }
.gap-4       { gap: 2rem; }

.italic { font-style: italic; }
.bold   { font-weight: 600; }

/* --- Page Hero (intérieure) --- */
.page-hero {
  padding: 11rem 0 5rem;
  background:
    linear-gradient(135deg, rgba(30,56,64,0.80) 0%, rgba(46,98,114,0.60) 50%, rgba(196,135,90,0.40) 100%),
    url('images/hero-02.jpg') center/cover no-repeat;
  background-size: auto, cover;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3.2rem); }
.page-hero p  { color: rgba(255,255,255,0.85); max-width: 540px; margin: 1rem auto 0; }

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}
.breadcrumb a { transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  :root { --section-py: 4rem; }

  .navbar__links { gap: 1.6rem; }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --section-py: 3rem; }

  .navbar__links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .back-to-top {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  .btn { padding: 0.8rem 1.6rem; font-size: 0.88rem; }
  .btn-lg { padding: 0.9rem 2rem; }
  .section-header { margin-bottom: 2.5rem; }
}
