
body {
  background: #fff;
  font: 16px Helvetica, Verdana, Arial, sans-serif;
  color: #012169;
}

/* CONTAINER FLEX */
.container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* TOP BAR STICKY */

.top-bar {
  background: white;
  padding: 15px 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* LOGO */
.logo img {
  height: 200px; /* augmente ici pour un logo plus grand */
  max-width: 100%; /* garde la proportion et responsive */
  object-fit: contain; /* pour éviter les déformations */
  transition: transform 0.3s ease; /* optionnel : effet hover */
}

/* Optionnel : effet hover léger */
.logo img:hover {
  transform: scale(1.05);
}

@media screen and (max-width: 768px) {
  .logo img {
    height: 90px; /* ajuste pour mobile */
  }
}

/* NAVIGATION */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
text-decoration: none;
  color: #012169;
  font-weight: 600;
  position: relative;
  transition: 0.3s;
}

/* Effet underline moderne */
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #C8102E;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links .active::after {
  width: 100%;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #012169;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.overlay {
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.overlay.scroll-visible {
  opacity: 1;
  transform: translateY(0);
}

/* HEADBAND HERO */
.headband {
  height: 450px;
  background: url('../img/Tower bridge2 (2).png') center/cover no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}


.overlay {
  background: rgba(1, 33, 105, 0.6);
  padding: 40px;
  text-align: center;
  color: white;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
  animation-delay: 0.3s;
}

.overlay h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.overlay p {
  font-size: 18px;
}

/* ANIMATION FADE-IN */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: white;
    flex-direction: column;
    gap: 40px;
    padding: 80px 20px;
    transition: 0.3s;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }
}

/*
  Main
*/
main {
  margin: 50px 20px;
}

/* GRID MODERNE */
.articles-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* CARTE */
.card {
  border: 1px solid #012169;
  border-radius: 8px;
  box-shadow: 5px 5px 15px #ccc;
  padding: 20px;
  display: flex;
  flex-direction: column;
  background: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* IMAGE */
.card img {
  width: 100px;
  height: auto;
  align-self: center;
  margin-bottom: 15px;
}

/* CONTENU QUI POUSSE LE BOUTON */
.card .content {
  flex-grow: 1;
}

/* BOUTON */

.btn-uk {
  background: linear-gradient(45deg, #012169, #C8102E);
  color: white;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  text-align: center;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.btn-uk:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(200,16,46,0.4);
}

/* FOOTER GLOBAL */
.site-footer {
  background-color: #012169;
  color: white;
  padding: 40px 20px;
  font-family: 'Helvetica', Arial, sans-serif;
  text-align: center;
  border-top: 3px solid #C8102E;
}

.container-footer {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* LOGO FOOTER */
.footer-logo img {
  height: 100px;
  width: 150px;
  max-width: 100%;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}
.footer-logo img:hover {
  transform: scale(1.05);
}

/* LIENS RESEAUX */
.social-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
  color: #C8102E;
  transform: scale(1.05);
}

/* CREDIT */
.footer-credit {
  font-size: 14px;
  color: #ccc;
  margin-top: 10px;
}

/* RESPONSIVE */
@media screen and (min-width: 768px) {
  .container-footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .social-links {
    order: 2;
  }

  .footer-logo {
    order: 1;
  }

  .footer-credit {
    order: 3;
    text-align: right;
  }
}

/* ===== CONTENU PRINCIPAL WELCOME ===== */

.welcome-content {
  max-width: 900px;      /* largeur confortable */
  margin: 60px auto;     /* centre horizontalement */
  padding: 0 30px;
  
  display: block;        /* IMPORTANT : pas grid, pas flex */
  
  font-size: 18px;
  line-height: 1.8;      /* meilleure lisibilité */
  color: #012169;
}

/* Paragraphes */
.welcome-content p {
  margin-bottom: 25px;
}

/* Titres */
.welcome-content h2 {
  font-size: 32px;
  margin: 50px 0 20px 0;
  color: #C8102E;
}

.welcome-content h3 {
  font-size: 24px;
  margin: 40px 0 15px 0;
}

/* Liste */
.welcome-content ul {
  margin-bottom: 30px;
  padding-left: 25px;
}

.welcome-content li {
  margin-bottom: 10px;
}

/* Signature centrée en bas */
.signature {
  text-align: center;       /* CENTRAGE horizontal */
  margin: 20px 0;
}

.signature a {
  color: #C8102E;           /* rouge UK */
  text-decoration: none;    
  font-weight: bold;
  transition: 0.3s;
}

.signature a:hover {
  color: #012169;           /* bleu UK au hover */
  text-decoration: underline;
}

/* Forum */
.forum-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.forum-card {
  background: white;
  border: 2px solid #012169;
  padding: 20px;
  text-align: center;
  border-radius: 12px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.forum-card:hover {
  background: #C8102E;
  color: white;
  transform: scale(1.05);
}

.forum-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}

.forum-form input,
.forum-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

.forum-form textarea {
  min-height: 120px;
  resize: vertical;
}

.forum-messages .message {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.message {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  animation: fadeIn 0.5s ease-in-out;
}

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

/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  margin-bottom: 30px;
  color: #777;
}

.breadcrumb a {
  text-decoration: none;
  color: #012169;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Date message */
.message-date {
  display: block;
  font-size: 13px;
  color: #888;
  margin-top: 5px;
}

/* CONTACT FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.contact-form label {
  font-weight: bold;
  color: #012169;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #C8102E;
  box-shadow: 0 0 5px rgba(200,16,46,0.3);
}

/* ============================= */
/* PAGE MENTIONS LEGALES */
/* ============================= */

.legal-page {
  background-color: #f8f8f8;
  padding: 80px 20px;
  min-height: calc(100vh - 200px); /* assure que le footer reste en bas */
  display: flex;
  justify-content: center;
}

.legal-container {
  max-width: 900px;
  background: #ffffff;
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  line-height: 1.7;
}

.legal-container h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 40px;
  color: #1c2b4a;
}

.legal-container h2 {
  font-size: 1.3rem;
  margin-top: 35px;
  margin-bottom: 10px;
  color: #c8102e;
}

.legal-container p {
  margin-bottom: 15px;
  color: #333;
  font-size: 1rem;
}

.legal-container a {
  color: #1c2b4a;
  text-decoration: none;
  font-weight: 500;
}

.legal-container a:hover {
  color: #c8102e;
  text-decoration: underline;
}

/* Footer général */
.site-footer {
  background-color: #1c2b4a;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.site-footer img {
  max-width: 150px;
  margin-bottom: 20px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ============================= */
/* PAGE CONTENUS LEGAUX */
/* ============================= */

.legal-page {
  background-color: #f8f8f8;
  padding: 80px 20px;
  min-height: calc(100vh - 200px);
  display: flex;
  justify-content: center;
}

.legal-container {
  max-width: 900px;
  background: #ffffff;
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  line-height: 1.7;
}

.legal-container h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 40px;
  color: #1c2b4a;
}

.legal-container h2 {
  font-size: 1.3rem;
  margin-top: 35px;
  margin-bottom: 10px;
  color: #c8102e;
}

.legal-container p {
  margin-bottom: 15px;
  color: #333;
  font-size: 1rem;
}

.legal-container a {
  color: #1c2b4a;
  text-decoration: none;
  font-weight: 500;
}

.legal-container a:hover {
  color: #c8102e;
  text-decoration: underline;
}