/* ===============================
   1. VARIABLES & RESET
=================================*/
:root {
  --color-primary: #1d344c;
  --color-secondary: #d68300;
  --color-accent: #e45900;
  --color-bg-dark: #051a2e;
  --color-bg-light: #f5f5f5;
  --color-text-light: #ffffff;
  --color-text-dark: #333333;

  --font-main: 'Montserrat', sans-serif;
  --font-accent: 'Press Start 2P', cursive;

  --radius: 50px;
  --transition: all 0.3s ease;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text-light);
  background-color: var(--color-bg-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 2rem; text-transform: uppercase; letter-spacing: 1px; }
h3 { font-size: 1.5rem; }

p { font-size: 1.1rem; }

a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--color-secondary); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* ===============================
   2. COMPOSANTS GLOBAUX
=================================*/

/* Boutons CTA */
.cta-button {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  margin-top: 1.5rem;
  text-align: center;
}
.cta-button:hover {
  background-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--color-text-light);
}

/* Bannière de cookies */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.cookie-banner p { font-size: 0.9rem; }

.cookie-buttons { display: flex; gap: 1rem; }

.settings-btn, .accept-btn {
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-weight: 600;
  transition: var(--transition);
}

.settings-btn {
  background-color: transparent;
  border: 1px solid var(--color-text-light);
  color: var(--color-text-light);
}
.accept-btn {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
}

.settings-btn:hover, .accept-btn:hover { opacity: 0.8; }

/* Social Links réutilisables */
.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
.social-links--left { justify-content: flex-start; }

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  font-size: 1.5rem;
  transition: transform 0.2s, background-color 0.2s;
}
.social-link:hover {
  transform: scale(1.2);
  background-color: rgba(255,255,255,0.3);
}

/* ===============================
   3. SECTIONS
=================================*/

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: linear-gradient(rgba(5,26,46,0.7), rgba(5,26,46,0.7)),
              url('images/image.header.dark.jpg') center/cover no-repeat;
  padding: 2rem 11%; /* Pourcentage pour centrer plus ou moins les éléments du bandeau */
}

.hero-content { flex: 1; min-width: 300px; padding-left: 2rem; }
.hero-image { flex: 1; display: flex; justify-content: flex-end; align-items: center; }

.hero-image img { max-width: 300px; width: 100%; height: auto; }

.hero h1 { font-size: 3.5rem; color: var(--color-text-light); font-weight: 700; margin-bottom: 1.5rem; }
.hero h2.tagline { font-family: var(--font-accent); font-size: 1.2rem; color: var(--color-secondary); font-weight: 500; margin-bottom: 1.3rem; letter-spacing: 1px; text-align: left; }
.hero h3.subtitle { font-size: 1.5rem; color: #F9F9F9; font-weight: 400; margin-bottom: 0; }

.hero-social { margin: 1.5rem 0; display: flex; justify-content: flex-start; }
.hero-social .social-links { gap: 1.5rem; justify-content: flex-start; }
.hero-social .social-link { width: 50px; height: 50px; font-size: 1.6rem; }

/* PRESENTATION */
.presentation-content { background-color: var(--color-secondary); display: flex; min-height: 500px; max-height: 800px; height: auto; }
.image-container { flex: 8; overflow: hidden; }
.image-container img { width: 100%; height: 100%; object-fit: cover; }
.presentation-text-container { flex: 11; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 3rem; text-align: center; font-weight: bold; }
.text-inner { max-width: 800px; text-align: center; margin-bottom: 3rem; }
.presentation-text-container h2 { text-transform: none; }

/* AUDIO PRESENTATION */
.audio-presentation { padding: 5rem 0; background-color: var(--color-primary);/* var(--color-bg-dark); */ }

.audio-container {
  max-width: 2000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 4rem;
  display: flex;
  gap: 15rem;
  align-items: flex-start;
}

.audio-services-content { flex: 10; }
.problematic-text { margin-bottom: 3rem; text-align: center; font-weight: bold; }

.audio-embed-content { flex: 8; }
.audio-embed-content h2 { margin-bottom: 1.5rem; }

.services-container { text-align: center; margin-top: 5rem; }
.services-container h2 { margin-bottom: 2rem; }
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.service-item { flex: 1 1 30%; min-width: 180px; padding: 1rem; text-align: center; }
.service-icon i { font-size: 2rem; color: var(--color-secondary); margin-bottom: 0.5rem; }
.service-item h2, .service-item h3 { font-size: 1.1rem; margin-top: 0.5rem; }
/* .service-item h3 {color: var(--color-secondary);} */


/* VIDEO PORTFOLIO */
.video-section { padding: 3rem 0; background-color: var(--color-secondary); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 100%; padding: 0 2rem; }
.video-item { text-align: center; }
.video-item iframe { width: 100%; aspect-ratio: 16/9; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

/* FOOTER */
.footer {
  min-height: 250px;
  background-color: var(--color-bg-dark);
  text-align: center;
  padding: 4rem 0 2rem;
}

.footer .container { display: flex; flex-direction: column; justify-content: space-between; align-items: center; height: 100%; }
.footer-text { width: 100%; }
.footer h2 { font-size: 3rem; margin-bottom: 1.5rem; }
.footer p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2rem; }
.footer-social { width: 100%; margin-top: 3rem; }
.footer-social .social-links { justify-content: center; gap: 1rem; }
.footer-social .social-link { width: 40px; height: 40px; }
.footer-social .social-link i { font-size: 1.2rem; }
.footer-social .social-link:hover { transform: translateY(-3px); background-color: var(--color-primary); }

/* ===============================
   4. MEDIA QUERIES
=================================*/

/* Grands écrans */
@media (max-width: 1200px) {
  .container { max-width: 1140px; padding: 0 2rem; }
  h1 { font-size: 3rem; } 
  h2 { font-size: 2.2rem; }
  .video-grid { grid-template-columns: repeat(, 1fr); gap: 2rem; }
}

/* Tablettes / petits laptops */
@media (max-width: 992px) {
  h1 { font-size: 2.5rem; } 
  h2 { font-size: 2rem; }
    .video-grid {grid-template-columns: repeat(2, 1fr);}
}

/* Tablettes portrait / mobiles larges */
@media (max-width: 768px) {
  /* Section problème / solution */
  .problem-solution-content { flex-direction: column; height: auto; }

  /* Section Présentation */
  .presentation-content {
    flex-direction: column; /* empile image + texte */
    max-height: none;       /* supprime la limite de hauteur */
    min-height: auto;
  }
  .image-container,
  .presentation-text-container {
    flex: none;             /* prend toute la largeur */
    width: 100%;
    height: auto;
  }
  .presentation-text-container {
    padding: 2rem 1rem;     /* ajuste le padding sur mobile */
  }
  .text-inner { max-width: 100%; margin-bottom: 2rem; }

  /* Section Audio */
  .audio-container { flex-direction: column; gap: 3rem; padding: 0 1.5rem; }
  .audio-services-content, .audio-embed-content { flex: none; max-width: 100%; }
  .services-grid { flex-direction: column; gap: 10px; }
}

  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }

  .cookie-buttons {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .cookie-buttons a,
  .cookie-buttons button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

/* Mobiles */
@media (max-width: 576px) {
  .hero-content { 
    padding-left: 0; 
    text-align: center; 
  }
  .hero h1 { font-size: 2rem; }
  .hero h2.tagline { font-size: 1rem; text-align: center; }
  .hero h3.subtitle { font-size: 1.2rem; }

  /* Centrer les icônes sociales sur mobile */
  .hero-social {
    display: flex;
    justify-content: center; /* centrer le conteneur des liens */
    margin: 1rem 0;
  }
  .hero-social .social-links {
    display: flex;
    justify-content: center; /* centrer les icônes elles-mêmes */
    gap: 1.5rem;
  }
   .video-grid {grid-template-columns: 1fr;}
     .video-item h3 {font-size: 1.2rem;}
    .video-item iframe {aspect-ratio: 16/9;}
	
	.cookie-banner p {
    font-size: 0.8rem;
  }
}
