/* =============================================
   ExtraPortail — style.css
   Style B2B SaaS corporate 2017-2019
   ============================================= */

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

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

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
}

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

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

/* ---------- Variables ---------- */
:root {
  --blue:       #1A5276;
  --blue-dark:  #154360;
  --blue-light: #2980B9;
  --orange:     #E67E22;
  --orange-dark:#CA6F1E;
  --grey-light: #F4F6F7;
  --grey-mid:   #BDC3C7;
  --grey-text:  #666;
  --white:      #fff;
}

/* ---------- Helpers ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--blue);
  text-align: center;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--grey-text);
  font-size: 1rem;
  margin-bottom: 48px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border: none;
  text-align: center;
}

.btn-orange {
  background: var(--orange);
  color: #fff;
}
.btn-orange:hover { background: var(--orange-dark); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-outline-white:hover { background: #fff; color: var(--blue); }

.btn-blue {
  background: var(--blue);
  color: #fff;
}
.btn-blue:hover { background: var(--blue-dark); }

/* =============================================
   HEADER
   ============================================= */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--blue);
  z-index: 1000;
  height: 64px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}
.logo span { color: #AED6F1; }

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

nav ul li a {
  color: #D6EAF8;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}
nav ul li a:hover { color: #fff; }

.header-cta { margin-left: 32px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* =============================================
   HERO
   ============================================= */
#hero {
  background: var(--blue);
  padding: 130px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#hero::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 40px;
  background: #fff;
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero-label {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: #AED6F1;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  max-width: 700px;
  margin: 0 auto 20px;
}

.hero-sub {
  color: #AED6F1;
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Faux screenshot */
.hero-screen {
  margin: 56px auto 0;
  max-width: 820px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.15);
  position: relative;
}

.hero-screen-bar {
  background: #2C3E50;
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 7px;
}
.hero-screen-bar span {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.dot-r { background: #E74C3C; }
.dot-y { background: #F39C12; }
.dot-g { background: #2ECC71; }

.hero-screen-body {
  background: #EAF2F8;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: blur(2px);
  gap: 16px;
  padding: 24px;
}

.fake-sidebar {
  width: 180px;
  height: 100%;
  background: var(--blue);
  border-radius: 3px;
  opacity: 0.7;
  flex-shrink: 0;
}

.fake-content {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fake-row {
  background: #fff;
  border-radius: 3px;
  opacity: 0.8;
}
.fake-row:nth-child(1) { flex: 2; }
.fake-row:nth-child(2) { flex: 1; }
.fake-row:nth-child(3) { flex: 1.5; }

/* =============================================
   FEATURES
   ============================================= */
#fonctionnalites {
  padding: 80px 0;
  background: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.feature-card {
  background: var(--grey-light);
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  padding: 32px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}
.feature-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.09); }

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--blue);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 1.3rem;
}

.feature-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}
.feature-body p { font-size: 0.9rem; color: var(--grey-text); line-height: 1.65; }

/* =============================================
   POUR QUI
   ============================================= */
#pour-qui {
  padding: 80px 0;
  background: var(--grey-light);
}

.targets-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 0;
}

.target-item {
  text-align: center;
  width: 130px;
}
.target-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 12px;
}
.target-item span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  display: block;
}

/* Compteur */
.trust-banner {
  text-align: center;
  margin-top: 48px;
  padding: 20px;
  background: var(--blue);
  border-radius: 4px;
  color: #fff;
}
.trust-banner .trust-number {
  font-size: 2.4rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}
.trust-banner .trust-label {
  font-size: 0.9rem;
  color: #AED6F1;
  margin-top: 6px;
  display: block;
}

/* =============================================
   POURQUOI
   ============================================= */
#pourquoi {
  padding: 80px 0;
  background: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.why-card {
  text-align: center;
  padding: 32px 24px;
  border-top: 3px solid var(--orange);
  background: var(--grey-light);
  border-radius: 0 0 4px 4px;
}
.why-card .why-icon {
  font-size: 2rem;
  color: var(--orange);
  margin-bottom: 16px;
}
.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}
.why-card p { font-size: 0.88rem; color: var(--grey-text); line-height: 1.65; }

/* =============================================
   TARIFS
   ============================================= */
#tarifs {
  padding: 80px 0;
  background: var(--grey-light);
  text-align: center;
}

.pricing-box {
  display: inline-block;
  background: #fff;
  border: 1px solid #DDD;
  border-radius: 4px;
  padding: 40px 48px;
  max-width: 560px;
  margin-top: 16px;
}
.pricing-box .pricing-icon {
  font-size: 2.5rem;
  color: var(--blue);
  margin-bottom: 20px;
}
.pricing-box p {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}
.pricing-box .pricing-note {
  font-size: 0.82rem;
  color: var(--grey-mid);
  margin-top: 16px;
  margin-bottom: 0;
}

/* =============================================
   CONTACT
   ============================================= */
#contact {
  padding: 80px 0;
  background: #fff;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}

.contact-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}
.contact-info p {
  font-size: 0.9rem;
  color: var(--grey-text);
  line-height: 1.7;
  margin-bottom: 20px;
}
.contact-info .info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 10px;
}
.contact-info .info-item i { color: var(--blue); width: 18px; }

/* Form */
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #CCC;
  border-radius: 3px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #333;
  background: #fff;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 2px rgba(41,128,185,0.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-required { color: var(--orange); }

.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; font-size: 1rem; padding: 13px; }

.form-legal {
  font-size: 0.78rem;
  color: #999;
  margin-top: 12px;
  text-align: center;
  line-height: 1.5;
}

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: #1C2833;
  color: #AAB7B8;
  padding: 28px 0;
  font-size: 0.85rem;
}

#footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.footer-copy { color: #7F8C8D; font-size: 0.82rem; }

.footer-links { display: flex; gap: 20px; }
.footer-links a {
  color: #AAB7B8;
  font-size: 0.82rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

/* =============================================
   COOKIE BANNER
   ============================================= */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1C2833;
  color: #CCC;
  padding: 16px 24px;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.25);
  font-size: 0.85rem;
}

#cookie-banner p { max-width: 800px; line-height: 1.5; }
#cookie-banner p a { color: #AED6F1; text-decoration: underline; }

#cookie-accept {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
#cookie-accept:hover { background: var(--orange-dark); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-info { display: none; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 1.75rem; }
  .hero-sub { font-size: 0.95rem; }

  nav { display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: var(--blue-dark); padding: 16px 0; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0; }
  nav ul li a { display: block; padding: 12px 24px; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }

  .contact-form .form-row { grid-template-columns: 1fr; }

  #footer .container { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  #cookie-banner { flex-direction: column; text-align: center; }

  .hero-screen { display: none; }
}

@media (max-width: 480px) {
  .targets-grid { gap: 16px; }
  .pricing-box { padding: 28px 20px; }
}
