/* ==========================
   AyitiChrono - style.css
   ========================== */

/* Variables globales */
:root{
  --brand-blue: #003366;
  --brand-blue-alpha: rgba(0, 51, 102, 0.8);
  --accent: #ffcc00;
  --text: #222;
  --muted: #777;
  --bg-light: #f6f6f6;
}

/* Reset / global */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.5;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Container utilitaire */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================
   FOOTER
   ========================== */
footer{
  background: var(--brand-blue);
  color: white;
  padding: 28px 20px;
  margin-top: 36px;
  width: 100%;
  text-align: center;
}

/* ==========================
   HEADER / TOPBAR
   ========================== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  background: var(--brand-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Logo */
.logo{
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.5px;
}

/* Desktop menu */
.desktop-menu{
  display: flex;
  gap: 18px;
  align-items: center;
}

.desktop-menu a,
.dropbtn{
  color: white;
  text-decoration: none;
  font-size: 15px;
  padding: 6px 8px;
  border-radius: 4px;
  transition: background .18s;
  cursor: pointer;
  background: none;
  border: none;
}

.desktop-menu a:hover,
.dropbtn:hover{
  background: rgba(255,255,255,0.06);
}

/* ==========================
   DROPDOWN (Desktop)
   ========================== */

.dropdown{
  position: relative;
  display: inline-block;
}

.dropdown-content{
  display: none;
  position: absolute;
  background: var(--brand-blue);
  min-width: 200px;
  padding: 6px 0;
  top: 100%;
  left: 0;
  z-index: 20;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.dropdown-content a{
  color: white;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
  font-size: 14px;
}

.dropdown-content a:hover{
  background: #002244;
}

.dropdown:hover .dropdown-content{
  display: block;
}

/* ==========================
   MOBILE MENU
   ========================== */

.menu-btn{
  display: none;
  font-size: 26px;
  cursor: pointer;
  background: none;
  border: none;
  color: white;
}

.mobile-menu{
  position: absolute;
  right: 12px;
  top: 56px;
  background: var(--brand-blue-alpha);
  padding: 12px;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  min-width: 200px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.mobile-menu a{
  color: white;
  padding: 10px 8px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-menu a:last-child{
  border-bottom: none;
}

/* MOBILE DROPDOWN */
.mobile-dropdown{
  margin-bottom: 10px;
}

.mobile-dropbtn{
  width: 100%;
  background: none;
  border: none;
  color: white;
  font-size: 15px;
  text-align: left;
  padding: 8px 0;
  cursor: pointer;
}

.mobile-dropdown-content{
  display: none;
  padding-left: 14px;
}

.mobile-dropdown-content a{
  color: white;
  padding: 8px 0;
  display: block;
  font-size: 14px;
}

.mobile-dropdown.active .mobile-dropdown-content{
  display: block;
}

/* ==========================
   HERO
   ========================== */
.hero{
  position: relative;
  height: 400px;
  overflow: hidden;
}
.hero img,
.hero .slides img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s;
}
.hero img.active,
.hero .slides img.active{
  opacity: 1;
}
.hero-text{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  color: white;
  text-align: center;
  text-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

/* ==========================
   ARTICLES / GRID
   ========================== */

.section{ padding: 26px 0; }

.articles-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 18px;
}

.card{
  background: white;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}
.card img{
  width:100%;
  height:150px;
  object-fit:cover;
  border-radius:6px;
}

/* ==========================
   RESPONSIVE
   ========================== */

@media (max-width: 900px){
  .desktop-menu{ display:none; }
  .menu-btn{ display:block; }
  .mobile-menu.active{ display:flex; }
}

@media (max-width: 480px){
  .logo{ font-size:20px; }
  .dropbtn{ font-size:14px; }
}