/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variables thème clair/sombre */
:root {
  --bg: #222222;
  --text: white;
  --accent: #0b3d91;
  --header-bg: rgba(0,0,0,0.5);
  --header-text: rgb(255, 255, 255);
}

/* Body */
body {
  font-family: "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Header */
header {
  background-color: var(--header-bg);
  color: var(--header-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  flex-wrap: wrap;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

header h1 {
  font-family: 'Pacifico', cursive;
  font-size: 1.8em;
}

header h1 a {
  color: var(--header-text);
  text-decoration: none;
}

header h1 a:hover {
  color: var(--accent);
}

nav {
  display: flex;
  flex-wrap: wrap;
}

nav a {
  color: var(--header-text);
  margin: 0 1em;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent);
}

/* Vidéo en fond */
#bg-video {
  position: fixed;   /* reste derrière tout */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* texte lisible */
}

/* Contenu au-dessus de la vidéo */
body, section, footer {
  position: relative;
  z-index: 1;
}

/* Section entreprise */
#entreprise {
  padding: 6em 2em 4em 2em; /* padding top to avoid fixed header overlap */
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: white;
}

#entreprise h2 {
  font-size: 2.5em;
  margin-bottom: 1em;
  border-bottom: 5px solid var(--accent);
  display: inline-block;
  padding-bottom: 0.3em;
  color: var(--accent);
}

/* Galerie cartes entreprises */
.card-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 3em;
}

.card {
  position: relative;
  width: 380px;    /* agrandi */
  height: 250px;   /* agrandi */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.1);
}

.card-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1em;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  text-align: center;
}

.card-text h3 {
  margin-bottom: 0.5em;
}

.explore-btn {
  background-color: var(--accent);
  color: white;
  padding: 0.5em 1em;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.explore-btn:hover {
  background-color: #327eff;
}

/* Identité + carte */
.entreprise-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2em;
  margin-top: 2em;
  text-align: left;
  color: white;
}

.identite {
  flex: 1;
  min-width: 250px;
  font-size: 1.2em;
  padding: 20px;
  border: 2px solid rgb(45, 44, 112);
  border-radius: 8px;
  background: #1e1e1e;
}

.identite h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--accent);
}

.identite p {
  margin: 8px 0;
}
/* Retour bouton */
.back-button-container {
  text-align: center;
  margin-bottom: 4rem;
}

.back-button {
  display: inline-block;
  padding: 0.7em 1.5em;
  background-color: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 40px;
  box-shadow: 0 5px 15px rgba(11, 61, 145, 0.6);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.back-button:hover {
  background-color: #06407b;
  box-shadow: 0 8px 25px rgba(11, 61, 145, 0.9);
}

/* Footer */
footer {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 2em 1em;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid var(--accent);
}


/* Responsive pour petit écran */
@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5em;
  }

  .footer-section {
    min-width: auto;
  }
}

