:root {
  --accent: #e63946;
  --bg: #1c1f26; /* fond principal gris bleuté */
  --bg-light: #2a2f38; /* surfaces plus claires */
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f3f3f3;
  --muted: #b0b0b0;
  --header: rgba(20, 22, 28, 0.95);
  --footer: rgba(20, 22, 28, 0.95);
  --input-bg: rgba(255,255,255,0.08);
  --input-border: rgba(255,255,255,0.15);
  --blur: 14px;
}

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

html, body {
  height: 100%;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 20%, #2a2f38 0%, #1c1f26 90%);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Animation fond subtil */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.02),
    transparent 80px
  );
  animation: movebg 80s linear infinite;
  z-index: 0;
  opacity: 0.4;
}
@keyframes movebg {
  from { transform: translate(0, 0); }
  to { transform: translate(-80px, -80px); }
}

/* Conteneur global */
.container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 120px auto 40px auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--header);
  backdrop-filter: blur(var(--blur));
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.logo {
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  font-size: 1.3rem;
}
.logo span {
  color: var(--accent);
}
.main-nav a {
  color: var(--text);
  margin-left: 18px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
.main-nav a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(var(--blur));
  border-radius: 16px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
}
.hero:hover {
  transform: translateY(-3px);
}
.hero h1 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 12px;
}
.hero p {
  color: var(--text);
  opacity: 0.9;
  margin-bottom: 10px;
}
.hero .actions a {
  display: inline-block;
  margin: 8px 6px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}
.hero .actions .btn {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}
.hero .actions .btn:hover {
  background: #ff4d5a;
  transform: scale(1.05);
}
.hero .actions .btn.ghost {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text);
}
.hero .actions .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Features */
.features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}
.features .card {
  flex: 1 1 280px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(var(--blur));
  padding: 22px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  color: var(--text);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.features .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.5);
}

/* News list */
.news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.news-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(var(--blur));
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 320px;
}
.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 28px rgba(230, 57, 70, 0.4);
}
.news-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  filter: brightness(0.9);
}
.news-item div {
  padding: 14px;
}
.news-item h3 {
  font-size: 1rem;
  margin: 6px 0;
  color: var(--accent);
}
.news-item .meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.news-item p {
  font-size: 0.9rem;
  color: #d8d8d8;
  line-height: 1.5em;
}

/* Inputs et forms */
input, textarea, select {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  width: 100%;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  outline: none;
}

/* Footer */
.site-footer {
  background: var(--footer);
  backdrop-filter: blur(var(--blur));
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--card-border);
}

/* Animations */
.anim-fade-up { opacity: 0; transform: translateY(12px); animation: fadeUp 0.6s forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }





/* === TEAM PAGE === */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 2;
}

.team-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(var(--blur));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 20px;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 28px rgba(230, 57, 70, 0.4);
}

.team-photo {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--card-border);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  transition: transform 0.4s ease;
}

.team-card:hover img {
  transform: scale(1.05);
}

.team-info {
  padding: 16px 20px 10px;
}

.team-info h3 {
  color: var(--accent);
  margin-bottom: 4px;
}

.team-info .role {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.team-info .bio {
  color: #d8d8d8;
  font-size: 0.9rem;
  line-height: 1.5em;
}


/* === PAGE NOS RESEAUX === */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--card); /* translucide comme les autres pages */
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.5rem;
  backdrop-filter: blur(var(--blur));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(230, 57, 70, 0.4);
}

.social-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.social-info h3 {
  margin: 0;
  color: #fff;
}

.social-info p {
  margin: 0.5rem 0 1rem;
  color: #d8d8d8;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.btn:hover {
  background: #ff4d5a;
  transform: translateY(-2px);
}

/* === Bouton et texte Lifeinvader en bleu === */
.social-card.lifeinvader .social-info h3,
.social-card.lifeinvader .social-info p {
  color: #ffffff; /* bleu vif */
}

.social-card.lifeinvader .btn {
  background: #1E90FF;
}

.social-card.lifeinvader .btn:hover {
  background: #0066cc;
}

/* === Bouton YouTube rouge spécifique === */
.btn.youtube {
  background: #cc0000;
}

.btn.youtube:hover {
  background: #a00000;
}

/* Responsive : 1 carte par ligne sur mobile */
@media (max-width: 800px) {
  .social-grid {
    grid-template-columns: 1fr;
  }
}
/* === PAGE NOUS CONTACTER === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--card); /* translucide */
  border-radius: 14px;
  padding: 1.5rem;
  backdrop-filter: blur(var(--blur));
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 28px rgba(230, 57, 70, 0.4);
}

.contact-info h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.contact-info p {
  color: #d8d8d8;
  margin-bottom: 1rem;
}

.contact-info .btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.contact-info .btn:hover {
  background: #ff4d5a;
  transform: translateY(-2px);
}

/* Responsive pour mobile */
@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}








/* === PAGE ARTICLE TRANSLUCIDE === */
.article-full {
  display: flex;
  justify-content: center;
  margin: 2rem 0 4rem 0;
}

.article-card {
  background: var(--card); /* translucide */
  backdrop-filter: blur(15px);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(230,57,70,0.4);
}

.article-card .article-hero {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.article-content {
  padding: 2rem;
}

.article-content h1 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.article-content .meta {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.article-content .content p {
  color: #eee;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 800px) {
  .article-card .article-hero {
    max-height: 300px;
  }

  .article-content {
    padding: 1.5rem;
  }

  .article-content h1 {
    font-size: 1.6rem;
  }
}




.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cartes par ligne */
  gap: 2rem;
  margin-top: 1.5rem;
}

/* Responsive : 2 cartes pour tablette, 1 pour mobile */
@media(max-width: 1100px){
  .news-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:800px){
  .news-list {
    grid-template-columns: 1fr;
  }

  .news-item img {
    height: 200px;
  }
}


.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(230,57,70,0.4);
}

.news-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.news-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.news-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.news-content h3 {
  color: var(--accent);
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

.news-content .meta {
  color: #ccc;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.news-content p {
  color: #eee;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Badges */
.badge {
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-actu {
  background: rgba(230,57,70,0.8);
  color: #fff;
}

.badge-pub {
  background: rgba(100,149,237,0.8); /* bleu clair */
  color: #fff;
}

/* Responsive */
@media(max-width:800px){
  .news-list {
    grid-template-columns: 1fr;
  }

  .news-item img {
    height: 200px;
  }
}















/* === ARTICLE FULL PAGE MODERNE === */
.article-full {
  display: flex;
  justify-content: center;
  margin: 2rem 0 4rem 0;
}

.article-card.full-width {
  background: var(--card); /* translucide */
  backdrop-filter: blur(15px);
  border-radius: 16px;
  width: 100%;
  max-width: 1200px; /* étendue sur la page */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card.full-width:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(230,57,70,0.4);
}

/* Bouton retour */
.back-btn {
  display: inline-block;
  margin: 1.2rem 2rem 0 2rem;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Image principale */
.article-hero {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Contenu */
.article-content {
  padding: 2rem 3rem;
}

.article-content h1 {
  color: var(--accent);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.article-content .meta {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.article-content .content p {
  color: #eee;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* Responsive */
@media (max-width: 1000px) {
  .article-content {
    padding: 1.5rem 2rem;
  }
  .article-content h1 {
    font-size: 1.8rem;
  }
  .article-hero {
    max-height: 350px;
  }
}

@media (max-width: 600px) {
  .article-content {
    padding: 1rem 1.2rem;
  }
  .article-content h1 {
    font-size: 1.5rem;
  }
  .article-hero {
    max-height: 250px;
  }
}



/* Tarifs - grille et cartes */
.tarif-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.tarif-card {
    flex: 1 1 30%;
    max-width: 350px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 0 12px rgba(230,57,70,0.3);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;

    /* Gestion du texte */
    word-wrap: break-word; /* couper les mots trop longs */
    overflow-wrap: break-word;
}

.tarif-card .desc {
    color: #ddd;
    line-height: 1.5em;
    white-space: normal; /* permettre le retour à la ligne */
    word-break: break-word; /* couper les mots trop longs */
    margin-top: 12px;
}


.tarif-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 20px rgba(230,57,70,0.5);
}

.tarif-card h3 {
    color: var(--accent);
    margin-bottom: 12px;
}

.tarif-card .price {
    font-weight: 700;
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.tarif-card .desc {
    color: #ddd;
    line-height: 1.4em;
}

/* Responsive : 2 par ligne sur tablettes, 1 sur mobile */
@media(max-width:1024px) { .tarif-card { flex:1 1 45%; } }
@media(max-width:600px) { .tarif-card { flex:1 1 100%; } }
