:root {
    --couleur-principale: #453F3C;
    /* Taupe foncé – titres, texte principal */
    --couleur-secondaire: #23B5D3;
    /* Cyan pacifique – liens, accents secondaires */
    --couleur-fond: #EDD4B2;
    /* Blé (Wheat) – fond principal */
    --couleur-texte: #453F3C;
    /* Taupe – pour assurer cohérence sur fond clair */
    --couleur-accent: #D45113;
    /* Orange Syracuse – boutons, hover, call-to-action */
    --couleur-alerte: #B3380F;
    /* Variante plus foncée de l’orange – erreurs, suppressions */
    --color-white: #FFFFFF;
    --couleur-accordeon-douce: #FDF6F1;
    --couleur-accordeon-hover: #F6ECE4;
    --couleur-accordeon-panel: #FFFDFB;
    --police-titres: 'Space Grotesk', sans-serif;
    --police-texte: 'Inter', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--police-texte);
    background: radial-gradient(circle at top, rgba(237, 212, 178, 0.1) 0%, rgba(255, 208, 123, 0.1) 100%);
    color: var(--couleur-texte);
    line-height: 1.6;
}

/* Entête */
header {
    padding: 2rem;
    background: linear-gradient(90deg, var(--couleur-principale), var(--couleur-secondaire));
    color: white;
    text-align: center;
}


/* .profil-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    border: none;
    box-shadow: 0 0 0 3px rgba(212, 81, 19, 0.6);
    background-color: var(--color-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profil-photo:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
} */
.logo-angular path {
    fill: #DD0031;
  }
.nowrap {
    white-space: nowrap;
  }
.entete-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--couleur-principale), var(--color-background));
    background-size: 400% 400%;
    animation: moveGradient 20s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes moveGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.texte-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--couleur-principale);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
    padding-top: 3rem;
}

@media(min-width: 768px) {
    .texte-hero {
        gap: 2.5rem;
    }
}

.texte-hero>*:nth-child(1) {
    animation-delay: 0.1s;
}

.texte-hero>*:nth-child(2) {
    animation-delay: 0.3s;
}

.texte-hero>*:nth-child(3) {
    animation-delay: 0.5s;
}

.texte-hero>*:nth-child(4) {
    animation-delay: 0.7s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.soustitre.accentuee {
    display: flex;
    flex-direction: column;
    align-items: center;   
    text-transform: uppercase; 
    font-weight: 600;
    font-size: 1rem;
    color: var(--couleur-principale);
    letter-spacing: 0.15rem;
    line-height: 1.6;
    opacity: 0.9;
    text-align: center;
    margin-top: 2rem;
    
    gap: 0.3rem;
  }
  
  .soustitre.accentuee .ligne1::after {
    content: "";
  }
  .point{
    opacity: 0.5;
}
.ligne-accent {
    position: relative;
    background: var(--couleur-accent);
    width: 75px;
    height: 2px;
    margin: 1.5rem auto 1.25rem auto;
    border-radius: 2px;
    overflow: hidden;
}

.ligne-accent::before {
    content: "";
    position: absolute;
    top: 0;
    left: -30%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent);
    animation: flareSlide 1s ease-out 0.5s forwards;
}

@keyframes flareSlide {
    0% {
        left: -60%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.surtitre {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
}

.titre-principal {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: var(--couleur-principale);
    margin-bottom: 1rem;
}
.titre-principal .prenom {
    white-space: nowrap;
  }
  
  .titre-principal .nom {
    white-space: nowrap;
  }

.soustitre {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 400;
    color: var(--couleur-principale);
}

.soustitre-fonction {
    font-size: 1.4rem;
    font-weight: 500;
    margin: 1rem 0 0.5rem;
    color: var(--couleur-principale);
    margin-bottom: 2rem;
}

.accentuee {
    font-weight: 500;
    color: var(--couleur-principale);
}

.accent {
    color: var(--couleur-accent);
    font-weight: 600;
}

@media (min-width: 768px) {
    .texte-hero .surtitre {
        font-size: 0.9rem;
        letter-spacing: 0.15rem;
        margin-bottom: 1rem;
    }

    .texte-hero .titre-principal {
        font-size: clamp(2.5rem, 6vw, 4rem);
        line-height: 1.2;
        flex-direction: row;
    gap: 0.5rem;
    }

    .texte-hero .soustitre-fonction {}

    .soustitre.accentuee {
        flex-direction: row;
        gap: 0.4rem;
        font-size: 1.1rem;
        letter-spacing: 0.12rem;
        white-space: nowrap;
        margin-top: 2rem;
       
        justify-content: center;
    }
    .soustitre.accentuee .ligne1::after {
        content: " •";
        opacity: 0.5; 
    }
   
    .ligne-accent {
        width: 100px;
        height: 2px;
        margin: 2rem auto 1rem;
        opacity: 0.9;
    }
}


/* Navigation */
nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    background-color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

nav a {
    text-decoration: none;
    color: var(--couleur-principale);
    font-weight: bold;
}

@media screen and (max-width: 600px) {
    nav {
        flex-direction: column;
        align-items: center;
    }
}

/* Sections projets */
section {
    padding: 0.75rem 1rem;
    max-width: 1000px;
    margin: auto;
}

.section-titre {
    font-family: var(--police-titres);
    font-size: 2.2rem;
    color: var(--couleur-principale);
    border-left: 5px solid var(--couleur-accent);
    padding-left: 0.75rem;
    margin-bottom: 1.5rem;
}

.carte-projet {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.carte-projet.visible {
    opacity: 1;
    transform: translateY(0);
}

.liste-fonctionnalites {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.liste-fonctionnalites li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.6rem;
    font-size: 1rem;
    font-weight: 500;
    /* Remplace <strong> sans alourdir */
    line-height: 1.6;
}

.liste-fonctionnalites .emoji {
    display: inline-block;
    width: 1.8rem;
    text-align: center;
    flex-shrink: 0;
    margin-right: 0.4rem;
}

/* Bouton hamburger */
#menuToggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1001;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--couleur-principale);
    /* ✅ S’assure d’être visible sur fond jasmin */
    cursor: pointer;
    transition: color 0.3s ease;
}

#menuToggle:focus-visible,
#closeMenu:focus-visible {
    outline: 2px dashed var(--couleur-accent);
    outline-offset: 4px;
}

section[data-clair] {
    background-color: #ffffff;
    color: var(--couleur-texte);
}

#menuToggle.clair {
    color: var(--couleur-principale)
}

/* Overlay */
#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

/* Menu latéral */
#menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100%;
    z-index: 1002;
    padding: 2rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.4s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
}

#menu ul li {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.6s ease forwards;
}

#menu.active {
    transform: translateX(0);
}

#menu.active ul li:nth-child(1) {
    animation-delay: 0.1s;
}

#menu.active ul li:nth-child(2) {
    animation-delay: 0.2s;
}

#menu.active ul li:nth-child(3) {
    animation-delay: 0.3s;
}

#menu.active ul li:nth-child(4) {
    animation-delay: 0.4s;
}

#menu.active ul li:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fermeture */
#closeMenu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--couleur-principale);
    cursor: pointer;
    transition: transform 0.3s ease;
}

#closeMenu:hover {
    transform: rotate(90deg);
}

#menu ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
}

#menu a {
    text-decoration: none;
    color: var(--couleur-principale);
    font-family: var(--police-titres);
    font-size: 1.4rem;
    /* augmenté */
    line-height: 1.8;
    /* plus d’air */
    font-weight: 600;
    transition: color 0.3s ease;
}

#menu a:hover,
#menu a:focus-visible {
    color: var(--couleur-secondaire);
    text-decoration: underline;
}



#overlay.active {
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 601px) {

    /* Masquer les éléments mobiles */
    #menuToggle,
    #closeMenu,
    #overlay {
        display: none !important;
    }

    /* Style du menu horizontal */
    #menu {
        all: unset;
        display: flex;
        justify-content: center;
        background-color: white;
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        position: sticky;
        top: 0;
        z-index: 10;
    }

    #menu ul {
        display: flex;
        gap: 2rem;

    }

    #menu li {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* Section à propos */
.bloc-apropos {
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 800px;
    margin: auto;
    color: var(--couleur-texte);
}

.bloc-apropos p {
    margin-bottom: 1.5rem;
}

.bloc-apropos strong {
    color: var(--couleur-accent);
}

.bloc-texte-entete {
    text-align: left;
}

.infos-projet {
    text-align: left;
}

.titre-projet {
    font-family: var(--police-titres);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.description-projet {
    margin-bottom: 0.5rem;
}

.techno-projet {
    font-style: italic;
    color: #555;
    margin-bottom: 0.5rem;
}


#apropos {
    background: linear-gradient(135deg, #fdfbff 0%, #f0f4ff 100%);
    padding: 2rem;
    border-left: 8px solid var(--couleur-secondaire);
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

/* Formulaire */
#contact form {
    background: linear-gradient(135deg, #ffffff, #f2f6ff);
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#contact button:hover {
    background-color: var(--couleur-secondaire);
}

.ctnForm {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.formulaire-contact input,
.formulaire-contact textarea {
    width: 100%;
    max-width: 250px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--police-texte);
    background-color: var(--color-white);
    color: var(--couleur-texte);
}

.formulaire-contact textarea {
    resize: vertical;
    min-height: 120px;
}

.formulaire-contact button {
    width: fit-content;
    padding: 0.6rem 1.2rem;
    padding: 0.6rem 1.2rem;
    background-color: var(--couleur-principale);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: var(--police-titres);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.formulaire-contact button:hover {
    background-color: var(--couleur-secondaire);
}

/* Responsive ajustement en grand format */
@media (min-width: 601px) {

    .formulaire-contact input,
    .formulaire-contact textarea {
        max-width: 450px;
    }
}

.formTxtAreaMessage {
    margin-bottom: 0.5rem;
}

.formulaire-contact p {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2rem;
}

.formulaire-contact label {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1rem;
    color: var(--couleur-principale);
}

/* Accordéon */
.accordion {
    border: 1px solid var(--color-light-grey, #ddd);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-white, #fff);
    margin-top: 1rem;
}

.accordion-header {
    width: 100%;
    padding: 1rem;
    background: --couleur-accordeon-douce;
    /* version douce */
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.2s ease-in-out;
}

.accordion-header:hover {
    background: var(--couleur-accordeon-hover);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1rem;
}

.accordion-content.open {
    max-height: 500px;
    /* ajustable */
    padding: 1rem;
    background: var(--couleur-accordeon-panel);
}

.chevron {
    transition: transform 0.3s ease;
}

.chevron.rotated {
    transform: rotate(180deg);
}

.carte-projet {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 601px) {

    .images-projet {
        flex: 1;
        max-width: 45%;
        margin-top: 24px;
    }

    .infos-projet {
        flex: 2;
        padding-left: 1.5rem;
    }
}
.caption-img{
    margin-top: 1rem;
}
.image-projet-pleine {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    max-height: 320px;
    object-fit: contain;
}

@media (min-width: 601px) {
    .carte-projet {
        flex-direction: row;
        align-items: flex-start;
    }

    .image-projet-pleine {
        max-width: 100%;
        max-height: 240px;
    }

    .images-projet {
        max-width: 40%;
        flex-shrink: 0;
    }

    .infos-projet {
        flex: 1;
        padding-left: 1.5rem;
    }
}

/* Footer */
footer {
    background-color: #1F1F1F;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}
