
  :root{
    --beige-bg: #F9F7F2;
    --beige-dark: #EBE5D9;
    --paper: rgba(255, 255, 255, 0.85);

    --alg-green: #006233;
    --alg-green-dark: #004d28;
    --alg-red: #D21034;
    --alg-red-soft: rgba(210, 16, 52, 0.08);

    --text-main: #1A1C20;
    --text-muted: #5C5F66;

    --radius: 24px;
    --shadow-sm: 0 4px 20px rgba(0, 98, 51, 0.06);
    --shadow-hover: 0 15px 40px rgba(0, 98, 51, 0.15);

    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  }


@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@900&family=Tajawal:wght@400;700;900&display=swap');

  *{box-sizing:border-box;margin:0;padding:0}
  html{scroll-behavior: smooth;}

  body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--beige-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
  }

  h1, h2, h3, .brand { font-family: 'Playfair Display', serif; }


  :lang(ar) { font-family: 'Tajawal', sans-serif; }
  :lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { font-family: 'Tajawal', sans-serif; font-weight: 700; }


  :lang(en) body, :lang(fr) body { font-family: 'Roboto', sans-serif; }
  :lang(en) h1, :lang(en) h2, :lang(en) h3,
  :lang(fr) h1, :lang(fr) h2, :lang(fr) h3,
  :lang(fr) .brand, :lang(en) .brand { font-family: 'Roboto', sans-serif; font-weight: 900; }

  :lang(ar) h1,
  :lang(ar) h2,
  :lang(ar) h3 {
    text-align: center !important;
  }

  :lang(ar) .hero-text {
    text-align: center !important;
  }

  :lang(ar) .section-title {
    text-align: center !important;
    display: block !important;
    left: 0 !important;
    transform: none !important;
  }

  :lang(ar) .section-title h3 {
    text-align: center !important;
  }

  nav {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 12px 20px;
    border-radius: 99px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    z-index: 1000;
    transition: var(--transition);
  }

  .nav-toggle {
    display: none;
    background: var(--alg-green);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1010;
    line-height: 1;
    width: 44px;
    height: 44px;
    box-shadow: 0 4px 10px rgba(0, 98, 51, 0.2);
    transition: var(--transition);
    touch-action: manipulation;
  }

  .nav-toggle:active {
    transform: scale(0.95);
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--alg-green-dark);
    font-weight: 800;
    font-size: 1.1rem;
    touch-action: manipulation;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--alg-green);
    padding: 2px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: pulse 3s ease-in-out infinite;
  }

  @keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 98, 51, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(0, 98, 51, 0); }
  }

  .brand:hover .logo-mark {
    transform: scale(1.1) rotate(360deg);
    animation: none;
  }

  .nav-links {
    display: flex;
    gap: 6px;
    background: rgba(0,0,0,0.03);
    padding: 4px;
    border-radius: 99px;
  }

  .nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 99px;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    touch-action: manipulation;
    position: relative;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--alg-green);
    transform: translateX(-50%);
    transition: width 0.4s ease;
  }

  .nav-links a:hover, .nav-links a.active {
    background: white;
    color: var(--alg-green);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transform: translateY(-2px);
  }

  .nav-links a:hover::after {
    width: 50%;
  }

  .lang-btn {
    background: linear-gradient(135deg, var(--alg-green), var(--alg-green-dark));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 99px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 98, 51, 0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    touch-action: manipulation;
    min-width: 90px;
    position: relative;
    overflow: hidden;
  }

  .lang-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }

  .lang-btn:hover::before {
    width: 200px;
    height: 200px;
  }

  .lang-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 98, 51, 0.35);
  }

  .lang-btn:active {
    transform: translateY(-1px) scale(1);
  }

  #langBtnMobile {
    display: none;
  }

  .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 100px 20px 60px;
    position: relative;
    z-index: 2;
  }

  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .reveal.active {
    opacity: 1;
    transform: translateY(0);
  }

  .hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
  }

  .hero-text h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--alg-green-dark) 0%, var(--alg-green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 90%;
  }

  .btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }

  .btn {
    padding: 14px 24px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    font-size: 1rem;
    touch-action: manipulation;
    text-align: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }

  .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }

  .btn:hover::before {
    width: 300px;
    height: 300px;
  }

  .btn span {
    position: relative;
    z-index: 1;
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--alg-green) 0%, var(--alg-green-dark) 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(0, 98, 51, 0.25);
  }

  .btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 98, 51, 0.35);
  }

  .btn-primary:active {
    transform: translateY(-2px) scale(1.02);
  }

  .btn-secondary {
    background: white;
    color: var(--text-main);
    border: 2px solid rgba(0,0,0,0.08);
  }

  .btn-secondary:hover {
    border-color: var(--alg-green);
    color: var(--alg-green);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 98, 51, 0.15);
  }

  .btn-secondary:active {
    transform: translateY(-2px) scale(1.02);
  }

  .hero-visual {
    order: -1;
    position: relative;
  }

  .hero-img-frame {
    border-radius: 30px 30px 0 30px;
    overflow: hidden;
    box-shadow: 20px 20px 0px rgba(0, 98, 51, 0.05);
    transform: rotate(0deg);
    transition: all 0.6s ease;
  }

  @keyframes floatImage {
    0%, 100% { transform: rotate(2deg) translateY(0px); }
    50% { transform: rotate(2deg) translateY(-15px); }
  }

  .hero-visual:hover .hero-img-frame {
    transform: translateY(-5px);
    box-shadow: 25px 25px 0px rgba(0, 98, 51, 0.1);
    animation: none;
  }

  .hero-img-frame img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
  }

  .hero-visual:hover .hero-img-frame img {
    transform: scale(1.1);
  }

  .section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
  }

  .section-title h3 {
    font-size: 2.2rem;
    color: var(--alg-green-dark);
    transition: all 0.4s ease;
  }

  .section-title:hover h3 {
    transform: scale(1.05);
    color: var(--alg-green);
  }

  .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--alg-red);
    margin: 10px auto 0;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .section-title:hover::after {
    width: 100px;
    background: linear-gradient(90deg, var(--alg-green), var(--alg-red));
  }

  .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .card {
    background: var(--paper);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
  }

  .card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 98, 51, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
    transform: scale(0);
  }

  .card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--alg-green), var(--alg-red));
    opacity: 0;
    transition: all 0.4s ease;
    transform: scaleY(0);
    transform-origin: top;
  }

  .card .shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
  }

  .card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 98, 51, 0.25);
    border-color: var(--alg-green);
  }

  .card:hover::before {
    opacity: 1;
    transform: scale(1);
  }

  .card:hover::after {
    opacity: 1;
    transform: scaleY(1);
  }

  .card:hover .shine {
    left: 150%;
  }

  .card:active {
    transform: translateY(-5px) scale(1);
  }

  .card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-main);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
  }

  .card:hover h3 {
    color: var(--alg-green);
    transform: translateX(5px);
  }

  .card h3::first-line {
    display: inline-block;
  }

  .card-emoji {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 1.5em;
  }

  .card:hover .card-emoji {
    transform: scale(1.3) rotate(10deg);
    animation: bounce 0.6s ease;
  }

  @keyframes bounce {
    0%, 100% { transform: scale(1.3) rotate(10deg) translateY(0); }
    50% { transform: scale(1.4) rotate(15deg) translateY(-10px); }
  }

  .card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
  }

  .card:hover p {
    color: var(--text-main);
    transform: translateX(5px);
  }

  .bio-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: start;
  }

  .bio-image-card {
    background: white;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
    position: sticky;
    top: 100px;
  }

  .bio-img {
    width: 100%;
    border-radius: 15px;
    filter: sepia(10%);
    margin-bottom: 15px;
    transition: all 0.6s ease;
  }

  .bio-image-card:hover .bio-img {
    transform: scale(1.05);
    filter: sepia(0%);
    box-shadow: 0 10px 30px rgba(0, 98, 51, 0.2);
  }

  .bio-stat {
    display: inline-block;
    background: var(--alg-green-dark);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 5px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }

  .bio-stat::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
  }

  .bio-stat:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 98, 51, 0.3);
    background: var(--alg-green);
  }

  .bio-stat:hover::before {
    width: 200px;
    height: 200px;
  }

  .bio-chapter {
    margin-bottom: 30px;
    padding-left: 25px;
    border-left: 3px solid var(--alg-red);
    position: relative;
  }

  :lang(ar) .bio-chapter {
    padding-left: 0;
    padding-right: 25px;
    border-left: none;
    border-right: 3px solid var(--alg-red);
  }

  .bio-chapter h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--alg-green-dark);
    margin-bottom: 10px;
  }

  .bio-chapter p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .quote-box {
    background: rgba(0, 98, 51, 0.04);
    padding: 25px;
    border-radius: 16px;
    border: 1px dashed var(--alg-green);
    margin-top: 30px;
    font-style: italic;
    text-align: center;
  }

  .timeline {
    margin-top: 30px;
    border-left: 2px dashed var(--alg-green);
    padding-left: 20px;
  }

  :lang(ar) .timeline {
    border-left: none;
    border-right: 2px dashed var(--alg-green);
    padding-left: 0;
    padding-right: 20px;
  }

  .timeline-item {
    position: relative;
    margin-bottom: 24px;
  }

  .timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--alg-red);
    box-shadow: 0 0 0 4px white;
  }

  :lang(ar) .timeline-item::before {
    left: auto;
    right: -26px;
  }

  footer {
    text-align: center;
    padding: 60px 20px;
    margin-top: 80px;
    background: white;
    border-top: 1px solid var(--beige-dark);
    position: relative;
  }

  .floating-leaf {
    position: fixed;
    z-index: 0;
    opacity: 0.1;
    pointer-events: none;
    animation: float 10s ease-in-out infinite;
    filter: blur(1px);
  }

  @keyframes float {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0.1; }
    50% { transform: translateY(-30px) rotate(10deg); opacity: 0.15; }
    100% { transform: translateY(0px) rotate(0deg); opacity: 0.1; }
  }



  @media (max-width: 900px) {
    nav {
      padding: 10px 16px;
      width: 96%;
      top: 8px;
    }

    .brand {
      font-size: 1rem;
      gap: 8px;
    }

    .logo-mark {
      width: 36px;
      height: 36px;
    }

    .lang-btn {
      display: none;
    }

    .nav-toggle {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .nav-links {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background: var(--beige-bg);
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 16px;
      padding: 80px 20px 40px;
      transform: translateX(100%);
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      border-radius: 0;
      box-shadow: none;
      z-index: 999;
      overflow-y: auto;
    }

    .nav-links.open {
      transform: translateX(0);
    }

    .nav-links a {
      width: 90%;
      max-width: 400px;
      text-align: center;
      font-size: 1.3rem;
      padding: 18px 32px;
      background: var(--paper);
      box-shadow: var(--shadow-sm);
      border: 1px solid rgba(255, 255, 255, 0.6);
    }

    #langBtnDesktop {
      display: none;
    }

    #langBtnMobile {
      display: block;
      margin-top: 20px;
      width: 90%;
      max-width: 400px;
      padding: 18px 32px;
      font-size: 1.2rem;
    }

    .container {
      padding: 90px 16px 40px;
    }

    .hero {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 30px;
      margin-bottom: 60px;
    }

    .hero-visual {
      order: 0;
    }

    .hero-img-frame {
      animation: none;
    }

    .hero-text h2 {
      font-size: 2rem;
      margin-bottom: 16px;
    }

    .hero-text p {
      font-size: 1rem;
      max-width: 100%;
      margin-bottom: 24px;
    }

    .btn-group {
      flex-direction: column;
      gap: 12px;
      width: 100%;
    }

    .btn {
      width: 100%;
      padding: 16px 24px;
      font-size: 1.05rem;
    }

    .hero-img-frame {
      max-width: 100%;
      margin: 0 auto;
    }

    .section-title h3 {
      font-size: 1.75rem;
    }

    .grid-3 {
      grid-template-columns: 1fr;
      gap: 20px;
    }

    .card {
      padding: 24px;
    }

    .card h3 {
      font-size: 1.3rem;
    }

    .card p {
      font-size: 0.95rem;
    }

    .bio-grid {
      grid-template-columns: 1fr;
      gap: 30px;
    }

    .bio-image-card {
      position: relative;
      top: 0;
      max-width: 100%;
      margin: 0 auto 30px;
    }

    .bio-chapter {
      padding-left: 20px;
      margin-bottom: 24px;
    }

    :lang(ar) .bio-chapter {
      padding-right: 20px;
    }

    .bio-chapter h4 {
      font-size: 1.25rem;
    }

    .bio-chapter p {
      font-size: 1rem;
    }

    .quote-box {
      padding: 20px;
      font-size: 0.95rem;
    }

    .timeline {
      text-align: left;
      padding-left: 16px;
    }

    :lang(ar) .timeline {
      text-align: right;
      padding-right: 16px;
    }

    footer {
      padding: 40px 16px;
      margin-top: 60px;
    }

    footer p {
      font-size: 0.95rem;
    }

    footer .btn {
      width: 100%;
      max-width: 300px;
    }
  }

  @media (max-width: 400px) {
    .hero-text h2 {
      font-size: 1.75rem;
    }

    .section-title h3 {
      font-size: 1.5rem;
    }

    .nav-links a {
      font-size: 1.1rem;
      padding: 16px 24px;
    }

    .btn {
      padding: 14px 20px;
      font-size: 1rem;
    }

    .card {
      padding: 20px;
    }

    .bio-stat {
      font-size: 0.75rem;
      padding: 5px 10px;
    }
  }


.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  justify-items: center;
  align-items: center;
}

.contact-grid .contact-btn {
  padding: 10px 14px;
  border-radius: 12px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
}

@media (max-width: 480px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid .contact-btn { max-width: none; }
}


.mobile-hero-img {
  display: none;
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  margin: -12px auto 12px;
}

@media (max-width: 900px) {
  .mobile-hero-img {
    display: block;
  }


  .hero-visual {
    display: none;
  }
}

  @media (prefers-contrast: high) {
    .card {
      border: 2px solid var(--alg-green);
    }

    .btn {
      border: 2px solid currentColor;
    }
  }

  @media (max-height: 500px) and (orientation: landscape) {
    .nav-links {
      flex-direction: row;
      flex-wrap: wrap;
      padding: 60px 20px 20px;
    }

    .nav-links a {
      width: auto;
      min-width: 140px;
    }

    #langBtnMobile {
      width: auto;
      min-width: 140px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }

    .floating-leaf {
      display: none;
    }

    .hero-img-frame {
      animation: none;
    }

    .logo-mark {
      animation: none;
    }
  }


/* Lien de l'événement en cours (tournoi) dans la navigation */
.nav-links a.nav-event { color: #7C1A24; font-weight: 800; }
.nav-links a.nav-event::after { background: #7C1A24; }
@media (min-width: 901px) and (max-width: 1180px) {
  .nav-links a { padding: 10px 11px; font-size: 0.88rem; }
  .lang-btn { padding: 10px 14px; min-width: 76px; }
}

/* ------------------------------------------------------------------
   Animations calmées : plus de rebonds ni de brillance.
   Les survols gardent seulement un changement de couleur ou de bordure.
   (« body » devant les sélecteurs pour passer devant les styles propres
   à chaque page.)
   ------------------------------------------------------------------ */

.logo-mark,
.brand:hover .logo-mark { animation: none; transform: none; }
.logo-mark { background: #fff; padding: 4px; }

.nav-links a:hover, .nav-links a.active { transform: none; }

.lang-btn::before, .btn::before, .bio-stat::before { display: none; }
.lang-btn:hover, .lang-btn:active { transform: none; box-shadow: 0 8px 20px rgba(0, 98, 51, 0.2); }
.btn-primary:hover, .btn-primary:active { transform: none; background: var(--alg-green-dark); }
.btn-secondary:hover, .btn-secondary:active { transform: none; box-shadow: none; }


.section-title:hover h3 { transform: none; }
.section-title:hover::after { width: 60px; background: var(--alg-red); }
.bio-image-card:hover .bio-img { transform: none; box-shadow: none; }
.bio-stat:hover { transform: none; box-shadow: none; }

/* Pages Clubs, Classes, Actualités */
body .club-card:hover { transform: none; box-shadow: 0 6px 24px rgba(0, 98, 51, 0.07); }
body .club-card:hover .club-emoji-wrap { transform: none; }
body .hero-badge:hover, body .filter-btn:hover, body .activity-chip:hover,
body .stat-pill:hover, body .year-tab:hover, body .news-filter-btn:hover { transform: none; }
body .join-section .btn-white:hover { transform: none; }
body .class-card:hover { transform: none; box-shadow: 0 4px 20px rgba(0, 98, 51, 0.06); }
body .article-card:hover { transform: none; box-shadow: 0 6px 24px rgba(0, 98, 51, 0.07); }
body .article-card:hover .article-img-wrap img { transform: none; }
body .admin-toggle-btn:hover { transform: none; }

/* Bannière et pages de l'événement */
body .event-banner:hover, body .event-side:hover { transform: none; }

/* ------------------------------------------------------------------
   Nom du lycée en guise de logo, police Apple Tree (Nevan Orr, gratuite).
   Fichier : public/fonts/apple-tree.woff2.
   ------------------------------------------------------------------ */
@font-face {
  font-family: 'Apple Tree';
  src: url('fonts/apple-tree.woff2') format('woff2');
  font-display: swap;
}
nav .brand .wordmark,
:lang(fr) nav .brand .wordmark,
:lang(en) nav .brand .wordmark,
:lang(ar) nav .brand .wordmark {
  font-family: 'Apple Tree', 'Archivo Black', 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--alg-green-dark);
  direction: ltr;
  white-space: nowrap;
}
@media (max-width: 900px) {
  nav .brand .wordmark, :lang(fr) nav .brand .wordmark, :lang(en) nav .brand .wordmark, :lang(ar) nav .brand .wordmark { font-size: 1.4rem; }
}
/* Pages d'événements : le nom en haut à gauche prend la couleur de l'événement (il y glisse depuis le vert au chargement). */
body.jp-page nav .brand .wordmark { --wm: #7C1A24; }
body.dz-page nav .brand .wordmark { --wm: #22409A; }
body.vb-page nav .brand .wordmark { --wm: #0062BE; text-shadow: -2px -2px 0 rgba(255, 72, 176, .85); }
body:is(.jp-page, .dz-page, .vb-page) nav .brand .wordmark { color: var(--wm); animation: wm-theme .9s ease both .15s; }
body:is(.jp-page, .dz-page, .vb-page) .nav-drop-btn.active { color: var(--wm-c, inherit); }
body.jp-page { --wm-c: #7C1A24; } body.dz-page { --wm-c: #22409A; } body.vb-page { --wm-c: #0062BE; }
@keyframes wm-theme { from { color: var(--alg-green-dark); text-shadow: none; } }
@media (prefers-reduced-motion: reduce) { body:is(.jp-page, .dz-page, .vb-page) nav .brand .wordmark { animation: none; } }


/* Bouton de langue : couleur selon la langue affichée (bleu FR, vert AR, rouge EN) */
html[lang="fr"] .lang-btn { background: #0055A4; box-shadow: 0 8px 20px rgba(0, 85, 164, 0.25); }
html[lang="ar"] .lang-btn { background: #006233; box-shadow: 0 8px 20px rgba(0, 98, 51, 0.25); }
html[lang="en"] .lang-btn { background: #D21034; box-shadow: 0 8px 20px rgba(210, 16, 52, 0.25); }
html[lang="fr"] .lang-btn:hover { background: #00478A; box-shadow: 0 8px 20px rgba(0, 85, 164, 0.25); }
html[lang="ar"] .lang-btn:hover { background: #004d28; box-shadow: 0 8px 20px rgba(0, 98, 51, 0.25); }
html[lang="en"] .lang-btn:hover { background: #B00D2C; box-shadow: 0 8px 20px rgba(210, 16, 52, 0.25); }
.lang-btn { letter-spacing: 0.06em; }

/* ------------------------------------------------------------------
   Retouche douce (nov. 2026) : même structure, mêmes couleurs.
   Polices, titres de section, citation, cartes du bas, pied de page,
   et léger zoom sur la photo d'Ali Chmachma.
   Les pages d'événements (tournoi : .jp-page, dessin : .dz-page) gardent leurs polices.
   ------------------------------------------------------------------ */
:root { --ink-line: rgba(0, 77, 40, .14); }

/* 1. Polices : Fraunces pour les titres, Plus Jakarta Sans pour le texte, Amiri pour les titres arabes */
body:not(.jp-page):not(.dz-page):is(:lang(fr), :lang(en)) { font-family: 'Plus Jakarta Sans', sans-serif; }
body:not(.jp-page):not(.dz-page) :is(h1, h2, h3, h4):is(:lang(fr), :lang(en)) {
  font-family: 'Fraunces', Georgia, serif !important; font-weight: 800; letter-spacing: -.012em;
}
body:not(.jp-page):not(.dz-page) :is(h1, h2, h3, h4):lang(ar) { font-family: 'Amiri', 'Tajawal', serif !important; font-weight: 700; }
/* … sauf les bannières d'événements de l'accueil */
body:not(.jp-page):not(.dz-page) .event-banner h2 { font-family: var(--jp-display) !important; letter-spacing: 0; }
html[dir="rtl"] body:not(.jp-page):not(.dz-page) .event-banner h2 { font-family: 'Tajawal', sans-serif !important; font-weight: 900; }
body:not(.jp-page):not(.dz-page) .event-side--dessin h3 { font-family: 'Noto Serif JP', Georgia, serif !important; font-weight: 900; }
html[dir="rtl"] body:not(.jp-page):not(.dz-page) .event-side--dessin h3 { font-family: 'Aref Ruqaa', serif !important; font-weight: 700; }
body:not(.jp-page):not(.dz-page) .event-side--volley h3 { font-family: 'Archivo Black', 'Plus Jakarta Sans', sans-serif !important; font-weight: 400; }
html[lang="ar"] body:not(.jp-page):not(.dz-page) .event-side--volley h3 { font-family: 'Tajawal', sans-serif !important; font-weight: 900; }

/* 2. Accueil : petite étiquette au-dessus du titre */
.hero-text h2 { font-size: 3.35rem; line-height: 1.04; margin-bottom: 18px; }
@media (max-width: 900px) { .hero-text h2 { font-size: 2.5rem; } }
.hero-text::before {
  content: "Aïn Smara · Constantine"; display: inline-block; margin-bottom: 18px;
  border: 1.5px solid var(--alg-green); color: var(--alg-green); padding: 6px 12px;
  font: 800 .72rem/1 'Plus Jakarta Sans', sans-serif; letter-spacing: .16em; text-transform: uppercase;
}
:lang(ar) .hero-text::before { content: "عين سمارة · قسنطينة"; letter-spacing: 0; font-family: 'Tajawal', sans-serif; font-size: .85rem; }

/* 3. Titres de section : trait – point – trait */
.section-title h3 { font-size: 2.45rem; }
.section-title::after, .section-title:hover::after {
  width: 132px; height: 12px; border-radius: 0; margin-top: 12px;
  background:
    radial-gradient(circle, var(--alg-red) 0 4px, transparent 4.6px) center / 12px 12px no-repeat,
    linear-gradient(var(--alg-red), var(--alg-red)) left center / 52px 1.5px no-repeat,
    linear-gradient(var(--alg-red), var(--alg-red)) right center / 52px 1.5px no-repeat;
}

/* 4. Hommage : photo qui grossit légèrement au survol, citation en page de livre */
.bio-img-wrap { overflow: hidden; border-radius: 15px; margin-bottom: 15px; }
.bio-img-wrap .bio-img { display: block; margin: 0; border-radius: 0; transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .7s ease; }
.bio-image-card:hover .bio-img-wrap .bio-img { transform: scale(1.04); filter: sepia(0%); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .bio-image-card:hover .bio-img-wrap .bio-img { transform: none; } }
.bio-chapter h4 { font-size: 1.45rem; }
.quote-box {
  position: relative; background: #fff; border: 1px solid var(--ink-line); border-radius: 18px;
  padding: 34px 40px 30px; margin-top: 44px; font-style: normal; text-align: center;
  font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.18rem; line-height: 1.55; color: var(--alg-green-dark);
}
:lang(ar) .quote-box { font-family: 'Amiri', serif; font-size: 1.3rem; }
.quote-box::before {
  content: "“"; position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; box-sizing: border-box; padding-top: 14px;
  background: var(--alg-red); color: #fff; font: 900 2.4rem/1 'Fraunces', Georgia, serif;
}

/* 5. Cartes « Vie du lycée » : une flèche qui invite à cliquer */
.grid-3 .card h3 { display: flex; align-items: center; gap: .55rem; }
.grid-3 .card h3::after { content: "→"; margin-inline-start: auto; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; color: var(--alg-red); transition: transform .3s ease; }
:lang(ar) .grid-3 .card h3::after { content: "←"; }
.grid-3 .card:hover h3::after { transform: translateX(4px); }
:lang(ar) .grid-3 .card:hover h3::after { transform: translateX(-4px); }

/* 6. Pied de page plus léger, assorti au fond */
footer { background: transparent; border-top: 1px solid var(--ink-line); }
footer [data-i18n="footer-copy"] { font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: 1.35rem !important; }
:lang(ar) footer [data-i18n="footer-copy"] { font-family: 'Amiri', serif; }
footer a[href^="mailto"] {
  display: inline-flex !important; background: #fff !important; color: var(--alg-green) !important;
  border: 1.5px solid var(--alg-green); border-radius: 999px !important; padding: 10px 20px !important;
}
footer .contact-btn { background: #fff; border: 1px solid var(--ink-line); }

/* ------------------------------------------------------------------
   Accueil · « Vie du lycée » : trois affiches (aplat, signe, nom),
   même système que les pages Clubs, Classes et Actualités.
   ------------------------------------------------------------------ */
.life-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
/* carte blanche, signe et nom dans la couleur de la carte */
.life-card { --c: #006233; position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden;
  background: #fff; border: 1.5px solid color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); text-decoration: none; transition: box-shadow .3s ease; }
.life-card:hover, .life-card:focus-visible { box-shadow: 6px 6px 0 var(--c); outline: none; }
.life-sign { position: absolute; width: 50%; aspect-ratio: 1; right: -8%; bottom: -12%; background: var(--c);
  -webkit-mask: var(--s) center / contain no-repeat; mask: var(--s) center / contain no-repeat;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
html[dir="rtl"] .life-sign { right: auto; left: -8%; }
.life-card:hover .life-sign { transform: rotate(-4deg) scale(1.04); }
.life-n { position: absolute; top: 20px; inset-inline-start: 22px; font-family: ui-monospace, Menlo, monospace; font-size: .8rem; letter-spacing: .06em; opacity: .7; }
.life-name { position: absolute; top: 48px; inset-inline-start: 22px; inset-inline-end: 22px; font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1; }
:lang(ar) .life-name { font-family: 'Amiri', serif; font-weight: 700; line-height: 1.3; }
.life-sub { position: absolute; bottom: 22px; inset-inline-start: 22px; max-width: 52%; font-size: .86rem; font-weight: 600; line-height: 1.4; color: #5C6660;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.life-go { position: absolute; top: 18px; inset-inline-end: 18px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: #fff; font-weight: 800; transition: transform .3s ease; }
html[dir="rtl"] .life-go { transform: scaleX(-1); }
.life-card:hover .life-go { transform: translateX(3px); }
html[dir="rtl"] .life-card:hover .life-go { transform: scaleX(-1) translateX(3px); }
@media (max-width: 900px) { .life-grid { grid-template-columns: 1fr; gap: 12px; } .life-card { aspect-ratio: auto; min-height: 168px; } .life-sign { width: 30%; max-width: 150px; bottom: -16%; } .life-sub { max-width: 62%; bottom: 18px; -webkit-line-clamp: 2; } .life-name { top: 42px; } }

/* ==================================================================
   Éléments communs (site-ui.js) — nov. 2026
   ================================================================== */

/* Feuilles décoratives : seulement sur les bords, jamais derrière le contenu */
.floating-leaf { opacity: .08 !important; }
.floating-leaf:nth-of-type(1) { top: -90px !important; right: -170px !important; width: 330px !important; }
.floating-leaf:nth-of-type(2) { bottom: -160px !important; left: -210px !important; top: auto !important; width: 360px !important; }
@media (max-width: 900px) { .floating-leaf { display: none !important; } }

/* Sélecteur de langue FR | ع | EN */
html.has-seg .lang-btn { display: none !important; }
.lang-seg { display: inline-flex; gap: 3px; padding: 4px; border-radius: 999px; background: #fff; border: 1.5px solid rgba(0, 77, 40, .14); }
.lang-seg button { border: 0; background: none; cursor: pointer; font: 700 .82rem 'Plus Jakarta Sans', sans-serif; color: var(--text-muted);
  min-width: 40px; padding: 7px 10px; border-radius: 999px; transition: background .2s ease, color .2s ease; }
.lang-seg button[lang="ar"] { font-family: 'Amiri', 'Tajawal', serif; font-size: 1.05rem; padding: 3px 10px 5px; }
.lang-seg button:hover { color: var(--alg-green-dark); }
.lang-seg button[aria-pressed="true"][lang="fr"] { background: #0055A4; color: #fff; }
.lang-seg button[aria-pressed="true"][lang="ar"] { background: #006233; color: #fff; }
.lang-seg button[aria-pressed="true"][lang="en"] { background: #D21034; color: #fff; }
.lang-seg.seg-mob { display: none; }
@media (max-width: 900px) {
  .lang-seg.seg-desk { display: none; }
  .lang-seg.seg-mob { display: inline-flex; margin-top: 20px; }
  .lang-seg.seg-mob button { min-width: 72px; padding: 12px 16px; font-size: 1.05rem; }
  .lang-seg.seg-mob button[lang="ar"] { font-size: 1.3rem; padding: 6px 16px 8px; }
}

/* Menu « Événements » */
.nav-drop { position: relative; display: flex; }
.nav-drop-btn { border: 0; background: none; cursor: pointer; font: 600 .95rem inherit; font-family: inherit; color: #7C1A24;
  padding: 10px 18px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; transition: background .2s ease; }
.nav-drop-btn::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-drop-btn:hover, .nav-drop.open .nav-drop-btn, .nav-drop-btn.active { background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,.05); }
.nav-drop-menu { position: absolute; top: calc(100% + 10px); inset-inline-start: 0; min-width: 240px; background: #fff; border: 1px solid rgba(0,77,40,.12);
  border-radius: 16px; padding: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.12); display: none; flex-direction: column; gap: 2px; z-index: 20; }
.nav-drop.open .nav-drop-menu { display: flex; }
.nav-drop-menu a { display: flex !important; align-items: center; gap: 12px; padding: 10px 12px !important; border-radius: 10px !important; color: var(--text-main) !important;
  font-weight: 700 !important; box-shadow: none !important; transform: none !important; background: none !important; }
.nav-drop-menu a::after { display: none !important; }
.nav-drop-menu a:hover { background: var(--beige-bg) !important; }
.nav-drop-menu i { width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; }
.nav-drop-menu i.ev-chess { background: #7C1A24; }
.nav-drop-menu i.ev-draw { background: #DBF1FE; border: 2px solid #22409A; }
.nav-drop-menu i.ev-volley { background: #E9F4EC radial-gradient(circle at 50% 50%, #C8102E 0 5px, transparent 5.5px); border: 2px solid #006233; }
@media (max-width: 900px) {
  .nav-drop { display: contents; }
  .nav-drop-btn { display: none; }
  .nav-drop-menu { position: static; display: contents; }
  .nav-drop-menu a { width: 90%; max-width: 400px; justify-content: center; font-size: 1.3rem !important; padding: 18px 32px !important;
    background: var(--paper) !important; box-shadow: var(--shadow-sm) !important; border-radius: 99px !important; }
}

/* Bandeau d'annonce */
.site-announce { position: fixed; top: 0; left: 0; right: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 42px; padding: 8px 52px; color: #fff; font: 700 .92rem 'Plus Jakarta Sans', 'Tajawal', sans-serif; text-align: center; }
.site-announce.tone-red { background: #C8102E; }
.site-announce.tone-green { background: #006233; }
.site-announce button { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); border: 0; background: rgba(255,255,255,.18); color: #fff;
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: .85rem; }
html.has-announce nav { top: 54px; }
html.has-announce body { padding-top: 42px; }
@media (max-width: 900px) { html.has-announce nav { top: 50px; } .site-announce { font-size: .84rem; padding: 8px 46px 8px 14px; } }

/* Pied de page unique */
footer.site-footer .sf-copy { font-weight: 700; font-size: 1.2rem; color: var(--alg-green); }
footer.site-footer .sf-mail { margin: 4px 0 18px; }
footer.site-footer .sf-mail a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; background: #fff; color: var(--alg-green);
  border: 1.5px solid var(--alg-green); font-weight: 700; font-size: .85rem; text-decoration: none; }
footer.site-footer .sf-sep { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
footer.site-footer .sf-sep span { flex: 1; height: 1px; background: var(--beige-dark); }
footer.site-footer .sf-sep b { font-size: .7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
:lang(ar) footer.site-footer .sf-sep b { letter-spacing: 0; font-size: .85rem; }
footer.site-footer .sf-team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
footer.site-footer .contact-btn { font-size: .78rem; padding: 10px 8px; background: #fff; border: 1px solid rgba(0,77,40,.14); }
body.jp-page footer.site-footer, body.dz-page footer.site-footer { font-family: 'Plus Jakarta Sans', 'Tajawal', sans-serif; }

/* Accueil : agenda */
a.agenda-it.agenda-link { text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
a.agenda-it.agenda-link:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--c); }
.agenda { margin: -30px 0 70px; }
.agenda[hidden] { display: none; }
.agenda-k { display: inline-block; border: 1.5px solid var(--alg-green); color: var(--alg-green); padding: 5px 11px; font-weight: 800; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
:lang(ar) .agenda-k { letter-spacing: 0; font-size: .85rem; }
.agenda-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.agenda-it { --c: #006233; display: grid; grid-template-columns: 84px minmax(0, 1fr); background: #fff; border: 1px solid rgba(0,77,40,.14); border-radius: 16px; overflow: hidden; }
.agenda-d { background: var(--c); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 0; }
.agenda-d b { font-family: 'Fraunces', Georgia, serif; font-weight: 900; font-size: 2.2rem; line-height: 1; }
.agenda-d span { font-family: ui-monospace, Menlo, monospace; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
:lang(ar) .agenda-d span { font-family: 'Tajawal', sans-serif; letter-spacing: 0; font-size: .9rem; }
.agenda-t { padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; }
.agenda-t b { font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: 1.12rem; color: var(--text-main); line-height: 1.2; }
.agenda-t span { font-size: .86rem; color: var(--text-muted); }
@media (max-width: 900px) { .agenda { margin: -20px 0 50px; } .agenda-row { grid-template-columns: 1fr; gap: 10px; } .agenda-it { grid-template-columns: 72px minmax(0, 1fr); } .agenda-d b { font-size: 1.8rem; } }


/* ================================================================
   « Cahier » — fond discret commun aux pages du site
   Quadrillage fin de cahier d'écolier, très pâle, qui s'efface vers
   le centre de la page ; grain de papier à peine perceptible.
   ================================================================ */
.floating-leaf { display: none !important; }
html { background: var(--beige-bg); }
body:not(.jp-page):not(.dz-page) { background-color: transparent; position: relative; isolation: isolate; }
body:not(.jp-page):not(.dz-page)::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 77, 40, .042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 77, 40, .042) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 46%, transparent 38%, #000 100%);
          mask-image: radial-gradient(ellipse 62% 70% at 50% 46%, transparent 38%, #000 100%);
}
body:not(.jp-page):not(.dz-page)::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Menu « Événements » : même typo et même couleur que les autres liens */
.nav-drop-btn { font-family: inherit; font-size: .95rem; font-weight: 600; line-height: inherit; color: var(--text-muted);
  position: relative; transition: all .4s cubic-bezier(.34, 1.56, .64, 1); }
.nav-drop-btn:hover, .nav-drop.open .nav-drop-btn, .nav-drop-btn.active { color: var(--alg-green); transform: translateY(-2px); }
.nav-drop-btn.active { color: var(--alg-green); }
@media (min-width: 901px) and (max-width: 1180px) { .nav-drop-btn { padding: 10px 11px; font-size: .88rem; } }

/* Branches aux coins de l'écran (à la place des anciennes feuilles) :
   un rameau d'olivier en haut à droite, un rameau de grenadier en bas à gauche
   (fleurs au bout des rameaux, boutons, une grenade mûre et une jeune grenade suspendues)
   — le vert et le rouge du drapeau, en plantes de chez nous.
   Chaque tige entre par le coin de l'écran : seul ce bout de tige nu est coupé,
   toutes les feuilles, fleurs et fruits restent entiers. Le balancement tourne
   autour du coin et toujours vers l'intérieur de l'écran. */
html::before, html::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  background: center / 100% 100% no-repeat;
}
html::before { width: 483px; height: 378px; right: -6.2px; top: -6.2px; opacity: .2;
  background-image: url('/img/branches/olivier.svg');
  transform-origin: 99.3% 0.8%; animation: branche 9s ease-in-out infinite alternate; }
html::after { width: 365px; height: 312px; left: -6.2px; bottom: -6.2px; opacity: .2;
  background-image: url('/img/branches/grenadier.svg');
  transform-origin: 0.9% 99.0%; animation: branche 11s ease-in-out infinite alternate; }
@keyframes branche { from { transform: rotate(0deg); } to { transform: rotate(-2deg); } }
html:has(body.jp-page)::before, html:has(body.jp-page)::after,
html:has(body.dz-page)::before, html:has(body.dz-page)::after { display: none; }
@media (max-width: 900px) {
  html::before { width: 254px; height: 198px; right: -4.7px; top: -4.7px; opacity: .16; }
  html::after { width: 192px; height: 164px; left: -4.7px; bottom: -4.7px; opacity: .15; }
}
@media (prefers-reduced-motion: reduce) { html::before, html::after { animation: none; } }
