/* Andryale 1.8.0 : bandeau et carrousel, source CSS unique.
 * Les anciennes valeurs du hero dans main.css/refinements.css sont historiques.
 * Cette feuille chargée en dernier les remplace sans modifier les pages internes.
 */
.home-hero { height:auto; min-height:0; overflow:clip; background:#090e22; }
.home-hero::after { background:linear-gradient(90deg,rgba(7,11,27,.91) 0%,rgba(9,12,30,.78) 36%,rgba(11,10,29,.46) 73%,rgba(9,10,26,.24)),linear-gradient(0deg,rgba(8,10,26,.27),transparent 65%); }
.home-hero .hero-foreground {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);
  gap:clamp(18px,2.1vw,32px);
  align-items:center;
  min-height:520px; height:auto;
  padding-top:15px; padding-bottom:15px;
}
.home-hero .hero-copy { min-width:0;max-width:none; }
.home-hero .hero-copy h1 { font-size:clamp(2rem,3.2vw,3.5rem); font-weight:470; line-height:1.13; letter-spacing:-.036em; margin:15px 0 16px; text-wrap:balance; }
.home-hero .hero-copy p { max-width:540px; font-size:clamp(.98rem,1.08vw,1.08rem); line-height:1.6; }
.home-hero .hero-copy .hero-buttons { display:flex; flex-wrap:wrap; align-items:stretch; gap:9px; margin-top:23px; }
.home-hero .hero-buttons>.button { flex:0 0 auto; width:auto; min-width:0; white-space:nowrap; padding-inline:clamp(10px,1vw,17px); font-size:.79rem; }
.section.section-projects {padding-top:20px;}
.section-projects .section-index {margin-bottom:10px;}
.section-projects .section-header {margin-bottom:22px;}

/* Chaque diapositive participe aux dimensions du même calque CSS Grid.
 * Les diapositives inactives sont invisibles ET inertes, pas en display:none.
 * La hauteur de la grille s'adapte donc à la plus grande diapositive. */
.andryale-highlights {
  min-width:0; width:100%; max-width:660px; justify-self:end;
  color:#faf6ff; position:relative; isolation:isolate;
  display:grid; grid-template-rows:auto minmax(0,1fr);
  border:1px solid rgba(217,194,242,.38); border-radius:11px;
  background:linear-gradient(146deg,rgba(20,25,48,.97),rgba(14,18,40,.97));
  box-shadow:0 14px 40px rgba(0,0,0,.26);
  overflow:clip;
}
.andryale-highlights::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:linear-gradient(180deg,#bd4f99,#835ba6 49%,#30a3bd);pointer-events:none;z-index:3;}
.highlights-topline {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 18px 11px 20px;font:500 .68rem/1.3 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;letter-spacing:.11em;text-transform:uppercase;color:#e1d5ed;border-bottom:1px solid rgba(255,255,255,.13);}
.highlights-topline>span:first-child{display:inline-flex;align-items:center;gap:9px;}
.highlights-status{width:7px;height:7px;border-radius:50%;background:#c272c2;box-shadow:0 0 0 3px rgba(194,114,194,.13);}
.highlights-count{color:#c3b9cc;font-variant-numeric:tabular-nums;}
.highlights-carousel{display:grid;grid-template-rows:minmax(0,1fr) auto 2px;min-width:0;}
.highlights-stage{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;min-height:385px;}
.highlight-slide{grid-area:1/1;min-width:0;display:flex;flex-direction:column;position:relative;visibility:hidden;opacity:0;pointer-events:none;}
.highlight-slide.is-active{visibility:visible;opacity:1;pointer-events:auto;}
.highlight-content{display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0;min-height:385px;padding:12px 17px 13px;}
/* Editorial headline: retain separate semantic title and label, but align them on wide screens.
 * Flex wraps when necessary, without shrinking text or hiding it. */
.highlight-heading{display:grid;grid-template-columns:minmax(92px,108px) minmax(0,1fr);align-items:start;gap:10px 14px;width:100%;margin:2px 0 8px;min-width:0;}
.highlight-eyebrow{display:flex;flex-direction:column;justify-content:flex-start;align-self:stretch;min-height:100%;padding-top:3px;color:#e1b5ed;font:500 .64rem/1.35 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;letter-spacing:.065em;text-transform:uppercase;max-width:100%;overflow-wrap:anywhere;}
.highlight-eyebrow-line{display:block;}
.highlight-eyebrow-line + .highlight-eyebrow-line{margin-top:2px;}
.highlight-heading .highlight-title{min-width:0;max-width:100%;margin:0;align-self:start;}
.highlight-title{color:#fff;font-size:clamp(1.4rem,1.75vw,1.92rem);font-weight:550;line-height:1.16;letter-spacing:-.026em;margin:0;overflow-wrap:anywhere;}
.highlight-description{color:#ede8f3;font-size:.87rem;line-height:1.47;margin:0 0 7px;max-width:62ch;overflow-wrap:anywhere;}
/* L'image et son cartouche forment un seul lien. Zone visuelle accrue ;
 * les slides inactives contribuent toujours à la hauteur intrinsèque commune. */
.highlight-visual{align-self:stretch;width:100%;display:flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:216px;height:clamp(240px,20vw,300px);margin:7px 0 0;min-width:0;}
.highlight-visual-frame{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:0;border:1px solid rgba(255,255,255,.19);border-radius:8px;background:rgba(5,14,32,.65);box-shadow:0 7px 21px rgba(0,0,0,.19);overflow:hidden;}
.highlight-visual-frame img{display:block;width:100%;height:100%;object-fit:cover;object-position:center center;transform:scale(1.03);filter:none;}
.highlight-visual-link{text-decoration:none;color:#fff;cursor:pointer;transition:border-color .15s,background .15s;}
.highlight-visual-link::after{content:"";position:absolute;inset:auto 0 0;height:44px;pointer-events:none;background:linear-gradient(0deg,rgba(5,10,26,.25),rgba(5,10,26,0));}
.highlight-visual-cta{position:absolute;z-index:2;bottom:12px;left:12px;display:inline-flex;align-items:center;gap:8px;max-width:calc(100% - 24px);min-height:35px;padding:7px 11px;border:1px solid rgba(255,255,255,.45);border-radius:5px;background:rgba(10,16,34,.78);color:#fff;font-size:.81rem;font-weight:600;line-height:1.35;box-shadow:0 5px 16px rgba(0,0,0,.23);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);}
.highlight-visual-cta span{min-width:0;overflow-wrap:anywhere;}
.highlight-visual-cta svg{flex:0 0 auto;}
.highlight-visual-link:hover .highlight-visual-cta,.highlight-visual-link:focus-visible .highlight-visual-cta{background:rgba(24,43,68,.93);border-color:#b4eafc;}
.highlight-visual-link:hover,.highlight-visual-link:focus-visible{border-color:#a6e3ff;background:rgba(20,36,64,.78);outline:2px solid #ace9ff;outline-offset:2px;}
.highlight-link{display:inline-flex;align-items:center;gap:8px;min-height:32px;margin-top:auto;padding:3px 0;color:#fff;text-decoration:none;font-size:.85rem;font-weight:600;border-bottom:1px solid rgba(255,255,255,.55);}
.highlight-link:hover,.highlight-link:focus-visible{color:#cbefff;border-color:#cbefff;}
.highlights-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:8px 13px 9px 17px;border-top:1px solid rgba(255,255,255,.13);}
.highlights-dots{display:flex;align-items:center;flex-wrap:wrap;gap:3px;}
.highlight-dot{display:inline-flex;align-items:center;justify-content:center;min-width:30px;width:30px;min-height:30px;height:30px;background:transparent!important;border:0!important;padding:0!important;border-radius:4px;box-shadow:none!important;}
.highlight-dot span{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.38);transition:transform .16s,background .16s;}
.highlight-dot.is-current span{background:#e8a9e9;transform:scale(1.3);}
.highlights-controls{display:flex;align-items:center;gap:5px;flex-shrink:0;}
.highlight-control{display:inline-flex;align-items:center;justify-content:center;width:33px;height:33px;min-width:33px;min-height:33px;padding:0!important;border:1px solid rgba(255,255,255,.28)!important;border-radius:5px!important;background:rgba(255,255,255,.05)!important;color:#f8f2ff!important;box-shadow:none!important;}
.highlight-control:hover{background:rgba(255,255,255,.17)!important;}
.highlight-control svg{width:15px;height:15px;}
.highlight-control[data-highlight-prev] svg{transform:rotate(180deg);}
.highlight-play-toggle{font-size:.77rem;line-height:1;font-family:Arial,sans-serif;}
.highlight-control[hidden]{display:none!important;}
.highlights-progress{height:2px;background:rgba(255,255,255,.12);overflow:hidden;}
.highlights-progress span{display:block;height:100%;width:0;background:#bd8bd9;}
.andryale-highlights.is-playing .highlights-progress span{animation:andryale-highlight-progress var(--highlight-duration,6500ms) linear forwards;}
.andryale-highlights.is-paused .highlights-progress span{animation-play-state:paused;}
@keyframes andryale-highlight-progress{from{width:0}to{width:100%}}
.andryale-highlights button:focus-visible,.highlight-link:focus-visible{outline:2px solid #ace9ff;outline-offset:2px;}
.highlight-announcer{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
/* Un bouton PLACE isolé sur une ligne n'est pas un accident : sous 1280px,
 * la composition passe intentionnellement à deux rangées si nécessaire. */
@media (min-width:961px) and (max-width:1279px){
  .home-hero .hero-copy .hero-buttons{display:grid;grid-template-columns:max-content max-content;gap:8px;justify-content:start;}
  .home-hero .hero-buttons>.button-place{grid-column:1/-1;justify-self:start;}
  .home-hero .hero-copy h1{font-size:clamp(2rem,3.4vw,2.7rem);}
}

@media (max-width:980px){
  .highlight-heading{grid-template-columns:minmax(86px,100px) minmax(0,1fr);gap:8px 12px;}
}
@media (min-width:861px) and (max-width:960px){
  .home-hero .hero-foreground{grid-template-columns:minmax(0,.95fr) minmax(0,1fr);gap:16px;min-height:0;padding:16px 0;}
  .home-hero .hero-copy h1{font-size:clamp(1.9rem,3.3vw,2.4rem);}
  .home-hero .hero-buttons{display:grid!important;grid-template-columns:minmax(0,1fr);gap:7px!important;}
  .home-hero .hero-buttons>.button{width:max-content;max-width:100%;}
  .andryale-highlights{max-width:none;}
  .highlight-content{padding-inline:14px;}
  .highlight-title{font-size:1.45rem;}
  .highlight-visual{height:clamp(190px,23vw,220px);min-height:190px;}
}
/* 860px correspond à la frontière portrait/paysage retenue dans le projet.
 * À 768px en portrait, le carrousel passe au-dessus du texte. */
@media (max-width:860px){
  .home-hero .hero-foreground{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;min-height:0;padding:20px 0 26px;}
  .andryale-highlights{grid-row:1;justify-self:stretch;max-width:none;}
  .home-hero .hero-copy{grid-row:2;max-width:760px;}
  .home-hero .hero-copy h1{font-size:clamp(2rem,5.5vw,3rem);margin:12px 0;}
  .home-hero .hero-copy .hero-buttons{display:flex;flex-wrap:wrap;gap:9px;}
  .highlight-heading{grid-template-columns:minmax(0,1fr);gap:6px;}
  .highlight-eyebrow{padding-top:0;}
  .highlight-visual{height:clamp(210px,30vw,275px);}
  .section.section-projects{padding-top:18px;}
}
@media (max-width:700px){
  .home-hero .hero-foreground{padding:16px 0 24px;gap:18px;}
  .home-hero .hero-copy h1{font-size:clamp(1.9rem,6.6vw,2.75rem);}
  .home-hero .hero-copy p{font-size:.98rem;line-height:1.57;}
  .home-hero .hero-copy .hero-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
  .home-hero .hero-buttons>.button{white-space:normal;width:100%;min-width:0;justify-content:center;padding-inline:8px;}
  .home-hero .hero-buttons>.button-place{grid-column:1/-1;}
  .highlight-content{min-height:345px;padding:14px 14px 15px;}
  .highlight-title{font-size:1.45rem;}
  .highlight-visual{height:clamp(190px,31vw,235px);min-height:185px;}
  .highlights-topline{padding:11px 14px 10px 16px;}
  .highlights-bottom{padding:7px 10px 8px 12px;}
  .section.section-projects{padding-top:16px;}
}
@media (max-width:420px){
  .home-hero .hero-copy .hero-buttons{grid-template-columns:minmax(0,1fr);}
  .home-hero .hero-buttons>.button-place{grid-column:1;}
  .highlight-content{min-height:345px;}
  .highlight-visual{height:clamp(175px,47vw,198px);min-height:170px;}
  .highlight-title{font-size:1.36rem;}
  .highlights-bottom{gap:4px;}
  .highlights-dots{gap:0;}
  .highlight-control{width:31px;height:31px;min-width:31px;min-height:31px;}
}
@media (prefers-reduced-motion:reduce){.highlights-progress span{animation:none!important;}.highlight-dot span{transition:none!important;}}
@media print{.home-hero .hero-foreground{display:block;min-height:0;padding:0}.andryale-highlights{display:none!important}.section.section-projects{padding-top:14px;}}
