/* -------------------- */
/* style-global corrigé v12 */
/* -------------------- */

/* Reset global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
  background: linear-gradient(135deg, #e3f2fd 0%, #fff3e0 30%, #fce4ec 60%, #e8f5e9 100%);
  background-attachment: fixed;
  animation: gradientMove 12s ease infinite alternate;
}

@keyframes gradientMove {
  0% { background-position: left top; }
  100% { background-position: right bottom; }
}

/* Links default */
a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* -------------------- */
/* Header / Navbar      */
/* -------------------- */
.site-header {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, #ff4081, #0077cc, #00c853, #ff9100);
  background-size: 400% 400%;
  animation: headerGradient 12s ease infinite;
  border-bottom: none;
  z-index: 100;
  transition: all 0.3s ease;
}

@keyframes headerGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.site-header .container.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 110px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Logo */
.site-header .brand {
  display: flex;
  align-items: center;
  margin-left: -50px;
}

.site-header .brand img {
  width: 110px;
  height: auto;
  display: block;
  transform: translateY(30px);
}

.site-header .brand-text {
  font-family: 'Merriweather', serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: 1px;
  margin-top: 50px;
}

/* Navigation links (desktop) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 999;
}

.nav-links a {
  position: relative;
  display: inline-block;
  font-weight: 500;
  margin-left: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.6rem;
  color: #fff;
  background-color: #0077cc;
  transition: all 0.3s ease;
}

.nav-links a.primaire {
  background: linear-gradient(135deg, #0077cc, #00e5ff);
}

.nav-links a.secondaire {
  background: linear-gradient(135deg, #ff9100, #ff4081);
}

.nav-links a.infrastructure {
  background: linear-gradient(135deg, #4caf50, #00c853);
  border-radius: 2rem 0.5rem 2rem 0.5rem;
}

.nav-links a.apropos {
  background: linear-gradient(135deg, #9c27b0, #673ab7);
  border-radius: 50% 20% / 10% 40%;
}

.nav-links a.contact {
  background: linear-gradient(135deg, #ff1744, #f50057);
}

.nav-links a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  filter: brightness(1.1);
}

.nav-links a.active {
  background-color: #005fa3;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 2000;
}

.nav-toggle span {
  display: block;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
}

/* -------------------- */
/* Hero Section         */
/* -------------------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 1rem;             /* réduit de moitié le padding vertical */
  min-height: 35vh;               /* réduit de moitié la hauteur */
  background: linear-gradient(135deg, rgba(0,102,204,0.7), rgba(156,39,176,0.6)),
              url('images/hero-bg.jpg') center/contain no-repeat;
  background-attachment: fixed;
  border-radius: 1rem;
  color: #fff;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,102,204,0.55), rgba(255,87,34,0.55));
  backdrop-filter: blur(2px);
}

.hero .container {
  position: relative;
  z-index: 1;
}


.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 1rem 0;
  line-height: 1.2;
  background: linear-gradient(90deg, #ff4081, #00e5ff, #76ff03);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGradient 5s ease infinite alternate;
}

@keyframes textGradient {
  0% { background-position: left; }
  100% { background-position: right; }
}

.hero p.lead {
  font-size: 1.2rem;
  color: #f0f0f0;
  max-width: 650px;
  margin-bottom: 1.5rem;
}

.hero-cta .btn,
.hero-cta .btn-outline {
  margin-right: 1rem;
}

.hero .hero-points {
  margin-top: 1rem;
  list-style: none;
}

.hero .hero-points li {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Hero visual card */
.hero .visual-card {
  background: rgba(0, 119, 204, 0.8);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
  color: #fff;
  font-weight: 500;
  text-align: center;
}

/* -------------------- */
/* Sections             */
/* -------------------- */
.section {
  padding: 4rem 1rem;
}

.section.alt {
  background: linear-gradient(135deg, #fafafa, #f3e5f5);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #0077cc;
}

.section-head h2 {
  background: linear-gradient(90deg, #ff6f61, #2196f3, #4caf50);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head p {
  color: #666;
  max-width: 650px;
  margin: 0 auto;
}

.section p {
  color: #555;
  line-height: 1.6;
}

/* Cards grid */
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Card styles */
.card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.card h3 {
  margin-bottom: 0.5rem;
  color: #0077cc;
}

/* Feature cards */
.card.feat {
  background: linear-gradient(135deg, #ffffff, #f1f8e9);
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}

.card.feat:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.card.feat .feat-emoji {
  font-size: 2.5rem;
  margin-bottom: .8rem;
  animation: emojiBounce 3s infinite ease-in-out;
}

@keyframes emojiBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.card.feat h3 {
  margin-bottom: .5rem;
  font-size: 1.3rem;
  background: linear-gradient(90deg, #ff4081, #2196f3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* About stats */
.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
  flex: 1 1 150px;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #0077cc;
}

.stat-label {
  font-size: 1rem;
  color: #555;
}

/* -------------------- */
/* Contact section      */
/* -------------------- */
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  margin-bottom: 2rem;
}

.contact-list li {
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.map-wrap iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* -------------------- */
/* Buttons              */
/* -------------------- */
.btn, .btn-outline {
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all .3s ease;
  text-decoration: none;
  font-size: 1rem;
}

.btn {
  background: linear-gradient(90deg, #ff4081, #ff9100, #00c853);
  color: #fff;
  border: none;
  background-size: 300%;
  animation: btnGradient 6s ease infinite;
}

@keyframes btnGradient {
  0% { background-position: left; }
  100% { background-position: right; }
}

.btn:hover {
  transform: scale(1.05);
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  background: #fff;
  color: #0066cc;
}

/* -------------------- */
/* Footer               */
/* -------------------- */
.site-footer {
  background: linear-gradient(135deg, #0066cc, #8e24aa);
  color: #fff;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  margin-right: 1rem;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* -------------------- */
/* Responsive           */
/* -------------------- */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-visual {
    margin-top: 2rem;
  }

  .contact {
    flex-direction: column;
  }

  .about-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  /* Menu mobile */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100%;
    background: #0077cc;
    flex-direction: column;
    padding: 2rem 1rem;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav-links.show {
    right: 0;
  }

  .nav-links a {
    margin: 0.6rem 0;
    padding: 0.7rem 1rem;
    color: #fff;
    border-radius: 0.4rem;
    text-align: left;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
  }

  .nav-toggle {
    display: flex;
  }
}
