/* ==========================================================================
   Sphere Info-Logs — feuille de style
   Palette tirée du logo : corail (#EA5A53) + vieux rose (#A4605D) + encre chaude
   ========================================================================== */

:root {
  --coral: #EA5A53;
  --coral-600: #D4463F;
  --coral-700: #B8382F;
  --coral-50: #FDF0EE;
  --coral-100: #FBE0DD;
  --mauve: #A4605D;
  --mauve-700: #7E4542;
  --mauve-50: #F6ECEB;
  --ink: #1D1719;
  --ink-2: #2A2226;
  --ink-3: #3A3035;
  --text: #2E2629;
  --muted: #6F6367;
  --line: #EEE3E0;
  --cream: #FBF7F5;
  --white: #FFFFFF;
  --success: #2F8F5B;
  --whatsapp: #25D366;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(29, 23, 25, .06), 0 2px 8px rgba(29, 23, 25, .04);
  --shadow: 0 10px 30px -12px rgba(29, 23, 25, .18);
  --shadow-lg: 0 30px 60px -25px rgba(29, 23, 25, .35);
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* Textes justifiés */
.justify, .prose p, .card-text {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid rgba(234, 90, 83, .45); outline-offset: 2px; border-radius: 6px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 500; font-size: .95rem; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px -8px rgba(234, 90, 83, .65); }
.btn-primary:hover { background: var(--coral-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--coral); color: var(--coral-600); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .25); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1EBE5A; }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-danger { background: #fff; color: var(--coral-700); border-color: var(--coral-100); }
.btn-danger:hover { background: var(--coral-50); }

/* ---------- Bandes signature (motif du logo) ---------- */
.bands { display: grid; gap: 4px; width: 56px; }
.bands span { height: 4px; border-radius: 4px; background: var(--coral); }
.bands span:first-child, .bands span:last-child { background: var(--mauve); width: 70%; justify-self: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--coral-600);
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(29, 23, 25, .35); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: 78px; }

.brand { display: inline-flex; align-items: center; gap: .75rem; flex: none; }
.brand-mark { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 600; font-size: 1.05rem; letter-spacing: .06em; color: var(--coral); text-transform: uppercase; }
.brand-slogan { font-size: .6rem; letter-spacing: .34em; text-transform: uppercase; color: var(--mauve); margin-top: .35rem; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-slogan { color: #D9AFAC; }

.main-nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.main-nav a { white-space: nowrap; padding: .5rem .8rem; border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--ink-3); transition: color .2s, background .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--coral-600); background: var(--coral-50); }
.header-actions { display: flex; align-items: center; gap: .6rem; }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .main-nav, .header-actions { display: none; }
  .site-header.nav-open .main-nav,
  .site-header.nav-open .header-actions {
    display: flex; position: absolute; left: 0; right: 0; background: #fff; padding: 0 24px;
  }
  .site-header.nav-open .main-nav { top: 78px; flex-direction: column; align-items: stretch; padding-top: 12px; border-top: 1px solid var(--line); }
  .site-header.nav-open .main-nav a { padding: .8rem 1rem; border-radius: 12px; }
  .site-header.nav-open .header-actions { top: calc(78px + 12px + 6 * 50px); flex-direction: column; align-items: stretch; padding-bottom: 20px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.25); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #F4ECEA;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(234, 90, 83, .22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(164, 96, 93, .25), transparent 60%),
    var(--ink);
}
.hero::after { /* fine texture de lignes */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 100% 44px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding: 104px 24px 112px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; margin: 1.1rem 0 1.4rem; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero .lead { font-size: 1.1rem; color: #CDBFC0; max-width: 560px; }
.hero .eyebrow { color: #F19A94; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 3.2rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts strong { color: #fff; font-size: 1.5rem; font-weight: 600; }
.hero-facts span { font-size: .85rem; color: #A99A9C; }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: end; width: 100%; }
.hero-visual .orb { position: absolute; inset: 8%; filter: drop-shadow(0 40px 60px rgba(234, 90, 83, .35)); animation: float 8s ease-in-out infinite; }
.hero-visual .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .14); animation: spin 60s linear infinite; }
.hero-visual .ring.r2 { inset: -9%; border-style: solid; border-color: rgba(255, 255, 255, .06); animation-duration: 90s; animation-direction: reverse; }
.hero-chip {
  position: absolute; display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-radius: 14px;
  background: rgba(42, 34, 38, .78); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(10px);
  font-size: .82rem; color: #fff; box-shadow: var(--shadow-lg);
}
.hero-chip svg { width: 20px; height: 20px; color: var(--coral); }
.hero-chip.c1 { top: 12%; left: -6%; }
.hero-chip.c2 { bottom: 16%; right: -4%; }
.hero-chip.c3 { bottom: -2%; left: 10%; }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-sm { padding: 80px 0; }
.section-cream { background: var(--cream); }
.section-head { max-width: 720px; margin-bottom: 3.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin: .9rem 0 1rem; letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head.center p { text-align: center; }

/* À propos */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 4.5rem; align-items: center; }
.about-grid .prose p { font-size: 1.05rem; color: #4A3F43; }
.about-grid .prose p:first-of-type::first-line { font-weight: 500; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .95rem; border-radius: 999px; background: var(--coral-50); color: var(--coral-700); font-size: .85rem; font-weight: 500; }
.chip svg { width: 15px; height: 15px; }

.pillars { display: grid; gap: 1rem; }
.pillar { display: flex; gap: 1.1rem; padding: 1.4rem 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.pillar:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.pillar-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--coral), var(--mauve)); color: #fff; }
.pillar-icon svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.pillar p { font-size: .92rem; color: var(--muted); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  position: relative; display: flex; flex-direction: column; padding: 2rem 1.9rem 1.8rem; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.service-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--coral), var(--mauve)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-num { position: absolute; top: 1.4rem; right: 1.6rem; font-size: .8rem; font-weight: 600; color: #D9CBC8; letter-spacing: .1em; }
.service-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--coral-50); color: var(--coral); margin-bottom: 1.5rem; transition: background .3s, color .3s; }
.service-card:hover .service-icon { background: var(--coral); color: #fff; }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.22rem; margin-bottom: .8rem; }
.service-card .card-text { font-size: .93rem; color: var(--muted); flex: 1; }
.service-points { list-style: none; padding: 0; margin: 1.3rem 0 1.5rem; display: grid; gap: .45rem; }
.service-points li { display: flex; align-items: center; gap: .55rem; font-size: .86rem; color: var(--ink-3); font-weight: 500; }
.service-points svg { width: 16px; height: 16px; color: var(--coral); flex: none; }
.service-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .9rem; color: var(--coral-600); }
.service-link svg { width: 16px; height: 16px; transition: transform .25s; }
.service-link:hover svg { transform: translateX(4px); }

/* Produits */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.product-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fff, var(--cream) 70%); border-bottom: 1px solid var(--line); }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 1.2rem; }
.product-media svg { width: 72%; height: 72%; }
.product-tag { position: absolute; top: 14px; left: 14px; padding: .25rem .7rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .72rem; font-weight: 600; color: var(--mauve-700); letter-spacing: .03em; }
.product-cat { position: absolute; top: 14px; right: 14px; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-600); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.3rem 1.4rem; }
.product-body h3 { font-size: 1.02rem; margin-bottom: .45rem; }
.product-body p { font-size: .86rem; color: var(--muted); flex: 1; }
.product-price { display: flex; align-items: center; justify-content: space-between; margin: 1rem 0 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); font-size: .82rem; color: var(--muted); }
.product-price strong { color: var(--ink); font-weight: 600; font-size: .9rem; }
.product-actions { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.product-actions .btn { padding: .65rem .9rem; font-size: .84rem; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-3); transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--coral); color: var(--coral-600); }
.icon-btn svg { width: 18px; height: 18px; }

.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.filter-tabs { display: inline-flex; gap: .3rem; padding: .3rem; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); }
.filter-tabs button { border: 0; background: transparent; padding: .55rem 1.2rem; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.filter-tabs button.active { background: #fff; color: var(--coral-600); box-shadow: var(--shadow-sm); }
.shop-note { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--muted); }
.shop-note svg { width: 20px; height: 20px; color: var(--whatsapp); }
.shop-group-title { display: flex; align-items: center; gap: 1rem; margin: 3rem 0 1.5rem; font-size: 1.3rem; }
.shop-group-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Bandeau de page */
.page-hero { position: relative; overflow: hidden; padding: 84px 0 72px; color: #E9DCDA; background: radial-gradient(700px 360px at 90% 0%, rgba(234, 90, 83, .25), transparent 60%), var(--ink); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin: .8rem 0 .8rem; letter-spacing: -.02em; }
.page-hero p { max-width: 640px; color: #BFAFB1; font-size: 1.05rem; }
.page-hero .eyebrow { color: #F19A94; }
.crumbs { font-size: .82rem; color: #9C8C8F; margin-bottom: .4rem; }
.crumbs a:hover { color: #fff; }

/* Clients */
.clients-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.client-tile {
  display: grid; place-items: center; text-align: center; height: 130px; padding: 1.2rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.client-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.client-tile img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.client-tile:hover img { filter: none; opacity: 1; }
.client-word { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.client-word strong { font-size: 1.35rem; font-weight: 700; letter-spacing: .02em; color: var(--ink-3); line-height: 1; }
.client-word span { font-size: .68rem; color: var(--muted); line-height: 1.35; max-width: 140px; }

/* CTA */
.cta-band { position: relative; overflow: hidden; border-radius: 32px; padding: 64px; display: grid; grid-template-columns: 1.3fr auto; gap: 2rem; align-items: center; color: #fff; background: linear-gradient(120deg, var(--coral) 0%, #D7504A 45%, var(--mauve) 100%); box-shadow: 0 40px 80px -40px rgba(234, 90, 83, .7); }
.cta-band::after { content: ''; position: absolute; right: -150px; top: -170px; width: 320px; height: 320px; border-radius: 50%; background: repeating-linear-gradient(180deg, rgba(255,255,255,.14) 0 22px, transparent 22px 36px); }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .6rem; }
.cta-band p { color: rgba(255, 255, 255, .88); max-width: 560px; }
.cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .8rem; }
.cta-band .btn-light { background: #fff; color: var(--coral-700); }
.cta-band .btn-light:hover { background: var(--cream); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.contact-card { display: flex; flex-direction: column; gap: .4rem; padding: 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease); }
a.contact-card:hover { border-color: var(--coral); transform: translateY(-3px); }
.contact-card .ci { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--coral-50); color: var(--coral); margin-bottom: .6rem; }
.contact-card .ci svg { width: 22px; height: 22px; }
.contact-card small { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-card strong { font-weight: 500; color: var(--ink); font-size: .98rem; word-break: break-word; }
.socials { display: flex; gap: .6rem; }
.social { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--coral-50); color: var(--coral-600); transition: background .2s, color .2s, transform .2s; }
.social:hover { background: var(--coral); color: #fff; transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; }

/* ---------- Formulaires ---------- */
.form-shell { display: grid; grid-template-columns: 1.5fr .9fr; gap: 2.5rem; align-items: start; }
.form-card { padding: 2.5rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field-label { display: block; font-size: .86rem; font-weight: 500; color: var(--ink-3); margin-bottom: .45rem; }
.field label .req { color: var(--coral); }
.input, .select, .textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A4605D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; padding-right: 2.8rem; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(234, 90, 83, .12); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--coral-600); }
.field-error { color: var(--coral-700); font-size: .8rem; margin-top: .35rem; }
.hp { position: absolute; left: -9999px; }

.product-picker { display: none; margin-top: .2rem; padding: 1.3rem; border-radius: var(--radius); background: var(--cream); border: 1px dashed #E3D2CE; }
.product-picker.show { display: block; animation: fadeIn .35s var(--ease); }
.product-picker h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mauve-700); margin: .2rem 0 .7rem; }
.picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1rem; }
.check { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-radius: 10px; background: #fff; border: 1.5px solid var(--line); font-size: .87rem; cursor: pointer; transition: border-color .2s, background .2s; }
.check:hover { border-color: #E7C2BE; }
.check input { accent-color: var(--coral); width: 16px; height: 16px; flex: none; }
.check:has(input:checked) { border-color: var(--coral); background: var(--coral-50); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } }

.aside-card { padding: 2rem; border-radius: var(--radius-lg); background: var(--ink); color: #D9CBCC; position: sticky; top: 100px; }
.aside-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: .8rem; }
.aside-list { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: 1rem; }
.aside-list li { display: flex; gap: .8rem; font-size: .92rem; }
.aside-list svg { width: 20px; height: 20px; color: var(--coral); flex: none; margin-top: 3px; }

.alert { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 12px; font-size: .92rem; margin-bottom: 1.5rem; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert-success { background: #EAF6EF; color: #1F6B42; border: 1px solid #CBE9D8; }
.alert-error { background: var(--coral-50); color: var(--coral-700); border: 1px solid var(--coral-100); }
.alert-info { background: var(--mauve-50); color: var(--mauve-700); border: 1px solid #EAD8D6; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #B3A4A6; padding: 80px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3rem; padding-bottom: 56px; }
.site-footer h4 { color: #fff; font-size: .95rem; font-weight: 600; margin-bottom: 1.2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.site-footer a:hover { color: #fff; }
.footer-about { margin: 1.3rem 0 1.5rem; max-width: 360px; }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; color: var(--coral); flex: none; margin-top: 4px; }
.site-footer .social { background: rgba(255, 255, 255, .06); color: #fff; }
.site-footer .social:hover { background: var(--coral); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .84rem; color: #8E7F82; }
.footer-bottom strong { color: #fff; font-weight: 500; }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--whatsapp); color: #fff; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .7); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--whatsapp); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* Animations d'apparition */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Pages d'authentification ---------- */
.auth-wrap { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; padding: 72px 64px; display: flex; flex-direction: column; justify-content: space-between; color: #D5C7C8; background: radial-gradient(600px 400px at 100% 0%, rgba(234, 90, 83, .3), transparent 60%), var(--ink); }
.auth-side h2 { color: #fff; font-size: 2.1rem; margin: 1rem 0; letter-spacing: -.02em; }
.auth-side .orb-bg { position: absolute; width: 420px; right: -120px; bottom: -120px; opacity: .14; }
.auth-folders { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 2rem; position: relative; }
.auth-folders span { display: flex; align-items: center; gap: .5rem; padding: .6rem .8rem; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); font-size: .8rem; }
.auth-folders svg { width: 16px; height: 16px; color: var(--coral); flex: none; }
.auth-main { display: grid; place-items: center; padding: 48px 24px; background: var(--cream); }
.auth-card { width: 100%; max-width: 440px; padding: 2.6rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.6rem; margin: .6rem 0 .5rem; }
.auth-card .sub { color: var(--muted); font-size: .93rem; margin-bottom: 1.8rem; }
.auth-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--coral-50); color: var(--coral); }
.auth-icon svg { width: 28px; height: 28px; }
.auth-foot { margin-top: 1.4rem; font-size: .84rem; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--coral-600); font-weight: 500; }

/* ---------- Espace client / Admin (panneau) ---------- */
.panel-body { background: var(--cream); }
.panel { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; }
.panel-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 26px 18px; background: var(--ink); color: #BCADAF; display: flex; flex-direction: column; }
.panel-side .brand { padding: 0 8px 26px; }
.panel-side .brand-mark { width: 38px; height: 38px; }
.panel-side .brand-name { font-size: .92rem; color: #fff; }
.side-label { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #7D6D70; padding: 18px 12px 8px; font-weight: 600; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: .7rem; padding: .62rem .8rem; border-radius: 10px; font-size: .88rem; transition: background .2s, color .2s; }
.side-nav a svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.side-nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.side-nav a.active { background: rgba(234, 90, 83, .16); color: #fff; }
.side-nav a.active svg { color: var(--coral); opacity: 1; }
.side-nav .count { margin-left: auto; font-size: .72rem; padding: .05rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; }
.side-foot { margin-top: auto; padding: 18px 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.side-user { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--coral), var(--mauve)); color: #fff; font-weight: 600; font-size: .9rem; flex: none; }
.side-user strong { display: block; color: #fff; font-size: .86rem; font-weight: 500; line-height: 1.3; }
.side-user span { font-size: .75rem; overflow-wrap: anywhere; }
.logout-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .6rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: transparent; color: #E9DCDA; cursor: pointer; font-size: .85rem; }
.logout-btn:hover { border-color: var(--coral); color: #fff; }
.logout-btn svg { width: 16px; height: 16px; }

.panel-main { padding: 34px 44px 60px; min-width: 0; }
.panel-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.panel-top h1 { font-size: 1.75rem; letter-spacing: -.02em; }
.panel-top p { color: var(--muted); font-size: .93rem; margin-top: .3rem; }
.panel-burger { display: none; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat { padding: 1.3rem 1.4rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat small { display: block; font-size: .78rem; color: var(--muted); }
.stat strong { font-size: 1.8rem; font-weight: 600; color: var(--ink); }
.stat.accent { background: linear-gradient(135deg, var(--coral), var(--mauve)); border: 0; }
.stat.accent small, .stat.accent strong { color: #fff; }

.folders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.folder-card { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.4rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.folder-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.folder-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--coral-50); color: var(--coral); }
.folder-ico svg { width: 24px; height: 24px; }
.folder-card h3 { font-size: .98rem; line-height: 1.35; }
.folder-card .meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.folder-card .meta svg { width: 16px; height: 16px; color: var(--coral); }
.badge { display: inline-flex; align-items: center; padding: .15rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 600; background: var(--mauve-50); color: var(--mauve-700); }
.badge-coral { background: var(--coral-50); color: var(--coral-700); }
.badge-green { background: #EAF6EF; color: #1F6B42; }
.badge-grey { background: #F1EEEE; color: #6F6367; }

.card { padding: 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.card + .card { margin-top: 1.2rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.card-head h2 { font-size: 1.08rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.two-col > .card { margin-top: 0; }

.doc-list { display: grid; gap: .6rem; }
.doc-row { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); transition: border-color .2s; }
.doc-row:hover { border-color: #E7C2BE; }
.doc-ext { width: 46px; height: 52px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: .66rem; font-weight: 700; letter-spacing: .04em; color: var(--coral-700); background: var(--coral-50); border: 1px solid var(--coral-100); }
.doc-info { flex: 1; min-width: 0; }
.doc-info strong { display: block; font-weight: 500; font-size: .93rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-info span { font-size: .78rem; color: var(--muted); }
.doc-actions { display: flex; gap: .4rem; align-items: center; }

.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty .folder-ico { margin: 0 auto 1rem; width: 64px; height: 64px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: .7rem .8rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .85rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--cream); }
.table a.link { color: var(--ink); font-weight: 500; }
.table a.link:hover { color: var(--coral-600); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }

.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; }
.search { position: relative; }
.search svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.search .input { padding-left: 2.6rem; min-width: 260px; }
.switch { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; cursor: pointer; }
.switch input { accent-color: var(--coral); width: 18px; height: 18px; }
.dl { display: grid; grid-template-columns: 160px 1fr; gap: .7rem 1rem; font-size: .92rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; color: var(--ink); }
.upload-zone { border: 2px dashed #E3D2CE; border-radius: var(--radius); padding: 1.4rem; background: var(--cream); text-align: center; transition: border-color .2s, background .2s; }
.upload-zone.drag { border-color: var(--coral); background: var(--coral-50); }
.upload-zone svg { width: 30px; height: 30px; color: var(--coral); margin: 0 auto .5rem; }
.pagination { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 1.4rem; }
.pagination a, .pagination span { padding: .4rem .8rem; border-radius: 8px; border: 1px solid var(--line); font-size: .85rem; background: #fff; }
.pagination .current { background: var(--coral); border-color: var(--coral); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; padding: 80px 24px 88px; }
  .hero-visual { justify-self: center; max-width: 380px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .form-shell { grid-template-columns: 1fr; gap: 3rem; }
  .aside-card { position: static; }
  .cta-band { grid-template-columns: 1fr; padding: 48px 36px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .panel { grid-template-columns: 1fr; }
  .panel-side { position: fixed; z-index: 70; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .3s var(--ease); }
  .panel.side-open .panel-side { transform: none; box-shadow: var(--shadow-lg); }
  .panel-burger { display: inline-flex; }
  .panel-main { padding: 24px 20px 48px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 18px; }
  .section { padding: 80px 0; }
  .services-grid, .products-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid, .picker-grid { grid-template-columns: 1fr; }
  .form-card, .auth-card { padding: 1.6rem; }
  .hero-chip.c1 { left: 0; } .hero-chip.c2 { right: 0; }
  .hero-facts { gap: 1.6rem; }
  .brand-name { font-size: .92rem; }
  .dl { grid-template-columns: 1fr; gap: .2rem; }
  .dl dd { margin-bottom: .6rem; }
  .search .input { min-width: 0; width: 100%; }
  .hero-inner { padding: 64px 18px 80px; gap: 2.5rem; }
  .hero-visual { max-width: 290px; }
  .hero-chip.c3 { display: none; }
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .hero-facts div:last-child { grid-column: 1 / -1; }
  .hero-facts strong { font-size: 1.2rem; }
  .page-hero { padding: 60px 0 52px; }
  .cta-band { padding: 40px 24px; border-radius: 24px; }
}

/* ---------- Admin : boutique & logos ---------- */
.admin-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.admin-tile { display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; }
.admin-tile.is-off { opacity: .6; }
.admin-tile-media { height: 120px; display: grid; place-items: center; padding: 1rem; background: var(--cream); border-bottom: 1px solid var(--line); }
.admin-tile-media img { max-height: 80px; max-width: 100%; object-fit: contain; }
.admin-tile-body { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1rem .4rem; }
.admin-tile-body strong { font-weight: 500; color: var(--ink); }
.admin-tile-actions { display: flex; justify-content: space-between; align-items: center; padding: .6rem 1rem 1rem; }
.thumb { width: 60px; height: 48px; border-radius: 10px; background: var(--cream); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb svg { width: 90%; height: 90%; }
.image-field { display: flex; gap: 1.2rem; align-items: flex-start; }
.img-preview { width: 200px; aspect-ratio: 4 / 3; flex: none; border-radius: var(--radius); background: radial-gradient(circle at 50% 40%, #fff, var(--cream) 70%); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.img-preview img { width: 100%; height: 100%; object-fit: contain; padding: .6rem; }
.img-preview svg { width: 80%; height: 80%; }
.img-preview.logo { aspect-ratio: 2 / 1; }
a.client-tile { color: inherit; }
@media (max-width: 640px) { .image-field { flex-direction: column; } .img-preview { width: 100%; } }
.upload-zone { display: block; cursor: pointer; }
.side-user > div { min-width: 0; }
.side-user span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-zone { display: block; cursor: pointer; }
.side-user > div { min-width: 0; }
.side-user span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
