:root {
    --green: #A2D014;
}
.sortie {
  background: #002F47;
  padding: 0;   /* respiration verticale */
}
.boxed {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;   /* marge latérale */
    position: relative;
    padding-bottom: 100px;
    border-bottom: 1px solid #fff;
}
.head {
    position: relative;
    margin-bottom: 100px;
}
.media {
  position: relative;
}

.media img {
  width: 100%;
  display: block;
}

.media .overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    /* Bas → haut (léger renfort uniquement en bas) */
    linear-gradient(
      to top,
      rgba(0, 47, 71, 1) 0%,
      rgba(0, 47, 71, 0.98) 20%,
      rgba(0, 47, 71, 0.80) 35%,
      rgba(0, 47, 71, 0.65) 50%,
      rgba(0, 47, 71, 0.25) 60%,
      rgba(0, 47, 71, 0.1) 75%,
      rgba(0, 47, 71, 0) 90%
    ),

    /* Gauche → droite (inchangé, validé) */
    linear-gradient(
      to right,
      rgba(0, 47, 71, 1) 0%,
      rgba(0, 47, 71, 0.98) 10%,
      rgba(0, 47, 71, 0.70) 25%,
      rgba(0, 47, 71, 0.55) 40%,
      rgba(0, 47, 71, 0.25) 60%,
      rgba(0, 47, 71, 0.1) 75%,
      rgba(0, 47, 71, 0) 90%
    );
    height: 600px;
}

.head img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: right center; /* IMPORTANT */
    display: block;
}

.text {
    position: relative;
    margin-top: -500px;   /* chevauchement contrôlé */
    max-width: 60%;
    color: #fff;    
}

.text .date {
    background: linear-gradient(to right,  rgba(0,38,114,1) 0%,rgba(0,47,71,1) 100%);
    padding: 8px 20px; color: #fff;
    border-radius: 20px;
    display: inline;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 600;
}
.text h1 {
    color: #fff;
    font-size: 80px;
    font-weight: bolder;
    text-transform: uppercase;
    margin: 20px 0 0 0;
    padding: 0;
    line-height: 60px;   
    z-index: 300;
    order: 1;    
}
.text h3 {
    font-size: 40px;
    color: var(--green);
    display: block;
    line-height: 30px;
    z-index: 200;
    order: 2;
}
.text .desc-wrapper {
    overflow: visible; 
}
.text .desc {
    color: #fff;
    font-size: 16px;
    margin-top: 30px;
    line-height: 22px;
    max-height: 150px;
    min-height: 150px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    text-align: justify;
    padding-bottom: 0;
}
.text .desc P {
    margin: 0 0 10px 0;
    padding: 0;
    line-height: 20px;
    color: #fff;
    font-size: 18px;
}
.text .desc .emoji {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    margin: 0 2px;
}

.text .desc br {
    line-height: 26px;
}
.desc::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50px;
  background: linear-gradient(
    to bottom,
    rgba(0,47,71,0),
    rgba(0,47,71,1)
  );
  pointer-events: none;
}
.desc.none::after {
    display: none;
}
.desc.expanded {
  max-height: none;
}

.desc.expanded::after {
  display: none;
  opacity: 0;
    
}
.toggle {
    margin-top: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    text-align: right;
    color: #fff;
    font-weight: bold;
}


.buttons {
    display: flex;
    gap: 50px;
    
}
.buttons .btnMap {
    margin-left: auto;
    background-color: var(--green);
    width: 50px;    
    margin-right: 50px;
    z-index: 999;
}
.btn {
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;  
    height: 50px;
    display: grid;
    align-content: center;
    text-align: center;
}
.btn.part {
    background-color: var(--green);
    width: 200px;
}
.btn.part.deux {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 5px;   
}
.btn.part.deux DIV {
    background-color: #fff;
    border-radius: 10px;
    display: grid;
    align-content: center;
    text-align: center;
    height: 30px;
    width: 40px;
}
.btn.part.deux SPAN {
    margin-top: 3px
}
.btn.userr {
    background-color: #fff;
    color: var(--green);
    width: 80px;  
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;    
    z-index: 10;
}
.btn.user SPAN {
    font-size: 26px;
}
.btn.user i {
    margin-top: 10px;
}
.btn.vide {
    border: 1px solid #fff;
    color: #fff;
    width: 50px;    
    background-color: #002F47;
}


/*choix----------------------------------------*/
.actions-wrapper {
    position: relative;
}
#choix {
    position: absolute;
    top: 55px;
    left: 0;
    width: 300px;
    height: auto;
    background-color: #fff;
    border-radius: 6px;
    z-index: 100;
    padding: 10px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    
    transition:
        max-height .35s ease,
        opacity .25s ease,
        transform .25s ease;

    will-change: max-height, opacity, transform;
}
#choix.open {
    max-height: 500px; /* 🔑 valeur large */
    opacity: 1;
    transform: translateY(0);
}

/* Carte groupe */
#choix LI {
    display: grid;
    grid-template-columns: 20px 1fr 100px;
    align-items: center;
    gap: 5px;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
    margin-bottom: 5px;
    border: 2px solid #dedede;
    padding: 10px;
}

#choix LI .lettre {
    font-size: 14px;
}
#choix LI .lettre em {
    font-weight: 600;
    font-size: 16px;
    font-style: normal;
}
#choix LI .vit {
    text-align: right;
    font-style: italic;
    font-size: 12px;
}
#choix LI:not(.actif):hover {
    background-color: #dedede;
}
#choix LI.actif {
    border: 2px solid var(--green);
    background-color: #d5f080;
}




.is-disabled {
  pointer-events: none;
  opacity: 0.5;
  filter: grayscale(0.5);
}

.details {
    display: grid;
    
    gap: 20px;
    color: #fff;
    margin-bottom: 30px;
}
.details.trois {
    grid-template-columns: 2fr 1fr 1fr; 
}
.details.deux {
    grid-template-columns: 1fr 1fr; 
}
.details .bloc {
    background: #1c5a7a;
    padding: 20px;
    margin-top: 50px;
}
.details .bloc DIV {
    display: grid;
    grid-template-columns: 180px 1fr;
    border-bottom: 1px solid #dedede;
    font-size: 16px;    
    align-content: center;
    padding: 10px 0;
}
.details .bloc DIV:last-child {
    border: 0;
}
.details .bloc DIV LABEL {
    display: grid;
    align-content: center;
}
.details .bloc DIV SPAN {
    line-height: 15px;
    display: grid;
    align-content: center;
}
.details.bloc .trois {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}



.participants {
    margin: -10px;
}

.participants .bloc, .grid-sizer {
    background: #1c5a7a;
    padding: 20px;
    width: calc(50% - 20px);
    margin: 0 10px 30px 10px;
}
.participants.jeunes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.participants.jeunes .bloc {
    width: calc(100% - 10px);
    margin: 0;
}
.participants.jeunes .bloc:first-child {
    margin-left: 10px;
}
.groupe {
    background-color: var(--green);
    padding: 10px;
    display: grid;
    grid-template-columns: 50px 1fr 150px;
    text-align: left;
    gap: 20px;
    margin-bottom: 20px;
    font-weight: bold;
    position: sticky;
    top: 130px;
    z-index: 100;
}
.groupe .countt {
    border-right: 1px solid #fff;
    text-align: center;
}
.participants UL {
    margin: 0;
    padding: 0;
}
.participants UL LI {
    display: grid;
    grid-template-columns: 50px 1fr 60px;
    gap: 10px;    
    list-style: none;
    height: 50px;
    align-content: center;
    align-items: center;
    color: #fff;
    position: relative;
    z-index: 20;
    margin-bottom: 5px;
  background: linear-gradient(to right,  rgba(0,47,71,1) 0%,rgba(28,90,122,0.46) 100%);

}
.participants UL LI .cap {
   background-image: url("../../img/brassard.png");
    background-size: cover;
   
    width: 60px;
    height: 40px;
}
.participants UL LI .prog-avatar {
    width: 50px;
    height: 50px;
    /*border-radius: 10px;*/
    overflow: hidden;
    background: #0e4c6c;
}
.participants UL LI IMG {
   width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.participants UL LI DIV {
    font-size: 16px;
}
.participants UL LI B {
    text-transform: uppercase;
}
.participants UL LI.moi  {
    background: linear-gradient(to right,  rgba(0,160,56,1) 0%,rgba(0,160,56,0.99) 1%,rgba(28,90,122,0.46) 100%);

}

.map {
    display: none;
    margin-top: 30px;
}
.map.open {
    display: block;
}
.mapEl {
    position: relative;
}
#map {
    width: 100%;
    height: 500px;    
}
#alt {
    width: 100%;
    height: 200px;
}
.boutons {
    position: absolute;
    right: 15px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.boutons div {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background-color: #dedede;
    cursor: pointer;
}

.profile-info {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 6px;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.profile-info > DIV {
    width: 700px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin: auto;
    text-align: center;
}
.profile-info .line {
    text-align: left;
}
.hover-marker {
  width: 20px;
  height: 20px;
  background: #e30000;
  border: 2px solid #fff;
  border-radius: 50%;
}
.slope-vert  { background: #71E665; }
.slope-orange1 { background: #FCCD00; }
.slope-orange2 { background: #F78D18; }
.slope-rouge    { background: #F04C2C; }




body.is-fullscreen  {
    overflow: hidden;
}
body.is-fullscreen .map {
    position: fixed;
    inset: 0;
    margin: 0;
    background: #002F47;
    z-index: 9999;
    display: grid;
    grid-template-rows: 1fr auto auto;
    padding: 10px;
}
body.is-fullscreen #map {
    height: 100%;
}
body.is-fullscreen .profile-info {
    margin: 10px auto;
}
body.is-fullscreen header {
    display: none;
}
body.is-fullscreen .mapEl {
    height: calc(100% - 250px);
    min-height: 0;
}
body.is-fullscreen #alt {
    height: 260px;
    min-height: 200px;
    bottom: 10px;
    position: fixed;
}
body.is-fullscreen .profile-info {
    position: fixed;
    bottom: 200px;
    z-index: 100;
    left: 50%;
    transform: translateX(-50%); 
}

#meme {
    position: relative;    
}
UL.memejour {
    position: absolute;
    top: 0;
    left: 55px;
    min-width: 250px;
    max-width: 400px; 
    width: max-content;
    height: auto;
    background-color: #fff;
    border-radius: 6px;
    /*box-shadow: 0 0 5px 5px #dedede;*/
    z-index: 100;
    padding: 10px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);

    transition:
        max-height .35s ease,
        opacity .25s ease,
        transform .25s ease;

    will-change: max-height, opacity, transform;
    list-style: none;
}
UL.memejour.open {
    max-height: 500px; /* 🔑 valeur large */
    opacity: 1;
    transform: translateY(0);
}
UL.memejour LI {
    background: #fff;
    margin-bottom: 5px;
    /*color: #002F47;*/
    font-size: 14px;
    padding: 5px 10px;
    line-height: 18px;  
    cursor: pointer;
    border: 2px solid #dedede;
    border-radius: 4px;
    display: grid;
    grid-template-columns: 30px 1fr;  
    font-weight: 600;
}
UL.memejour LI:hover {
    background-color: #dedede;
}
UL.memejour LI i {
    align-content: center;
}
UL.memejour LI small {
    font-size: 10px;
}


.modal{position:fixed;inset:0;display:none;z-index:9999}
.modal.is-open{display:block}
.modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.modal__panel{position:relative;width:min(420px,92vw);margin:10vh auto;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.25)}
.modal__head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid rgba(0,0,0,.08)}
.modal__title{font-weight:700}
.modal__close{border:0;background:transparent;font-size:18px;cursor:pointer}
.modal__body{padding:16px;display:grid;gap:12px}
.field label{display:block;font-size:12px;opacity:.75;margin-bottom:4px}
.field input{width:100%;padding:10px 12px;border:1px solid rgba(0,0,0,.15);border-radius:10px}
.modal__actions{display:flex;justify-content:flex-end;gap:10px;margin-top:6px}
.btn{padding:10px 14px;border-radius:999px;border:1px solid rgba(0,0,0,.15);background:#fff;cursor:pointer;font-weight:600}
.btn--primary{background:#111;color:#fff;border-color:#111}
.btn--ghost{background:transparent}
.error{background:rgba(220,38,38,.08);color:#b91c1c;border:1px solid rgba(220,38,38,.25);padding:10px 12px;border-radius:10px;font-size:13px}

/* Switch simple */
.switch{display:flex;align-items:center;gap:10px;cursor:pointer;user-select:none}
.switch input{display:none}
.switch__ui{width:44px;height:26px;border-radius:999px;background:rgba(0,0,0,.15);position:relative;flex:0 0 auto}
.switch__ui:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .18s ease}
.switch input:checked + .switch__ui{background:#111}
.switch input:checked + .switch__ui:after{transform:translateX(18px)}
.switch__label{font-size:13px;opacity:.85}
