
:root {
  --primary-red: #dc2626;
  --primary-red-hover: #b91c1c;
  --primary-red-light: #ef4444;
  --secondary-red: #7f1d1d;
  
  --dark-primary: #0f0f0f;
  --dark-secondary: #1a1a1a;
  --dark-tertiary: #262626;
  --dark-surface: #171717;
  
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  
  --white: #ffffff;
  --black: #000000;
  
  --font-primary: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Poppins', 'Inter', sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--dark-primary);
  color: var(--gray-100);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--white), var(--gray-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--gray-100);
}

p {
  margin-bottom: 1rem;
  color: var(--gray-300);
  font-size: 1.1rem;
  white-space: pre-line;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--dark-tertiary);
  transition: var(--transition);
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.topnav a {
  color: var(--gray-300);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.topnav a:hover {
  color: var(--white);
  background: var(--dark-tertiary);
  transform: translateY(-2px);
}

.topnav a.active {
  color: var(--primary-red);
  background: rgba(220, 38, 38, 0.1);
}

.topnav a.app {
  background: linear-gradient(135deg, var(--primary-red), var(--primary-red-light));
  color: var(--white);
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.topnav a.app:hover {
  background: linear-gradient(135deg, var(--primary-red-hover), var(--primary-red));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.dropdown {
  position: relative;
}

.dropbtn {
  background: none;
  border: none;
  color: var(--gray-300);
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropbtn:hover {
  color: var(--white);
  background: var(--dark-tertiary);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark-secondary);
  min-width: 200px;
  border: 1px solid var(--dark-tertiary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  margin: 0.25rem;
}

.icon {
  display: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .topnav {
    flex-direction: column;
    align-items: flex-start;
  }
  .presentation-content {
    grid-template-columns: 1fr !important;
  }
  .topnav a:not(.icon), .dropdown {
    display: none;
  }
  .topnav .icon {
      float: right;
      right: 0;
      position: absolute;
  }
  .topnav {
      min-height: 80px;
  }

  .topnav.responsive a:not(.icon), .topnav.responsive .dropdown {
    display: block;
    width: 100%;
  }

  .dropbtn {
    min-width: 100%;
    display: block;
    position: relative;
    text-align: left;
  }

  .dropdown-content {
    position: relative;
    display: none;
    transition: all 0.3s ease;
  }
  .dropdown:hover .dropdown-content {
    display: block;
    position: relative;

    background: var(--dark-secondary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
  }
  .icon {
    display: block;
    position: absolute;
    right: 2rem;
    top: 1rem;
  }
  .logo-footer {
    max-width: 100px !important;
    height: auto;
  }
}

section {
  margin-top: 80px;
}

.banniere {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background: 
    radial-gradient(circle at 50% 50%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, var(--dark-primary) 0%, var(--dark-secondary) 100%);
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.banniere::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23dc2626' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
}

.banniere img {
  max-width: 120px;
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.banniere p {
  font-size: 1.25rem;
  color: var(--gray-400);
  margin-bottom: 3rem;
  max-width: 600px;
}

.btn {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

button, .demo {
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--border-radius-lg);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  position: relative;
  overflow: hidden;
}

.buttongauche {
  background: var(--dark-tertiary);
  color: var(--white);
  border: 2px solid var(--gray-600);
}

.buttongauche:hover {
  background: var(--gray-700);
  border-color: var(--gray-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.buttondroite, .demo {
  background: linear-gradient(135deg, var(--primary-red), var(--primary-red-light));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.buttondroite:hover, .demo:hover {
  background: linear-gradient(135deg, var(--primary-red-hover), var(--primary-red));
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.flammebb, .flammeg {
  height: 60px;
  background: linear-gradient(45deg, var(--primary-red), var(--primary-red-light));
  position: relative;
  overflow: hidden;
}

.flammebb::before, .flammeg::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.bloc-information, .bloc-information2 {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gauche, .droite {
  width: 100%;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .bloc-information, .bloc-information2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  .bloc-information2 {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  .gauche, .droite {
    margin-bottom: 0;
  }

  .bloc-information > .gauche {
    grid-column: 1;
    text-align: left;
  }
  .bloc-information > .droite {
    grid-column: 2;
    text-align: right;
  }
  .bloc-information2 > .gauche {
    grid-column: 1;
    text-align: left;
  }
  .bloc-information2 > .droite {
    grid-column: 2;
    text-align: right;
  }
  .bloc-information2 > .content:not(.gauche):not(.droite), .full-width {
    grid-column: 1 / span 2 !important;
    width: 100%;
  }
    .full-width {
    display: block;
  }
}

.content {
  padding: 2rem;
}

.content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.rouge {
  color: var(--primary-red);
  font-weight: 700;
}

.bigimg {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
}

.bigimg:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.bloc-rouge {
  background: linear-gradient(135deg, var(--primary-red), var(--primary-red-light));
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bloc-rouge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.bloc-rouge > * {
  position: relative;
  z-index: 1;
}

.bloc-rouge h2 {
  color: var(--white);
  margin-bottom: 2rem;
}

.bloc-rouge p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

.enavant {
  font-size: 1.5rem;
  color: var(--white);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pfactu {
  background: var(--dark-secondary);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--dark-tertiary);
  margin-bottom: 2rem;
}

.pfactu:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-red);
}

.pfactu a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.pfactu img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}


.pfactu .content {
  padding: 1.5rem;
}

.pfactu h6 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.pfactu p {
  color: var(--gray-400);
  font-size: 0.95rem;
  line-height: 1.5;
}

footer {
  background: var(--dark-secondary);
  border-top: 1px solid var(--dark-tertiary);
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
}

.bloc-footer {
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  .bloc-footer {
    margin-bottom: 0;
  }
}

.titre-footer {
  color: var(--primary-red);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

footer a {
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: var(--primary-red);
}

.lienbleu:hover { color: #3b82f6 !important; }
.lieninsta:hover { color: #e1306c !important; }
.lientwitter:hover { color: #1da1f2 !important; }
.lienyt:hover { color: #ff0000 !important; }

.barre {
  height: 1px;
  background: var(--dark-tertiary);
  margin: 2rem 0;
}

.copy {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.center {
  text-align: center;
}

.cl {
  clear: both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bloc-information,.bloc-information2, .pfactu, .bloc-rouge {
  animation: fadeInUp 0.8s ease-out;
}

@media (max-width: 768px) {
  .btn {
    flex-direction: column;
    align-items: center;
  }
  
  button, .demo {
    width: 100%;
    max-width: 300px;
  }
  
  .banniere {
    padding: 2rem 1rem;
  }

  .bloc-information,.bloc-information2, .bloc-rouge {
    padding: 3rem 1rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--dark-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-red);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-red-hover);
}

input, select, textarea {
  border: 1px solid var(--dark-tertiary);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  background: var(--dark-surface);
  color: var(--gray-200);
  font-size: 1rem;
  width: 100%;
  transition: var(--transition);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-600);
  font-family: var(--font-primary);
}
body:has(form[action*="./contact.php"]) .bloc-information,
body:has(form[action*="./postuler-v.php"]) .bloc-information {
    display: block !important;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
  outline: none;
}

input[type="submit"] {
  background: var(--primary-red);
  color: var(--white);
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
  background: var(--primary-red-hover);
}

#customers2 {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--dark-secondary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  font-size: 1.05rem;
}

#customers2 td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--dark-tertiary);
  color: var(--gray-200);
  vertical-align: top;
}

#customers2 tr:last-child td {
  border-bottom: none;
}

#customers2 .tred2 {
  color: var(--primary-red);
  font-weight: 600;
  background: rgba(220, 38, 38, 0.07);
  border-right: 2px solid var(--primary-red);
}

@media (max-width: 600px) {
  #customers2 td {
    padding: 0.75rem 0.5rem;
    font-size: 0.98rem;
  }
}
.bloc-information.presentation {
  display: block !important;
}
.presentation-content {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
}
.image-carousel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.image-carousel img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

@media (max-width: 500px) {

}