/* Design System Kamemi — site vitrine public (cahier des charges section 10)
   Inspiration : ligne premium type compagnie aérienne du Golfe (bleu nuit très
   profond + or riche en accent dominant), sans reprendre leur identité visuelle.
   Le bleu reste la base institutionnelle, l'or devient l'accent premium
   dominant (bordures, filets, halos), l'ivoire respire les sections claires.
   Police titres : Playfair Display (cohérent avec produits/apercu.php ERP). */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #071527;
  --navy2: #0f2744;
  --navy3: #16345c;
  --gold: #c9a227;
  --gold2: #e8c65c;
  --gold-line: linear-gradient(90deg, rgba(201,162,39,0) 0%, #c9a227 50%, rgba(201,162,39,0) 100%);
  --ivoire: #faf7f0;
  --txt: #1c2530;
  --txt2: #5a6472;
  --txt3: #8a93a1;
  --bdr: #e4e0d6;
  --ok: #1c7d4d;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--txt);
  background: var(--ivoire);
  line-height: 1.6;
}
h1, h2, h3 { font-family: 'Playfair Display', serif; margin: 0 0 12px; color: var(--navy); }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy2) 100%);
  color: #fff;
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid rgba(201,162,39,.35);
  box-shadow: 0 1px 0 rgba(201,162,39,.15);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.logo { font-family: 'Playfair Display', serif; font-size: 21px; font-weight: 700; color: #fff; text-decoration: none; letter-spacing: .4px; }
.logo span { color: var(--gold2); }
nav.main { display: flex; gap: 28px; align-items: center; }
nav.main a { color: #d8dee8; text-decoration: none; font-size: 14px; font-weight: 500; position: relative; padding-bottom: 4px; transition: color .15s; }
nav.main a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--gold2); transition: right .2s ease;
}
nav.main a:hover { color: #fff; }
nav.main a:hover::after { right: 0; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 6px; font-size: 14px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, box-shadow .15s, border-color .15s, transform .15s;
}
.btn-gold { background: linear-gradient(180deg, var(--gold2) 0%, var(--gold) 100%); color: var(--navy); box-shadow: 0 2px 10px rgba(201,162,39,.25); }
.btn-gold:hover { box-shadow: 0 4px 16px rgba(201,162,39,.45); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: rgba(232,198,92,.55); color: #fff; }
.btn-outline:hover { border-color: var(--gold2); background: rgba(232,198,92,.08); }
.btn-navy { background: var(--navy); color: #fff; border-color: rgba(201,162,39,.4); }
.btn-navy:hover { background: var(--navy3); }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(720px 420px at 88% -10%, rgba(232,198,92,.16) 0%, rgba(232,198,92,0) 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy2) 55%, var(--navy3) 100%);
  color: #fff; padding: 76px 0 64px;
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold-line);
}
.hero h1 { color: #fff; font-size: 40px; font-weight: 800; max-width: 640px; }
.hero p { color: #c7cedb; font-size: 16px; max-width: 560px; margin-bottom: 26px; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Sections */
section.pad { padding: 56px 0; }
.section-lead { color: var(--txt2); max-width: 640px; margin-bottom: 32px; font-size: 15px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 1.8px; font-size: 12px; color: var(--gold);
  font-weight: 700; margin-bottom: 10px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold); display: inline-block; }

/* Cards grids */
.grid { display: grid; gap: 20px; }
.grid-cats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-produits { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--bdr); border-top: 3px solid transparent; border-radius: 12px; overflow: hidden;
  text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s, border-color .15s;
}
.card:hover { box-shadow: 0 14px 28px rgba(7,21,39,.14); transform: translateY(-2px); border-top-color: var(--gold); }
.card .thumb { width: 100%; height: 160px; object-fit: cover; background: #eee9db; }
.card .thumb.placeholder { display: flex; align-items: center; justify-content: center; color: var(--txt3); font-size: 13px; }
.card .body { padding: 14px 16px; }
.card .cat-name { font-family: 'Playfair Display', serif; font-size: 17px; margin: 0 0 4px; color: var(--navy); }
.card .count { font-size: 12px; color: var(--txt3); }

.p-card .body { padding: 12px 14px 16px; }
.p-card .nom { font-size: 14px; font-weight: 600; margin: 0 0 4px; color: var(--txt); }
.p-card .prix { font-size: 15px; font-weight: 700; color: var(--navy); }
.p-card .devis { font-size: 12px; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }

/* Filter bar */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.filters a, .filters select, .filters input {
  border: 1px solid var(--bdr); background: #fff; padding: 9px 14px; border-radius: 20px;
  font-size: 13px; text-decoration: none; color: var(--txt2);
}
.filters a.active { background: var(--navy); color: #fff; border-color: var(--gold); }

/* Product detail */
.p-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; background: #fff; border: 1px solid var(--bdr); border-radius: 14px; padding: 32px; }
.p-detail .gallery-main { border-radius: 10px; overflow: hidden; background: #eee9db; margin-bottom: 10px; }
.p-detail .gallery-main img { width: 100%; height: 380px; object-fit: cover; }
.p-detail .gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.p-detail .gallery-thumbs img { width: 68px; height: 68px; object-fit: cover; border-radius: 8px; border: 1px solid var(--bdr); }
.p-detail .cat-label { text-transform: uppercase; letter-spacing: 1px; font-size: 11px; color: var(--txt3); margin-bottom: 6px; }
.p-detail h1 { font-size: 27px; margin-bottom: 12px; }
.p-detail .prix-block { font-size: 24px; font-weight: 800; color: var(--navy); margin-bottom: 18px; }
.p-detail .prix-block small { font-size: 13px; font-weight: 400; color: var(--txt3); }
.p-detail .desc { font-size: 14px; color: var(--txt2); margin-bottom: 24px; }
.no-photo { background: #eee9db; height: 380px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--txt3); font-size: 14px; }

.badge-tag { display: inline-block; background: var(--ivoire); border: 1px solid var(--bdr); color: var(--txt2); font-size: 12px; padding: 4px 10px; border-radius: 20px; margin-right: 6px; }

/* Badges de statut (mon-compte, panier) */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge.b-neutral { background: #eee9db; color: var(--txt2); }
.badge.b-info { background: #e3ecfb; color: #22508a; }
.badge.b-ok { background: #e2f3e9; color: var(--ok); }
.badge.b-warn { background: #fdf3d8; color: #8a6a12; }
.badge.b-err { background: #fdecea; color: #7a2118; }

/* Cartes de section (mon-compte, panier) */
.section-card { background: #fff; border: 1px solid var(--bdr); border-radius: 14px; padding: 22px 24px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--navy); margin-bottom: 14px; }

/* Panier — badge sur le lien du header */
.header-actions a[href="/panier.php"] { position: relative; }
.cart-badge {
  position: absolute; top: -8px; right: -14px; background: var(--gold); color: var(--navy);
  font-size: 10px; font-weight: 800; border-radius: 10px; padding: 1px 6px; line-height: 1.4;
}

/* Message flash (ajout panier, demande envoyée, etc.) */
.site-alert { padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 4px; }
.site-alert-success { background: #e2f3e9; border: 1px solid #b8dfc7; color: #1c5c38; }
.site-alert-error { background: #fdecea; border: 1px solid #f5c2c0; color: #7a2118; }

/* Empty state */
.empty { text-align: center; padding: 60px 20px; color: var(--txt3); }
.empty .ic { font-size: 34px; margin-bottom: 10px; }

/* Footer */
footer.site { background: linear-gradient(180deg, var(--navy2) 0%, var(--navy) 100%); color: #c7cedb; padding: 40px 0; margin-top: 60px; font-size: 13px; position: relative; }
footer.site::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold-line); }
footer.site a { color: #e8ecf3; text-decoration: none; }
footer.site a:hover { color: var(--gold2); }
footer.site .cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
footer.site .logo { font-size: 18px; }

/* Floating help button */
.help-float {
  position: fixed; right: 20px; bottom: 20px; background: linear-gradient(180deg, var(--gold2) 0%, var(--gold) 100%); color: var(--navy);
  border-radius: 30px; padding: 12px 18px; font-weight: 700; font-size: 13px; text-decoration: none;
  box-shadow: 0 8px 22px rgba(7,21,39,.28); z-index: 30;
}

/* Hero — visuel décoratif (pile de documents en CSS, aucune photo produit) */
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-copy .ctas { margin-top: 10px; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.doc-stack { position: relative; width: 220px; height: 260px; }
.doc-sheet {
  position: absolute; left: 50%; border-radius: 10px;
  background: linear-gradient(160deg, #fff 0%, #f3efe2 100%);
  box-shadow: 0 18px 40px rgba(7,21,39,.35);
}
.doc-sheet.s1 { width: 190px; height: 240px; top: 10px; transform: translateX(-50%) rotate(-4deg); z-index: 3; padding: 18px; box-sizing: border-box; }
.doc-sheet.s2 { width: 190px; height: 240px; top: 22px; transform: translateX(-46%) rotate(4deg); z-index: 2; opacity: .9; }
.doc-sheet.s3 { width: 190px; height: 240px; top: 34px; transform: translateX(-54%) rotate(-10deg); z-index: 1; opacity: .7; }
.doc-line { height: 8px; border-radius: 4px; background: var(--bdr); margin-bottom: 12px; }
.doc-line.l1 { width: 70%; background: var(--gold); opacity: .6; }
.doc-line.l2 { width: 90%; }
.doc-line.l3 { width: 55%; }
.doc-badge {
  position: absolute; bottom: 14px; right: 14px; background: var(--navy); color: var(--gold2);
  font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 6px; letter-spacing: .5px;
}

/* Bandeau "Nos solutions" — or dominant */
.solutions-band { background: linear-gradient(90deg, var(--gold) 0%, var(--gold2) 100%); padding: 16px 0; }
.solutions-band-inner { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; }
.solution-pill {
  color: var(--navy); text-decoration: none; font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px; letter-spacing: .2px;
}
.solution-pill span { font-size: 17px; }

/* Cartes de services (icône) */
.grid-services { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.service-card { background: #fff; border: 1px solid var(--bdr); border-top: 3px solid var(--gold); border-radius: 12px; padding: 26px 22px; }
.service-ic { font-size: 30px; margin-bottom: 12px; }
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--txt2); margin-bottom: 14px; }
.service-link { color: var(--navy); font-weight: 700; font-size: 13px; text-decoration: none; }
.service-link:hover { color: var(--gold); }

/* Section split (image/texte) */
.split-section { background: var(--ivoire); }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: center; }
.split-visual { display: flex; justify-content: center; }
.split-frame {
  position: relative; width: 220px; height: 220px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy3) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 40px rgba(7,21,39,.25);
}
.split-glow { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(201,162,39,.4); }
.split-icon { font-size: 54px; }
.checklist { list-style: none; padding: 0; margin: 18px 0 24px; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 12px; font-size: 14px; color: var(--txt2); }
.checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 800; }

/* Solutions entreprises — mini-cartes */
.grid-entreprise { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 26px; }

/* Badge "phase ultérieure / bientôt disponible" */
.future-badge {
  display: inline-block; background: var(--ivoire); border: 1px solid var(--gold); color: var(--gold);
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  padding: 5px 12px; border-radius: 20px;
}

/* Calculateur — maquette non fonctionnelle, clairement identifiée comme telle */
.calc-mock { background: #fff; border: 1px dashed var(--bdr); border-radius: 12px; padding: 20px 24px; max-width: 420px; margin: 26px 0; }
.calc-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--bdr); font-size: 13px; color: var(--txt2); }
.calc-row:last-child { border-bottom: none; }
.calc-field { color: var(--txt3); font-style: italic; }
.calc-total { font-weight: 800; color: var(--navy); }
.calc-total .calc-field { font-style: normal; color: var(--gold); }

/* Galerie "Nos réalisations" — placeholders honnêtes, aucune photo inventée */
.gallery-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.gallery-tile {
  aspect-ratio: 4/3; background: repeating-linear-gradient(135deg, #eee9db, #eee9db 10px, #e6e0cf 10px, #e6e0cf 20px);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--txt3); font-size: 13px; border: 1px solid var(--bdr);
}

/* Bandeau présence locale */
.locale-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%); }

/* Blog / conseils — teasers non cliquables (pas de blog en ligne) */
.grid-blog { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.blog-teaser { background: #fff; border: 1px solid var(--bdr); border-radius: 12px; padding: 22px; }
.blog-teaser h3 { font-size: 15px; margin-top: 12px; color: var(--navy); }

/* CTA finale */
.cta-final { background: linear-gradient(180deg, var(--gold2) 0%, var(--gold) 100%); }

/* Barre de contact au-dessus du header (téléphone + WhatsApp) */
.topbar-contact { background: var(--navy); border-bottom: 1px solid rgba(201,162,39,.25); }
.topbar-contact-inner { display: flex; justify-content: flex-end; gap: 22px; padding: 7px 20px; font-size: 12px; }
.topbar-contact-inner a { color: #c7cedb; text-decoration: none; font-weight: 600; }
.topbar-contact-inner a:hover { color: #fff; }
.topbar-contact-inner .topbar-whatsapp { color: var(--gold2); }

/* Actions à droite du header (panier, compte, CTA devis) */
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-actions a:not(.btn) { color: #d8dee8; text-decoration: none; font-size: 14px; font-weight: 500; }
.header-actions a:not(.btn):hover { color: #fff; }

/* Hero Speed Print */
.hero-sp h1 { font-family: 'Playfair Display', serif; font-size: 46px; letter-spacing: .5px; margin-bottom: 6px; }
.hero-baseline { font-size: 19px; color: #fff !important; font-weight: 600; max-width: 620px; margin-bottom: 8px !important; }
.hero-tags { font-size: 13px; letter-spacing: .5px; color: var(--gold2) !important; text-transform: uppercase; margin-bottom: 28px !important; }

/* Section "Demandez votre devis" */
.devis-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 32px; align-items: start; }
.devis-form { display: flex; flex-direction: column; gap: 14px; }
.form-row label { display: block; font-size: 12px; color: var(--txt2); margin-bottom: 5px; font-weight: 600; }
.form-row .req { color: #c0392b; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 10px; border: 1px solid var(--bdr); border-radius: 6px; font: inherit; box-sizing: border-box;
}
.devis-contact { background: var(--ivoire); border: 1px solid var(--bdr); border-radius: 14px; padding: 22px 24px; font-size: 14px; color: var(--txt2); }
.devis-contact p { margin: 0 0 12px; }
.devis-contact a { color: var(--navy); font-weight: 600; text-decoration: none; }
.devis-contact a:hover { color: var(--gold); }

/* Footer — bloc réseaux sociaux */
.foot-social { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(201,162,39,.18); }
.foot-social-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-social-links a { font-size: 13px; }

@media (max-width: 760px) {
  nav.main { display: none; }
  .hero h1 { font-size: 28px; }
  .hero-sp h1 { font-size: 32px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 10px; }
  .split { grid-template-columns: 1fr; }
  .devis-grid { grid-template-columns: 1fr; }
  .foot-grid { flex-direction: column; }
  .topbar-contact-inner { justify-content: center; gap: 14px; flex-wrap: wrap; }
  .header-actions { gap: 12px; }
  .p-detail { grid-template-columns: 1fr; }
}
