/* ============================================
   iCotonou.com — Stylesheet Principal
   ============================================ */

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

:root {
  --primary:   #1a6b3c;   /* vert Bénin */
  --secondary: #f5a623;   /* jaune/or    */
  --dark:      #1a1a2e;
  --light:     #f8f9fa;
  --gray:      #6c757d;
  --white:     #ffffff;
  --font-main: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --shadow:    0 4px 24px rgba(0,0,0,.10);
  --radius:    8px;
  --transition: .3s ease;
}

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

body {
  font-family: var(--font-main);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
}

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

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary); }

/* ---- Typography ---- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; margin-bottom: .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
p  { margin-bottom: 1rem; }

/* ---- Layout ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section    { padding: 80px 0; }
.section--alt { background: var(--light); }

/* ---- Header / Navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
}
.logo span { color: var(--secondary); }

.nav-menu { list-style: none; display: flex; gap: 28px; }
.nav-menu a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--dark);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
.nav-menu a:hover,
.nav-menu a.active { border-color: var(--secondary); color: var(--primary); }

.nav-cta {
  background: var(--secondary);
  color: var(--dark) !important;
  border: none !important;
  padding: 10px 22px !important;
  border-radius: 30px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--primary); color: var(--white) !important; }

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 26px; height: 3px; background: var(--dark); border-radius: 2px; transition: var(--transition); }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0d3d22 100%);
  color: var(--white);
  padding: 100px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.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");
}
.hero .container { position: relative; }
.hero h1 { color: var(--white); margin-bottom: .5em; }
.hero p  { font-size: 1.2rem; opacity: .9; max-width: 680px; margin: 0 auto 2rem; }

.badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--dark);
  font-weight: 700;
  font-size: .85rem;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--secondary);
  color: var(--dark);
}
.btn-primary:hover { background: #e09610; color: var(--dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  margin-left: 12px;
}
.btn-outline:hover { background: var(--white); color: var(--primary); }

.hero-btns { margin-top: .5rem; }

/* ---- Stats bar ---- */
.stats-bar {
  background: var(--dark);
  color: var(--white);
  padding: 28px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  text-align: center;
  gap: 16px;
}
.stat-item strong { display: block; font-size: 2rem; color: var(--secondary); }
.stat-item span   { font-size: .9rem; opacity: .8; }

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 2.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--secondary);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,.14); }
.card-icon { font-size: 2.5rem; margin-bottom: 16px; }
.card h3   { color: var(--primary); margin-bottom: .5em; }
.card p    { color: var(--gray); margin-bottom: 0; }

/* ---- Feature list ---- */
.feature-list { list-style: none; }
.feature-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.feature-list li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; }

/* ---- Section header ---- */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .badge { margin-bottom: .8rem; }
.section-header p { color: var(--gray); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ---- Two-column layout ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---- Highlight box ---- */
.highlight-box {
  background: linear-gradient(135deg, var(--primary), #0d3d22);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  margin-top: 3rem;
}
.highlight-box h2 { color: var(--white); }
.highlight-box p  { opacity: .9; max-width: 560px; margin: 0 auto 1.5rem; }

/* ---- Domain sale banner ---- */
.domain-banner {
  background: var(--secondary);
  padding: 20px 0;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
}
.domain-banner a { color: var(--primary); font-weight: 800; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  background: var(--light);
  padding: 12px 0;
  font-size: .88rem;
  color: var(--gray);
}
.breadcrumb a { color: var(--gray); }
.breadcrumb span { color: var(--primary); font-weight: 600; }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0d3d22 100%);
  color: var(--white);
  padding: 70px 0 60px;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero p  { opacity: .9; font-size: 1.1rem; max-width: 600px; margin: .8rem auto 0; }

/* ---- Table ---- */
table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #eee; }
th { background: var(--primary); color: var(--white); font-weight: 600; }
tr:hover td { background: var(--light); }

/* ---- Contact form ---- */
.form-group { margin-bottom: 1.4rem; }
label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .9rem; }
input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color var(--transition);
  background: var(--white);
}
input:focus, textarea:focus { outline: none; border-color: var(--primary); }
textarea { min-height: 140px; resize: vertical; }
.btn-submit {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 14px 40px;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
}
.btn-submit:hover { background: #0d3d22; transform: translateY(-2px); }

/* ---- FAQ accordion ---- */
.faq-item { border: 1px solid #eee; border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--dark);
}
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--primary); }
.faq-answer { padding: 0 20px 18px; color: var(--gray); display: none; }
.faq-item.open .faq-question::after { content: '−'; }
.faq-item.open .faq-answer { display: block; }

/* ---- Footer ---- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { font-size: 1.6rem; }
.footer-brand p { margin-top: 12px; font-size: .9rem; line-height: 1.6; }
.footer-col h4 { color: var(--white); margin-bottom: 1rem; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-col ul a:hover { color: var(--secondary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
}
.footer-bottom a { color: var(--secondary); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow); padding: 20px; gap: 16px; }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero { padding: 70px 0 60px; }
  .highlight-box { padding: 32px 20px; }
  .btn-outline { margin-left: 0; margin-top: 10px; }
}
