/*
Theme Name: CO-ORDO One Page
Theme URI: https://co-ordo.com
Author: HYPERYSCO
Author URI: https://hyperysco.com
Description: Thème Co-ordo → Conçu et développé par HYPERYSCO
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: co-ordo
Tags: one-page, custom-header, custom-menu, featured-images, threaded-comments, translation-ready, dark-mode
*/

/* ===========================
   CSS RESET & BASE STYLES
   =========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-red-primary: #b91c1c;
  --color-red-dark: #991b1b;
  --color-red-light: rgb(248, 113, 113);
  --color-purple: #a855f7;
  --color-pink: #ec4899;
  --color-slate-900: #0f172a;
  --color-gray-900: #1f2937;
  --color-gray-600: #4b5563;
  --color-gray-300: #d1d5db;
  --color-white: #ffffff;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Courier New", Courier, monospace;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-white);
  overflow-x: hidden;
}

body.light-mode {
  color: var(--color-gray-900);
}

/* ===========================
   TYPOGRAPHY
   =========================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.75rem;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 3rem;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  line-height: 1.75;
}

/* ===========================
   UTILITYCLASSES
   =========================== */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 3rem;
  font-weight: 700;
}

.section-title .highlight {
  color: var(--color-red-light);
  background: linear-gradient(135deg, #ef4444 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: var(--color-white);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(220, 38, 38, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-red-primary);
  color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-red-primary);
  transform: scale(1.05);
}

/* ===========================
   ANIMATIONS
   =========================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes dropDown {
  0% {
    opacity: 0;
    transform: translateY(-80px) scale(0.8);
  }
  60% {
    transform: translateY(10px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  60% {
    transform: scale(1.08) rotate(8deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes scaleUp {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  60% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  50% {
    transform: translateY(-15px);
  }
  70% {
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbit {
  from {
    transform: rotate(0deg) translateX(100px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(100px) rotate(-360deg);
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Classe de base pour les éléments à animer au scroll */
.animate-on-scroll {
  opacity: 0;
  visibility: hidden;
}

/* Animations plus lentes et stylées avec différents effets */
.animate-fade-in-up {
  animation: fadeInUp 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-in-right {
  animation: slideInRight 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-drop-down {
  animation: dropDown 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-pop-in {
  animation: popIn 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.animate-scale-up {
  animation: scaleUp 1.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-bounce-in {
  animation: bounceIn 1.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Délais plus espacés pour effet plus dramatique */
.delay-200 {
  animation-delay: 0.3s;
}
.delay-400 {
  animation-delay: 0.6s;
}
.delay-600 {
  animation-delay: 0.9s;
}
.delay-800 {
  animation-delay: 1.2s;
}
.delay-1000 {
  animation-delay: 1.5s;
}
.delay-1200 {
  animation-delay: 1.8s;
}

/* Nouvelles animations stylées pour les sections Projets et Contact */
@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

@keyframes flipIn {
  from {
    opacity: 0;
    transform: perspective(1000px) rotateY(-90deg);
  }
  to {
    opacity: 1;
    transform: perspective(1000px) rotateY(0);
  }
}

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

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Classes d'animation pour les nouvelles animations */
.animate-rotate-in {
  animation: rotateIn 1.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.animate-flip-in {
  animation: flipIn 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-in-down {
  animation: slideInDown 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-zoom-in {
  animation: zoomIn 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-pulse-in {
  animation: pulseIn 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Délais supplémentaires pour les nouvelles animations */
.delay-300 {
  animation-delay: 0.45s;
}
.delay-700 {
  animation-delay: 1.05s;
}

/* ===========================
   HEADER / NAVIGATION
   =========================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #1e293b;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo à gauche avec texte CO-ORDO en majuscules */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo img,
.site-logo .logo-img {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.site-logo .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-white);
  text-transform: uppercase;
}

/* Navigation et actions à droite */
.nav-right {
  display: flex;
  align-items: center;
  gap: 3rem;
}

/* Navigation centrée sans points */
.main-navigation ul {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation li {
  list-style: none;
}

.main-navigation a {
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: var(--color-red-light);
}

.main-navigation a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-red-primary);
  transition: width 0.3s ease;
}

.main-navigation a:hover::after {
  width: 100%;
}

/* Actions header (theme toggle + bouton) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(180deg);
}

.header-actions .btn-primary {
  padding: 0.625rem 1.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}

/* Background media container - derrière tout */
.section-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.section-bg-video,
.section-bg-image {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.section-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Ajout des styles pour la vidéo de fond du hero - DEPRECATED, remplacé par section-bg-media */
.hero-video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Gradient overlays - au-dessus du background media */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 3;
}

/* Contenu hero - au-dessus de tout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
  z-index: 100;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-links span {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(31, 41, 55, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(168, 85, 247, 0.5);
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #ef4444 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-gray-300);
  max-width: 600px;
  line-height: 1.75;
}

.activities-card {
  background: rgba(31, 41, 55, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(75, 85, 99, 0.5);
  border-radius: 1rem;
  padding: 2rem;
}

.activities-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.activities-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-gray-300);
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red-primary);
  animation: pulse 2s ease-in-out infinite;
}

.team-avatars {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-white);
  transition: all 0.3s ease;
}

.avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.avatar.iz {
  background: #b91c1c;
}

.avatar.od {
  background: #991b1b;
}

.avatar.be {
  background: #374151;
}

/* Floating Elements */
.floating-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  pointer-events: none;
}

.floating-element.circle-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #ef4444 0%, #ec4899 100%);
  top: 10%;
  left: 5%;
  animation: float 6s ease-in-out infinite;
}

.floating-element.circle-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  bottom: 20%;
  right: 10%;
  animation: float 8s ease-in-out infinite reverse;
}

.floating-element.circle-3 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #dc2626 0%, #a855f7 100%);
  top: 50%;
  right: 20%;
  animation: orbit 12s linear infinite;
}

/* ===========================
   VIDEO INTRO SECTION
   =========================== */

.video-intro-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-intro-section .floating-element {
  display: none;
}

.video-intro-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.intro-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.video-intro-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.video-intro-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(15, 15, 35, 0.95) 0%,
    rgba(26, 11, 46, 0.95) 50%,
    rgba(127, 29, 29, 0.95) 100%
  );
  z-index: 1;
}

.placeholder-content {
  text-align: center;
  color: var(--color-white);
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin-top: 0.5rem;
}

.video-intro-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.video-intro-title {
  font-size: 5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation-delay: 0.2s;
}

.video-intro-subtitle {
  font-size: 1.5rem;
  color: var(--color-gray-300);
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  animation-delay: 0.4s;
}

.scroll-down-btn {
  animation-delay: 0.6s;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: var(--color-white);
  font-size: 2rem;
  opacity: 0.7;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(5px);
}

/* ===========================
   SERVICES SECTION
   =========================== */

.services-section {
  background: var(--color-white);
  color: var(--color-gray-900);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card {
  background: #f9fafb;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--color-red-primary);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.service-card h3 {
  color: var(--color-gray-900);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--color-gray-600);
  line-height: 1.75;
}

/* ===========================
   PROJECTS SECTION
   =========================== */

.projects-section {
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  z-index: 100;
}

.project-card {
  background: rgba(31, 41, 55, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(75, 85, 99, 0.5);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.3);
  border-color: rgba(220, 38, 38, 0.4);
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
}

.project-location {
  display: inline-block;
  background: var(--color-red-primary);
  color: var(--color-white);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.project-card h3 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.project-card p {
  color: var(--color-gray-300);
  font-size: 0.875rem;
}

.project-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-red-primary);
  animation: pulse 2s ease-in-out infinite;
}

.project-dot.top-left {
  top: 1rem;
  left: 1rem;
}

.project-dot.bottom-right {
  bottom: 1rem;
  right: 1rem;
}

/* ===========================
   TEAM SECTION
   =========================== */

.team-section {
  position: relative;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  z-index: 10;
}

.team-member {
  background: rgba(31, 41, 55, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(75, 85, 99, 0.5);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(220, 38, 38, 0.3);
  border-color: rgba(220, 38, 38, 0.4);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-white);
  margin: 0 auto 1.5rem;
}

.team-member h3 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.team-member p {
  color: var(--color-gray-300);
  font-size: 0.875rem;
}

/* ===========================
   CONTACT SECTION
   =========================== */

.contact-section {
  background: var(--color-slate-900);
  position: relative;
}

/* Ajout de la vidéo dans la section contact positionnée en absolu à gauche */
.contact-video-container {
  position: absolute;
  top: 5rem;
  left: 2rem;
  z-index: 5;
}

/* Réduction taille vidéo contact pour correspondre exactement au footer (180x180px) */
.contact-video {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 1rem;
  border: 2px solid rgba(75, 85, 99, 0.5);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.contact-video:hover {
  border-color: var(--color-red-primary);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  z-index: 10;
}

.contact-item {
  text-align: center;
  padding: 2rem;
  background: rgba(107, 114, 128, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(75, 85, 99, 0.3);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

body.light-mode .contact-item {
  background: rgba(229, 231, 235, 0.8);
  border-color: rgba(209, 213, 219, 0.5);
}

body.light-mode .contact-item h3 {
  color: var(--color-gray-900);
}

body.light-mode .contact-item p {
  color: var(--color-gray-900);
}

.contact-item:hover {
  transform: translateY(-5px);
  border-color: var(--color-red-primary);
}

.contact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  color: var(--color-red-primary);
  font-size: 2rem;
}

.contact-item h3 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.contact-item p {
  color: var(--color-gray-300);
}

.contact-item a {
  color: var(--color-red-light);
}

.contact-item a:hover {
  color: var(--color-red-primary);
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
  padding: 4rem 0 2rem;
  position: relative;
}

/* Vidéo gauche du footer */
.footer-video-container-left {
  position: absolute;
  top: 4rem;
  left: 2rem;
  z-index: 5;
}

/* Conteneur vidéo droite positionné en absolu */
.footer-video-container {
  position: absolute;
  top: 4rem;
  right: 2rem;
  z-index: 5;
}

.footer-video {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 1rem;
  border: 2px solid rgba(75, 85, 99, 0.5);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.footer-video:hover {
  border-color: var(--color-red-primary);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 10;
}

.footer-column h3 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 48px;
  width: auto;
}

.footer-tagline {
  color: var(--color-red-primary);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--color-gray-300);
  font-size: 0.875rem;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--color-gray-300);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-red-light);
  padding-left: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(75, 85, 99, 0.3);
  padding-top: 2rem;
  text-align: center;
}

.footer-copyright {
  color: var(--color-gray-300);
  font-size: 0.875rem;
}

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

@media (min-width: 768px) {
  h1 {
    font-size: 4.5rem;
  }

  h2 {
    font-size: 3.75rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

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

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

@media (min-width: 1024px) {
  h1 {
    font-size: 5rem;
  }

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

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

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

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

/* Amélioration complète du responsive mobile */
@media (max-width: 767px) {
  /* Header mobile */
  .header-container {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .site-logo img,
  .site-logo .logo-img {
    height: 40px;
  }

  .site-logo .logo-text {
    font-size: 1.125rem;
  }

  .main-navigation {
    display: none;
  }

  .nav-right {
    gap: 0.75rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .header-actions .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }

  /* Typography mobile */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  /* Sections mobile */
  .section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  /* Hero section mobile */
  .hero-section {
    min-height: 80vh;
    padding-top: 70px;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-grid {
    gap: 2rem;
  }

  .activities-card {
    padding: 1.5rem;
  }

  .team-avatars {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  /* Masquer les éléments flottants sur mobile */
  .floating-element {
    display: none;
  }

  /* Video intro mobile */
  .video-intro-section {
    min-height: 70vh;
  }

  .video-intro-title {
    font-size: 2.5rem;
  }

  .video-intro-subtitle {
    font-size: 1.125rem;
  }

  .video-intro-content {
    padding: 1rem;
  }

  /* Services mobile */
  .services-grid {
    gap: 1.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  /* Projects mobile */
  .projects-grid {
    gap: 1.5rem;
  }

  .project-content {
    padding: 1.25rem;
  }

  /* Team mobile */
  .team-grid {
    gap: 1.5rem;
  }

  .team-member {
    padding: 1.5rem;
  }

  .team-avatar {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
  }

  /* Contact section mobile */
  .contact-section {
    padding: 3rem 0;
  }

  /* Masquer la vidéo de contact sur mobile */
  .contact-video-container,
  .contact-video {
    display: none !important;
  }

  .contact-grid {
    gap: 1.5rem;
  }

  .contact-item {
    padding: 1.5rem;
  }

  .contact-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .contact-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }

  /* Footer mobile */
  .site-footer {
    padding: 3rem 0 2rem;
  }

  /* Masquer les vidéos du footer sur mobile */
  .footer-video-container,
  .footer-video-container-left,
  .footer-video {
    display: none !important;
  }

  .footer-grid {
    gap: 2rem;
  }

  .footer-logo img {
    height: 40px;
  }

  /* Devis page mobile */
  .devis-page {
    padding-top: 80px;
    padding-bottom: 2rem;
  }

  .devis-container {
    padding: 0 1rem;
  }

  .devis-header h1 {
    font-size: 2rem;
  }

  .devis-subtitle {
    font-size: 1rem;
  }

  .devis-form {
    padding: 1.5rem;
  }

  .form-row {
    gap: 1rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.75rem;
  }

  .submit-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Modal mobile */
  .devis-modal {
    padding: 0.5rem;
  }

  .devis-modal-content {
    padding: 1.5rem;
    max-height: 95vh;
  }

  .devis-modal-header h2 {
    font-size: 1.5rem;
  }

  .devis-modal-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }
}

/* Ajout de breakpoint intermédiaire pour tablettes */
@media (min-width: 480px) and (max-width: 767px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .video-intro-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .services-grid,
  .projects-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* Très petits écrans (< 375px) */
@media (max-width: 374px) {
  .header-container {
    padding: 0.5rem;
  }

  .site-logo img,
  .site-logo .logo-img {
    height: 32px;
  }

  .site-logo .logo-text {
    font-size: 1rem;
  }

  .header-actions .btn-primary {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .video-intro-title {
    font-size: 2rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }
}

/* ===========================
   WORDPRESS SPECIFIC
   =========================== */

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin-top: 0.5rem;
}

.sticky {
  /* Styles for sticky posts */
}

.bypostauthor {
  /* Styles for post author */
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ===========================
   PAGE DEVIS (QUOTE REQUEST)
   =========================== */

.devis-page {
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 4rem;
  position: relative;
}

.devis-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
  pointer-events: none;
}

.devis-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: var(--color-red-light);
  transform: translateX(-5px);
}

.devis-header {
  text-align: center;
  margin-bottom: 3rem;
}

.devis-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.devis-header .highlight {
  color: var(--color-red-light);
  background: linear-gradient(135deg, #ef4444 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.devis-subtitle {
  font-size: 1.125rem;
  color: var(--color-gray-300);
  line-height: 1.75;
}

.alert {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.devis-form {
  background: rgba(31, 41, 55, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(75, 85, 99, 0.5);
  border-radius: 1rem;
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 500;
}

.form-group label i {
  color: var(--color-red-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(75, 85, 99, 0.5);
  border-radius: 0.5rem;
  color: var(--color-white);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(209, 213, 219, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-red-primary);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--color-slate-900);
  color: var(--color-white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.submit-button {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: var(--color-white);
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(220, 38, 38, 0.4);
}

.submit-button:active {
  transform: translateY(0);
}

/* Responsive pour la page devis */
@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .devis-header h1 {
    font-size: 4rem;
  }
}

@media (max-width: 767px) {
  .devis-page {
    padding-top: 80px;
  }

  .devis-header h1 {
    font-size: 2rem;
  }

  .devis-subtitle {
    font-size: 1rem;
  }

  .devis-form {
    padding: 1.5rem;
  }
}

/* ===========================
   MODAL DEVIS
   =========================== */

.devis-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.devis-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.devis-modal-content {
  position: relative;
  background: rgba(31, 41, 55, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(75, 85, 99, 0.5);
  border-radius: 1rem;
  padding: 2.5rem;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10;
  animation: fadeInUp 0.3s ease-out;
}

body.light-mode .devis-modal-content {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(209, 213, 219, 0.5);
}

.devis-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

body.light-mode .devis-modal-close {
  color: var(--color-gray-900);
}

.devis-modal-close:hover {
  background: rgba(220, 38, 38, 0.2);
  transform: rotate(90deg);
}

.devis-modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.devis-modal-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

body.light-mode .devis-modal-header h2 {
  color: var(--color-gray-900);
}

.devis-modal-header p {
  color: var(--color-gray-300);
  font-size: 0.875rem;
}

body.light-mode .devis-modal-header p {
  color: var(--color-gray-600);
}

@media (max-width: 767px) {
  .devis-modal-content {
    padding: 1.5rem;
    max-height: 95vh;
  }

  .devis-modal-header h2 {
    font-size: 1.5rem;
  }
}

/* ===========================
   PULSE ANIMATION
   =========================== */

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
