/* ============================================================
   AliPrint — styles.css
   Couleurs : bleu foncé (marine) + point rouge
   ============================================================ */

:root {
  --navy: #0b2a4a;
  --navy-dark: #071d35;
  --navy-light: #143a63;
  --red: #e63329;
  --red-dark: #c4271e;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --text: #1c2b3a;
  --text-soft: #5a6b7d;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(11, 42, 74, 0.08);
  --shadow-hover: 0 10px 28px rgba(11, 42, 74, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

img, svg { max-width: 100%; display: block; }

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

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ---------- Logo ---------- */
.logo {
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  white-space: nowrap;
}
.logo .logo-i {
  position: relative;
  display: inline-block;
}
/* la lettre affichée est un « ı » sans point ; le point rouge est ajouté ici */
.logo .logo-i::after {
  content: '';
  position: absolute;
  top: 0.14em;
  left: 50%;
  transform: translateX(-50%);
  width: 0.22em;
  height: 0.22em;
  background: var(--red);
  border-radius: 50%;
}
.logo-on-dark { color: #fff; }
.logo .logo-tld { color: var(--red); font-weight: 600; font-size: 0.7em; }

/* ---------- Barre supérieure ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cfdcec;
  font-size: 0.82rem;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar .topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 60;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a, .main-nav .nav-drop > button {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.main-nav > a:hover, .main-nav .nav-drop > button:hover { color: var(--red); }
.main-nav > a.active { color: var(--red); }

.nav-drop { position: relative; }
.nav-drop .drop-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  min-width: 250px;
  padding: 8px;
  display: none;
  z-index: 70;
}
.nav-drop.open .drop-menu { display: block; }
.drop-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
}
.drop-menu a:hover { background: var(--bg-soft); color: var(--red); }

.header-cta {
  background: var(--red);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.header-cta:hover { background: var(--red-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: #fff;
  padding: 72px 0 84px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 51, 41, 0.25), transparent 70%);
}
.hero .container { position: relative; z-index: 1; max-width: 780px; text-align: center; }
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--red); }
.hero p {
  font-size: 1.08rem;
  color: #c8d6e6;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1eb856; }

/* ---------- Sections ---------- */
.section { padding: 68px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-head h2 .accent { color: var(--red); }
.section-head p { color: var(--text-soft); }

/* ---------- Grille catégories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--navy);
}
.cat-card .cat-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 14px;
}
.cat-card .cat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border-radius: 14px;
  color: var(--navy);
}
.cat-card:hover .cat-icon { color: var(--red); }
.cat-card h3 { font-size: 1rem; color: var(--navy); font-weight: 600; margin-bottom: 6px; }
.cat-card p { font-size: 0.83rem; color: var(--text-soft); line-height: 1.45; }

/* ---------- Grille produits (pages catégories) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
.page-hero p { color: #c8d6e6; max-width: 640px; margin: 10px auto 0; }
.page-hero .hero-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}
.page-hero .hero-txt { flex: 1; }
.page-hero .hero-txt p { margin: 10px 0 0; }
.page-hero .hero-img { flex: 0 0 250px; }
.page-hero .hero-img img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
@media (max-width: 640px) {
  .page-hero .hero-img { display: none; }
  .page-hero .hero-flex { text-align: center; }
}
.breadcrumb { font-size: 0.82rem; color: #8fa6bf; margin-bottom: 10px; }
.breadcrumb a:hover { color: #fff; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.product-card h3 { color: var(--navy); font-size: 1.05rem; font-weight: 600; }
.product-card p { font-size: 0.88rem; color: var(--text-soft); flex-grow: 1; }
.product-card .card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.product-card .btn { padding: 9px 18px; font-size: 0.85rem; }

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
}
.badge-popular { background: #fdeceb; color: var(--red); }
.badge-soon { background: #fff4d6; color: #9a6b00; }
.product-card.is-soon { opacity: 0.75; }

/* ---------- Étapes ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.step {
  text-align: center;
  padding: 28px 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.step .step-num {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.step h3 { color: var(--navy); font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: 0.87rem; color: var(--text-soft); }

/* ---------- Atouts ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature .feat-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature h3 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.feature p { font-size: 0.87rem; color: var(--text-soft); }

/* ---------- Bandeau CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--red), var(--red-dark));
  color: #fff;
  padding: 52px 0;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 10px; }
.cta-band p { opacity: 0.92; margin-bottom: 24px; }
.cta-band .btn-white { background: #fff; color: var(--red); }
.cta-band .btn-white:hover { background: #f4f4f4; }

/* ---------- Formulaires ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  max-width: 680px;
  margin: 0 auto;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.87rem; font-weight: 600; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  font-family: inherit;
  font-size: 0.92rem;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--text);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  background: #fff;
}
.form-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.form-hint { font-size: 0.8rem; color: var(--text-soft); margin-top: 14px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.contact-card .feat-icon { margin: 0 auto 14px; }
.contact-card h3 { color: var(--navy); font-size: 1rem; margin-bottom: 6px; }
.contact-card p, .contact-card a { font-size: 0.92rem; color: var(--text-soft); }
.contact-card a:hover { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #b9c9db;
  padding: 56px 0 0;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 36px;
  padding-bottom: 40px;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.footer-about p { margin-top: 12px; line-height: 1.7; font-size: 0.87rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform 0.15s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Divers ---------- */
.notice {
  background: #fdeceb;
  border: 1px solid #f6c7c4;
  color: var(--red-dark);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 { color: var(--navy); margin: 28px 0 10px; font-size: 1.2rem; }
.legal-content p { color: var(--text-soft); font-size: 0.93rem; margin-bottom: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 4%;
    box-shadow: var(--shadow-hover);
  }
  .main-nav.open { display: flex; }
  .main-nav > a, .main-nav .nav-drop > button { padding: 12px 0; width: 100%; justify-content: space-between; }
  .nav-drop .drop-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--bg-soft);
    border-radius: 0;
    margin-left: 8px;
  }
  .header-cta { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .topbar .topbar-links { display: none; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
