/* ======================================================
   DIMA AGLO — Feuille de style globale
   Aesthetic : Terre cuite, sable, chaleur méditerranéenne
   ====================================================== */

:root {
  /* Tons terre */
  --sand-50:  #faf5ec;
  --sand-100: #f3e9d5;
  --sand-200: #e8d8b8;
  --sand-300: #d4bc8e;
  --sand-400: #b99a64;
  --sand-500: #8f7342;

  --clay-500: #c4593e;   /* Terracotta principal */
  --clay-600: #a8462f;
  --clay-700: #8a3a27;
  --clay-800: #6b2d1f;

  --earth-900: #2d1f17;  /* Brun chocolat profond */
  --earth-800: #3d2b1f;
  --earth-700: #5a4332;

  --olive: #6b6b3e;      /* Accent olive */
  --gold:  #d4a947;      /* Or doux */

  --bg: #faf5ec;
  --surface: #ffffff;
  --surface-2: #f3e9d5;
  --ink: #2d1f17;
  --ink-soft: #5a4332;
  --ink-mute: #8f7342;
  --line: rgba(45,31,23,0.1);
  --line-strong: rgba(45,31,23,0.22);

  --max: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at top left, rgba(196,89,62,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(143,115,66,0.05) 0%, transparent 60%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

body::after {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(45,31,23,0.04) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(45,31,23,0.03) 1px, transparent 1px);
  background-size: 40px 40px, 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* =========  Bandeau haut  ========= */
.topbar {
  background: var(--earth-900);
  color: var(--sand-100);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.6rem 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
}
.topbar-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 42s linear infinite;
}
.topbar-track span {
  display: inline-flex; align-items: center; gap: 0.7rem;
}
.topbar-track span::before {
  content: "✦"; color: var(--gold); font-size: 0.85em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========  Navigation  ========= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  position: relative;
  background: rgba(250,245,236,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  gap: 2rem;
}
.logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--earth-900);
}
.logo-img {
  height: 100px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}
.logo-mark {
  width: 44px; height: 44px;
  background: var(--clay-500);
  color: var(--sand-50);
  display: grid; place-items: center;
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.3rem;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 4px 12px -2px rgba(196,89,62,0.4);
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px dashed var(--clay-500);
  border-radius: 50%;
  opacity: 0.4;
}
.logo small {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--ink-mute);
  letter-spacing: 0.22em;
  font-weight: 400;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex; gap: 2.2rem;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  color: var(--ink-soft);
  transition: color 0.25s;
  padding: 0.3rem 0;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--clay-500);
}
.nav-links a::after {
  content: "";
  position: absolute; bottom: -6px; left: 0;
  width: 0; height: 2px;
  background: var(--clay-500);
  transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--clay-500);
  color: var(--sand-50);
  padding: 0.75rem 1.2rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  border-radius: 999px;
  transition: all 0.25s;
}
.nav-cta:hover {
  background: var(--clay-700);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(196,89,62,0.5);
}

.burger {
  display: none;
  width: 28px; height: 22px;
  flex-direction: column; justify-content: space-between;
}
.burger span {
  height: 2px; background: var(--earth-900); width: 100%;
}

/* =========  Boutons  ========= */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 1.8rem;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: all 0.3s;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--clay-500); color: var(--sand-50);
}
.btn-primary:hover {
  background: var(--clay-700);
  transform: translateY(-3px);
  box-shadow: 0 15px 32px -10px rgba(196,89,62,0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--earth-900);
  border-color: var(--earth-900);
}
.btn-ghost:hover {
  background: var(--earth-900);
  color: var(--sand-50);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.25s;
}
.btn:hover .arrow { transform: translateX(4px); }

/* =========  Section commune  ========= */
section { position: relative; z-index: 1; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3.8rem;
  flex-wrap: wrap;
}
.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--clay-500);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--clay-500);
}
.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 720px;
  color: var(--earth-900);
}
.section-title em {
  font-style: italic;
  color: var(--clay-500);
  font-weight: 500;
}
.section-desc {
  color: var(--ink-soft);
  max-width: 440px;
  font-size: 0.98rem;
}

/* =========  Bannière de page interne  ========= */
.page-banner {
  background: linear-gradient(135deg, var(--earth-900) 0%, var(--clay-800) 100%);
  color: var(--sand-100);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(212,169,71,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(196,89,62,0.2) 0%, transparent 50%);
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.page-banner-eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--gold);
}
.page-banner h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--sand-50);
  max-width: 800px;
}
.page-banner h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.page-banner p {
  margin-top: 1.5rem;
  color: var(--sand-200);
  max-width: 600px;
  font-size: 1.05rem;
  line-height: 1.7;
}
.breadcrumb {
  display: flex; gap: 0.6rem; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--sand-300);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}
.breadcrumb a { color: var(--sand-200); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* =========  FOOTER  ========= */
footer {
  background: var(--earth-900);
  color: var(--sand-200);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clay-500), var(--gold), var(--clay-500));
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.foot-brand .logo { color: var(--sand-50); }
.foot-brand .logo small { color: var(--sand-300); }
.foot-brand p {
  color: var(--sand-300);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 1.5rem 0;
  max-width: 340px;
}
.foot-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1.3rem;
  font-weight: 500;
}
.foot-col ul { list-style: none; display: grid; gap: 0.75rem; }
.foot-col a {
  color: var(--sand-200);
  font-size: 0.92rem;
  transition: color 0.25s;
}
.foot-col a:hover { color: var(--gold); }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--sand-300);
  letter-spacing: 0.08em;
  flex-wrap: wrap;
  gap: 1rem;
}
.socials { display: flex; gap: 0.6rem; }
.socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: all 0.25s;
  color: var(--sand-200);
}
.socials a:hover {
  background: var(--clay-500); color: var(--sand-50); border-color: var(--clay-500);
  transform: translateY(-3px);
}
.socials svg { width: 15px; height: 15px; }

/* =========  Animations  ========= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* =========  RESPONSIVE  ========= */
@media (max-width: 1024px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 2rem, var(--max)); }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--sand-50);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -16px rgba(0,0,0,0.25);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    z-index: 99;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .burger { display: flex; }
  .nav-cta { display: none; }
  .logo-img { height: 76px; }

  .page-banner { padding: 3rem 0 2.5rem; }
  .section-head { flex-direction: column; align-items: flex-start; }

  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  .foot-bottom { flex-direction: column; text-align: center; }
}

/* =========  Bouton WhatsApp flottant  ========= */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s;
  animation: whatsapp-pulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1) rotate(-5deg);
  background: #1ebe5d;
  animation: none;
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
}
.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background: var(--earth-900);
  color: var(--sand-50);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: all 0.3s;
}
.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}
.whatsapp-tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid var(--earth-900);
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0); }
}

@media (max-width: 720px) {
  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 1.2rem;
    right: 1.2rem;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
  .whatsapp-tooltip { display: none; }
}
