/*
 * Styles CSS basés sur le design de l'image png
 * Style élégant et professionnel pour site pétrolier/gazier
 * THE FIRST CIRCLE - Services Pétroliers
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

/* Variables de thème basées sur l'image - COULEUR BLEU SPÉCIFIQUE #1b69d0 */
:root {
  /* Couleurs principales - Bleu spécifique #1b69d0 */
  --primary-dark: #1552b4;
  --primary: #1b69d0;
  --primary-light: #2a7ae2;
  --accent: #ff9e00; /* Changé en doré #ff9e00 */
  --accent-dark: #e68e00;
  --accent-light: #ffaa1a;
  --background: #1b69d0;
  --background-alt: #1552b4;
  --text-dark: #ffffff;
  --text: #ffffff;
  --text-light: #ffffff;
  --border: #3a7de0;
  --shadow: rgba(0, 0, 0, 0.4);
  
  /* Polices sophistiquées */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
  
  /* Espacements */
  --section-padding: 6rem 0;
  --container-max-width: 1200px;
  --border-radius: 8px;
}

/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  min-height: 100vh;
}

/* HEADER ET LOGO - STYLES CORRIGÉS */
header {
  background: var(--primary-dark) !important;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3) !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  transition: all 0.3s ease !important;
  padding: 0.5rem 0 !important;
  width: 100% !important;
}
footer {
  background: var(--primary-dark);
  color: var(--text-light);
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

footer p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
}
nav {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0 1.5rem !important;
  max-width: var(--container-max-width) !important;
  margin: 0 auto !important;
  width: 100% !important;
}

/* Styles spécifiques pour le logo */
.logo {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  text-decoration: none !important;
}

.logo-img, .header-logo {
  height: 55px !important; /* Taille augmentée pour meilleure visibilité */
  width: auto !important;
  object-fit: contain !important;
  transition: all 0.3s ease !important;
}

.logo h1 {
  font-size: 1.4rem !important; /* Taille de police augmentée */
  margin: 0 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-family: var(--font-heading) !important;
  line-height: 1.2 !important;
}

/* Navigation */
.nav-links {
  display: flex !important;
  list-style: none !important;
  gap: 2rem !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-links a {
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  padding: 0.5rem 0 !important;
  font-size: 1rem !important;
  font-family: var(--font-body) !important;
}

.nav-links a::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 0 !important;
  height: 2px !important;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%) !important;
  transition: width 0.3s ease !important;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100% !important;
}

/* Bouton de changement de langue */
.lang-switcher {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin-left: 1.5rem !important;
}

.lang-btn {
  background: transparent !important;
  border: 1px solid var(--accent) !important;
  color: var(--accent) !important;
  padding: 0.4rem 1rem !important;
  border-radius: 4px !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  font-family: var(--font-body) !important;
}

.lang-btn:hover {
  background: var(--accent) !important;
  color: var(--primary-dark) !important;
}

/* Conteneur principal - Adapté aux classes Tailwind */
.container {
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.sm\\:px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.lg\\:px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Typographie élégante - TOUS LES TEXTES EN BLANC */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #ffffff !important;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.text-4xl, .text-5xl {
  font-size: 2.25rem !important;
  font-weight: 800;
  color: #ffffff !important;
}

.text-3xl {
  font-size: 1.875rem !important;
  font-weight: 700;
  color: #ffffff !important;
}

.text-2xl {
  font-size: 1.5rem !important;
  font-weight: 600;
  color: #ffffff !important;
}

.text-xl {
  font-size: 1.25rem !important;
  color: #ffffff !important;
}

.text-lg {
  font-size: 1.125rem !important;
  color: #ffffff !important;
}

/* Classes de poids de police */
.font-extrabold { font-weight: 800 !important; }
.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.font-medium { font-weight: 500 !important; }

/* Classes de texte */
.text-center { text-align: center !important; }
.text-white { color: #ffffff !important; }

/* Sections avec padding */
.py-16, .py-20 {
  padding: 4rem 0 !important;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.py-12 {
  padding: 3rem 0 !important;
}

/* Hero Section - Adaptée aux classes Tailwind */
.bg-gray-100 {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%) !important;
  padding-top: 6rem !important; /* Compensation pour le header fixe */
}

/* Sections de contenu */
.bg-gray-50 {
  background: var(--background-alt) !important;
}

.bg-white {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}

.bg-blue-50 {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}

.bg-blue-800 {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%) !important;
}

/* Cartes et ombres */
.rounded-lg {
  border-radius: var(--border-radius) !important;
}

.shadow-lg, .shadow-xl {
  box-shadow: 0 10px 30px var(--shadow) !important;
}

.hover\\:shadow-xl:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

/* Grilles - Adaptées aux classes Tailwind */
.grid {
  display: grid !important;
  gap: 2rem;
}

.grid-cols-1 {
  grid-template-columns: 1fr !important;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr) !important;
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr) !important;
}

.gap-6 { gap: 1.5rem !important; }
.gap-8 { gap: 2rem !important; }

/* Flexbox */
.md\\:flex { display: flex !important; }
.flex { display: flex !important; } /* Ajouté pour support flex général */
.flex-wrap { flex-wrap: wrap !important; }
.items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.justify-end { justify-content: flex-end !important; }

/* Espacements flex */
.md\\:space-x-12 > * + * {
  margin-left: 3rem !important;
}

.md\\:w-1\\/2 { width: 50% !important; }
.md\\:w-1\\/3 { width: 33.333% !important; }
.md\\:w-2\\/3 { width: 66.667% !important; }

/* Classes de largeur spécifiques pour la section équipe */
.w-full { width: 100% !important; }
.w-1\\/4 { width: 25% !important; }
.w-1\\/2 { width: 50% !important; }
.sm\\:w-1\\/2 { width: 50% !important; }
.lg\\:w-1\\/4 { width: 25% !important; }

/* Marges */
.mb-4 { margin-bottom: 1rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.mb-10 { margin-bottom: 2.5rem !important; }
.mb-12 { margin-bottom: 3rem !important; }

.mt-4 { margin-top: 1rem !important; }
.mt-8 { margin-top: 2rem !important; }
.mt-12 { margin-top: 3rem !important; }
.mt-16 { margin-top: 4rem !important; }

/* Padding */
.p-4 { padding: 1rem !important; }
.p-6 { padding: 1.5rem !important; }
.p-8 { padding: 2rem !important; }
.p-10 { padding: 2.5rem !important; }

/* Images */
.object-cover { object-fit: cover !important; }
.w-full { width: 100% !important; }
.h-96 { height: 24rem !important; }

/* Listes */
.list-disc { list-style-type: disc !important; }
.list-inside { list-style-position: inside !important; }

.space-y-2 > * + * {
  margin-top: 0.5rem !important;
}

/* Boutons DORÉ #ff9e00 - Adaptés aux classes Tailwind */
.inline-flex {
  display: inline-flex !important;
}

.bg-blue-600 {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--border-radius) !important;
  transition: all 0.4s ease !important;
  box-shadow: 0 8px 25px rgba(255, 158, 0, 0.4) !important;
}

.bg-blue-600:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 35px rgba(255, 158, 0, 0.5) !important;
}

/* Bouton blanc pour CTA */
.bg-white.text-blue-800 {
  background: #ffffff !important;
  color: var(--primary) !important;
}

.bg-white.text-blue-800:hover {
  background: #f8f9fa !important;
  color: var(--primary-dark) !important;
}

/* Liens */
.text-blue-600 {
  color: var(--accent) !important;
}

.text-blue-600:hover {
  color: var(--accent-light) !important;
}

.text-blue-800 {
  color: #ffffff !important;
}

/* Alertes */
.bg-green-100 {
  background-color: rgba(220, 252, 231, 0.9) !important;
  border-color: rgba(74, 222, 128, 0.5) !important;
  color: #166534 !important;
}

/* Formulaires */
.border-gray-300 {
  border-color: var(--border) !important;
}

.border-gray-300:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(255, 158, 0, 0.15) !important;
}

/* Texte gris - conversion en blanc avec opacité */
.text-gray-600, .text-gray-700, .text-gray-900 {
  color: rgba(255, 255, 255, 0.9) !important;
}

.text-gray-900 {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Classes responsive */

/* Styles spécifiques pour RTL (Right-to-Left) */
.rtl-text {
  text-align: right !important;
}

.rtl-layout .md\:space-x-12 > * + * {
  margin-left: 0 !important;
  margin-right: 3rem !important;
}

.rtl-layout .md\:flex-row-reverse {
  flex-direction: row-reverse !important;
}

.rtl-layout .ml-1 {
  margin-left: 0 !important;
  margin-right: 0.25rem !important;
}

.rtl-layout .mr-2 {
  margin-right: 0 !important;
  margin-left: 0.5rem !important;
}

.rtl-layout .text-left {
  text-align: right !important;
}

.rtl-layout .text-right {
  text-align: left !important;
}

.rtl-layout .text-center {
  text-align: center !important;
}

/* Fin des styles RTL */

/* STYLES AJOUTÉS POUR LA SECTION ÉQUIPE HORIZONTALE */
.team-container {
  display: flex !important;
  flex-wrap: nowrap !important; /* Empêche le retour à la ligne */
  overflow-x: auto !important; /* Permet le défilement horizontal si nécessaire */
  gap: 2rem !important;
  padding: 1rem 0 !important;
  justify-content: center !important;
  align-items: flex-start !important;
}

.team-member {
  flex: 0 0 auto !important; /* Empêche les éléments de se redimensionner */
  width: 250px !important; /* Largeur fixe pour chaque membre */
  text-align: center !important;
  padding: 1.5rem !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius) !important;
  border: 1px solid var(--border);
  transition: all 0.3s ease !important;
}

.team-member:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

@media (min-width: 768px) {
  .md\\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .md\\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .md\\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  
  .md\\:mb-0 {
    margin-bottom: 0 !important;
  }
  
  .md\\:pl-8 {
    padding-left: 2rem !important;
  }
  
  .md\\:pr-8 {
    padding-right: 2rem !important;
  }
  
  /* Pour la section équipe sur desktop */
  .team-container {
    overflow-x: visible !important; /* Désactive le défilement horizontal sur desktop */
    flex-wrap: wrap !important; /* Permet le retour à la ligne si nécessaire */
    justify-content: center !important;
  }
  
  .team-member {
    width: 280px !important; /* Largeur légèrement plus grande sur desktop */
  }
}

@media (max-width: 767px) {
  .text-4xl, .text-5xl {
    font-size: 1.875rem !important;
  }
  
  .text-3xl {
    font-size: 1.5rem !important;
  }
  
  .py-16, .py-20 {
    padding: 2rem 0 !important;
  }
  
  /* Header responsive */
  nav {
    flex-direction: column !important;
    padding: 1rem !important;
  }
  
  .logo {
    margin-bottom: 1rem !important;
  }
  
  .logo-img, .header-logo {
    height: 35px !important;
  }
  
  .logo h1 {
    font-size: 1.2rem !important;
  }
  
  .nav-links {
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
  }
  
  .lang-switcher {
    margin-left: 0 !important;
    margin-top: 1rem !important;
  }
  
  /* Pour la section équipe sur mobile */
  .team-container {
    padding-bottom: 1rem !important;
    justify-content: flex-start !important; /* Alignement à gauche pour mobile */
  }
  
  .team-member {
    width: 220px !important; /* Largeur réduite pour mobile */
  }
}

/* Styles spécifiques pour les pages */

/* Page Carrières */
.careers-section .bg-blue-50 {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(10px);
}

/* Page About */
.stats-section .bg-blue-800 {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%) !important;
}

/* Page Contact */
.max-w-3xl {
  max-width: 48rem !important;
}

/* Transitions */
.transition {
  transition: all 0.3s ease !important;
}

.duration-300 {
  transition-duration: 300ms !important;
}

/* Focus states */
.focus\\:ring-blue-500:focus {
  ring-color: var(--accent) !important;
}

.focus\\:border-blue-500:focus {
  border-color: var(--accent) !important;
}