/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cabin', sans-serif;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: #e5e4e4;
    transition: color 0.3s ease;
}

a:hover {
    color: #ed6a6c;
}

/* ==========================================================================
   2. ÉLÉMENTS FIXES (Header, Footer, Transitions)
   ========================================================================== */

.page-transition {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #181717;
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.page-transition.hidden {
    opacity: 0;
}

header {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    z-index: 1001;
}

header .navig {
    flex: 2;
    order: 2; 
    display: flex;
    justify-content: space-evenly;
    gap: 55px;
    font-size: 1.4em;
    font-weight: 500;
    border-radius: 50px;
    border: 3px solid #e5e4e4;
    background-color: #181717; 
}

header .navig a {
    padding: 10px 30px;
    transition: all 0.2s;
}

header .navig a:hover {
    transform: scale(1.1);
    text-decoration: underline;
    color: #ed6a6c;
}

.navig a.active {
    color: #ed6a6c;
    text-decoration: underline;
    background-color: #e5e4e4;
    border-radius: 50px;
}

header .logo {
    flex: 1; 
    display: flex;
    justify-content: flex-end;
    align-items: center;
    order: 3;
}

header .logo img {
    width: 25%;
}

header::after { 
    content: "";
    flex: 1;
    order: 1;
}

#burger-bouton { display: none; }

footer .reseaux {
    position: fixed;
    top: 4vh; left: 20px; 
    height: 92vh;
    display: grid;
    grid-template-rows: repeat(10, 1fr);
    z-index: 1000;
    justify-items: center;
    align-items: center; 
}

footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px; height: 60px;
}

footer img {
    height: 40px;
    filter: invert(100%);
    transition: transform 0.2s, filter 0.3s;
}

footer img:hover {
    transform: scale(1.2);
    filter: invert(100%) brightness(1.2);
}

footer a:nth-child(1) { grid-row: 2; }
footer a:nth-child(2) { grid-row: 5; }
footer a:nth-child(3) { grid-row: 8; }

/* ==========================================================================
   3. STRUCTURE DES SECTIONS (Parallax & Points)
   ========================================================================== */
section {
    min-height: 100vh;   
    color: #e5e4e4;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

#Photographie, #Projets, #contact {
    position: relative;
    background-color: #18171781;
    background-blend-mode: multiply;
    z-index: 1;
    overflow: hidden;
}

#Photographie::before, #Projets::before, #contact::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(#ed6a6c 1px, transparent 1px);
    background-size: 30px 30px;
    background-attachment: fixed;
    pointer-events: none;
    z-index: 2;
}

#Photographie { background-image: url(../images/DSC00088.jpeg); background-color: #ed6a6c76;}
#Projets { background-image: url(../images/album.jpg); background-color: #ed6a6c76; }

section > * {
    position: relative;
    z-index: 3;
}

#contact { 
    background-color: #181717;
    gap: 80px;
}

/* ==========================================================================
   4. SECTION PROFIL (Accueil)
   ========================================================================== */
#profil {
    background-color: #181717; 
    background-image: radial-gradient(#ed6a6c 1px, transparent 1px);
    background-size: 30px 30px;
}

#profil a.profil-link-box {
    border-radius: 50px;
    border: solid 3px #e5e4e4;
    background-color: #181717;
    padding: 40px;
    transition: all 0.5s;
    display: block;
}

#profil h1 {
    text-align: center;
    transition: all 0.5s;
    cursor: pointer;
    text-transform: uppercase;
}

#profil h1:first-of-type { font-size: 6em; color: #e5e4e4; }
#profil h1:nth-of-type(2) { font-size: 7em; color: #ed6a6c; }

#profil h1:hover { transform: scale(1.05); }

.fond-lueur {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(237, 106, 108, 0.25) 0%, rgba(237, 106, 108, 0) 70%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

/* ==========================================================================
   5. COMPOSANTS (Cadres, Titres, Logiciels)
   ========================================================================== */
.cadre {
    width: 80%;
    padding: 30px; 
    border-radius: 50px;
    border: 3px solid #ed6a6c;
    background-color: rgba(24, 23, 23, 0.8);
}

h2 {
    font-size: 2.1em;
    background-color: #ed6a6c;
    color: #e5e4e4;
    padding: 15px 30px;
    border-radius: 50px;
    border: solid 3px #e5e4e4;
    transition: all 0.5s;
    width: fit-content;
    margin: 0 auto 20px auto;
    text-transform: uppercase;
    text-align: center;
}

h2:hover {
    background-color: #e5e4e4;
    border: solid 3px #ed6a6c;
    color: #ed6a6c;
}

.domaine {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    padding: 10px;
}

.domaine h3 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    background-color: #e5e4e4;
    border: solid 3px #ed6a6c;
    color: #ed6a6c;
    border-radius: 50px;
    font-size: 1.1em;
}

.logiciel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; 
    padding: 25px; 
    background-color: #e5e4e4;
    border: solid 3px #ed6a6c;
    border-radius: 50px;
    justify-items: center;
    align-items: center;
}

.logiciel img {
    width: 100%;
    max-width: 60px;
    filter: saturate(0);
    transition: all 0.5s;
}

.logiciel img:hover {
    filter: saturate(1.5);
    transform: scale(1.1);
}

/* ==========================================================================
   6. MODULE CONTACT
   ========================================================================== */
.contact { 
    color: #e5e4e4;
    border-radius: 50px;
    border: 3px solid #ed6a6c;
    padding: 50px;
    width: 30%;
    display: flex;
    flex-direction: column;
    text-align: center;
    margin: 0 auto;
}

.mail-tel {
    display: grid;
    grid-template-columns: auto auto;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.mail-tel img {
    width: 40px;
    filter: invert(100%);
}

.mail-tel h4 {
    font-size: 1.3em;
    transition: all 0.5s;
}

/* ==========================================================================
   7. RESPONSIVE DESIGN
   ========================================================================== */

/* --- TABLETTES (Moins de 1024px) --- */
@media screen and (max-width: 1024px) {
    header .navig { gap: 20px; font-size: 1.1em; }
    .contact { width: 60%; }
}

/* --- MOBILE (Moins de 900px) --- */
@media screen and (max-width: 900px) {
    
    .burger-icone {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 2000;
        order: 1;
    }

    .burger-icone span {
        display: block;
        width: 35px; height: 3px;
        background-color: #e5e4e4;
        border-radius: 5px;
        transition: 0.3s ease;
    }

    #burger-bouton:checked ~ .burger-icone span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    #burger-bouton:checked ~ .burger-icone span:nth-child(2) { opacity: 0; }
    #burger-bouton:checked ~ .burger-icone span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    header .navig {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; height: 100vh;
        background-color: #181717;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        border-radius: 0;
        border-left: 3px solid #ed6a6c;
        transition: 0.5s ease;
        z-index: 1500;
    }

    #burger-bouton:checked ~ .navig { right: 0; }

    header .logo { order: 2; }
    header .logo img { width: 60px; }

    #profil h1:first-of-type { font-size: 3.5em; }
    #profil h1:nth-of-type(2) { font-size: 4em; }
    
    #profil a.profil-link-box { padding: 20px; width: 90%; }
    .fond-lueur { display: none; }

    footer .reseaux {
        position: relative;
        height: auto; width: 100%;
        top: 0; left: 0;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 30px;
        padding: 40px 0;
        background-color: #181717;
    }

    .cadre { width: 95%; padding: 20px; }
    .domaine { flex-direction: column; }
    .logiciel { grid-template-columns: repeat(2, 1fr); }

    .contact { width: 85%; padding: 35px; border-radius: 40px; }
}

/* --- PETITS MOBILES (Moins de 480px) --- */
@media screen and (max-width: 480px) {
    h2 { font-size: 1.5em; padding: 10px 20px; }
    #profil h1:first-of-type { font-size: 2.5em; }
    #profil h1:nth-of-type(2) { font-size: 3em; }
}