* { box-sizing: border-box; }
body { font-family: Georgia, 'Times New Roman', serif; font-size: 18px; line-height: 1.8; margin: 0; padding: 0; color:#222; background:#f7f7fb; }

/* Header flottant sur le hero */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(31,41,55,0.75); backdrop-filter: blur(6px); color: #fff; padding: 14px 24px; }
header nav a { color: #93c5fd; text-decoration: none; margin-right: 20px; font-size: 17px; font-family: Arial, sans-serif; }
header nav a:hover { color: #fff; }

main { padding: 40px 24px; max-width: 900px; margin: 32px auto; background: #fff; border-radius:8px; box-shadow: 0 4px 14px rgba(16,24,40,.06); }
button { padding: 10px 14px; background: #2563eb; color: #fff; border: none; border-radius:6px; cursor:pointer; }
footer { text-align:center; padding: 16px; color:#6b7280; }

/* Hero pleine page */
.hero { position: relative; height: 100vh; width: 100%; overflow: hidden; }
.hero .hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.55) 100%); display:flex; align-items:center; }
.hero-content { color: #fff; max-width: 800px; padding: 0 48px; }
.hero-content h2 { margin: 0 0 20px; font-size: 52px; font-weight: 700; line-height: 1.15; font-family: Georgia, serif; }
.hero-content p { margin: 0 0 16px; font-size: 20px; opacity: 0.92; line-height: 1.7; }
.hero-cta a { display: inline-block; margin-right: 12px; margin-top: 8px; padding: 12px 24px; background: rgba(255,255,255,0.15); color: #fff; border-radius:6px; text-decoration:none; font-size:15px; border: 1px solid rgba(255,255,255,0.4); backdrop-filter: blur(4px); transition: background .2s; }
.hero-cta a:hover { background: rgba(255,255,255,0.28); }
.hero-prev, .hero-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.35); color: #fff; border: none; width: 48px; height: 48px; border-radius:50%; font-size:26px; cursor:pointer; transition: background .2s; }
.hero-prev:hover, .hero-next:hover { background: rgba(0,0,0,0.6); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
.hero-indicators { position: absolute; left: 50%; transform: translateX(-50%); bottom: 24px; display:flex; gap:10px; }
.hero-dot { width:10px; height:10px; border-radius:50%; background: rgba(255,255,255,0.45); border: none; cursor:pointer; transition: background .2s; }
.hero-dot.active { background: #fff; }

@media (max-width:800px) {
	.hero-content { padding: 0 24px; }
	.hero-content h2 { font-size: 26px; }
	.hero-content p { font-size: 15px; }
}

.activities ul { list-style: disc; padding-left: 20px; }

/* Section choc */
.impact-section { position: relative; height: 520px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.impact-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.62); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.impact-stat { font-size: 80px; font-weight: 900; color: #ef4444; margin: 0; line-height: 1; }
.impact-label { font-size: 26px; color: #fff; margin: 8px 0 24px; font-weight: 600; }
.impact-sub { font-size: 19px; color: rgba(255,255,255,0.85); max-width: 680px; line-height: 1.75; margin: 0; }

/* Avant / Après */
.before-after { display: flex; height: 440px; }
.ba-panel { flex: 1; background-size: cover; background-position: center; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; transition: flex .4s ease; }
.ba-panel:hover { flex: 1.4; }
.ba-panel::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%); }
.ba-label { position: relative; font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.ba-before .ba-label { color: #86efac; }
.ba-after .ba-label { color: #fca5a5; }
.ba-caption { position: relative; font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.5; }

/* 3 domaines */
.domains { padding: 64px 24px; background: #0f172a; }
.domains-title { text-align: center; color: #fff; font-size: 32px; margin: 0 0 40px; }
.domains-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; }
.domain-card { display: block; height: 380px; background-size: cover; background-position: center; border-radius: 10px; overflow: hidden; position: relative; text-decoration: none; transition: transform .3s ease; }
.domain-card:hover { transform: scale(1.02); }
.domain-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 55%); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; }
.domain-overlay h3 { color: #fff; font-size: 22px; margin: 0 0 8px; }
.domain-overlay p { color: rgba(255,255,255,0.88); font-size: 16px; line-height: 1.65; margin: 0; }

/* CTA final */
.cta-section { background: #1e3a5f; color: #fff; text-align: center; padding: 72px 24px; }
.cta-section h2 { font-size: 32px; margin: 0 0 16px; }
.cta-section p { font-size: 17px; color: rgba(255,255,255,0.8); margin: 0 0 36px; }
.cta-btn { display: inline-block; margin: 0 8px; padding: 14px 32px; background: #2563eb; color: #fff; border-radius: 8px; text-decoration: none; font-size: 16px; font-weight: 600; transition: background .2s; }
.cta-btn:hover { background: #1d4ed8; }
.cta-btn--outline { background: transparent; border: 2px solid rgba(255,255,255,0.5); }
.cta-btn--outline:hover { background: rgba(255,255,255,0.1); }

@media (max-width: 800px) {
  .impact-stat { font-size: 52px; }
  .before-after { flex-direction: column; height: auto; }
  .ba-panel { height: 260px; }
  .ba-panel:hover { flex: 1; }
  .domains-grid { grid-template-columns: 1fr; }
  .domain-card { height: 260px; }
}

/* Pages intérieures */
.page-content { padding-top: 80px; }
.page-intro { font-size: 17px; color: #4b5563; margin-bottom: 40px; max-width: 700px; }

/* Notre histoire — bannière */
.histoire-banner { position: relative; height: 420px; background-size: cover; background-position: center; display: flex; align-items: center; margin-top: 56px; }
.histoire-banner-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.histoire-banner-overlay--light { background: rgba(0,0,0,0.32); }
.histoire-banner-overlay h1 { color: #fff; font-size: 48px; margin: 0 0 12px; }
.histoire-banner-overlay p { color: rgba(255,255,255,0.85); font-size: 18px; margin: 0; }

/* Notre histoire — items alternés */
.histoire-item { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }
.histoire-item--reverse .histoire-visual { order: 2; }
.histoire-item--reverse .histoire-text { order: 1; }
.histoire-visual { background-size: cover; background-position: center; }
.histoire-text { padding: 60px 48px; display: flex; flex-direction: column; justify-content: center; background: #fff; }
.histoire-text--dark { background: #0f172a; color: #e2e8f0; }
.histoire-text--dark h2 { color: #fff; }
.histoire-text--dark p { color: #cbd5e1; }
.histoire-date { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #3b82f6; margin-bottom: 10px; }
.histoire-text--dark .histoire-date { color: #93c5fd; }
.histoire-text h2 { font-size: 26px; margin: 0 0 16px; color: #1e3a5f; }
.histoire-text p { font-size: 18px; line-height: 1.85; margin: 0; color: #374151; }

@media (max-width: 800px) {
  .histoire-item { grid-template-columns: 1fr; }
  .histoire-visual { height: 260px; order: 0 !important; }
  .histoire-text { order: 1 !important; padding: 32px 24px; }
  .histoire-banner-overlay h1 { font-size: 30px; }
}

/* Grille missions */
.missions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.mission-card { background: #f0f9ff; border-radius: 10px; padding: 24px; }
.mission-icon { font-size: 32px; margin-bottom: 10px; }
.mission-card h2 { margin: 0 0 10px; font-size: 18px; color: #1e3a5f; }
.mission-card p { margin: 0; color: #374151; font-size: 17px; line-height: 1.7; }

/* Liste technologies */
.tech-list { display: flex; flex-direction: column; gap: 28px; }
.tech-item { border-left: 4px solid #2563eb; padding-left: 20px; }
.tech-item h2 { margin: 0 0 8px; font-size: 19px; }
.tech-item p { margin: 0; color: #374151; line-height: 1.7; }

/* Contact */
.contact-page { max-width: 1100px; margin: 0 auto; padding: 60px 24px; display: flex; flex-direction: column; gap: 64px; }

.contact-human { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.contact-portrait { height: 520px; border-radius: 12px; background-size: cover; background-position: center center; }
.contact-human-text h2 { font-size: 28px; color: #1e3a5f; margin: 0 0 16px; }
.contact-human-text p { font-size: 18px; color: #374151; line-height: 1.8; margin: 0 0 16px; }
.contact-info-simple { margin-top: 28px; border-top: 1px solid #e5e7eb; padding-top: 24px; }
.contact-info-simple p { font-size: 17px; color: #374151; margin: 0 0 10px; }

.contact-form-section { background: #f0f9ff; border-radius: 16px; padding: 48px; }
.contact-form-section h2 { font-size: 26px; color: #1e3a5f; margin: 0 0 32px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; font-size: 15px; color: #374151; }
.form-group input, .form-group select, .form-group textarea { padding: 12px 16px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 17px; font-family: inherit; width: 100%; background: #fff; transition: border-color .2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #3b82f6; }
.form-group textarea { resize: vertical; }
.contact-submit { align-self: flex-start; padding: 14px 36px; background: #1e3a5f; color: #fff; border: none; border-radius: 8px; font-size: 17px; font-family: inherit; cursor: pointer; transition: background .2s; }
.contact-submit:hover { background: #2563eb; }

@media (max-width: 800px) {
  .contact-human { grid-template-columns: 1fr; }
  .contact-portrait { height: 260px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-section { padding: 28px 20px; }
}

/* Sélecteur de langue */
header { display: flex; align-items: center; justify-content: space-between; }
.lang-switcher { position: relative; }
.lang-current { background: transparent; border: 1px solid rgba(255,255,255,0.35); color: #fff; padding: 6px 14px; border-radius: 6px; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 6px; font-family: Arial, sans-serif; transition: background .2s; }
.lang-current:hover { background: rgba(255,255,255,0.15); }
.lang-arrow { font-size: 11px; opacity: .7; }
.lang-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); background: #1e293b; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; list-style: none; margin: 0; padding: 6px 0; min-width: 160px; z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.lang-menu--open { display: block; }
.lang-menu li a { display: block; padding: 9px 16px; color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14px; font-family: Arial, sans-serif; transition: background .15s; white-space: nowrap; }
.lang-menu li a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.lang-menu li a.lang-active { color: #93c5fd; font-weight: 600; }

/* RTL — arabe */
.rtl header nav { direction: rtl; }
.rtl header nav a { margin-right: 0; margin-left: 20px; }
.rtl .lang-menu { right: auto; left: 0; }
.rtl .histoire-item { direction: rtl; }
.rtl .histoire-item--reverse .histoire-visual { order: 1; }
.rtl .histoire-item--reverse .histoire-text { order: 2; }
.rtl .hero-content { text-align: right; }
.rtl .contact-human { direction: rtl; }
.rtl .contact-form { direction: rtl; }
.rtl .form-group label { text-align: right; }
.rtl .contact-submit { align-self: flex-end; }

@media (max-width: 800px) {
  header { flex-wrap: wrap; gap: 10px; }
  .lang-menu { right: 0; left: auto; }
  .rtl .lang-menu { right: auto; left: 0; }
}
