/*
Theme Name: Algerian Aquatics
Theme URI: https://example.com
Author: Algerian Aquatics
Author URI: https://example.com
Description: Thème WordPress pour la Fédération Algérienne des Jeux Aquatiques — natation course, water-polo, plongeon, natation artistique.
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: algerian-aquatics
*/

:root{
  --deep:#0B3D4C;
  --pool:#1C7293;
  --sun:#FFB238;
  --foam:#F3F8F9;
  --ink:#10262B;
  --green:#1E7A4C;
  --line: rgba(11,61,76,.12);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--foam);
  color:var(--ink);
  font-family:'Inter',sans-serif;
  line-height:1.5;
}
h1,h2,h3,.display{
  font-family:'Big Shoulders Display', sans-serif;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.01em;
  color:var(--deep);
}
.mono{font-family:'IBM Plex Mono', monospace;}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
.wrap{max-width:1180px; margin:0 auto; padding:0 24px;}

/* Topbar */
.topbar{background:var(--deep); color:#cfe6ec; font-size:13px;}
.topbar .wrap{display:flex; justify-content:space-between; align-items:center; height:38px; flex-wrap:wrap; gap:6px;}
.topbar a:hover{color:#fff;}

/* Nav */
header.main{background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:50;}
nav{display:flex; align-items:center; justify-content:space-between; height:76px;}
.logo{display:flex; align-items:center; gap:12px;}
.logo .mark{width:40px; height:40px; border-radius:8px; background:var(--pool); display:flex; align-items:center; justify-content:center;}
.logo .mark svg{width:24px; height:24px;}
.logo strong{font-family:'Big Shoulders Display'; font-weight:800; font-size:19px; letter-spacing:.02em; color:var(--deep); text-transform:uppercase; display:block; line-height:1;}
.logo span{font-size:11px; color:var(--pool); letter-spacing:.08em; text-transform:uppercase;}
.menu{display:flex; gap:30px; font-size:15px; font-weight:600; list-style:none;}
.menu li{position:relative;}
.menu a{position:relative; padding:6px 0; display:inline-block;}
.menu a::after{content:''; position:absolute; left:0; bottom:0; width:0; height:2px; background:var(--sun); transition:width .2s;}
.menu a:hover::after{width:100%;}
.burger{display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer;}
.burger span{width:24px; height:2px; background:var(--deep);}

/* Hero */
.hero{position:relative; overflow:hidden; background:linear-gradient(180deg,#0B3D4C 0%, #114F63 100%); color:#fff; padding:76px 0 0;}
.hero .wrap{display:grid; grid-template-columns:1.2fr 1fr; gap:50px; align-items:center; padding-bottom:60px;}
.eyebrow{font-family:'IBM Plex Mono'; font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--sun); margin-bottom:14px; display:flex; align-items:center; gap:10px;}
.eyebrow::before{content:''; width:22px; height:2px; background:var(--sun); display:inline-block;}
.hero h1{font-size:52px; line-height:.98; color:#fff; margin-bottom:20px;}
.hero h1 em{font-style:normal; color:var(--sun);}
.hero p.lead{font-size:17px; color:#cfe6ec; max-width:480px; margin-bottom:32px;}
.btn-row{display:flex; gap:14px; flex-wrap:wrap;}
.btn{display:inline-flex; align-items:center; gap:8px; padding:14px 24px; border-radius:6px; font-weight:700; font-size:14px; letter-spacing:.02em; text-transform:uppercase; transition:transform .15s, box-shadow .15s;}
.btn:hover{transform:translateY(-2px);}
.btn-primary{background:var(--sun); color:var(--deep);}
.btn-primary:hover{box-shadow:0 8px 20px rgba(255,178,56,.35);}
.btn-ghost{border:1.5px solid rgba(255,255,255,.35); color:#fff;}
.btn-ghost:hover{border-color:#fff;}

/* Scoreboard card */
.scoreboard{background:#fff; border-radius:10px; padding:26px 26px 22px; box-shadow:0 20px 50px rgba(0,0,0,.25); color:var(--ink);}
.scoreboard .comp-name{font-family:'Big Shoulders Display'; font-weight:800; font-size:22px; color:var(--deep); text-transform:uppercase; margin-bottom:2px;}
.scoreboard .comp-loc{font-size:13px; color:var(--pool); font-weight:600; margin-bottom:18px;}
.clock{display:flex; gap:10px;}
.clock .unit{flex:1; background:var(--deep); border-radius:6px; padding:12px 0; text-align:center;}
.clock .unit b{display:block; font-family:'IBM Plex Mono'; font-size:26px; color:var(--sun); font-weight:600;}
.clock .unit small{font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:#9fc4d0;}
.scoreboard .status{margin-top:16px; display:flex; align-items:center; gap:8px; font-size:12px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--green);}
.status .dot{width:8px; height:8px; border-radius:50%; background:var(--green); box-shadow:0 0 0 4px rgba(30,122,76,.18);}

/* Lane divider — signature element */
.lane-divider{height:16px; position:relative; margin:0;}
.lane-divider::before{content:''; position:absolute; top:50%; left:0; right:0; height:2px; background:var(--pool); opacity:.25; transform:translateY(-50%);}
.lane-divider::after{content:''; position:absolute; inset:0; background-image:radial-gradient(circle, var(--pool) 3.5px, transparent 3.5px); background-size:26px 16px; background-position:center; opacity:.55;}

section{padding:64px 0;}
.section-head{display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:34px; flex-wrap:wrap; gap:12px;}
.section-head .eyebrow{color:var(--pool);}
.section-head .eyebrow::before{background:var(--pool);}
.section-head h2{font-size:34px;}
.more-link{font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--pool); border-bottom:2px solid var(--sun); padding-bottom:2px;}

/* Disciplines */
.disciplines{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
.disc-card{background:#fff; border:1px solid var(--line); border-radius:10px; padding:26px 22px; transition:border-color .2s, transform .2s;}
.disc-card:hover{border-color:var(--pool); transform:translateY(-4px);}
.disc-card .icon{width:42px; height:42px; margin-bottom:16px; color:var(--pool);}
.disc-card h3{font-size:19px; margin-bottom:8px;}
.disc-card p{font-size:13.5px; color:#4a6169;}

/* Results */
.results-grid{display:grid; grid-template-columns:1fr 1fr; gap:40px;}
.result-col h3{font-size:13px; letter-spacing:.1em; color:var(--pool); margin-bottom:16px; padding-bottom:10px; border-bottom:2px solid var(--line);}
.result-item{display:flex; justify-content:space-between; align-items:center; padding:14px 0; border-bottom:1px solid var(--line); font-size:14.5px;}
.result-item:last-child{border-bottom:none;}
.result-item .r-title{font-weight:600; color:var(--ink);}
.result-item .r-meta{font-size:12px; color:#7c9198; font-family:'IBM Plex Mono';}
.tag{font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; padding:3px 8px; border-radius:20px; background:rgba(30,122,76,.1); color:var(--green);}
.tag.pending{background:rgba(255,178,56,.15); color:#a3690b;}

/* Calendar */
.cal-list{display:flex; flex-direction:column; gap:14px;}
.cal-item{display:flex; align-items:center; gap:22px; background:#fff; border:1px solid var(--line); border-radius:10px; padding:16px 22px;}
.cal-date{font-family:'Big Shoulders Display'; font-weight:800; color:var(--deep); text-align:center; min-width:76px; border-right:2px solid var(--line); padding-right:20px;}
.cal-date .d{font-size:24px; display:block; line-height:1;}
.cal-date .m{font-size:12px; letter-spacing:.08em; color:var(--pool);}
.cal-body{flex:1;}
.cal-body h4{font-size:16px; font-weight:700; color:var(--ink); margin-bottom:2px;}
.cal-body p{font-size:13px; color:#5c757c;}

/* Stats / Guide */
.guide{background:var(--deep); color:#fff; border-radius:14px; padding:50px; display:grid; grid-template-columns:1.1fr 1fr; gap:50px;}
.guide h2{color:#fff;}
.guide .eyebrow{color:var(--sun);}
.guide .eyebrow::before{background:var(--sun);}
.doc-list{display:flex; flex-direction:column; gap:2px; margin-top:20px;}
.doc-list a{display:flex; justify-content:space-between; align-items:center; padding:14px 0; border-bottom:1px solid rgba(255,255,255,.12); font-size:14.5px; font-weight:600;}
.doc-list a span.ext{font-family:'IBM Plex Mono'; font-size:11px; color:#9fc4d0; font-weight:500;}
.stat-grid{display:grid; grid-template-columns:1fr 1fr; gap:26px; align-content:center;}
.stat b{font-family:'Big Shoulders Display'; font-size:40px; color:var(--sun); display:block; line-height:1;}
.stat span{font-size:12.5px; color:#9fc4d0; text-transform:uppercase; letter-spacing:.05em;}

/* News */
.news-card{display:grid; grid-template-columns:280px 1fr; gap:28px; background:#fff; border:1px solid var(--line); border-radius:10px; overflow:hidden;}
.news-img{background:linear-gradient(135deg,var(--pool),var(--deep)); min-height:180px; background-size:cover; background-position:center;}
.news-body{padding:26px 30px 26px 0;}
.news-body .date{font-family:'IBM Plex Mono'; font-size:12px; color:var(--pool); margin-bottom:10px;}
.news-body h3{font-size:21px; margin-bottom:10px; text-transform:none;}
.news-body p{font-size:14.5px; color:#4a6169;}

/* Footer */
footer{background:var(--deep); color:#cfe6ec; padding:56px 0 24px;}
.foot-grid{display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:40px; padding-bottom:36px;}
footer h4{font-family:'Big Shoulders Display'; font-size:15px; letter-spacing:.08em; color:#fff; margin-bottom:16px; text-transform:uppercase;}
footer p, footer li{font-size:14px; margin-bottom:8px; color:#a9cbd3;}
footer ul{list-style:none;}
.foot-bottom{border-top:1px solid rgba(255,255,255,.12); padding-top:20px; font-size:12.5px; display:flex; justify-content:space-between; color:#7fa3ac; flex-wrap:wrap; gap:10px;}

@media (max-width:900px){
  .menu{display:none;}
  .burger{display:flex;}
  .hero .wrap{grid-template-columns:1fr;}
  .disciplines{grid-template-columns:1fr 1fr;}
  .results-grid{grid-template-columns:1fr;}
  .guide{grid-template-columns:1fr; padding:32px;}
  .foot-grid{grid-template-columns:1fr;}
  .news-card{grid-template-columns:1fr;}
  .news-img{min-height:120px;}
  .hero h1{font-size:38px;}
}
