/* Styles spécifiques à cette page. Modifications visuelles uniquement.
   Voir README.md à la racine pour les consignes de maintenance. */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');
:root{
  --navy:#152451;
  --red:#eb2434;
  --ink:#1a2953;
  --light:#f2f5fa
}

*{
  box-sizing:border-box
}

html{
  scroll-behavior:smooth
}

body{
  font:15px/1.6 Inter,Arial,sans-serif;
  color:var(--ink);
  margin:0;
  background:#f6f8fc
}

a{
  color:inherit
}

a:focus-visible{
  outline:3px solid orange;
  outline-offset:3px
}

.wrap{
  max-width:1220px;
  padding:0 27px;
  margin:auto
}

.top{
  border-top:6px solid var(--red);
  background:#fff
}

.nav{
  display:flex;
  min-height:98px;
  align-items:center;
  gap:26px
}

.brand{
  text-decoration:none;
  line-height:.87;
  font:900 31px 'Barlow Condensed',sans-serif
}

.brand span{
  color:var(--red)
}

.brand small{
  display:block;
  font:700 9px Inter,sans-serif;
  letter-spacing:2px;
  margin-top:10px
}

.links{
  display:flex;
  margin:auto;
  gap:24px
}

.links a{
  text-decoration:none;
  font-size:12px;
  font-weight:800
}

.ff{
  display:flex;
  align-items:center;
  justify-content:center;
  background:#0b245f;
  padding:8px 11px;
  min-width:245px
}

.ff img{
  width:245px;
  height:auto;
  max-width:100%
}

.hero{
  background:linear-gradient(110deg,#0b1941,#213b7d);
  color:white;
  padding:61px 0 54px;
  position:relative;
  overflow:hidden
}

.hero::after{
  content:'';
  position:absolute;
  width:210px;
  height:500px;
  background:var(--red);
  transform:rotate(32deg);
  top:-120px;
  right:-110px;
  opacity:.9
}

.eyebrow{
  font-size:12px;
  color:#ff8c91;
  letter-spacing:1.3px;
  text-transform:uppercase;
  font-weight:900
}

.hero h1{
  font:900 clamp(60px,9vw,120px)/.9 'Barlow Condensed',sans-serif;
  margin:14px 0 20px
}

.hero p{
  max-width:750px;
  font-size:17px;
  color:#e2e9fa
}

.twocol{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin:26px 0
}

.card{
  border-radius:11px;
  padding:27px 30px;
  background:#fff;
  border:1px solid #e2e9f2;
  box-shadow:0 9px 30px #192a5020
}

.card h2,.sectitle{
  font:900 38px 'Barlow Condensed',sans-serif;
  margin:8px 0;
  color:var(--navy)
}

.card.dark{
  background:linear-gradient(140deg,#162756,#0f193d);
  color:white;
  border:none
}

.card.dark h2{
  color:white
}

.card .label{
  display:inline-block;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:1.2px;
  color:#e52e3d;
  font-weight:900
}

.card.dark .label{
  color:#ff8a90
}

.card li{
  margin:10px 0;
  font-size:14px
}

.card p{
  font-size:14px
}

.explain{
  background:#e9eef8;
  border-left:5px solid var(--red);
  padding:18px 22px;
  border-radius:7px;
  margin:10px 0 35px
}

.explain p{
  margin:0
}

.section{
  padding:0 0 36px
}

.sectitle{
  margin:18px 0
}

.stages{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:13px
}

.stage{
  border:1px solid #dae2ed;
  overflow:hidden;
  background:white;
  border-radius:9px;
  min-height:230px;
  padding:17px;
  position:relative
}

.stage:first-child{
  border:2px solid var(--red)
}

.n{
  font:900 73px/.94 'Barlow Condensed',sans-serif;
  color:var(--navy);
  margin-bottom:13px
}

.stage h3{
  font:900 24px 'Barlow Condensed',sans-serif;
  margin:0
}

.stage p{
  font-size:12px;
  margin:5px 0
}

.stage a{
  display:inline-block;
  margin-top:16px;
  color:#b91a2c;
  font-weight:800;
  font-size:12px
}

.tag{
  background:var(--red);
  color:#fff;
  font-size:10px;
  padding:4px 9px;
  position:absolute;
  right:0;
  top:0;
  font-weight:900
}

.faq{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:13px;
  margin:15px 0 35px
}

.qa{
  background:white;
  border:1px solid #e1e6f0;
  padding:20px;
  border-radius:9px
}

.qa h3{
  font:900 24px 'Barlow Condensed',sans-serif;
  margin:0 0 8px
}

.qa p{
  font-size:13px;
  margin:0
}

.action{
  background:#fcebee;
  border-radius:12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:25px;
  padding:24px 30px;
  margin-bottom:40px
}

.action h2{
  font:900 33px 'Barlow Condensed',sans-serif;
  margin:0
}

.button{
  display:inline-block;
  background:var(--red);
  color:white;
  padding:13px 19px;
  border-radius:5px;
  text-decoration:none;
  font-weight:800;
  white-space:nowrap
}

.footer{
  background:#111c46;
  border-top:6px solid var(--red);
  color:#fff;
  padding:26px 0
}

.footer .wrap{
  display:flex;
  justify-content:space-between;
  gap:20px
}

.footer p{
  font-size:12px;
  color:#d2dcf1;
  margin:0
}

@media(max-width:950px){
  .nav{
  flex-wrap:wrap;
  gap:15px;
  padding:12px 0
}

.links{
  order:3;
  width:100%;
  justify-content:center;
  gap:13px
}

.ff{
  margin-left:auto;
  min-width:180px
}

.ff img{
  width:180px
}

.stages{
  grid-template-columns:repeat(2,1fr)
}

}

@media(max-width:650px){
  .wrap{
  padding:0 16px
}

.twocol,.faq{
  grid-template-columns:1fr
}

.stage{
  min-height:195px
}

.n{
  font-size:55px
}

.action{
  display:block
}

.action .button{
  margin-top:15px
}

.hero{
  padding:43px 0
}

.hero p{
  font-size:14px
}

.brand{
  font-size:24px
}

.ff{
  min-width:140px
}

.ff img{
  width:140px
}

.links a{
  font-size:11px
}

.footer .wrap{
  display:block
}

}

.judging-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:13px;
  margin:19px 0 17px
}

.judging{
  background:#fff;
  border:1px solid #dfe6f2;
  border-top:4px solid #ea2534;
  border-radius:8px;
  padding:19px;
  min-height:185px
}

.judging-number{
  font:900 38px 'Barlow Condensed',sans-serif;
  color:#e9cbd0
}

.judging h3{
  font:900 23px/1.1 'Barlow Condensed',sans-serif;
  margin:2px 0 8px;
  color:#152451
}

.judging p{
  font-size:13px;
  margin:0
}

.open-judging>p{
  max-width:920px;
  font-size:14px
}

.judging-caution{
  background:#eef2f9;
  border-left:4px solid #223c7b;
  padding:13px 17px;
  border-radius:5px
}

@media(max-width:900px){
  .judging-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))
}

}

@media(max-width:500px){
  .judging-grid{
  grid-template-columns:1fr
}

.judging{
  min-height:0
}

}



/* Logo régional : harmonisé avec la taille utilisée sur la page Brest. */
.ff { min-width:295px; max-width:325px; padding:9px 12px; background:#092263; }
.ff img { display:block; width:300px; max-width:100%; height:auto; }
@media(max-width:930px) {
  .ff { min-width:230px; max-width:265px; }
  .ff img { width:250px; }
}
@media(max-width:630px) {
  .ff { min-width:130px; max-width:182px; padding:5px; }
  .ff img { width:174px; }
}


/* Bandeau Le Circuit : illustration panoramique, texte à gauche.
   Déposer la photo dans le-circuit/assets/hero-le-circuit-optimise.jpg.
   En l'absence d'image, le dégradé bleu d'origine reste visible. */
.hero-circuit { min-height:390px; display:flex; align-items:center; isolation:isolate; background:#101e43; }
.hero-circuit::after { display:none; }
.hero-circuit .hero-art { position:absolute; z-index:0; inset:0; background-image:url("assets/hero-le-circuit-optimise.jpg"); background-size:cover; background-position:right center; background-repeat:no-repeat; }
.hero-circuit .hero-shade { position:absolute; z-index:1; inset:0; background:linear-gradient(90deg,#0b1941 0%,rgba(11,25,65,.96) 20%,rgba(11,25,65,.76) 38%,rgba(11,25,65,.12) 66%,transparent 83%); }
.hero-circuit .hero-content { width:100%; position:relative; z-index:2; }
.hero-circuit h1 { max-width:690px; }
.hero-circuit p { max-width:580px; }
@media (max-width:650px) {
  .hero-circuit { min-height:390px; }
  .hero-circuit .hero-art { background-position:65% center; }
  .hero-circuit .hero-shade { background:linear-gradient(90deg,rgba(11,25,65,.99) 0%,rgba(11,25,65,.93) 48%,rgba(11,25,65,.4) 100%); }
}
