:root {
  --bg: #d6dde9;          /* gris-bleuté clair = moins agressif */
  --fg: #111827;          /* texte anthracite (pas noir pur) */
  --muted: #6b7280;       /* gris moyen pour secondaires */
  --accent: #3a6df0;      /* ton bleu actuel */
  --card: #fdfdff;        /* blanc cassé */
  --shadow: 0 6px 20px rgba(15, 23, 42, .08);
}

:root[data-theme="dark"]{
  --bg:#0b0f1a;
  --fg:#e8eefc;
  --muted:#a8b4cf;
  --accent:#5f8cff;
  --card:#0f1524;
}

:root { --skill-icon: 72px; }

*{
  box-sizing:border-box
}
html,body{
  margin:0;
  padding:0;
  width: 100%;

}
html {
  overflow-x: hidden;
}
main{
  width: 100%;
}
body{
    background:
    radial-gradient(1200px 600px at 10% -10%, rgba(58,109,240,.06), transparent 60%),
    radial-gradient(900px 500px at 90% 0%,   rgba(15,26,42,.05),   transparent 50%),
    var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font:16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;


}

body::before{
  content:"";
  position:fixed; inset:0; pointer-events:none; z-index:-1;
  background-image:
    radial-gradient(1px 1px at 25% 20%, rgba(0,0,0,.025) 50%, transparent 52%),
    radial-gradient(1px 1px at 60% 80%, rgba(0,0,0,.02)  50%, transparent 52%);
  background-size: 180px 180px, 220px 220px;
  opacity:.8;
}

img{
  max-width:100%;
  height:auto;
  border-radius:16px
}
.container{
  max-width:1100px;
  margin:auto;
  padding:0 16px
}
.section{
  padding:30px 0;
  min-height: 80vh;
  width: 100%;
  margin: 10vh 0 17vh 0;

}

/* Dernière section : bottom plus bas (moins d'espace) */
.section:last-of-type{
  margin-bottom: 8vh;   /* au lieu de 17vh */
}

/* Variante plus précise si tes sections sont dans <main> */
main > .section:last-of-type{
  margin-bottom: 8vh;
}


#skills{
  display: flex;
  flex-direction: column;
align-items: center;
}
.section-header {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
}

.section-header h2{
  margin:0;
  text-shadow: 0 0 4px var(--fg);
  font-style: italic;
  font-size: 2rem;
  font-family: 'Montserrat', system-ui, sans-serif;
  text-align: center;

}

.section-header p {
  font-style: italic;
  font-size: 1.2rem;
  text-align: center;
}
/* Bouton ↑ : fixe en bas à droite, caché par défaut */
.arrow-up{
  position: fixed;                  /* pas absolute → suit la fenêtre */
  right: clamp(16px, 2vw, 24px);
  bottom: calc(32px + env(safe-area-inset-bottom));
  z-index: 900;
  width: 60px;
  height: 50px;
  border-radius: 999px;
  border: 1px solid var(--muted);
  /* background: color-mix(in srgb, var(--bg) 80%, transparent); */
  box-shadow: var(--shadow);
  color: var(--fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* caché tant que le hero est visible */
  opacity: 0;
  visibility: hidden;
    transform: rotate(271deg);

  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}

/* Visible quand on sort du hero */
.arrow-up.is-visible{
  opacity: 1;
  visibility: visible;
  transition: opacity .25s ease, transform .25s ease;
}

.header{
  position:sticky;
  top:0;
  z-index:500;
  backdrop-filter:blur(8px);
  background:color-mix(in srgb, var(--bg) 70%, transparent);
  width: 100%;
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px
}
.brand{
  font-weight:700;
  text-decoration:none;
  color:var(--fg)
}
.menu{
  display:flex;
  gap:16px;
  align-items:center
}
.menu a{
  color:var(--fg);
  text-decoration:none;
  padding:8px 10px;
  border-radius:10px
}
.menu a.is-active{
  background:var(--card)
}
.theme-toggle{
  display:flex;
  align-items:center;
  padding-left:8px
}
.theme-toggle input{
  appearance:none;
  width:36px;
  height:22px;
  border-radius:999px;
  background:var(--card);
  position:relative;
  outline:none;
  cursor:pointer
}
.theme-toggle input:checked{
  background:var(--accent)
}
.theme-toggle input::after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:#fff;
  transition:transform .2s
}
.theme-toggle input:checked::after{
  transform:translateX(14px)
}

/* Burger */
.burger-toggle{
  display:none
}
.burger{
  display:none
}
.burger span,.burger span:before,.burger span:after{
  display:block;
  background:var(--fg);
  height:2px;
  width:24px;
  border-radius:2px;
  position:relative
}
.burger span:before,.burger span:after{
  content:"";
  position:absolute;
  left:0
}
.burger span:before{
  top:-6px
}
.burger span:after{
  top:6px
}
/* le menu doit se positionner relativement à la barre */
.nav{ position: relative; }

@media (max-width:860px){
  .burger{ 
    display:inline-flex; 
    align-items:center; 
    justify-content:center; 
    padding:12px;           /* zone cliquable confortable */
    line-height:0;
  }

  .menu{
    position: absolute;
    top: 100%;              /* collé sous la nav */
    left: 0; right: 0;
    margin: 0;
    background: var(--bg);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    padding: 12px;
    z-index: 1000;          /* au-dessus du contenu */
    border-top: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
  }

  .burger-toggle:checked ~ .menu{ display: flex; }
}


/* Hero */
.hero{
  display:flex;
  flex-direction: column;
  justify-content: center;
  place-items:center;
  text-align:center;
  background:linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--bg) 85%, var(--accent)));
  border-radius:0 0 32px 32px;
  height: 100vh;
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  padding: 0 !important;
  margin: 0 !important;
}
.hero h1{
  font-weight: 700;
  font-size: 3rem;
  font-style: italic;
  line-height: 1.1;
  font-family: 'Montserrat', system-ui, sans-serif;
  margin:0;
  z-index: 100;
}
.hero h2{
  margin:.3rem 0 1rem 0;
  z-index: 100;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-style: italic;


}
.hero p{
  opacity:.9;
  z-index: 100;
  font-family: 'Lato', system-ui, sans-serif;

}

/* Cards & grids */
.grid{
  gap:1%;
  padding: 0 1%;
  height: 100%;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}



.card{
  /* background:var(--card); */
  padding:18px;
  border-radius:18px;
  /* box-shadow: 0px 0px 31px 4px rgba(0,0,0,0.39); */
  background: var(--card);
  box-shadow: var(--shadow);
  margin: 1%;
}

.service {
  width: 40%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
    flex: 1 1 calc(50% - 2%);      /* 2 colonnes avec le gap pris en compte */

}

.service h3 {
  font-style: italic;
  text-shadow: 0 0 4px var(--fg) ;
  font-family: 'Montserrat', system-ui, sans-serif;
  height: 10%;
  margin: 10px;
}

.service p {
  height: 40%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lato', system-ui, sans-serif;
}

.skill{
  display:flex;
  flex-direction: column-reverse;       /* texte au-dessus de l’icône */
  align-items:center;
  justify-content:flex-end;             /* avec column-reverse, flex-end = haut */
  gap: 12px;
  padding:14px 18px;
  border-radius:14px;
  background:var(--card);
  min-height: calc(var(--skill-icon) + 80px); /* assez haut pour tex+icône */
  width: 20%;
}

.skill img{
  width: var(--skill-icon);
  height: var(--skill-icon);
  display:block;                        /* supprime l’espace baseline */
}

.skill span{
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 4px; 
  font-style: italic;
  font-family: 'Lato', system-ui, sans-serif;
  text-shadow: 0 0 4px var(--fg);
}

@media (max-width: 700px){
  :root { --skill-icon: 56px; }
  .skill{ min-height: calc(var(--skill-icon) + 70px); }
}

/* Tag panel */
.tag-panel{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:8px 0 18px
}
.tag{
  border:1px solid var(--muted);
  background:transparent;
  padding:6px 10px;
  border-radius:999px;
  cursor:pointer
}
.tag.is-active{
  background:var(--accent);
  border-color:transparent;
  color:#fff
}

.btn,.btn-outline{
  border-radius:12px;
  padding:8px 12px;
  border:0;
  cursor:pointer
}
.btn{
  background:var(--accent);
  color:#fff
}
.btn-outline{
  background:transparent;
  border:1px solid var(--muted);
  color:var(--fg)
}

/* Contact */
.contact{
  display:flex;
  gap:10px;
  max-width:640px
}
.contact input,.contact textarea{
  width:100%;
  padding:10px;
  border-radius:10px;
  border:1px solid var(--muted);
  background:transparent;
  color:inherit
}
.ok{
  color:seagreen
}
.err{
  color:tomato
}

/* Animations reveal */
[data-reveal]{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .6s ease, transform .6s ease
}
[data-reveal].is-visible{
  opacity:1;
  transform:none
}

#services {
  display: flex;
  flex-direction: column;
  min-height: 80vh;
}



*, *:before, *:after {
  -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
 }


.mouse_scroll {
	display: block;
	margin: 0 auto;
	width: 24px;
	height: 100px;
	margin-top: 125px;
  padding-top: 100px;
}


.m_scroll_arrows
{
  display: block;
  width: 5px;
  height: 5px;
  -ms-transform: rotate(45deg); /* IE 9 */
  -webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
  transform: rotate(45deg);
   
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  margin: 0 0 3px 4px;
  
  width: 16px;
  height: 16px;
}


.unu
{
  margin-top: 1px;
}

.unu, .doi, .trei
{
    -webkit-animation: mouse-scroll 1s infinite;
    -moz-animation: mouse-scroll 1s infinite;
    animation: mouse-scroll 1s infinite;
  
}

.unu
{
  -webkit-animation-delay: .1s;
  -moz-animation-delay: .1s;
  -webkit-animation-direction: alternate;
  
  animation-direction: alternate;
  animation-delay: alternate;
}

.doi
{
  -webkit-animation-delay: .2s;
  -moz-animation-delay: .2s;
  -webkit-animation-direction: alternate;
  
  animation-delay: .2s;
  animation-direction: alternate;
  
  margin-top: -6px;
}

.trei
{
  -webkit-animation-delay: .3s;
  -moz-animation-delay: .3s;
  -webkit-animation-direction: alternate;
  
  animation-delay: .3s;
  animation-direction: alternate;
  
  
  margin-top: -6px;
}

.mouse {
  height: 42px;
  width: 24px;
  border-radius: 14px;
  transform: none;
  border: 2px solid white;
  top: 170px;
}

.wheel {
  height: 5px;
  width: 2px;
  display: block;
  margin: 5px auto;
  background: white;
  position: relative;
  
  height: 4px;
  width: 4px;
  border: 2px solid #fff;
  -webkit-border-radius: 8px;
          border-radius: 8px;
}

.wheel {
  -webkit-animation: mouse-wheel 0.6s linear infinite;
  -moz-animation: mouse-wheel 0.6s linear infinite;
  animation: mouse-wheel 0.6s linear infinite;
}

@-webkit-keyframes mouse-wheel{
   0% {
    opacity: 1;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    -webkit-transform: translateY(6px);
    -ms-transform: translateY(6px);
    transform: translateY(6px);
  }
}
@-moz-keyframes mouse-wheel {
  0% { top: 1px; }
  25% { top: 2px; }
  50% { top: 3px;}
  75% { top: 2px;}
  100% { top: 1px;}
}
@-o-keyframes mouse-wheel {

   0% { top: 1px; }
  25% { top: 2px; }
  50% { top: 3px;}
  75% { top: 2px;}
  100% { top: 1px;}
}
@keyframes mouse-wheel {

   0% { top: 1px; }
  25% { top: 2px; }
  50% { top: 3px;}
  75% { top: 2px;}
  100% { top: 1px;}
}

@-webkit-keyframes mouse-scroll {

  0%   { opacity: 0;}
  50%  { opacity: .5;}
  100% { opacity: 1;}
}
@-moz-keyframes mouse-scroll {

  0%   { opacity: 0; }
  50%  { opacity: .5; }
  100% { opacity: 1; }
}
@-o-keyframes mouse-scroll {

  0%   { opacity: 0; }
  50%  { opacity: .5; }
  100% { opacity: 1; }
}
@keyframes mouse-scroll {

  0%   { opacity: 0; }
  50%  { opacity: .5; }
  100% { opacity: 1; }
}

#holder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* 1) Couleur cible selon le thème */
:root[data-theme="light"] .mouse_scroll { color: #000; }  /* noir en light */
:root[data-theme="dark"]  .mouse_scroll { color: #fff; }  /* blanc en dark (si tu veux) */

/* 2) Tous les traits prennent la couleur courante */
.mouse_scroll .mouse { 
  border: 2px solid currentColor; 
}
.mouse_scroll .wheel { 
  border: 2px solid currentColor; 
  background: currentColor; 
}
.mouse_scroll .m_scroll_arrows {
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

/* Cartes en grille, égales en hauteur par ligne */
.grid.cards{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 40px;
  align-items: stretch; /* chaque ligne prend la plus haute carte */
  padding: 0 2%;
  margin-top: 10px;
  justify-content: center;
  justify-items: center;
}

/* Les cartes remplissent la cellule et n'ajoutent pas de marge propre */
.grid.cards .card{
  display: flex;            /* pour gérer le contenu interne */
  flex-direction: column;
  justify-content: space-between;
  margin: 0;                /* on utilise gap, pas margin */
}

/* Nettoie les règles qui cassent l’égalisation */
.grid{ height: auto; justify-content: initial; }  /* enlève center + height:100% */
.card.service{ height: auto; }
.service{ width: 90%; }      /* supprime width:40% */

/* Responsive : 1 colonne sous 800px (ajuste si besoin) */
@media (max-width: 800px){
  .grid.cards{ grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 900px){
  .skill {width: 25%;}
}

@media (max-width: 768px){
  .skill {width: 33%;}
}

/* Le bandeau garde sa taille, on ne translate plus l’élément */
.bandeau{
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 20vh;
  box-shadow: 0px 13px 29px 0px #000000;

  /* l’image de fond portée par l’élément */
  background: var(--img-src) center / cover no-repeat;

  /* parallax : on ne bouge que la position verticale */
  background-position: 50% calc(50% + var(--bg-shift, 0px));

  /* 🔧 on agrandit un peu l’image pour éviter les bords visibles
     (JS posera --bg-overscan dynamiquement) */
  background-size: calc(100% + var(--bg-overscan, 120px)) auto;

  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
}

.bandeau h4 {
  color: white;
  margin:0;
 
  font-style: italic;
  font-size: 2rem;
  font-family: 'Montserrat', system-ui, sans-serif;
    transform: perspective(500px) rotateX(20deg);
  text-shadow: 0 5px 15px rgba(0,0,0,0.8);
  text-align: center;
}

/* mets le chemin de l’image ici (nouveau nom de var pour ne pas écraser --bg global) */
.premierBandeau{
  --img-src: url("../images/fondbandeau-93lFW0I.webp");
}

.deuxiemeBandeau{
  --img-src: url("../images/fondbandeau2-eF_Syqf.webp");
}

.skills{
  display: flex;
  width: 80%;
  justify-content: center;
  align-items: center;
  list-style:none;
  padding:0;
  margin:0;
  flex-wrap: wrap;
  height: 100%;
  gap: 40px;   
  margin-top: 20px;
}

@media (max-width: 500px) {
  .skills {
    width: 100%;
  }
  
}
/* ===== HOLO EFFECT (style "carte Pokémon") ===== */

/* couleurs de base */
:root { 
  --holo-c1: color-mix(in srgb, var(--accent) 65%, #fff 35%);
  --holo-c2: color-mix(in srgb, #00e7ff 55%, var(--accent) 45%);
}

.skills { perspective: 900px; }

.skill{
  position: relative;
  isolation: isolate;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  --mx:.5; --my:.5;

  transform:
    rotateX(calc((.5 - var(--my)) * 2 * var(--skill-tilt)))
    rotateY(calc((var(--mx) - .5) * 2 * var(--skill-tilt)))
    translateZ(var(--skill-lift));

  /* ombre directionnelle */
  --dx: calc((.5 - var(--mx)) * 18px);
  --dy: calc((.5 - var(--my)) * 18px);
  box-shadow:
    var(--dx) var(--dy) 28px rgba(0,0,0,.35),
    0 8px 22px rgba(0,0,0,.25);

  transition: transform 0.5s ease, box-shadow .25s ease;
  overflow: hidden;

  /* variables animées via JS */
  --gradX: 50%;
  --gradY: 50%;
  --sparkX: 50%;
  --sparkY: 50%;
  --sparkO: .75;

}

/* halo (couche large) — base, surchargée en light plus bas */
/* .skill::before{
  content:"";
  position:absolute; inset:-1px;
  z-index: 1;
  pointer-events:none;
  mix-blend-mode: color-dodge;
  opacity:.85;
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      var(--holo-c1) 25%,
      transparent 47%,
      transparent 53%,
      var(--holo-c2) 75%,
      transparent 100%
    );
  background-size: 280% 280%;
  background-position: var(--gradX) var(--gradY);
  filter: brightness(.7) contrast(1.2) saturate(1.1) blur(.2px);
  transition: opacity .22s ease;
} */

/* parallax interne */
.skill img, .skill span{
  will-change: transform;
  transition: transform 120ms linear;
  transform:
    translate3d(
      calc((var(--mx) - .5) * 12px),
      calc((var(--my) - .5) * 12px),
      0
    );
}

/* hover commun */
.skill:hover{
  box-shadow:
    var(--dx) var(--dy) 24px rgba(0,0,0,.30),
    0 10px 28px rgba(0,0,0,.22),
    0 0 0 2px var(--skill-stroke),
    0 20px 36px -10px var(--skill-glow1),
    0 0 42px -8px  var(--skill-glow2);
    transform: scale(1.03);
}

/* motion safe */
@media (prefers-reduced-motion: reduce){
  .skill, .skill img, .skill span{ transition:none; transform:none; box-shadow:none; }
  .skill::before, .skill::after{ display:none; }
}

/* === DARK THEME variables (inchangé) === */
:root[data-theme="dark"]{
  --skill-stroke: color-mix(in srgb, var(--accent) 70%, #fff 30%);
  --skill-glow1:  color-mix(in srgb, var(--accent) 65%, #00e7ff 35%);
  --skill-glow2:  color-mix(in srgb, var(--accent) 45%, #ffffff 55%);
}

/* === LIGHT THEME : look “encré” (pas lumineux) === */

/* variables pour le relief en light */
:root[data-theme="light"]{
  --skill-stroke: color-mix(in srgb, #5db4ee 65%, var(--accent) 35%);
  --skill-glow1: rgb(82, 142, 255);
  --skill-glow2: rgb(82, 142, 255);
}

/* film de contraste sous la carte (light only) */
:root[data-theme="light"] .skill::after{
  content:"";
  position:absolute; inset:-1px;
  z-index: 0;
  pointer-events:none;
  background:
    radial-gradient(120% 100% at 50% 12%, rgba(0,0,0,.08) 0%, rgba(0,0,0,0) 60%),
    radial-gradient(160% 120% at 50% 120%, rgba(0,0,0,.05) 0%, rgba(0,0,0,0) 70%);
  opacity: 1;
}

/* halo qui assombrit + conserve l’animation du gradient */
:root[data-theme="light"] .skill::before{
  --holo-dark1: color-mix(in srgb, var(--accent) 35%, rgba(168, 198, 255, 0.25) 65%);
  --holo-dark2: color-mix(in srgb, var(--accent) 25%, rgba(168, 198, 255, 0.25) 75%);
  mix-blend-mode: multiply;
  /* background:
    linear-gradient(
      115deg,
      transparent 0%,
      var(--holo-dark1) 28%,
      transparent 50%,
      var(--holo-dark2) 72%,
      transparent 100%
    ); */
  background-size: 280% 280%;
  background-position: var(--gradX) var(--gradY);
  opacity:.55;
  filter: contrast(1.15) brightness(.95);
}

/* hover en light (relief net, non “fluo”) */
:root[data-theme="light"] .skill:hover{
  box-shadow:
    var(--dx) var(--dy) 22px rgb(103, 181, 255),
    0 12px 26px rgb(42, 170, 255),
    0 0 0 1px var(--skill-stroke),
    0 14px 28px -10px var(--skill-glow1),
    0 0 32px -10px var(--skill-glow2);
}

/* SERVICE — base (pas de parallax) */
.service, .project{
  /* offsets fixes pour remplacer --dx/--dy des .skill */
  --dx: 0px;
  --dy: 8px;

  box-shadow:
    var(--dx) var(--dy) 28px rgba(0,0,0,.35),
    0 8px 22px rgba(0,0,0,.25);
  transition: transform 1s ease, box-shadow 1.5s ease;
}

/* SERVICE — hover (thème par défaut = dark) */
.service:hover, .project:hover{
  box-shadow:
    var(--dx) var(--dy) 24px rgba(0,0,0,.30),
    0 10px 28px rgba(0,0,0,.22),
    0 0 0 2px var(--skill-stroke),
    0 20px 36px -10px var(--skill-glow1),
    0 0 42px -8px var(--skill-glow2);
  transform: scale(1.03);
}

/* SERVICE — hover en LIGHT (même override que .skill) */
:root[data-theme="light"] .service:hover, .project:hover{
  box-shadow:
    var(--dx) var(--dy) 22px rgb(103, 181, 255),
    0 12px 26px rgb(42, 170, 255),
    0 0 0 1px var(--skill-stroke),
    0 14px 28px -10px var(--skill-glow1),
    0 0 32px -10px var(--skill-glow2);
}

/* Option accessibilité : réduit les animations si demandé */
@media (prefers-reduced-motion: reduce){
  .service{ transition:none; }
  .service:hover{ transform:none; }
}


#projects {
  display: flex;
  flex-direction: column;
  align-items: center;
}

a {
  text-decoration: none;
  color: var(--fg);

}

.project {
  display: flex;
  flex-direction: column;
  align-items: center;  
  justify-content: center;
  width: 30%;
  padding: unset;

}

.divImage img {
  border-radius: 16px 16px 0 0;
  transition: transform .75s ease;
}

.project:hover img {
  transform: scale(1.03);
}


/* Carte projet pleine hauteur dans sa cellule */
.project{
  display:flex;
  flex-direction:column;
  padding:0;
  margin:0;
  height:100%;
  width: 100%;
}

/* Lien cliquable qui remplit la carte */
.project-link{
  display:flex;
  flex-direction:column;
  height:100%;
  color:inherit;
  text-decoration:none;
}

/* Bloc image avec ratio fixe + crop propre */
.divImage{
  position:relative;
  border-radius:16px 16px 0 0;
  aspect-ratio: 16 / 9;           /* garde la même hauteur visuelle */
}
.divImage img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:inherit;
}


/* Contenu texte de la carte */
.infosProjets{
  padding:16px 18px 20px;
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;                         /* pousse le contenu pour occuper la hauteur */
}

.infosProjets h3{
  font-style: italic;
  text-shadow: 0 0 4px var(--fg) ;
  font-family: 'Montserrat', system-ui, sans-serif;
  height: 10%;
  margin: 10px;
}

.troisiemeBandeau {
  --img-src: url("../images/fondbandeaucontact-7AVbrzp.webp");
}

#contact {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  height: auto;
  min-height: 40vh;
}

.contact {
  display: flex;
  flex-direction: column;
  width: 80%;
}

label {
  font-style: italic;
}

label input {
  margin: 10px 0;
    box-shadow: 0px 0px 31px 4px rgba(0,0,0,0.39);
  border-radius: 30px !important;

}

label textarea {
  height: 150px;
    box-shadow: 0px 0px 31px 4px rgba(0,0,0,0.39);
  margin: 10px 0;


}

.contact button {
  width: 30%;
  align-self: flex-end;
    box-shadow: 0px 0px 31px 4px rgba(0,0,0,0.39);
  transition: background .75s ease, transform .75s ease, box-shadow .75s ease;
}

.contact button:hover {
  background: #88a9ff;
  transform: scale(1.03);
}


/* Valeurs par défaut pour les ombres des boutons */
.contact button { 
  --dx: 0px; 
  --dy: 0px;
}

/* Hover par défaut (dark / sans thème explicite) */
.contact button:hover{
  box-shadow:
    var(--dx, 0px) var(--dy, 0px) 24px rgba(0,0,0,.30),
    0 0 28px rgba(0,0,0,.22),
    0 0 0 2px var(--skill-stroke, #5db4ee),
    0 0 36px -10px var(--skill-glow1, rgb(82,142,255)),
    0 0 42px -8px var(--skill-glow2, rgb(82,142,255));
  transform: scale(1.03);
}

/* Hover en thème clair (override) */
:root[data-theme="light"] .contact button:hover{
  box-shadow:
    var(--dx, 0px) var(--dy, 0px) 22px rgb(103, 181, 255),
    0 0 26px rgb(42, 170, 255),
    0 0 0 1px var(--skill-stroke, rgb(93,180,238)),
    0 0 28px -10px var(--skill-glow1, rgb(82,142,255)),
    0 0 32px -10px var(--skill-glow2, rgb(82,142,255));
}

.hero, .bandeau{
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
}

/* ===== PROJETS — mobile-first ===== */

/* Carte projet : ne pas forcer une largeur fixe dans une grille */
.project{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width: 100%;          /* <-- remplace ton width:30% */
  padding: 0;           /* garde si tu veux "unset" */
  margin: 0;
  height: 100%;
}

/* Base (≤ 670px) : 1 colonne */
#projectGrid{
  display: grid;
  grid-template-columns: 1fr;              /* 1 colonne par défaut */
  gap: 40px;
  width: 90%;
  align-items: stretch;
  justify-items: stretch;
  margin-top: 25px;
}

/* ≥ 580px : 2 colonnes visuelles (4 pistes réelles) */
/*@media (min-width: 580px){*/
  /*#projectGrid{*/
  /*  display: grid;*/
    /*grid-template-columns: repeat(4, minmax(0, 1fr)); 4 pistes */
  /*  gap: 40px;*/
  /*  width: 90%;*/
  /*  align-items: stretch;*/
  /*  justify-items: stretch;*/
  /*}*/

  /* Cas général : 2 cartes par ligne => 2 pistes chacune (2×2=4) */
  /*#projectGrid > .project{*/
  /*  grid-column: span 2;*/
  /*}*/

  /* S’il reste 1 carte (nombre impair) → centrée, même largeur que les autres */
  /*#projectGrid > .project:last-child:nth-child(2n + 1){*/
    /*grid-column: 2 / span 2;  */
    /*justify-self: stretch;    */
  /*}*/
/*}*/


/* ≥ 1101px : 3 colonnes “logiques”, mais 6 pistes réelles */
/* Desktop : juste 3 colonnes fixes */
/*@media (min-width: 1101px){*/
/*  #projectGrid{*/
/*    display:grid;*/
/*    grid-template-columns: repeat(3, minmax(0, 1fr));*/
/*    gap: 40px;*/
/*    width: 90%;*/
/*    align-items: stretch;*/
/*    justify-items: stretch;*/
/*  }*/

/*  #projectGrid > .project{*/
/*    grid-column: auto;*/
/*  }*/

  /* supprime / commente TOUT ce bloc:
     - last-child:nth-child(3n + 1)
     - nth-last-child(2):nth-child(3n + 1)
     - last-child:nth-child(3n + 2)
  */
/*}*/


.arrow-6 {
	/* more triangle */
	height: 10px; width: 10px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-width: 3px 3px 0 0;
	transform: rotate(45deg);
}

.arrow-6:before, .arrow-6:after {
	content: '';
	position: absolute;
	display: block;
	height: 10px; width: 10px;
	border-width: 3px 3px 0 0;
}

.arrow-6:before {
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-width: 3px 3px 0 0;
	/* top - distance minus border */
	top: 7px; left: -10px;
}

.arrow-6:after {
	border: 1px solid rgba(255, 255, 255, 1);
	border-width: 3px 3px 0 0;
	/* top - distance plus border */
	top: -13px; left: 10px;
}

footer {
  display: flex;
  align-items: end;
  justify-content: end;
}

small {
  font-size: 0.6rem;
  font-style: italic;
}




p{ color: color-mix(in srgb, var(--fg) 86%, white 14%); }

.hero{
  background:
    radial-gradient(1000px 400px at 50% -10%, rgba(58,109,240,.10), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 90%, #6f9bff), var(--bg));
}

.bandeau::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background: rgba(255,255,255,.04);
}

/* === Fonds LIGHT (uniquement quand data-theme="light") === */
:root[data-theme="light"] body{
  background:
    linear-gradient(180deg, #e9ecf3 0%, #eef1f7 100%);
}

:root[data-theme="light"] body::before{
  content:"";
  position:fixed; inset:0; pointer-events:none; z-index:-1;
  background-image:
    radial-gradient(1px 1px at 25% 20%, rgba(0,0,0,.025) 50%, transparent 52%),
    radial-gradient(1px 1px at 60% 80%, rgba(0,0,0,.02)  50%, transparent 52%);
  background-size: 180px 180px, 220px 220px;
  opacity:.8;
}

/* Sections alternées LIGHT uniquement */
:root[data-theme="light"] .section:nth-of-type(odd){
  background:
    linear-gradient(180deg, rgba(15,26,42,.03), transparent 40%),
    transparent;
  border-radius:24px;
}

/* Hero LIGHT : dégradé doux */
:root[data-theme="light"] .hero{
  background:
    radial-gradient(1000px 400px at 50% -10%, rgba(58,109,240,.10), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 90%, #6f9bff), var(--bg));
}

/* === Fonds DARK (remet une base sombre propre) === */
:root[data-theme="dark"] body{
  background: var(--bg); /* #0b0f1a */
}

/* Option : léger “grain” en dark (très discret). Supprime ce bloc si tu préfères sans. */
:root[data-theme="dark"] body::before{
  content:"";
  position:fixed; inset:0; pointer-events:none; z-index:-1;
  background-image:
    radial-gradient(1px 1px at 25% 20%, rgba(255,255,255,.02) 50%, transparent 52%),
    radial-gradient(1px 1px at 60% 80%, rgba(255,255,255,.015) 50%, transparent 52%);
  background-size: 200px 200px, 260px 260px;
  opacity:.5;
}

/* Hero DARK : simple fond sombre (tu peux mettre une variante plus “bleutée” si tu veux) */
:root[data-theme="dark"] .hero{
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, #1a2440), var(--bg));
}

/* Bandeaux : voile adapté au thème */
:root[data-theme="light"] .bandeau::after{ background: rgba(255,255,255,.04); }
:root[data-theme="dark"]  .bandeau::after{ background: rgba(0,0,0,.25); }

/* Header translucide qui respecte le thème */
.header{
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(8px);
}

/* Couleur des flèches selon le thème */
:root[data-theme="light"] .mouse_scroll,
:root[data-theme="light"] .arrow-up { color: var(--fg); }   /* sombre en light */

:root[data-theme="dark"] .mouse_scroll,
:root[data-theme="dark"] .arrow-up { color: #fff; }         /* blanc en dark */

/* Les flèches “hero” (souris + chevrons) utilisent la couleur courante */
.mouse_scroll .mouse  { border: 2px solid currentColor; }
.mouse_scroll .wheel  { border: 2px solid currentColor; background: currentColor; }
.mouse_scroll .m_scroll_arrows {
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

/* La flèche “remonter en haut” (arrow-6) utilise aussi currentColor */
.arrow-6,
.arrow-6::before,
.arrow-6::after {
  border-width: 3px 3px 0 0;
  border-style: solid;
}

/* petit relief à 3 intensités, compatible thèmes */
.arrow-6        { border-color: currentColor; }
.arrow-6::before{ border-color: color-mix(in srgb, currentColor 40%, transparent); }
.arrow-6::after { border-color: color-mix(in srgb, currentColor 80%, transparent); }

/* ---- Light : même fond partout (body) ---- */
:root[data-theme="light"]{
  --page-base: linear-gradient(180deg, #e9ecf3 0%, #eef1f7 100%);
  --page-tint: linear-gradient(180deg, rgba(15,26,42,.03), transparent 40%);
}

:root[data-theme="light"] body{
  /* le voile que tu mettais sur .section:nth-of-type(odd) + la base */
  background: var(--page-tint), var(--page-base);
}

/* ---- Light : les sections impaires n’ajoutent plus leur propre fond ---- */
:root[data-theme="light"] .section:nth-of-type(odd){
  background: none;           /* laisse voir le body derrière */
  /* on garde le border-radius si tu veux l’arrondi */
  border-radius: 24px;
}

/* (optionnel) si le grain/body::before te crée encore un léger écart,
   rends-le uniforme ou coupe-le en light : */
/* :root[data-theme="light"] body::before{ opacity: .0; } */


/* Switch : transitions douces */
.theme-toggle input{
  transition: background-color .25s ease, border-color .25s ease;
}
.theme-toggle input::after{
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}

/* Couleur du bouton selon le thème */
:root[data-theme="light"] .theme-toggle input::after{
  background: var(--fg); /* anthracite en light */
  box-shadow: 0 1px 0 rgba(0,0,0,.1), 0 2px 6px rgba(0,0,0,.15);
}
:root[data-theme="dark"] .theme-toggle input::after{
  background: #fff;      /* blanc en dark */
  box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 2px 6px rgba(0,0,0,.4);
}

:root[data-theme="light"] .theme-toggle input:checked::after{ background:#fff; }
:root[data-theme="dark"]  .theme-toggle input:checked::after{ background:var(--fg); }

.sectionLogin {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 90vh;
}

.sectionLogin h1 {
  text-shadow: 0 0 4px var(--fg);
  font-style: italic;
  font-family: 'Montserrat', system-ui, sans-serif;
  text-align: center;
}

.sectionLogin form{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.formLogin {
  min-width: 50%;
  display: flex;
  flex-direction: column;
}

.formLogin input {
  width:100%;
  padding:10px;
  border-radius:10px;
  border:1px solid var(--muted);
  background:transparent;
  color:inherit;
   margin: 10px 0;
    box-shadow: 0px 0px 31px 4px rgba(0,0,0,0.39);
  border-radius: 30px !important;
}

.formLogin button {
  width: 30%;
  align-self: flex-end;
    box-shadow: 0px 0px 31px 4px rgba(0,0,0,0.39);
  transition: background .75s ease, transform .75s ease, box-shadow .75s ease;
  margin-top: 20px;
}

.formLogin button:hover {
  background: #88a9ff;
  transform: scale(1.03);
}

/* Valeurs par défaut pour les ombres des boutons */
.formLogin button { 
  --dx: 0px; 
  --dy: 0px;
}

/* Hover par défaut (dark / sans thème explicite) */
.formLogin button:hover{
  box-shadow:
    var(--dx, 0px) var(--dy, 0px) 24px rgba(0,0,0,.30),
    0 0 28px rgba(0,0,0,.22),
    0 0 0 2px var(--skill-stroke, #5db4ee),
    0 0 36px -10px var(--skill-glow1, rgb(82,142,255)),
    0 0 42px -8px var(--skill-glow2, rgb(82,142,255));
  transform: scale(1.03);
}

/* Hover en thème clair (override) */
:root[data-theme="light"] .formLogin button:hover{
  box-shadow:
    var(--dx, 0px) var(--dy, 0px) 22px rgb(103, 181, 255),
    0 0 26px rgb(42, 170, 255),
    0 0 0 1px var(--skill-stroke, rgb(93,180,238)),
    0 0 28px -10px var(--skill-glow1, rgb(82,142,255)),
    0 0 32px -10px var(--skill-glow2, rgb(82,142,255));
}

/* ===== Loader Intro (MAJ) ===== */
html.booting, html.booting body { overflow: hidden; }

.loader-overlay{
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .55s ease, visibility .55s ease;
  /* couleur par défaut si on ne peut pas lire le hero (JS écrasera) */
  color: #fff;
}
:root[data-theme="light"] .loader-overlay{ color: var(--fg); }
.loader-overlay.is-done{ opacity: 0; visibility: hidden; }

/* remplace ton bloc .loader-inner par celui-ci */
.loader-inner{
  position: fixed;
  inset: 0;         /* top:0; right:0; bottom:0; left:0 */
  transform: none;  /* IMPORTANT */
  top: 0;           /* au cas où une ancienne règle traîne */
  left: 0;
  pointer-events: none;
  text-align: center;

  display: grid;
  gap: .3rem;                 /* même espacement que le hero */
  align-content: start;       /* les lignes commencent en haut de la boîte */
  justify-items: center;      /* centré horizontalement */
  pointer-events: none;       /* clics passent à travers (le bouton “Passer” reste cliquable) */
}


.loader-line{
  --w: 0px;                   /* width finale (réglée par JS) */
  --steps: 20;                /* pas (réglé par JS) */
  --dur: 2s;                  /* durée (réglée par JS) */
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 0; /* curseur */
  /* width: 0; */
  position: fixed;  /* ← plutôt que absolute */
  left: 0;
  top: 0;
}

/* Anti-flash : cache le texte du loader avant le premier alignement JS */
.loader-line{
  position: fixed;          /* déjà le cas, mais on le rappelle */
  left: 0; top: 0;
  visibility: hidden;       /* <-- clé : invisible au chargement */
  width: 0;                 /* n’occupe pas d’espace */
  overflow: hidden;         /* évite tout débordement */
}


.loader-line .text{
  display: block;
  /* pas de gradient, on garde la couleur héritée du hero */
  color: inherit;
  background: none;
  -webkit-text-fill-color: currentColor;
  /* léger relief comme ton hero */
  text-shadow: 0 0 4px color-mix(in srgb, var(--fg) 55%, transparent);
  
}



/* tailles par défaut (seront écrasées par JS avec celles du hero) */
.loader-line.title .text{
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 800; font-style: italic;
  font-size: clamp(28px, 5.5vw, 56px);
  line-height: 1.05;
}
.loader-line.subtitle .text{
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 600; font-style: italic;
  font-size: clamp(20px, 3.5vw, 32px);
  line-height: 1.1;
}

@media (max-width: 500px) {
  
}

@keyframes type { from { width: 0; } to { width: var(--w); } }
@keyframes caret { 0%,100% { border-right-color: transparent; } 50% { border-right-color: currentColor; } }

.loader-line.play{
  animation: type var(--dur) steps(var(--steps)) forwards;
}
.loader-line.done{ border-right-color: transparent; }

.loader-skip{
  position: absolute;
  right: clamp(12px, 2vw, 18px);
  bottom: clamp(12px, 2vw, 18px);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  background: transparent; color: inherit;
  border: 1px solid color-mix(in srgb, var(--fg) 50%, transparent);
  box-shadow: var(--shadow);
}

@media (prefers-reduced-motion: reduce){
  /* .loader-line{ width: auto !important; border-right: 0; } */
  .loader-overlay{ transition: none; }
}

/* Fond du loader façon “bleu nuit strié” */
:root[data-theme="dark"] .loader-overlay{
  /* ordre = couche du haut → couche du bas */
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(95,140,255,.10), transparent 60%), /* lueur en haut */
    radial-gradient(180% 120% at 50% 120%, rgba(0,0,0,.40), transparent 60%),        /* vignette bas */
    repeating-linear-gradient(180deg,                                           /* fines lignes */
      rgba(255,255,255,.03) 0,
      rgba(255,255,255,.03) 1px,
      transparent            2px,
      transparent            4px
    ),
    linear-gradient(180deg, #0a1223, #0b152b);                                   /* base bleu nuit */
  background-color: #0b122b; /* fallback */
}

/* (optionnel) variante soft si le thème est clair, pour rester lisible */
:root[data-theme="light"] .loader-overlay{
  background-image:
    radial-gradient(900px 380px at 50% -8%, rgba(58,109,240,.12), transparent 60%),
    radial-gradient(160% 120% at 50% 120%, rgba(0,0,0,.08), transparent 65%),
    repeating-linear-gradient(180deg,
      rgba(0,0,0,.04) 0,
      rgba(0,0,0,.04) 1px,
      transparent      2px,
      transparent      4px
    ),
    linear-gradient(180deg, #e9ecf3, #eef1f7);
}


/* durée centralisée (facultatif) */
:root{ --loader-fade: 2s; } /* ← mets la durée que tu veux */
.loader-overlay{
  transition:
    opacity var(--loader-fade) ease,
    visibility 0s linear var(--loader-fade);
}
.loader-overlay.is-done{ opacity:0; visibility:hidden; }

.loader-line.done{ overflow: visible; }

/* On n'utilise plus l'animation de largeur */
.loader-line { width: auto; overflow: visible; border-right: 0; }
.loader-line.play { animation: none !important; }

/* Les lettres sont des <span> qu'on dévoile une par une */
.loader-line .text { white-space: normal; } /* laisse le wrap responsive */
.loader-line .text > span { opacity: 0; display: inline; }

.loader-line.play .text > span {
  animation: charIn .001s linear forwards; /* juste un "pop" */
  /* le délai est posé en JS: style.animationDelay = i * speed */
}

@keyframes charIn { to { opacity: 1; } }

/* Accessibilité : on garde juste le fade de l’overlay */
@media (prefers-reduced-motion: reduce){
  .loader-overlay{ transition: none; }
}

@media (max-height:733px) {
/* 1) Hero : utiliser les nouveaux vh sûrs et ne pas forcer une hauteur fixe */
.hero{
  position: relative;            /* pour positionner la souris en absolu */
  height: auto;                  /* ne pas forcer 100vh */
  min-height: 100svh;            /* plein écran, variantes mobiles ok */
  padding-block: clamp(12px, 4vh, 48px);
}

/* 2) La “souris” ne prend plus de place dans le flux */
.mouse_scroll{
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 6vh, 48px);
  transform: translateX(-50%);
  margin: 0;                     /* annule margin-top/padding-top énormes */
  padding: 0;
  height: auto;
  display: none;
}

/* 3) Paysage / petits écrans : on compacte (ou on cache la souris) */
@media (max-height: 480px){
  .hero{
    justify-content: flex-start; /* évite le centrage qui “coupe” en haut */
    gap: .35rem;
    padding-block: 16px;
  }
  .hero h1{ font-size: clamp(22px, 7vw, 36px); }
  .hero h2{ font-size: clamp(16px, 4.5vw, 24px); }
  .hero p { font-size: clamp(14px, 3.8vw, 18px); }
  .mouse_scroll{ display: none; } /* option: on la masque en paysage court */
}

/* Bonus : si tu veux garder la souris en paysage mais plus petite */
/* remplace le display:none ci-dessus par ceci :
  .mouse .wheel{ transform: scale(.8); }
  .m_scroll_arrows{ width: 12px; height: 12px; }
*/

/* --- HERO centré en mode paysage --- */
@media (orientation: landscape){
  .hero{
    justify-content: center;   /* centre vertical */
    align-items: center;       /* centre horizontal */
    padding-top: 0;            /* annule la poussée du titre */
    padding-bottom: 0;
  }
}

/* Paysage avec faible hauteur : on garde le centrage + typo qui rentre */
@media (orientation: landscape) and (max-height: 520px){
  .hero{
    min-height: 100svh;        /* plein écran fiable */
    gap: .35rem;
  }
  .hero h1{ font-size: clamp(20px, 7vw, 34px); }
  .hero h2{ font-size: clamp(14px, 4.5vw, 22px); }
  .hero p { font-size: clamp(12px, 3.6vw, 18px); }
  .mouse_scroll{ display: none; } /* option : évite tout chevauchement */
}
}

/* Firefox : éviter le blur coûteux, alléger les transitions d'ombres */
.is-firefox .header{
  backdrop-filter: none !important;
  background: color-mix(in srgb, var(--bg) 92%, transparent) !important;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}

/* Pas d'animation de box-shadow côté FF (gros coût CPU) */
.is-firefox .service,
.is-firefox .project,
.is-firefox .contact button,
.is-firefox .formLogin button{
  transition: transform .55s ease, background .55s ease !important;
}



/* Firefox : ombres au hover via drop-shadow (glow visible comme sur Chrome) */
.is-firefox .service,
.is-firefox .project{
  will-change: transform, filter; /* lissage anim */
}

/* efface d’éventuels overrides précédents */
.is-firefox .service:hover,
.is-firefox .project:hover{
  box-shadow: none !important;   /* on va remettre seulement l’anneau propre */
  filter: none !important;
}

/* nouveau rendu hover pour FF */
.is-firefox .service:hover,
.is-firefox .project:hover{
  /* ombres “réelles” */
  filter:
    drop-shadow(0 10px 24px rgba(0,0,0,.30))
    drop-shadow(0 8px 28px rgba(0,0,0,.22))
    /* les deux glows bleutés */
    drop-shadow(0 20px 36px color-mix(in srgb, var(--skill-glow1) 80%, transparent))
    drop-shadow(0 0 42px    color-mix(in srgb, var(--skill-glow2) 80%, transparent));
  /* anneau net comme avant */
  box-shadow: 0 0 0 2px var(--skill-stroke) !important;
}

/* pour éviter tout clipping */
.is-firefox .grid,
.is-firefox .section,
.is-firefox .container { overflow: visible; }

/* l’anim reste fluide */
.is-firefox .service,
.is-firefox .project { will-change: transform, filter; }

/* hover : anneau net en box-shadow + glow en drop-shadow (FF-friendly) */
.is-firefox .service:hover,
.is-firefox .project:hover{
  /* anneau bleu comme sur Chrome */
  box-shadow: 0 0 0 2px var(--skill-stroke) !important;

  /* glow externe (équivalent à tes couches floues) */
  filter:
    drop-shadow(0 12px 24px rgba(0,0,0,.30))
    drop-shadow(0 8px 20px rgba(0,0,0,.22))
    drop-shadow(0 20px 36px rgba(95,140,255,.38))
    drop-shadow(0 0 42px rgba(95,140,255,.48));
}

.is-firefox .service,
.is-firefox .project { position: relative; z-index: 0; }

.is-firefox .service::after,
.is-firefox .project::after{
  content:"";
  position:absolute;
  inset:-14px;                    /* dépasse pour le halo */
  border-radius: inherit;
  pointer-events:none;
  opacity:0;
  transition: opacity .25s ease;
  filter: blur(14px);
  background:
    radial-gradient(120% 120% at 50% 110%, rgba(95,140,255,.42) 0%, transparent 70%),
    radial-gradient(100% 100%  at 50% -10%, rgba(95,140,255,.30) 0%, transparent 80%);
}
.is-firefox .service:hover::after,
.is-firefox .project:hover::after{ opacity:1; }



.footer { display: flex; align-items: end; justify-content: end; }
.footer .legal-links a{ opacity:.9; }
.footer .legal-links a:hover{ opacity:1; text-decoration:none; }
.footer .legal-links{ white-space: nowrap; }
@media (max-width: 520px){ .footer{ justify-content:center; } }


.sectionFooter {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}

.containerFooter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 850px;
}

.containerFooter h2, .containerFooter p {
  text-align: center;
}

.containerFooter h2 {
  font-style: italic;
}

small {
  display: flex;
width: 100%;
flex-direction: column;
}

small nav {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
}

.copyright {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.copyright span {
  text-align: center;
}

/* ===== PROJETS — grille simple ===== */

/* Mobile : 1 colonne */
#projectGrid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  width: 90%;
  align-items: stretch;
  justify-items: stretch;
  margin-top: 25px;
}

/* Tablette : 2 colonnes */
@media (min-width: 768px){
  #projectGrid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop : 3 colonnes */
@media (min-width: 1100px){
  #projectGrid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* chaque carte remplit sa cellule */
.project{
  width: 100%;
  height: 100%;
}
