@font-face {
    font-family: "Maven Pro";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/maven-pro-regular.woff2") format("woff2"), url("../fonts/maven-pro-regular.woff") format("woff"); /* Modern Browsers */
}
@font-face {
    font-family: "Maven Pro";
    font-style: normal;
    font-weight: 700;
    src: url("../fonts/maven-pro-bold.woff2") format("woff2"), url("../fonts/maven-pro-bold.woff") format("woff"); /* Modern Browsers */
}

/* HEADER */

header {
    background-color: #f5f5f5;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 0;
}

header a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    height: 100%;
    display: flex;
    align-items: center;
}

header .menu {
    margin: 0;
    display: flex;
    align-items: stretch;
}

header .menu li {
    min-height: 60px;
}
header .menu li:hover, header .menu li.menu-current {
    border-bottom: 3px solid #000;
}
header .menu li {
    border-bottom: 3px solid #f5f5f5;
}

header .header-logoImg::after
{
    content: "Beta" / "";;
    background-color: #c3fad5;
    padding: 2px 4px;
    color: #297254;
    border-radius: 3px;
    position: relative;
    left: 7px;
}

/* SKIP LINKS */

.skipLinks-wrapper {
    /* technique d'accessibilité : invisible mais focusable via ses enfants */
    position: absolute;
    inset: 0 auto auto 0;   /* position off-screen sans display:none (optionnel) */
    clip: rect(1px, 1px, 1px, 1px); /* ancienne méthode */
    clip-path: inset(50%);  /* méthode moderne */
    height: 1px;
    width: 1px;
    overflow: hidden;
    padding: 0;
    margin: -1px;
    z-index: 9999; /* au cas où on affiche */
}

/* Affichage forcé (ton comportement actuel) */
.skipLinks-wrapper.visible {
    /* réinitialise le masquage — wrapper visible et en flux */
    position: static;
    clip: auto;
    clip-path: none;
    height: 6px;
    width: auto;
    overflow: visible;
    margin: 0;
    display: block;
}

.skipLinks-wrapper:focus-within {
    position: absolute;
    top: 0;
    left: 0;
    clip: auto;
    clip-path: none;
    height: auto;
    width: auto;
    overflow: visible;
    margin: 0;
    z-index: 9999;
}

.skipLinks-wrapper.visible + header .container {
    padding-top: 24px;
}  

.skipLinks {
    list-style: none;
    margin: 0;
    padding: 6px 0 0 5px;
    display: flex;
    align-items: center;
}

.skipLinks.container{
    padding-top: 6px;
}

.skipLinks li{
    font-size: 12px;
    background-color: white;
    padding: 5px 10px;
    padding-right: 0;
}

.skipLinks li::after{
    content: "|";
    margin-inline-start: 10px;
}

.skipLinks li:last-child::after{
    content: "";
}

.skipLinks li:first-child{
    border-radius: 0 0 0 15px;
}

.skipLinks li:last-child {
    border-radius: 0 0 15px 0; 
}

.skipLinks a:hover{
    color: var(--hover-color);
    transition: .25s;
}

/* focus visible fort pour l'accessibilité */
.skipLinks a:focus {
    outline: 3px solid Highlight;
    outline-offset: 2px;
}

/* GENERAL */

body {
    font-family: "Maven Pro";
    font-weight: 400;
    font-size: 17px;
    margin: 0 !important;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
}

h1, h2, h3 {
    font-family: "Maven Pro";
    font-weight: 700;
}

h2.glossaire-titre {
    font-size: 20px;
}

a {
    color: #000;
    font-weight: 700;
}
.menu-current a {
    text-decoration: none;
    font-weight: 400;
}

ul.menu {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 10px 30px;
    flex-wrap: wrap;
}


/* FORM */

select, button { 
    padding: 5px 10px; 
    font-size: 1em; 
    cursor: pointer;
    font-family: inherit;
}

select {
    border: none;
    border-bottom: 2px solid #000;
    margin-right: 15px;
}

form.select button[type="submit"] {
    color: #fff;
    background-color: #000;
    padding: 10px 20px;
    border: 2px solid #000;
    font-weight: 700;
    font-size: 16px;
    margin-top: 15px;
}
form.select button[type="submit"]:hover {
    color: #000;
    background: none;
}

/* CARDS */

.fiche, .infos {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.fiche {
    margin: 30px auto;
}

.left  {
    min-width: 260px;
    text-align: center;
}
.left h2 {
    font-size: 35px;
    margin: 10px 0;
}
.card img {
    border-radius: 20%;
    margin-top: 20px;
    margin-bottom: 10px;
}

.card.tuile img {
    max-width: 120px;
}

.card {
    border-radius: 15px;
    border: none;
    padding: 15px 30px;
    background-color: color-mix(in srgb, var(--handi), #0000 60%);
}
.scenario.card {
    background-color: #efefef;
    margin-top: 30px;
}
.card.right h2 { 
    margin: 0;
    font-size: 35px;
}
.card.right .age {
    font-size: 25px;
}

.type-handi:after {
    content: "";
    height: 90px;
    width: 90px;
    display: block;
    margin: 20px auto;
    background-size: 90px 90px;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: var(--handi);
    border-radius: 100%;
    padding: 20px;

}
.tuile .type-handi:after {
    height: 50px;
    width: 50px;
    background-size: 50px 50px;
}


button.card.tuile {
    width: 100%;
}
button.card.tuile:hover {
    background-color: var(--handi);
}
button.card.tuile:hover .type-handi:after {
    background-color: #ffffff65;
}

.tuile h2 {
    margin: 5px 0;
}

.right p strong, .right h4 {
   font-size: 20px;
   margin-bottom: 5px;
}

.outils {
    min-width: 300px;
}
.outils ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.outils ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.outils ul li span {
    background-color: #fff;
    border-radius: 5px;
    padding: 10px 15px;
    width: 100%;
}
.outils ul li:after {
    content:"";
    height: 30px;
    min-width: 30px;
    display: block;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: var(--handi);
    border-radius: 5px;
    padding: 5px;
    background-size: 30px 30px;
}

.personas-grid, .scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* GLOSSAIRE */

.glossaire-references {
    font-size: 0.8em;
    font-style: italic;
    font-weight:400;
    display: inline-flex;
    gap: 10px;
}

.glossaire-references:hover {
    text-decoration:none;
}

a.glossaire-references:after {
    content:"";
    background-image : url("../svg/external-link.svg");
    display: block;
    height: 14px;
    width: 14px;
    background-size: 14px 14px;
    background-repeat: no-repeat;
    background-position: center center;
}

.glossaire-core {
    background-color:#efefef;
    padding: 15px 30px;            
    border-radius: 15px;
    margin-bottom: 30px;
}

a.glossaire-link
{
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 4px;
    padding-bottom: 4px;
    background-color: var(--handi);
    font-weight: initial;
}

.outils a.glossaire-link
{
    background-color: unset;
}

a.glossaire-link:hover{
    text-decoration: none;
    transition: .25s;
}


/* PICTOS */

.direct-link:before{
    --icon-size: 1.5rem;
    background-color: currentColor;
    display: inline-block;
    flex: 0 0 auto;
    height: var(--icon-size);
    vertical-align: calc((.75em - var(--icon-size)) * .5);
    width: var(--icon-size);
    content:"";
    mask-image: url("../svg/links.svg");
}

.fiche-handi--cecite .type-handi:after, .fiche-handi--malvoyance .type-handi:after, .fiche-handi--visuel .type-handi:after {
    background-image: url("../svg/malvoyant.svg");
}

.fiche-handi--tdah .type-handi:after, .fiche-handi--troubleDeLaMemoire .type-handi:after {
    background-image: url("../svg/head-svgrepo-com.svg");
}

.fiche-handi--malentendance .type-handi:after, .fiche-handi--surdite .type-handi:after {
    background-image: url("../svg/malentendant.svg");
} 

.fiche-handi--paraplegie .type-handi:after, .fiche-handi--handicapTemporaire .type-handi:after, .fiche-handi--arthrose .type-handi:after {
    background-image: url("../svg/moteur.svg");
} 
 
.fiche-handi--troubleDyslexique .type-handi:after, .fiche-handi--dyspraxie .type-handi:after, .fiche-handi--troubleDysexecutif .type-handi:after {
    background-image: url("../svg/troubles-dys.svg");
}

.fiche-handi--illectronisme .type-handi:after {
    background-image: url("../svg/illectronisme.svg");
}

.fiche-handi--nonFrancophone .type-handi:after {
    background-image: url("../svg/langage.svg");
}

.fiche-handi--lieALage .type-handi:after {
    background-image: url("../svg/vieux.svg");
}

.fiche-handi--epileptique .type-handi:after {
    background-image: url("../svg/epilepsie.svg");
}

.fiche-handi--xerodermaPigmentosum .type-handi:after {
    background-image: url("../svg/xeroderma.svg");
}

.fiche-handi--tetraparesieEtTroubleDeLaVision .type-handi:after {
    background-image: url("../svg/combine.svg");
}

.outils ul li.toolFamily_navigationClavier:after {
    background-image: url("../svg/nav-clavier.svg");
}
.outils ul li.toolFamily_lecteurEcran:after {
    background-image: url("../svg/lecteur-ecran.svg");
}
.outils ul li.toolFamily_braille:after {
    background-image: url("../svg/braille.svg");
}
.outils ul li.toolFamily_transcriptionSousTitrage:after {
    background-image: url("../svg/soustitrage.svg");
}
.outils ul li.toolFamily_interactionVocale:after {
    background-image: url("../svg/micro.svg");
}
.outils ul li.toolFamily_aideAuditive:after {
    background-image: url("../svg/casque-audio.svg");
}
.outils ul li.toolFamily_peripheriqueAdapte:after {
    background-image: url("../svg/souris.svg");
}
.outils ul li.toolFamily_outilVisuel:after {
    background-image: url("../svg/zoom.svg");
}
.outils ul li.toolFamily_aideLecture:after {
    background-image: url("../svg/lecteur-ecran.svg");
}
.outils ul li.toolFamily_filtreVisuel:after {
    background-image: url("../svg/luminosite.svg");
}
.outils ul li.toolFamily_transcriptionLangueDesSignes:after {
    background-image: url("../svg/lsf.svg");
}
.outils ul li.toolFamily_policeAdapte:after {
    background-image: url("../svg/texte.svg");
}
.outils ul li.toolFamily_modeSombre:after {
    background-image: url("../svg/darkmode.svg");
}


/* COULEURS */

.fiche--sensoriel {
    --handi: #b9ddec;
}
.fiche--cognitif {
    --handi: #fcbb5f;
}
.fiche--moteur {
    --handi: #bec9ff;
}
.fiche--autre {
    --handi: #ffa7a7;
}
.fiche--combiné {
    --handi: #a0d0b0;
}
.scenario-grid {
    --handi: #efefef;
}

:root {
    --hover-color: #215e78;
}
  

/* MEDIA QUERIES */

@media screen and (min-width:1025px) {
    .fiche {
        flex-direction: row;
    }
    ul.menu {
        min-height: 90px;
    }
}

@media screen and (min-width:1180px) {
    .infos {
        flex-direction: row;
    }
}