/* ==========================================================================
   1. REINITIALISATION & VARIABLES GLOBALES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #ff6b00;       /* Orange dynamique / Sport / Drone */
  --secondary: #0066ff;     /* Bleu technique / Numérique / Industrie */
  --accent: #00d2ff;        /* Cyan high-tech */
  --bg-light: #f8fafc;      /* Fond très lumineux et propre */
  --bg-surface: rgba(255, 255, 255, 0.75); /* Blanc semi-transparent Liquid Glass */
  --text-main: #0f172a;     /* Texte sombre ultra lisible */
  --text-muted: #475569;    /* Texte secondaire */
  --border-color: rgba(255, 255, 255, 0.6);
  --legal-text-color: #16a34a; /* Vert pour les mentions légales */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Défilement fluide global sur toute la page */
html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==========================================================================
   2. EN-TÊTE / HERO SECTION
   ========================================================================== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  position: relative;
  max-width: 850px;
  z-index: 1;
}

.main-logo {
  max-width: 170px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.hero h1 {
  font-size: 3.5rem;
  letter-spacing: 3px;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #0f172a 30%, var(--primary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 1.15rem;
  color: var(--primary);
  letter-spacing: 2px;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-social {
  padding: 0.9rem 2rem;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 107, 0, 0.5);
}

.btn-social {
  background-color: #ffffff;
  color: var(--text-main);
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.btn-social:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-3px);
}

/* ==========================================================================
   3. SECTION PORTFOLIO & GRILLES DE PROJETS (Liquid Glass)
   ========================================================================== */
.portfolio {
  padding: 6rem 1.5rem;
  max-width: 1250px;
  margin: 0 auto;
}

.portfolio h2, .contact-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-main);
  margin-top: 25px; 
  margin-bottom: 3.5rem;
  letter-spacing: 1px;
  font-weight: 800;
}

.portfolio .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.portfolio .card.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: var(--transition-smooth);
}

.portfolio .card.video-container:hover {
  transform: translateY(-8px) scale(1.01);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 25px 50px rgba(0, 102, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 102, 255, 0.4);
}

.portfolio .card.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- ANIMATIONS AU DÉFILEMENT (SCROLL REVEAL) --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* BOUTON ANIMÉ INTERACTIF */
.portfolio-more-container {
  text-align: center;
  margin-top: 4rem;
}

.btn-more-projects {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.2rem 2.8rem;
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--secondary);
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  border-radius: 50px;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, color 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.12);
}

.btn-more-projects .arrow-icon {
  display: inline-block;
  transition: transform 0.3s ease;
  color: var(--secondary);
}

.btn-more-projects:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 102, 255, 0.25);
  color: #ffffff;
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.btn-more-projects:hover .arrow-icon {
  transform: translateX(6px);
  color: #ffffff;
}

/* ==========================================================================
   4. SECTION À PROPOS / ORIGINE DU PROJET
   ========================================================================== */
.about-section {
  padding: 4rem 1.5rem;
  max-width: 1250px;
  margin: 0 auto;
}

.about-container {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 3.5rem;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.about-header {
  text-align: center;
  margin-bottom: 3rem;
}

.about-header h2 {
  font-size: 2.3rem;
  color: var(--text-main);
  font-weight: 800;
  margin-top: 0.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.photo-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
}

.photo-card:hover {
  transform: translateY(-5px);
}

.photo-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.photo-caption {
  display: block;
  padding: 0.6rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #f8fafc;
}

/* ==========================================================================
   4.1 SECTION CHAMP D'ACTION / CARTE
   ========================================================================== */
.zone-section {
  padding: 2rem 1.5rem 6rem 1.5rem;
  max-width: 1250px;
  margin: 0 auto;
}

.zone-container {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 3.5rem;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.zone-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.zone-header h2 {
  font-size: 2.3rem;
  color: var(--text-main);
  font-weight: 800;
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
}

.zone-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.map-card {
  position: relative;
  width: 100%;
  height: 680px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: saturate(0.85) contrast(1.05);
}

.map-overlay-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.7rem 1.2rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   5. STYLES SPÉCIFIQUES PAGE PORTFOLIO (portfolio.html)
   ========================================================================== */
.portfolio-page {
  max-width: 1250px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.portfolio-header {
  text-align: center;
  margin-bottom: 4rem;
}

.portfolio-header h1 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #0f172a 30%, var(--primary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portfolio-header p {
  color: var(--text-muted);
  font-size: 1.15rem;
}

.section-title {
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 2rem;
  font-weight: 800;
  display: inline-block;
  border-bottom: 3px solid var(--secondary);
  padding-bottom: 0.4rem;
}

.portfolio-section {
  margin-bottom: 5rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 25px 50px rgba(0, 102, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 102, 255, 0.4);
}

.media-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  overflow: hidden;
}

.media-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.img-preview-bg {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-preview-bg img {
  max-height: 130px;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.project-card:hover .img-preview-bg img {
  transform: scale(1.05);
}

.project-info {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-tag {
  align-self: flex-start;
  background: rgba(0, 102, 255, 0.08);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.35rem;
  color: var(--text-main);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.project-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.insta-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.insta-link-btn:hover {
  transform: translateX(4px);
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.back-link:hover {
  transform: translateX(-4px);
}

/* ==========================================================================
   6. STYLES SPÉCIFIQUES PAGE MENTIONS LÉGALES (mentions-legales.html)
   ========================================================================== */
.legal-page { 
  max-width: 1000px; 
  margin: 0 auto; 
  padding: 4rem 1.5rem; 
}

.legal-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.legal-header h1 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #0f172a 30%, var(--primary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.legal-card {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: var(--transition-smooth);
}

.legal-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 102, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.08);
}

.legal-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.legal-card h2 {
  color: var(--text-main) !important;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.legal-card p, 
.legal-card li,
.legal-card {
  color: var(--legal-text-color) !important; 
  font-size: 1rem;
  line-height: 1.7;
}

.legal-list {
  list-style: none;
  padding-left: 0;
  margin-top: 0.8rem;
}

.legal-list li {
  padding: 0.3rem 0;
}

/* ==========================================================================
   7. SECTION CONTACT & FORMULAIRE
   ========================================================================== */
.contact-section {
  padding: 6rem 1.5rem;
  max-width: 750px;
  margin: 0 auto;
}

.contact-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  background-color: rgba(248, 250, 252, 0.8);
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 1rem;
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 102, 255, 0.45);
}

/* ==========================================================================
   8. FOOTER & SCROLLBAR
   ========================================================================== */
footer {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  color: var(--text-muted);
  font-size: 0.9rem;
  background-color: #ffffff;
}

.footer-links {
  margin-top: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--secondary);
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-container, .zone-container {
    padding: 2rem;
  }
  .map-card {
    height: 300px;
  }
}

/* Barre de défilement liquide */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 102, 255, 0.25);
  border-radius: 5px;
  border: 2px solid #f1f5f9;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 102, 255, 0.5);
}

/* ==========================================================================
    CONTENEUR CÔTE À CÔTE (Flexbox / Grid)
   ========================================================================== */
.side-by-side-container {
  display: flex;
  gap: 2.5rem;
  max-width: 1250px;
  margin: 0 auto 4rem auto;
  padding: 0 1.5rem;
}

/* Chaque bloc prend une largeur égale et s'adapte en Liquid Glass */
.side-by-side-container > div,
.side-by-side-container > section {
  flex: 1;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: var(--transition-smooth);
}

.side-by-side-container > div:hover,
.side-by-side-container > section:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 102, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 102, 255, 0.3);
}

/* Adaptation automatique sur les écrans mobiles / tablettes */
@media (max-width: 900px) {
  .side-by-side-container {
    flex-direction: column;
  }
}