.material-symbols-outlined {
font-family: 'Material Symbols Outlined';
font-variation-settings: 'FILL' 0, 'wght' 100, 'opsz' 54;
font-size: 54px;
}

:root {
--dark-gray: #1d2025;
--white: #F5F5F5;
--light-gray: #d0d0d0;
--matte: #292d32;
--primary: #61F7E8;
}


/*     ***     */
/*   *******   */
/* *********** */
/* Hero Section Start */
#landing-section .hero {
width: 100%;
display: flex;
justify-content: center;
align-items: start;
position: relative;
margin-left: auto;
margin-right: auto;
padding-bottom: 70px;
}

#landing-section .hero-text {
width: 40%;
}

#landing-section .hero-text p {
color: var(--light-gray);
font-family: "Archivo", Sans-Serif;
font-weight: 400;
font-size: 16px;
letter-spacing: 1px;
will-change: transform, opacity;
}

#landing-section .hero-text p {
opacity: 0;
transform: translateX(-250px);
}

#landing-section.loaded .hero-text p {
transition: opacity .75s, transform .75s;
opacity: 1;
transform: translateX(0);
}

#landing-section .hero-img {
width: 55%;
margin-top: 30px;
margin-left: 70px;
will-change: transform, opacity;
}

#landing-section .hero-img {
opacity: 0;
transform: translate3d(-300px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(-20deg) skew(0deg);
}

#landing-section.loaded .hero-img {
transition: opacity .75s, transform .75s;
transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(-20deg) skew(0deg);
opacity: 1;
animation: translateImg 10s linear infinite;
animation-delay: .75s;
}

#landing-section h1 {
display: flex;
flex-direction: column;
gap: 32px;
max-width: 440px;
}

#landing-section h1 span {
white-space: nowrap;
color: var(--white);
text-transform: uppercase;
font-weight: 500;
font-size: 120px;
font-family: "Archivo", Sans-Serif;
letter-spacing: -1px;
line-height: 122px;
}

#landing-section h1 span:not(.colored) {
opacity: 0;
transform: translateX(-250px);
will-change: transform, opacity;
}

#landing-section.loaded h1 span:not(.colored) {
transition: opacity .75s, transform .75s;
opacity: 1;
transform: translateX(0);
}

#landing-section .hero-text h1 .second {
position: relative;
width: fit-content;
height: fit-content;
margin-bottom: -46px;
will-change: transform;
}

#landing-section h1 .second {
transform: rotateX(-90deg);
}

#landing-section.loaded h1 .second {
transition: transform .75s;
transform: rotate(0deg);
/* opacity: 1; */
}

#landing-section .hero-text h1 .second span {
font-family: Inter, sans-Serif;
font-weight: 100;
font-style: italic;
letter-spacing: 5px;
text-transform: uppercase;
font-size: 140px;
line-height: 112px;
}

#landing-section .hero-text h1 .second .copy {
position: absolute;
font-weight: 100;
top: 0;
bottom: 0%;
left: 10px;
}

#landing-section .hero-link {
all: unset;
position: absolute;
top: 30%;
bottom: calc(30% + 40px);
left: 50%;
right: 0%;
width: 120px;
height: 120px;
flex: 0 0 120px;
display: flex;
justify-content: center;
align-items: center;
color: var(--white);
cursor: pointer;
z-index: 5;
will-change: transform;
}

#landing-section .hero-link:focus {
outline: 2px solid var(--primary);
outline-offset: 3px;
border-radius: 50%;
}

#landing-section .hero-link { /* Initial state before .loaded */
transform: rotateX(-90deg);
}

#landing-section.loaded .hero-link {
transition: transform .75s; /* transition explicite */
transform: rotateX(0deg);
}

#landing-section .hero-link:hover {
color: var(--light-gray);
}

#landing-section .hero-link .text {
width: 100%;
animation: rotate 32s linear infinite;
will-change: transform;
}

#landing-section .hero-link .btn {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
animation-fill-mode: forwards;
}

#landing-section .hero-link .btn.animated {
animation: hoverEffect 1s forwards;
will-change: transform, opacity;
}

@keyframes rotate {
0% { transform: rotate(0deg); }
90.625%, 100% { transform: rotate(360deg); }
}

@keyframes hoverEffect {
0%, 100% { transform: translate(-50%, -50%); opacity: 1; }
33% { transform: translate(-50%, calc(-50% + 20px)); opacity: 0; }
66% { transform: translate(-50%, calc(-50% - 20px)); opacity: 0; }
}

@keyframes translateImg {
0%, 50% { transform: translate3d(5px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(-20deg) skew(0deg); }
75% { transform: translate3d(-5px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(-20deg) skew(0deg); }
100% { transform: translate3d(5px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(-20deg) skew(0deg); }
}

/* Media Queries (inchangées) */
@media screen and (max-width: 1024px) {
#landing-section .hero { flex-direction: column; padding: 0 20px 70px; gap: 100px; }
#landing-section .hero-text { width: 100%; text-align: center; margin-top: -30px; }
#landing-section h1 { align-items: center; max-width: unset; gap: 20px; }
#landing-section .hero-text h1 span { font-size: 100px; line-height: 100px; }
#landing-section .hero-text h1 .second span { font-size: 120px; }
#landing-section .hero-text h1 .second { margin-bottom: -30px; margin-left: -50px; }
#landing-section .hero-text p { max-width: 70%; margin: 0 auto; font-size: 16px; line-height: 1.3; }
#landing-section .hero-img { width: 80%; max-width: 760px; margin: auto; position: relative; }
#landing-section .hero-link { left: 20%; right: unset; top: 70%; bottom: 30%; width: 130px; height: 150px; }
}
@media screen and (max-width: 800px) {
#landing-section .hero { gap: 60px; margin-top: -40px; }
#landing-section h1 { gap: 0px; }
#landing-section .hero-text h1 span { font-size: 70px; line-height: 80px; }
#landing-section .hero-text h1 .second span { font-size: 90px; }
#landing-section .hero-text h1 .second { margin-bottom: -10px; margin-left: -40px; }
#landing-section .hero-text p { font-size: 14px; line-height: 1.3; margin-top: -10px; }
#landing-section .hero-img { width: 400%; max-width: 500px; margin-right: auto; position: relative; }
#landing-section .hero-link { left: 5%; width: 120px; height: 110px; margin-left: 75px; }
}
@media screen and (max-width: 430px) {
#landing-section .hero { gap: 60px; margin-top: -10px; }
#landing-section h1 { gap: 0px; }
#landing-section .hero-text h1 span { font-size: 63px; line-height: 30px; }
#landing-section .hero-text h1 .second span { font-size: 73px; }
#landing-section .hero-text h1 .second { margin-bottom: -5px; margin-left: -40px; }
#landing-section .hero-text p { font-size: 15px; max-width: 100%; line-height: 1.3; margin-left: 20px; margin-right: 20px; margin-top: 40px; margin-bottom: 10px; }
#landing-section .hero-img { width: 100%; max-width: 760px; margin: auto; position: relative; }
#landing-section .hero-link { left: 5%; width: 100px; height: 40px; margin-left: 15px; }
}
/* Hero Section End */

/*     ***     */
/*   *******   */
/* *********** */
/* Services Section Start */
.card-wrapper {
padding-top: 85px;
display: flex;
flex-wrap: wrap;
gap: 30px;
}

.flip-card {
/* all: unset; Potentiellement coûteux en performance. À utiliser avec prudence.
                Si possible, réinitialiser des propriétés spécifiques est préférable. */
all: unset; /* Conservé selon le code original. */
flex: 1 1 30px;
background-color: var(--matte);
height: 480px;
/* position: relative !important; L'!important doit être évité si possible.
                                Peut être nécessaire pour surcharger des styles de thème. */
position: relative !important; /* Conservé. */
border-radius: 10px;
overflow: hidden;
}


.flip-card > div { /* S'applique à .face et .back */
box-sizing: border-box;
width: 100%;
height: 100%;
padding: 65px 35px 50px;
display: flex;
flex-direction: column;
}

.flip-card > div .material-icons {
font-family: 'Material Symbols Outlined'; /* Assurez-vous que cette police est chargée efficacement */
color: var(--primary);
font-variation-settings: 'FILL' 0, 'wght' 100, 'GRAD' 0, 'opsz' 48;
font-size: 54px;
}

.flip-card > div .title {
margin-top: auto;
color: var(--white);
letter-spacing: -1px;
text-transform: uppercase;
margin-bottom: 10px;
font-family: Archivo, sans-serif; /* Assurez-vous que Archivo est chargée efficacement */
font-size: 32px;
font-weight: 500;
line-height: 42px;
}

.flip-card > div .content {
color: var(--light-gray);
letter-spacing: 1px;
margin-bottom: 0;
font-family: Archivo, sans-serif;
font-size: 16px;
font-weight: 300;
line-height: 26px;
}

.flip-card .back {
position: absolute;
top: 0%; left: 0%; bottom: 0%; right: 0%; /* couvre entièrement .face */
background-color: var(--primary);
transform: rotateY(90deg);
transition: transform 0.25s ease-in-out; /* transition sur transform uniquement */
border-radius: 10px; /* Garde les coins arrondis lors du flip */
backface-visibility: hidden; /* Cache le dos de l'élément pendant la rotation pour éviter des artéfacts */
will-change: transform; /* Indication au navigateur pour optimiser l'animation de transformation */
}

/* Déclenchement du flip au survol OU au focus (accessibilité clavier) */
.flip-card:hover .back,
.flip-card:focus-within .back { /* :focus-within est important pour garder la carte retournée si un lien à l'intérieur a le focus */
transform: rotateY(0deg);
}

.flip-card .back .title,
.flip-card .back .material-icons,
.flip-card .back .content {
color: var(--dark-gray);
}

.flip-card .back .content {
display: flex;
flex-direction: column;
align-items: start;
}

.flip-card .back .content a {
color: inherit;
text-decoration: 1px underline transparent;
transition: text-decoration-color 0.3s; /* transition plus spécifique */
/* will-change: text-decoration-color; /* Pourrait être excessif pour une si petite transition, mais possible */
padding: 5px 0; /* Augmente légèrement la zone cliquable verticale */
}

.flip-card .back .content a:hover,
.flip-card .back .content a:focus { /* Style de focus pour les liens */
color: initial; /* Attention: 'initial' peut varier. Précisez var(--dark-gray) si c'est l'intention. */
text-decoration-color: var(--dark-gray);
outline: none;
}

/* --- Styles pour mobile (max-width: 1024px) --- */
@media screen and (max-width: 1024px) {
.card-wrapper {
    padding: 10px 0px 0;
    /* flex-wrap: wrap; Déjà défini plus haut */
    gap: 30px;
}

.flip-card {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: unset; /* Permet à la hauteur de s'adapter au contenu */
    /* La désactivation du flip sur mobile est gérée ci-dessous */
}

/* Style de focus pour la carte elle-même sur mobile (si encore pertinent) */
.flip-card:focus,
.flip-card:focus-within {
    outline-color: var(--primary, HighlightText); /* Adaptez la couleur si besoin sur mobile */
}


.flip-card .face {
    height: unset;
    position: relative; /* Reste relatif pour le positionnement de l'icône */
    padding: 48px 35px 0;
}

.flip-card .back {
    /* Désactivation de l'effet flip sur mobile : le dos devient statique et visible */
    padding: 0px 35px 48px;
    position: static; /* Enlève le positionnement absolu */
    background-color: transparent; /* Le fond n'est plus celui du flip */
    transform: rotateY(0deg); /* Annule la rotation */
    will-change: auto; /* Annule l'optimisation will-change qui n'est plus nécessaire */
    backface-visibility: visible;
    border-radius: 0; /* Peut-être inutile si le parent .flip-card a overflow:hidden et son propre radius */
}

/* Cache les icônes et titres du dos sur mobile car ils sont redondants avec ceux du recto */
.flip-card .back .material-icons,
.flip-card .back .title {
    display: none;
}

.flip-card .face .material-icons {
    position: absolute;
    top: 58px;
    right: 35px;
}

.flip-card .face .title {
    margin-top: 0;
    padding-right: 60px; /* Espace pour l'icône à droite */
}

.flip-card .face .content {
    padding-right: 60px; /* Espace pour l'icône à droite */
    max-width: calc(515px + 60px); /* Limite la largeur du contenu */
}

.flip-card .back .content {
    display: flex;
    gap: 10px;
    flex-direction: row; /* Liens en ligne sur mobile */
    flex-wrap: wrap;
    align-items: center;
    justify-content: start;
}

.flip-card .back .content a {
    line-height: 1;
    background-color: var(--primary);
    padding: 10px 15px; /* Augmentation du padding pour de meilleures cibles tactiles */
    border-radius: 25px;
    text-decoration: 1px underline transparent; /* Assure que le soulignement est initialement caché */
    color: var(--dark-gray); /* Assure la lisibilité sur fond --primary */
}

.flip-card .back .content a:hover,
.flip-card .back .content a:focus {
    text-decoration-color: var(--dark-gray);
    background-color: color-mix(in srgb, var(--primary) 90%, var(--dark-gray)); /* Assombrit légèrement au survol/focus */
    outline-offset: 1px;
}
}

/* Bloc de media query pour max-width: 800px était vide, donc supprimé. */

@media screen and (max-width: 430px) {
.card-wrapper {
    padding: 0px 0px 0;
    justify-content: center;
    /* flex-wrap: wrap; Déjà défini */
    gap: 15px;
}

.flip-card {
    flex: 1 1 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flip-card .face {
    min-height: 0px; /* Peut être retiré si sans effet voulu */
    padding: 48px 35px 0;
    flex: 1 1; /* Permet au recto de prendre l'espace disponible */
}

.flip-card .back {
    flex: 0 0; /* Le dos ne grandit/rétrécit pas en flex */
    padding: 0px 35px 48px;
    /* Les styles pour rendre le dos statique sont hérités de la media query 1024px */
}

/* .flip-card .back .material-icons, .flip-card .back .title { display: none; } Hérité */

.flip-card .face .material-icons {
    position: static; /* L'icône n'est plus absolue, se place dans le flux */
    margin-bottom: 60px; /* Espace sous l'icône */
}

.flip-card .face .title {
    font-size: 28px;
    line-height: 1.3125;
    margin-top: auto; /* Pousse le titre vers le bas si l'espace le permet */
    padding-right: 0; /* Plus besoin de padding si l'icône n'est plus à droite */
}

.flip-card .face .content {
    padding-right: 0;
}

/* .flip-card .back .content { ... } Styles pour la disposition hérités */

.flip-card .back .content a {
    font-size: 14px;
    padding: 8px 12px; /* Ajustement du padding pour cibles tactiles */
}
}

@media screen and (max-width: 365px) {
.flip-card .face,
.flip-card .back {
    padding-left: 15px;
    padding-right: 15px;
}
.flip-card .back {
    padding-bottom: 30px;
}
}

@media screen and (max-width: 325px) {
.flip-card .back .content a {
    font-size: 13.65px; /* Attention aux tailles de police trop précises, peut être difficile à maintenir */
}
}
/* Services Section End */




/*     ***     */
/*   *******   */
/* *********** */
/* Chart Section Start */
.skills-section .main {
display: flex;
height: 360px;
margin-top: 110px;
gap: 64px;
/* background-attachment: scroll !important; 'scroll' est la valeur par défaut.
    !important est à éviter. Si pas de background-image, cette propriété n'a pas d'effet. */
justify-content: space-between;
}

.skills-section .main .img-wrapper,
.skills-section .main .text-box { /* Style commun pour les éléments scroll-to-load */
/* Si scroll-to-load implique une animation d'apparition (ex: opacité, transformation)
    Définir l'état initial ici, par exemple :
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
*/
will-change: opacity, transform; /* Adaptez selon l'animation réelle de scroll-to-load */
}
/* Classe à ajouter par JS lorsque l'élément est visible */
.skills-section .main .img-wrapper.loaded,
.skills-section .main .text-box.loaded {
/* opacity: 1;
    transform: translateY(0); */
}


.skills-section .main .img-wrapper {
height: 90%;
min-width: fit-content;
width: 50%;
/* opacity: 1; Initialement géré par scroll-to-load si animé */
background-color: var(--dark-gray);
}

.skills-section .main .img-wrapper .images {
/* background-attachment: scroll !important; Idem, probablement inutile */
background-color: var(--dark-gray); /* Redondant si .img-wrapper a déjà ce fond ? */
display: flex;
gap: 32px;
height: 110%; /* Dépasse légèrement son conteneur, effet voulu ? */
width: fit-content;
transform: rotate(-20deg);
/* Si la rotation elle-même est animée (ex: au scroll), envisagez will-change: transform; ici.
    Sinon, si statique, pas besoin. */
}

.skills-section .main .img-wrapper img {
object-fit: cover;
object-position: center;
width: 115px; /* Ces dimensions sont pour desktop */
height: 100%; /* Sera relatif à la hauteur de .images (110% de 90% de 360px) */
/* transform-style: preserve-3d; Uniquement utile si l'image elle-même a des transformations 3D enfants.
                                    Peut être retiré si ce n'est pas le cas. */
}

.skills-section .main .text-box {
/* Utilisation de row-gap (propriété pour grid/flex) */
row-gap: 32px; /* Équivalent à gap vertical pour flex-direction column */
flex-direction: column;
justify-content: center;
align-items: flex-start;
display: flex;
width: calc(50% - 32px);
flex-basis: calc(50% - 32px);
position: relative; /* Nécessaire pour le z-index des enfants .percentage */
overflow: hidden; /* Peut cacher des ombres ou des éléments en dehors, vérifier si voulu */
}

.skills-section .main .text-box .percentage {
/* z-index: -1; Peut causer des problèmes d'interaction si mal géré.
                S'assurer que cela ne rend pas le texte difficile à sélectionner. */
z-index: 1; /* Ou simplement ne pas mettre de z-index si non crucial pour la superposition.
                Si c'est pour que .progress-bar soit "derrière" le texte,
                le positionnement relatif/absolu est une autre approche.
                Mais ici, h4/h5 sont frères de progress-bar, pas enfants.
                Le z-index sur .percentage affecte son empilement par rapport à d'autres frères de .text-box,
                ce qui n'est pas le cas ici. Il est probable que ce z-index n'ait pas l'effet escompté
                ou soit inutile. Retiré pour l'instant, à rétablir si un effet visuel spécifique le nécessite.
            */
row-gap: 16px;
flex-direction: column;
align-items: flex-end; /* Pour aligner les pourcentages à droite */
width: 100%;
display: flex;
position: relative; /* Pour tout positionnement absolu à l'intérieur si besoin */
}

.skills-section .main .text-box .percentage h4 {
color: var(--white);
letter-spacing: -1px;
text-transform: capitalize;
margin-top: 0;
margin-bottom: 0;
font-family: Archivo, sans-serif;
font-size: 32px;
font-weight: 500;
line-height: 42px;
}

.skills-section .main .text-box .percentage .progress-bar {
background-color: rgba(215, 215, 216, .4); /* Fond de la barre de progression */
min-width: 100%; /* Prend toute la largeur disponible */
max-width: 600px; /* Limite si le conteneur est très large */
overflow: hidden; /* Assure que .second-bar ne dépasse pas visuellement */
border-radius: 2px; /* Coins légèrement arrondis pour la barre */
height: 2px; /* Hauteur plus explicite pour la barre de progression */
}

.skills-section .main .text-box .percentage .second-bar {
background-color: var(--primary);
width: 0; /* État initial pour l'animation */
height: 100%; /* Prend toute la hauteur de .progress-bar (maintenant 2px) */
transition: width 0.8s 0.2s ease-out; /* Animation de la largeur, avec un léger délai */
will-change: width; /* Indication pour l'animation de largeur */
border-radius: 2px; /* Assure que la barre remplie a aussi des coins arrondis */
}

/* Appliquer la largeur lorsque la section est chargée/visible */
.skills-section .main .text-box.loaded .percentage .second-bar {
width: var(--w); /* Utilise la variable CSS définie en ligne pour la largeur finale */
}


.skills-section .main .text-box .percentage h5 {
letter-spacing: 8px;
text-transform: uppercase;
margin-top: 0; /* Déjà 0, mais bon à garder pour clarté */
margin-bottom: 0;
font-family: Archivo, sans-serif;
font-size: 12px;
font-weight: 300;
line-height: 22px;
color: var(--light-gray); /* Assurer un bon contraste, var(--light-gray) sur var(--dark-gray) ou --matte */
}

/* Styles de focus pour les éléments focusables (s'il y en avait) */
/* Par exemple, si les images devenaient des liens :
.skills-section .main .img-wrapper img:focus-visible {
outline: 2px solid var(--primary);
outline-offset: 2px;
}
*/

/* --- Styles pour mobile (max-width: 1024px) --- */
@media screen and (max-width: 1024px) {
.skills-section .main {
    flex-direction: column;
    align-items: center;
    gap: 60px;
    height: fit-content; /* Hauteur s'adapte au contenu */
}

.skills-section .main .img-wrapper,
.skills-section .main .text-box {
    width: 100%;
    max-width: 560px; /* Limite la largeur sur les tablettes/grands mobiles */
    flex-basis: auto; /* Annule le flex-basis précédent */
}

.skills-section .main .img-wrapper {
    height: auto; /* Hauteur s'adapte */
    display: flex;
    justify-content: center;
}

.skills-section .main .img-wrapper .images {
    gap: 32px;
    transform: rotate(-10deg); /* Rotation légèrement réduite pour mobile */
    /* height: 110%; Peut être ajusté si besoin, ou height: auto; */
    height: auto; /* La hauteur des images définira cela */
    display: flex;
    justify-content: center;
    align-items: center; /* Mieux centrer les images si leur hauteur varie */
}

.skills-section .main .img-wrapper img {
    width: 160px; /* Dimensions spécifiques pour cet écran */
    height: 340px; /* Ajustement pour un ratio plus courant, ou selon le design */
    object-fit: cover;
}
}

@media screen and (max-width: 800px) {
.skills-section .main {
    gap: 40px; /* Espacement réduit */
    margin-top: 40px;
}

.skills-section .main .img-wrapper .images {
    gap: 22px;
    transform: rotate(-5deg); /* Rotation encore réduite */
}

.skills-section .main .img-wrapper img {
    width: 100px; /* Dimensions ajustées */
    height: 230px;
}
.skills-section .main .text-box .percentage h4{
    font-size: 28px; /* Taille de police légèrement réduite */
}
.skills-section .main .text-box .percentage h5{
    font-size: 11px;
    letter-spacing: 6px;
}
}

@media screen and (max-width: 430px) {
.skills-section .main {
    gap: 30px; /* Espacement ajusté */
    margin-top: 30px;
}

.skills-section .main .img-wrapper .images {
    gap: 16px;
    align-items: center;
}

.skills-section .main .img-wrapper img {
    width: 30%; /* Prend plus de largeur relative */
    max-width: 200px; /* Mais limité */
    height: 330px; /* Hauteur s'adapte à la nouvelle largeur et ratio intrinsèque */
    margin-top: 0; /* Annule le margin-top négatif précédent */
}
    .skills-section .main .text-box{
    row-gap: 20px;
    }
.skills-section .main .text-box .percentage h4{
    font-size: 24px;
}
.skills-section .main .text-box .percentage h5 {
    letter-spacing: 4px; /* Espacement des lettres réduit */
    font-size: 10px;
}
}
/* Chart Section End */
