:root{
    --bg-dark:#151f18;
    --bg-panel:#1c2a20;
    --cream:#f3eee1;
    --cream-dim:#c9c4b6;
    --gold:#c9974d;
    --gold-dim:#8f6f3d;
    --burgundy:#7a2e2e;
    --line: rgba(243,238,225,0.14);
    --radius: 2px;
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0;
    background:var(--bg-dark);
    color:var(--cream);
    font-family:'Work Sans', sans-serif;
    font-weight:400;
    line-height:1.55;
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,.display{
    font-family:'Fraunces', serif;
    font-weight:600;
    letter-spacing:-0.01em;
    margin:0;
  }
  .mono{
    font-family:'IBM Plex Mono', monospace;
    letter-spacing:0.04em;
  }
  a{color:inherit;text-decoration:none;}
  img,.ph{display:block;width:100%;}
  .wrap{max-width:1180px;margin:0 auto;padding:0 32px;}
  section{position:relative;}

  /* Placeholder photo blocks */
  .ph{
    background:
      repeating-linear-gradient(135deg, rgba(201,151,77,0.10) 0px, rgba(201,151,77,0.10) 2px, transparent 2px, transparent 18px),
      linear-gradient(160deg, #26362a, #182319);
    border:1px solid var(--line);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--cream-dim);
    text-align:center;
    aspect-ratio: var(--ar, 4/3);
    position:relative;
    overflow:hidden;
  }
  .ph::before{
    content:"";
    position:absolute;inset:0;
    border:1px solid transparent;
  }
  .ph .ph-label{
    font-family:'IBM Plex Mono', monospace;
    font-size:11px;
    letter-spacing:0.12em;
    text-transform:uppercase;
    padding:10px 16px;
    border:1px solid var(--line);
    border-radius:100px;
    background:rgba(21,31,24,0.55);
  }

  /* ===== NAV ===== */
  header{
    position:fixed; top:0; left:0; right:0; z-index:100;
    background:rgba(21,31,24,0.85);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line);
  }
  nav.wrap{
    display:flex; align-items:center; justify-content:space-between;
    height:78px;
  }
  .logo{
    font-family:'Fraunces', serif;
    font-size:20px;
    font-weight:600;
    letter-spacing:0.02em;
  }
  .logo span{color:var(--gold);}
  .nav-links{display:flex; gap:36px; list-style:none; margin:0; padding:0;}
  .nav-links a{
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:0.1em;
    color:var(--cream-dim);
    transition:color .25s;
    padding-bottom:4px;
    border-bottom:1px solid transparent;
  }
  .nav-links a:hover{color:var(--gold); border-color:var(--gold);}
  .burger{display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px;}
  .burger span{width:24px; height:1.5px; background:var(--cream);}

  /* ===== HERO ===== */
  .hero{
    min-height:100vh;
    display:flex; flex-direction:column; justify-content:flex-end;
    position:relative;
    overflow:hidden;
    background:#10160f;
    padding-top:78px;
  }
  .hero-video{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:0;
  }
  .hero-overlay{
    position:absolute;
    inset:0;
    z-index:1;
    background:
      linear-gradient(180deg, rgba(10,14,11,0.45) 0%, rgba(10,14,11,0.50) 30%, rgba(10,14,11,0.88) 65%, rgba(10,14,11,0.97) 100%);
  }
  .hero-inner{
    position:relative;
    z-index:2;
    padding:80px 32px 64px;
    max-width:1180px; margin:0 auto; width:100%;
  }
  .eyebrow{
    display:inline-flex; align-items:center; gap:10px;
    font-size:12px; text-transform:uppercase; letter-spacing:0.18em;
    color:var(--gold); margin-bottom:22px;
    text-shadow:0 2px 12px rgba(0,0,0,0.6);
  }
  .eyebrow::before{content:"";width:28px;height:1px;background:var(--gold);}
  .hero h1{
    font-size:clamp(42px, 7vw, 84px);
    line-height:0.98;
    max-width:900px;
    text-shadow:0 4px 24px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.5);
  }
  .hero h1 em{font-style:italic; color:var(--gold); font-weight:500;}
  .hero p.lede{
    max-width:560px; margin-top:26px;
    font-size:18px; color:var(--cream-dim); font-weight:300;
    text-shadow:0 2px 12px rgba(0,0,0,0.65);
  }
  .hero-cta{display:flex; gap:16px; margin-top:38px; flex-wrap:wrap;}
  .btn{
    display:inline-flex; align-items:center; gap:10px;
    padding:15px 28px;
    font-size:13px; text-transform:uppercase; letter-spacing:0.1em;
    border-radius:100px;
    transition:all .25s;
  }
  .btn-solid{background:var(--gold); color:#151f18; font-weight:600;}
  .btn-solid:hover{background:#e0ac5c;}
  .btn-outline{border:1px solid var(--line); color:var(--cream);}
  .btn-outline:hover{border-color:var(--gold); color:var(--gold);}

  .scroll-tick{
    position:relative; z-index:2;
    display:flex; align-items:center; gap:14px;
    padding:22px 32px; border-top:1px solid var(--line);
    max-width:1180px; margin:0 auto; width:100%;
    font-size:12px; color:var(--cream-dim);
  }
  .scroll-tick .dot{width:6px;height:6px;border-radius:50%;background:var(--gold);}

  /* ===== SECTION HEADERS ===== */
  .section-pad{padding:120px 0;}
  .sec-head{display:flex; align-items:flex-end; justify-content:space-between; gap:40px; margin-bottom:56px; flex-wrap:wrap;}
  .sec-head .tag{font-size:12px; text-transform:uppercase; letter-spacing:0.18em; color:var(--gold); margin-bottom:14px; display:block;}
  .sec-head h2{font-size:clamp(30px,4vw,46px);}
  .sec-head .desc{max-width:380px; color:var(--cream-dim); font-size:15px; font-weight:300;}

  /* ===== ETHAN SPOTLIGHT ===== */
  .spotlight{background:var(--bg-panel); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
  .spotlight-grid{display:grid; grid-template-columns:0.85fr 1.15fr; gap:64px; align-items:center;}
  .bib{
    display:inline-flex; align-items:center; gap:12px;
    border:1px solid var(--gold-dim); border-radius:100px;
    padding:8px 18px 8px 8px; margin-bottom:26px;
  }
  .bib .num{
    background:var(--gold); color:#151f18; font-weight:600;
    width:34px;height:34px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    font-family:'IBM Plex Mono'; font-size:14px;
  }
  .bib .txt{font-size:12px; letter-spacing:0.1em; text-transform:uppercase; color:var(--cream-dim);}
  .spotlight h3{font-size:clamp(30px,4vw,44px); margin-bottom:20px;}
  .spotlight p{color:var(--cream-dim); font-weight:300; font-size:16px; max-width:480px;}
  .stat-row{display:grid; grid-template-columns:repeat(3,1fr); gap:0; margin-top:38px; border-top:1px solid var(--line);}
  .stat{padding:20px 20px 0 0; border-right:1px solid var(--line);}
  .stat:last-child{border-right:none;}
  .stat .n{font-family:'Fraunces'; font-size:30px; color:var(--gold);}
  .stat .l{font-size:11px; text-transform:uppercase; letter-spacing:0.08em; color:var(--cream-dim); margin-top:6px;}
  .spot-photos{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
  .spot-photos .ph:first-child{grid-column:1/3; --ar:16/10;}
  .quote{
    margin-top:44px; padding-top:28px; border-top:1px solid var(--line);
    font-family:'Fraunces'; font-style:italic; font-weight:500;
    font-size:18px; color:var(--cream);
  }
  .quote .who{display:block; margin-top:12px; font-family:'IBM Plex Mono'; font-style:normal; font-size:12px; color:var(--gold); letter-spacing:0.06em;}

  /* ===== HORSES ===== */
  .horses-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:28px;}
  .horse-card{border:1px solid var(--line); background:var(--bg-panel); transition:border-color .25s;}
  .horse-card:hover{border-color:var(--gold-dim);}
  .horse-card .ph{--ar:5/4;}
  .horse-card .body{padding:26px 24px 30px;}
  .horse-card .level{
    display:inline-block; font-family:'IBM Plex Mono'; font-size:11px;
    color:var(--gold); border:1px solid var(--gold-dim); padding:4px 10px; border-radius:100px;
    margin-bottom:14px; letter-spacing:0.06em;
  }
  .horse-card h3{font-size:24px; margin-bottom:8px;}
  .horse-card .meta{font-size:13px; color:var(--cream-dim); font-weight:300;}

  /* ===== RESULTS / SCOREBOARD ===== */
  .results{background:var(--bg-panel); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
  .board{border-top:1px solid var(--line);}
  .board-row{
    display:grid; grid-template-columns:110px 1.3fr 1fr 0.8fr 90px;
    gap:20px; align-items:center;
    padding:20px 0; border-bottom:1px solid var(--line);
    font-size:14px;
  }
  .board-row.head{
    font-family:'IBM Plex Mono'; font-size:11px; text-transform:uppercase; letter-spacing:0.08em;
    color:var(--cream-dim); padding:0 0 14px;
  }
  .board-row .date{font-family:'IBM Plex Mono'; color:var(--cream-dim); font-size:13px;}
  .board-row .concours{font-weight:500;}
  .board-row .concours span{display:block; font-size:12px; color:var(--cream-dim); font-weight:300; margin-top:2px;}
  .rank{
    font-family:'IBM Plex Mono'; font-weight:600; color:var(--gold);
    justify-self:end; font-size:16px;
  }
  .results-cta{text-align:center; margin-top:44px;}

  /* ===== INFRASTRUCTURE ===== */
  .infra-grid{display:grid; grid-template-columns:1.1fr 0.9fr; gap:60px; align-items:center;}
  .infra-list{list-style:none; margin:30px 0 0; padding:0;}
  .infra-list li{
    display:flex; gap:16px; padding:18px 0; border-top:1px solid var(--line); font-size:15px; color:var(--cream-dim); font-weight:300;
  }
  .infra-list li strong{color:var(--cream); font-weight:500; min-width:170px; font-family:'Fraunces'; font-size:16px;}
  .infra-photos{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
  .infra-photos .ph:nth-child(1){--ar:3/4;}
  .infra-photos .ph:nth-child(2){--ar:3/4; margin-top:40px;}

  /* ===== PARTNERS ===== */
  .partners{padding:70px 0; border-top:1px solid var(--line);}
  .partners .tag{font-size:11px; text-transform:uppercase; letter-spacing:0.16em; color:var(--cream-dim); text-align:center; display:block; margin-bottom:34px;}
  .partner-row{display:flex; align-items:center; justify-content:center; gap:56px; flex-wrap:wrap; opacity:0.7;}
  .partner-row .ph{width:120px; height:60px; aspect-ratio:auto; --ar:auto;}
  .partner-row .ph .ph-label{font-size:9px; padding:6px 10px;}

  /* ===== CONTACT ===== */
  .contact{background:var(--bg-panel);}
  .contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:70px;}
  .field{margin-bottom:20px;}
  .field label{display:block; font-size:11px; text-transform:uppercase; letter-spacing:0.08em; color:var(--cream-dim); margin-bottom:8px;}
  .field input, .field textarea{
    width:100%; background:transparent; border:none; border-bottom:1px solid var(--line);
    color:var(--cream); font-family:'Work Sans'; font-size:15px; padding:10px 0; outline:none;
  }
  .field input:focus, .field textarea:focus{border-color:var(--gold);}
  .contact-info{border-top:1px solid var(--line);}
  .contact-info .row{display:flex; justify-content:space-between; padding:22px 0; border-bottom:1px solid var(--line); font-size:14px;}
  .contact-info .row span:first-child{color:var(--cream-dim); text-transform:uppercase; font-size:11px; letter-spacing:0.08em;}

  footer{padding:36px 0; border-top:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; font-size:12px; color:var(--cream-dim); flex-wrap:wrap; gap:12px;}
  footer .social{display:flex; gap:20px;}
  footer .social a:hover{color:var(--gold);}

  [data-reveal]{opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease;}
  [data-reveal].in{opacity:1; transform:translateY(0);}

  @media (max-width: 900px){
    .nav-links{display:none;}
    .burger{display:flex;}
    .spotlight-grid, .infra-grid, .contact-grid{grid-template-columns:1fr; gap:40px;}
    .horses-grid{grid-template-columns:1fr;}
    .stat-row{grid-template-columns:1fr 1fr 1fr;}
    .board-row{grid-template-columns:70px 1fr 60px; }
    .board-row .height, .board-row .date{display:none;}
    .board-row.head .height, .board-row.head .date{display:none;}
    .partner-row{gap:30px;}
  }

/* ===== Fiches détaillées des chevaux (section unique page d'accueil) ===== */
.horse-profile{
  padding:70px 0;
  border-bottom:1px solid var(--line);
}
.horse-profile-grid{
  display:grid; grid-template-columns:0.9fr 1.1fr; gap:64px; align-items:center;
}
.horse-profile.reverse .horse-profile-grid{direction:rtl;}
.horse-profile.reverse .horse-profile-grid > *{direction:ltr;}
.horse-name-row{display:flex; align-items:baseline; gap:18px; margin-bottom:22px; flex-wrap:wrap;}
.horse-name-row h3{font-size:clamp(28px,4vw,42px); font-family:'Fraunces';}
.horse-profile .level-badge{
  font-family:'IBM Plex Mono'; font-size:12px; color:var(--gold);
  border:1px solid var(--gold-dim); padding:5px 14px; border-radius:100px; letter-spacing:0.06em;
}
.horse-facts{
  display:grid; grid-template-columns:1fr 1fr; gap:0;
  border-top:1px solid var(--line); margin-top:26px;
}
.horse-facts .fact{padding:16px 20px 16px 0; border-bottom:1px solid var(--line);}
.horse-facts .fact:nth-child(odd){border-right:1px solid var(--line);}
.horse-facts .fact .l{font-size:11px; text-transform:uppercase; letter-spacing:0.08em; color:var(--cream-dim); margin-bottom:6px;}
.horse-facts .fact .v{font-family:'Fraunces'; font-size:16px;}
.horse-desc{margin-top:26px; color:var(--cream-dim); font-weight:300; font-size:15px; max-width:480px;}

@media (max-width: 900px){
  .horse-profile-grid{grid-template-columns:1fr; gap:32px;}
  .horse-profile.reverse .horse-profile-grid{direction:ltr;}
  .horse-facts{grid-template-columns:1fr;}
  .horse-facts .fact:nth-child(odd){border-right:none;}
}
