:root {
    --yellow: #FFD93D;
    --orange: #FF6B35;
    --pink: #FF4F9A;
    --purple: #7B4FE9;
    --blue: #2196F3;
    --teal: #00BCD4;
    --green: #4CAF50;
    --cream: #FFF8F0;
    --dark: #1A1A2E;
    --white: #ffffff;
  }

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

  body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--cream);
    overflow-x: hidden;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ctext y='28' font-size='28'%3E✏️%3C/text%3E%3C/svg%3E"), auto;
  }

  /* ====== FLOATING SHAPES BACKGROUND ====== */
  .bg-shapes {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background-image: linear-gradient(to right bottom, yellow, transparent, transparent, transparent, transparent, skyblue);
  }
  .shape {
    position: absolute;
    border-radius: 0%;
    opacity: 0.00;
    animation: floatShape linear infinite;
  }
  .shape:nth-child(1)  { width:120px; height:120px; background:var(--pink);   left:5%;  animation-duration:20s; animation-delay:0s;   top:10%; clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);}
  .shape:nth-child(2)  { width: 80px; height: 80px; background:var(--yellow); left:88%; animation-duration:17s; animation-delay:-5s;  top:25%; clip-path: polygon(50% 0%, 0% 100%, 100% 100%);}
  .shape:nth-child(3)  { width:160px; height:160px; background:var(--blue);   left:45%; animation-duration:25s; animation-delay:-10s; top:60%; border-radius: 50%;}
  .shape:nth-child(4)  { width: 60px; height: 60px; background:var(--green);  left:20%; animation-duration:15s; animation-delay:-3s;  top:75%; border-radius: 0%;}
  .shape:nth-child(5)  { width:100px; height:100px; background:var(--purple); left:70%; animation-duration:22s; animation-delay:-8s;  top:5%;  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  .shape:nth-child(6)  { width: 50px; height: 50px; background:var(--orange); left:60%; animation-duration:18s; animation-delay:-2s;  top:88%; border-radius: 50%;}

  @keyframes floatShape {
    0%   { transform: translateY(0px) rotate(0deg);   opacity: 0.07; }
    50%  { transform: translateY(-40px) rotate(180deg); opacity: 0.12; }
    100% { transform: translateY(0px) rotate(360deg); opacity: 0.07; }
  }

  /* ====== NAVBAR ====== */
  nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }
  .logo-icon {
    width: 2rem;
    animation: spin 4s linear infinite;
  }
  @keyframes spin {
    0%   { transform: rotate(0deg); }
    25%  { transform: rotate(10deg); }
    75%  { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
  }
  .logo-text {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--orange), var(--pink), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .nav-links { display: flex; gap: 0.5rem; list-style: none; }
  .nav-links a {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    transition: all 0.3s;
    color: var(--dark);
    position: relative;
    overflow: hidden;
  }
  .nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    transform: scale(0);
    transition: transform 0.3s;
    z-index: -1;
  }
  .nav-links a:hover::before, .nav-links a.active::before { transform: scale(1); }
  .nav-links a:hover, .nav-links a.active { color: var(--dark); }

  /* ====== HERO ====== */
  .hero {
    position: relative;
    z-index: 1;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    overflow: hidden;
  }
  .hero-emoji-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.8s ease both;
  }
  .hero-emoji {
    font-size: 3rem;
    animation: bounce 2s ease infinite;
  }
  .hero-emoji:nth-child(2) { animation-delay: 0.2s; }
  .hero-emoji:nth-child(3) { animation-delay: 0.4s; }
  .hero-emoji:nth-child(4) { animation-delay: 0.6s; }
  .hero-emoji:nth-child(5) { animation-delay: 0.8s; }
  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-15px); }
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-40px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .hero h1 {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
    animation: slideUp 0.9s 0.2s ease both;
    max-width: 800px;
  }
  .hero h1 span {
    background: linear-gradient(135deg, var(--orange), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero p {
    font-size: 1.25rem;
    color: #555;
    max-width: 550px;
    margin: 1.2rem auto 2.5rem;
    animation: slideUp 0.9s 0.4s ease both;
  }
  @keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: slideUp 0.9s 0.6s ease both;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
  }
  .btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--pink));
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  }
  .btn-primary:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 30px rgba(255, 107, 53, 0.5); }
  .btn-secondary {
    background: white;
    color: var(--purple);
    border: 3px solid var(--purple);
    box-shadow: 0 4px 15px rgba(123,79,233,0.15);
  }
  .btn-secondary:hover { background: var(--purple); color: white; transform: translateY(-3px); }

  /* ====== STATS BAR ====== */
  .stats-bar {
    position: relative; z-index: 1;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem;
    margin: 0 2rem 3rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    animation: slideUp 1s 0.8s ease both;
  }
  .stat-item { text-align: center; }
  .stat-num {
    font-family: 'Baloo 2', cursive;
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .stat-label { font-size: 0.85rem; color: #777; font-weight: 600; }

  /* ====== SECTIONS ====== */
  .section {width: 90%; position: relative; z-index: 1; padding: 4rem 2rem; max-width: 1100px; margin: 0 auto; }
  .section-title {
    font-family: 'Baloo 2', cursive;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 0.5rem;
  }
  .section-title span {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .section-sub { text-align: center; color: #777; font-size: 1rem; margin-bottom: 3rem; }

  /* ====== JOURNAL / ACTUALITES ====== */
  .journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  .journal-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
  }
  .journal-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
  .card-banner {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
  }
  .card-banner::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0; right: 0;
    height: 40px;
    background: white;
    border-radius: 50% 50% 0 0;
  }
  .banner-1 { background: linear-gradient(135deg, #FFD93D, #FF6B35); }
  .banner-2 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
  .banner-3 { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
  .banner-4 { background: linear-gradient(135deg, #84fab0, #8fd3f4); }
  .banner-5 { background: linear-gradient(135deg, #f093fb, #f5576c); }
  .banner-6 { background: linear-gradient(135deg, #4facfe, #43e97b); }
  .card-body { padding: 1.5rem 1.5rem 1.2rem; }
  .card-tag {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
  }
  .tag-event    { background: #FFF3CD; color: #856404; }
  .tag-news     { background: #CFE2FF; color: #084298; }
  .tag-activity { background: #D1E7DD; color: #0F5132; }
  .tag-parents  { background: #F8D7DA; color: #842029; }
  .card-title { font-family: 'Baloo 2', cursive; font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
  .card-text { font-size: 0.9rem; color: #666; line-height: 1.6; }
  .card-footer { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-top: 1px solid #f0f0f0; }
  .card-date { font-size: 0.8rem; color: #aaa; font-weight: 600; }
  .card-read { font-size: 0.82rem; font-weight: 700; color: var(--orange); text-decoration: none; }
  .card-read:hover { color: var(--pink); }

  /* ====== MATIERES ====== */
  .matieres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.2rem;
  }
  .matiere-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    transition: all 0.3s;
    cursor: default;
  }
  .matiere-card:hover { transform: translateY(-6px) rotate(2deg); }
  .matiere-emoji { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
  .matiere-name { font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 0.9rem; color: var(--dark); }

  /* ====== HORAIRES ====== */
  .horaires-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  }
  .horaires-table th {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
    padding: 1rem;
    font-family: 'Baloo 2', cursive;
    font-size: 1rem;
  }
  .horaires-table td {
    padding: 0.85rem 1rem;
    text-align: center;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
  }
  .horaires-table tr:hover td { background: #FFF8F0; }
  .badge-time {
    display: inline-block;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    color: var(--dark);
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
  }

  /* ====== FOOTER ====== */
  footer {
    position: relative; z-index: 1;
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2.5rem 2rem;
    margin-top: 3rem;
  }
  footer .footer-logo { font-family: 'Baloo 2', cursive; font-size: 1.8rem; font-weight: 800; margin-bottom: 0.5rem; }
  footer p { color: #aaa; font-size: 0.9rem; }
  footer .footer-links { display: flex; justify-content: center; gap: 1.5rem; margin: 1rem 0; flex-wrap: wrap; }
  footer .footer-links a { color: var(--yellow); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: color 0.3s; }
  footer .footer-links a:hover { color: var(--orange); }

  /* ====== POPUP MODAL ====== */
  .modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .modal-overlay.open { opacity: 1; pointer-events: all; }
  .modal-box {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 480px;
    width: 90%;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
  }
  .modal-overlay.open .modal-box { transform: scale(1); }
  .modal-emoji { font-size: 4rem; margin-bottom: 1rem; }
  .modal-title { font-family: 'Baloo 2', cursive; font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--dark); }
  .modal-body { font-size: 0.95rem; color: #555; line-height: 1.7; margin-bottom: 1.5rem; }
  .modal-close { position: absolute; top: 1rem; right: 1rem; background: #f5f5f5; border: none; border-radius: 50%; width: 36px; height: 36px; font-size: 1rem; cursor: pointer; transition: background 0.2s; }
  .modal-close:hover { background: var(--pink); color: white; }

  /* ====== TICKER ====== */
  .ticker-wrap {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
    padding: 0.6rem 0;
    overflow: hidden;
    position: relative; z-index: 1;
  }
  .ticker {
    display: flex;
    gap: 4rem;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
  }
  .ticker span { font-weight: 700; font-size: 0.9rem; }
  @keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
  .ticker-wrap:hover .ticker { animation-play-state: paused; }


  /* ====== Connexion ====== */
.connex{
  width: 30rem;
  padding: 2.5% 5%;
    --g1: rgba(14, 165, 233, 0.3); /* sky blue, 70% opacity */
   --g2: transparent; /* violet, 70% opacity */
   --g3: rgba(255, 255, 0, 0.3);  /* pink-red, 70% opacity */
    
   background: linear-gradient(
      120deg,
      var(--g1),
      var(--g2),
      var(--g2),
      var(--g3),
      transparent
   );
  background-size: 200% 200%;
  animation: gradientShift 10s ease-in-out infinite;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow:  0 0px 20px rgba(0,0,0,0.5);
}
@keyframes gradientShift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}
.connex h2{
  font-size: 2rem;
  background: linear-gradient(135deg, skyblue, deeppink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.connex p{
  padding: 2% 5%;
  border: 1px solid gray;
  border-radius: 10px;
  font-size: 1rem;
}
.connex input{
  width: 100%;
  margin-bottom: 7%;
  background: transparent;
  border: unset;
  border-bottom: 1px solid rgba(0, 0, 0, 1.0);
  border-radius: none;
  outline: none;
  font-size: 1rem;
}
.connex button{
  padding: 3% 10%;
  margin-bottom: 7%;
  background-image: linear-gradient(120deg, orange, orange, orangered);
  border: none;
  border-radius: 50px;
  outline: none;
  font-size: 1rem;
  font-weight: bold;
}
.connex ul{
  margin-top: 7%;
}
.connex ul li{
  width: 100%;
  margin-bottom: 5%;
  list-style: none;
  text-align: left;
  border-bottom: 1px dashed gray;
}
.connex ul li a{
  width: 100%;
  text-decoration: none;
  color: rgba(0, 0, 0, 1.0);
}













  /* ====== RESPONSIVE ====== */
  @media(max-width: 600px) {
    .stats-bar { gap: 1rem; }

    nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 0 2rem;
    display: flex;
    gap: 13%;
    align-items: center;
    justify-content: space-between;
    height: 70px;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }
  .logo-icon {
    width: 2rem;
    animation: spin 4s linear infinite;
  }
  @keyframes spin {
    0%   { transform: rotate(0deg); }
    25%  { transform: rotate(10deg); }
    75%  { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
  }
  .logo-text {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--orange), var(--pink), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .nav-links { margin-top: -3%; display: flex; gap: 0.5rem; list-style: none; }
  .nav-links a {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.6rem 0.6rem;
    border-radius: 50px;
    transition: all 0.3s;
    color: var(--dark);
    position: relative;
    overflow: hidden;
  }
  .nav-links span{
    display: none;
  } 
  /* ====== SECTIONS ====== */
  .horraire-tab {display: none; }


  /* ====== Connexion ====== */
.connex{
  width: 100%;
  padding: 5% 10%;
}
.connex input{
  margin-bottom: 10%;
  font-size: 0.9rem;
}
.connex button{
  margin-top: 5%;
  padding: 4% 12%;
}

}


  }