:root {
    --bg: #0f172a;
    --card: #1e293b;
    --text: #e2e8f0;
    --accent: #06b6d4;
    --title: #f8fafc;
    --border: #334155;
    --hover: #0ea5e9;
}

:root {
    --header-height: 80px; /* ajuste si besoin */
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

/* Header & Nav */

header {
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 55px;
    filter: brightness(1) invert(00);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav a:hover {
    color: var(--accent);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background: var(--accent);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--card);
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    top: 100%;
    left: 0;
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
}

.dropdown-content a {
    padding: 0.75rem 1rem;
    display: block;
    color: #cbd5e1;
}

.dropdown-content a:hover {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent);
}

/* Langue */

.lang-switch {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.lang-switch a {
    color: #64748b;
    text-decoration: none;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.lang-switch a.active,
.lang-switch a:hover {
    color: var(--accent);
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(148, 163, 184, 0.4);
}

/* Main */

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.hero {
    text-align: center;
    margin-bottom: 5rem;
    animation: fadeInDown 0.8s ease-out;
}
.hero,
.section {
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--title);
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 1rem auto;
}

.section {
    margin-bottom: 5rem;
    animation: fadeInUp 0.8s ease-out;
}

.section h2 {
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--title);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 70px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-top: 1.5rem;
}


/* Mobile : 1 card par ligne */
@media (max-width: 599px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Tablette : 2 cards par ligne */
@media (min-width: 600px) and (max-width: 1023px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


.card {
    background: var(--card);
    padding: 1.8rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    backdrop-filter: blur(12px);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.2);
    border-color: var(--accent);
}

.card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--title);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.card p {
    color: #cbd5e1;
    font-size: 0.98rem;
}

/* Mentions légales */

.page-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.terms-section {
    margin-bottom: 2.5rem;
}

.terms-section h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    border: none;
}

.terms-section h2::after {
    display: none;
}

.terms-section p {
    margin: 0.4rem 0;
}

/* Footer */

hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 5rem 0;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

/* Animations */

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

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

/* Responsive */

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .container {
        padding: 2rem 1rem;
    }
}

.history-intro {
    max-width: 700px;
    margin: 0 auto 2rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.98rem;
}

.history-grid .history-card {
    padding: 1.2rem 1.1rem;
    font-size: 0.9rem;
}

.history-grid .history-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}
.hero-visual {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.hero-visual img {
  max-width: 900px;
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  background: #020617;
}

.refs-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 3.5rem;
  align-items: center;
  justify-content: center;  /* centrés */
  margin-top: 2rem;
  padding: 1rem 0;
}

.refs-logos img {
  max-height: 80px;         /* à ajuster si tu les veux plus grands */
  filter: none;             /* plus de niveaux de gris */
  opacity: 1;               /* pleine couleur */
  transition: none;         /* plus d’effet */
}


.visual-block {
  margin-top: 0.8rem;
  border-radius: 12px;
  overflow: hidden;
  border: 0px solid rgba(148, 163, 184, 0.4);
  #background: #020617;
}

.feature-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 1rem;
}




.video-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
  padding: 0;
  margin: 0;
}

.hero-video {
  display: block;
  max-width: 60vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background-color: black;
  border-radius: 10px;
}

.play-button {
  z-index: 3;
}





.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  margin: 0 10px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all .3s;
}

.btn-primary { background: #e63946; color: white; }
.btn-primary:hover { background: #c1121f; transform: translateY(-3px); }

.btn-secondary { background: transparent; color: white; border: 2px solid white; }
.btn-secondary:hover { background: white; color: #111; }

.play-button {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: rgba(0,0,0,0.4);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  transition: opacity .4s;
}

.play-button:hover { opacity: 0.8; }

/* Mobile */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content p { font-size: 1.2rem; }
  .video-hero { min-height: 70vh; }
}
.hero-content.fade-out {
  opacity: 0;
  transition: opacity 1.2s ease-out;
  pointer-events: none;   /* empêche de cliquer sur les liens pendant le fade */
}


#securite .security-slide {
    grid-column: 1 / -1;
    width: 100%;
    padding: 30px;
    background: #0a1525;
    border: 1px solid rgba(0,212,255,0.25);
}

#securite .security-timeline {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 18px;
}

/* === Protection Section === */
.protection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.protection-item {
  background: var(--card);
  border-radius: 10px;
  padding: 1.2rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  text-align: left;
}

.protection-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.protection-item .number {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.protection-item h3 {
  font-size: 1.05rem;
  color: var(--title);
  margin-bottom: 0.5rem;
}

.protection-item p {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.protection-summary {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  text-align: center;
  color: #d1d5db;
}

/* Liste simple du slide sécurité (mode texte) */


.security-steps {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.security-steps li {
    margin: 0;
}

.step-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Numéro dans un petit rond */
.step-number {
    flex: 0 0 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e6f7ff;
}

.step-text strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.step-text p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    opacity: 0.9;
}
.protection-section { padding: 80px 20px; text-align: center;  color: white;  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);}
.protection-steps { 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center; 
  gap: 40px; 
  max-width: 1300px; 
  margin: 50px auto;
}
.step {
  flex: 1;
  min-width: 220px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease-out;
}
.step.visible {
  opacity: 1;
  transform: translateY(0);
}
.step-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: #e63946;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(230,57,70,0.5);
}
.protection-summary {
  font-size: 1.4rem;
  margin-top: 60px;
  opacity: 0;
  transition: opacity 1s ease 0.5s;
}
.protection-summary.visible { opacity: 1; }
.restart-animation {
  margin-top: 40px;
  padding: 12px 30px;
  background: transparent;
  border: 2px solid #e63946;
  color: white;
  border-radius: 50px;
  cursor: pointer;
}
