/* ============================================
   MAURITANIA OCTOPUS EXPORT - STYLE PREMIUM
   Version : 3.2 (Logo premium amélioré)
   Date : 2024
   ============================================ */

:root {
  /* Couleurs principales */
  --navy: #0b2a55;
  --sky: #3aa7ff;
  --steel: #7b889a;
  --ink: #0d1321;
  --bg: #f6f8fb;
  --card: #ffffff;
  --line: #e6ebf2;
  --accent: #2d7dd2;
  --success: #2a7a3a;
  --warning: #ff9f1c;
  
  /* Effets et ombres */
  --shadow-sm: 0 4px 12px rgba(13, 19, 33, 0.05);
  --shadow-md: 0 12px 30px rgba(13, 19, 33, 0.08);
  --shadow-lg: 0 20px 50px rgba(13, 19, 33, 0.12);
  --shadow-xl: 0 30px 60px rgba(13, 19, 33, 0.15);
  
  /* Bordures */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-full: 999px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ========== RESET & BASE ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(246, 248, 251, 0.98);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--line);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

/* ========== LOGO PREMIUM AMÉLIORÉ ========== */
.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 320px;
  text-decoration: none;
  transition: transform var(--transition-normal);
  padding: 8px 0;
}

.brand:hover {
  transform: translateY(-3px);
}

.logoWrap {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a7a 50%, var(--sky) 100%);
  box-shadow: 
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 8px 32px rgba(11, 42, 85, 0.25);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  transition: all var(--transition-slow);
  flex-shrink: 0;
}

/* Effet de brillance */
.logoWrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.8s ease;
  z-index: 1;
  pointer-events: none;
}

.logoWrap:hover::before {
  left: 100%;
}

/* Effet de surbrillance au survol */
.logoWrap::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--sky), rgba(58, 167, 255, 0.3));
  border-radius: 24px;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.logoWrap:hover::after {
  opacity: 0.6;
}

.logoWrap:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 
    var(--shadow-xl),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 12px 48px rgba(11, 42, 85, 0.35);
}

.logoWrap img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  z-index: 2;
  filter: 
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1))
    brightness(1.05);
  transition: all var(--transition-slow);
  padding: 4px;
}

.logoWrap:hover img {
  transform: scale(1.08);
  filter: 
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15))
    brightness(1.1);
}

.brand h1 {
  font-size: 17px;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-weight: 800;
  background: linear-gradient(135deg, var(--navy) 0%, #153060 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand span {
  display: block;
  font-size: 13px;
  color: var(--steel);
  letter-spacing: 0.06em;
  margin-top: 8px;
  font-weight: 500;
  opacity: 0.9;
}

/* ========== MENU DE NAVIGATION ========== */
.menu {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu a {
  font-size: 13px;
  color: #1a2740;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  position: relative;
  font-weight: 500;
  overflow: hidden;
}

.menu a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--sky));
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.menu a:hover {
  background: #edf2fb;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.menu a:hover::before {
  width: 80%;
}

.menu a.activeLink {
  background: linear-gradient(135deg, var(--navy), var(--sky));
  color: white;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.menu a.activeLink::before {
  width: 100%;
  height: 3px;
  background: white;
}

/* ========== BOUTONS & ACTIONS ========== */
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-normal);
  font-weight: 600;
  text-align: center;
  min-height: 44px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--sky);
}

.btn:active {
  transform: translateY(-1px);
}

.btn.primary {
  border: none;
  background: linear-gradient(135deg, var(--navy), var(--sky));
  color: white;
  box-shadow: var(--shadow-md);
  font-weight: 700;
}

.btn.primary:hover {
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #0a2349, #3498ff);
}

/* ========== MAIN CONTENT ========== */
main {
  padding: 32px 0 48px;
  min-height: calc(100vh - 180px);
}

/* ========== HERO SECTION ========== */
.heroCard {
  background: 
    radial-gradient(1200px 400px at 20% 0%, rgba(58, 167, 255, 0.25), transparent 70%),
    radial-gradient(900px 450px at 80% 20%, rgba(11, 42, 85, 0.22), transparent 70%),
    linear-gradient(135deg, #ffffff 0%, #fafcff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
}

.heroCard::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(58, 167, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--steel);
  font-size: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  backdrop-filter: blur(10px);
  z-index: 1;
  position: relative;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--navy), var(--sky));
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.heroTitle {
  font-size: 42px;
  line-height: 1.05;
  margin: 20px 0 16px;
  letter-spacing: -0.02em;
  font-weight: 800;
  background: linear-gradient(135deg, var(--navy) 0%, var(--ink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.heroText {
  font-size: 16px;
  line-height: 1.8;
  color: #2a3550;
  margin: 0 0 28px;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

/* ========== SECTIONS ========== */
.sectionHead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0 24px;
}

.sectionHead h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--navy) 0%, var(--ink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sectionHead p {
  margin: 0;
  color: var(--steel);
  font-size: 14px;
  font-weight: 500;
}

/* ========== GRIDS & CARDS ========== */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
  height: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: 4px;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--navy), var(--sky));
  transition: height var(--transition-normal);
}

.card:hover::before {
  height: 100%;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--sky);
}

.card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.card p {
  margin: 0 0 16px;
  color: #2a3550;
  font-size: 15px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ========== STYLE POUR LES ICÔNES DE LISTE ========== */
.list-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  color: var(--sky);
  flex-shrink: 0;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.list li:hover .list-icon {
  transform: scale(1.1);
  color: var(--navy);
}

.list {
  margin: 20px 0 0;
  padding: 0;
  color: #2a3550;
  font-size: 15px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-left: 0;
  list-style-type: none;
  padding-top: 2px;
}

.list li::before {
  display: none;
}

.pill {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--steel);
  margin-top: 16px;
  background: linear-gradient(135deg, #f8fafd 0%, #f0f5ff 100%);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  width: 100%;
  border: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.pill .chip {
  height: 10px;
  width: 10px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--navy), var(--sky));
  margin-top: 6px;
  flex-shrink: 0;
  animation: chipPulse 3s infinite;
}

@keyframes chipPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ========== GESTION DES LANGUES ========== */
[data-lang] {
  display: none;
}

[data-lang].active {
  display: block;
}

/* ========== FORMULAIRES ========== */
.contactWrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  position: relative;
}

label {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
}

input, textarea, select {
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  background: var(--card);
  transition: all var(--transition-normal);
  width: 100%;
  font-family: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(58, 167, 255, 0.15);
  transform: translateY(-2px);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.form-feedback {
  display: none;
  padding: 18px;
  border-radius: var(--radius-sm);
  margin-top: 20px;
  font-size: 15px;
  animation: slideIn 0.4s ease;
  position: relative;
  overflow: hidden;
}

.form-feedback::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.form-feedback.success {
  background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e9 100%);
  color: var(--success);
  border: 1px solid #d4edda;
}

.form-feedback.success::before {
  background: var(--success);
}

.form-feedback.error {
  background: linear-gradient(135deg, #fdf3f3 0%, #ffeaea 100%);
  color: #c92a2a;
  border: 1px solid #f8d7da;
}

.form-feedback.error::before {
  background: #c92a2a;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== FOOTER ========== */
footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  color: var(--steel);
  font-size: 14px;
  background: linear-gradient(135deg, #fafcff 0%, #f6f8fb 100%);
}

.footGrid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========== COOKIE CONSENT ========== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a7a 100%);
  color: white;
  padding: 24px;
  text-align: center;
  z-index: 2000;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  box-shadow: var(--shadow-xl);
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-consent p {
  margin: 0 0 18px 0;
  font-size: 15px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cookie-consent a {
  color: #a0c8ff;
  text-decoration: underline;
  transition: color var(--transition-fast);
  font-weight: 500;
}

.cookie-consent a:hover {
  color: white;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablettes */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }
  
  .grid3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid2 {
    grid-template-columns: 1fr;
  }
  
  .contactWrap {
    grid-template-columns: 1fr;
  }
  
  .heroTitle {
    font-size: 38px;
  }
}

/* Mobiles */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  
  .brand {
    justify-content: center;
    text-align: center;
    min-width: auto;
    gap: 16px;
  }
  
  .logoWrap {
    width: 64px;
    height: 64px;
  }
  
  .logoWrap img {
    width: 56px;
    height: 56px;
  }
  
  .brand h1 {
    font-size: 15px;
  }
  
  .brand span {
    font-size: 13px;
  }
  
  .menu {
    justify-content: center;
    margin: 12px 0;
    gap: 8px;
  }
  
  .menu a {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .btn {
    padding: 11px 18px;
    font-size: 13px;
    min-height: 42px;
  }
  
  .heroTitle {
    font-size: 32px;
  }
  
  .heroCard {
    padding: 30px;
  }
  
  .grid3 {
    grid-template-columns: 1fr;
  }
  
  .grid2, .grid3 {
    gap: 20px;
  }
  
  .card {
    padding: 24px;
  }
  
  .sectionHead {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .sectionHead h2 {
    font-size: 24px;
  }
}

/* Petits mobiles */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .heroTitle {
    font-size: 28px;
  }
  
  .heroText {
    font-size: 15px;
  }
  
  .btn {
    padding: 10px 16px;
    font-size: 12px;
    min-height: 40px;
  }
  
  .card {
    padding: 22px;
  }
  
  .footGrid {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .logoWrap {
    width: 60px;
    height: 60px;
  }
  
  .logoWrap img {
    width: 52px;
    height: 52px;
  }
  
  .brand h1 {
    font-size: 14px;
  }
  
  .brand span {
    font-size: 12px;
  }
}

/* Très petits écrans */
@media (max-width: 360px) {
  .heroTitle {
    font-size: 24px;
  }
  
  .heroCard {
    padding: 20px;
  }
  
  .menu a {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .btn {
    padding: 9px 14px;
    font-size: 12px;
  }
}

/* ========== ANIMATIONS SUPPLEMENTAIRES ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ========== UTILITIES ========== */
.text-gradient {
  background: linear-gradient(135deg, var(--navy), var(--sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-lift {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.shadow-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ========== LOADING STATES ========== */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ========== PRINT STYLES ========== */
@media print {
  header, footer, .cookie-consent, .btn {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}