/* ==============================
   VARIABLES CSS (Couleurs & Polices)
   ============================== */
   :root {
    --color-background:rgb(41, 41, 41)!important;   /* Fond clair identique à aureli123.fr */
    /* --color-background:#4e342e !important;    ancienne couleur de fond */
    --color-primary: #e59e82;      /* Couleur principale ajustée */
    --color-secondary: #eca766;    /* Seconde couleur harmonisée */
    --color-dark: #F8E1C3;         /* Texte principal */
    --color-light: #ffffff;        /* Texte clair */
    --font-main: 'Caveat Brush', cursive;
    --font-text: "Roboto", sans-serif;
    --font-title: 'Bebas Neue', sans-serif;
}

/* comment utiliser roboto
.roboto-<uniquifier> {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}
*/


/* ==============================
   GLOBAL STYLES
   ============================== */
   body {
    font-family: var(--font-text);
    background-color: var(--color-background);
    background-size: cover;
    color: var(--color-dark);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1 {
    font-family: var(--font-title);
    font-size: 4rem;
    color: var(--color-dark);
    text-align: start;
    margin: 0;
    margin-left: 10%;
    padding: 20px;
}
p {
    font-family: var(--font-text);
    font-size: 1.2rem;
    color: var(--color-dark);
    font-weight: 490;
    margin: 0;
    padding: 20px;
}

i {
    font-size: 2rem;
}



/* ==============================
   HEADER
   ============================== */

header {
    position: relative;
    font-family: var(--texte);
    display: flex;
    flex-direction:row;
    justify-content: space-between; 
    align-items: center;
    justify-content: space-around;
    align-content: center;
    padding-bottom: 5%;
    background-color: #f8e1c305;
    line-height: 1.8;
   
}

header p {
    font-size: 1.2rem;
    color: var(--color-dark);
    font-weight: 490;
    margin: 0;
    padding: 20px;
}

header img {
    height: 100px;
    width: auto;
    margin-right: 10px;
    top: 10px;
    right: 20px;
}

.logo {
    margin-left: 20px;
    padding-left: 20px;
}

.text-info {
    text-align: center;
    color: var(--color-dark);
    
}

.social-icons a {
    color: var(--color-dark);
    margin: 0 8px;
    font-size: 1.5rem;
    
}

.contact-info {
    margin-top: 20px;
    color: var(--color-dark);
    font-size: 1.2rem;
     
}

.contact-info a {
    color: var(--color-dark);
}



.icone_dev {
    
    top: 10px;
    left: 10px;
    font-size: 5rem;
    font-family: var(--font-main);
}

/* ==============================
   MENU TOGGLE FIXE
   ============================== */
#menu-toggle {
    position: fixed;
    top: 15px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1001;
    transition: background 0.3s;
}

#menu-toggle:hover {
    background: rgba(0, 0, 0, 0.9);
}

#menu-links {
    position: fixed;
    top: 60px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px;
    border-radius: 8px;
    display: none; /* Caché par défaut */
    flex-direction: column;
    z-index: 1000; /* Met le menu au-dessus de tout */
    gap: 10px;
    text-align: right;
}

#menu-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}

#menu-links a:hover {
    text-decoration: underline;
}

/* ==============================
   EFFET BOITES
   ============================== */

/* Conteneur principal */
.container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 50px;
    padding: 20px;
}

/* Boîtes principales */
.box {
    position: relative;
    background-color: #e59e82;
    color: var(--color-background);
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    padding: 20px;
    width: 300px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

/* Effet au survol */
.box:hover {
    transform: scale(1.05);
}

/* Conteneur des sous-boîtes */
.box .sub-box {
    position: relative;
    background-color: var(--color-background);
    color: var(--color-dark);
    font-size: 1rem;
    text-align: center;
    text-transform: none;
    padding: 10px;
    width: 170px;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}

/* Cercles */

.circle-box {
    position: relative;
    background-color: var(--color-primary);
    color: var(--color-background);
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    padding: 30px;
    width: 200px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 30px; 
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

/* Effet au survol */
.circle-box:hover {
    transform: scale(1.05);
}

/* Sous-cercles */
.sub-circle {
    position: relative;
    background-color: var(--color-background);
    color: black;
    font-size: 1rem;
    text-align: center;
    padding: 10px;
    width: 200px;
    height: auto;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}


/* Trait entre la boîte principale et les sous-boîtes 
.box .sub-box::before {
    content: "";
    position: absolute;
    width: 2px;
    height: 20px;
    background-color: black;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
} */

/* Gouttellettes */

.drop {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #13100f;
    border-radius: 50%;
    opacity: 1;
    transition: transform 1.5s ease-out, opacity 1.5s ease-out;
}


/* Animation machine à écrire */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}
/* Effet d'apparition pour rendre l'effet plus fluide */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* Appliquer l'animation machine à écrire aux textes */
.circle-box span, 
.sub-circle span {
    overflow: hidden;
    border-right: 2px solid white; /* Curseur de frappe */
    width: 100%;
    max-width: fit-content; /* Permet au texte de s'afficher complètement */
    animation: typing 3s steps(20, end) forwards, fadeIn 3s;
    animation-delay: 5s; /* Délai de 5 secondes avant le démarrage */
}

/* Fix pour le texte dans les sous-cercles */
.sub-circle a {
    text-decoration: none;
    color: white;
}

.sub-circle span {
    border-right: none; /* Pas besoin de curseur ici */
}



/* ==============================
   AJUSTEMENT SECTION COMPETENCES
   ============================== */

.competences {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-dark);
    font-family: var(--texte);
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.competences div {
    display: flex;;
    justify-content: space-around;
    gap: 0px;
}

.competences-catégories {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.competences-catégories ul {
    margin-top: 0%;
}

/* ==============================
   AJUSTEMENT SECTION SERVICES
   ============================== */

.services {
    padding: 50px 20px;
    text-align: start ;
    font-family: var(--texte);
    color: var(--color-dark);
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);

}

.services a {
    color: rgb(166, 184, 233);
}


/* ==============================
   PORTFOLIO SECTION
   ============================== */
#portfolio {
    padding: 50px 20px;
}



.projets {
    display: flex;
    flex-direction: row;
    justify-content: center; /* Centre les éléments horizontalement */
    gap: 20px; /* Espacement entre les éléments */
    padding: 50px 20px;
    text-align: center;
    font-family: var(--texte);
    color: var(--color-background);
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.projet p {
    color: var(--color-background);
}

.projet a {
    color: var(--color-dark);
}

.projet {
    background-color: var(--color-primary);
    color: var(--color-background);   
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 20px auto;
    max-width: 500px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.projet:hover {
    transform: scale(1.05);
}


/* ==============================
   SECTION Tarifs
   ============================== */

.tarifs {
    padding: 50px 20px;
    text-align: start ;
    font-family: var(--texte);
    color: var(--color-light);

}

.special {
    background-color: var(--color-primary);
    color: var(--color-background);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 20px auto;
    max-width: 500px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

/* ==============================
   Gestion des gouttes
   ============================== */


/* Conteneur général */
.bubble-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 50px;
}

/* Bulles irrégulières */
.bubble {
    position: relative;
    padding: 20px 30px;
    background-color: #e59e82;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    clip-path: polygon(20% 0%, 80% 0%, 100% 30%, 90% 80%, 50% 100%, 10% 80%, 0% 30%);
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

/* Animation au survol */
.bubble:hover {
    transform: scale(1.1);
}

/* Gouttes qui apparaissent */
.bubble::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #e59e82;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

/* Gouttes qui apparaissent en plusieurs endroits */
.bubble:hover::after {
    opacity: 1;
    transform: translateY(-20px);
}

/* Gouttes personnalisées pour chaque bulle */
#bubble1::after { top: -15px; left: 20px; }
#bubble2::after { bottom: -15px; right: 30px; }
#bubble3::after { top: 10px; left: -20px; }
#bubble4::after { bottom: 10px; right: -20px; }


/* ==============================
   FORMULAIRE DE CONTACT
   ============================== */
.contact-form {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    text-align: center;
    font-family: var(--texte);
    color: var(--color-light);
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    font-weight: bold;
    display: block;
    margin: 10px 0 5px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px;
    margin: 5px 0;
    border: 1px solid var(--color-dark);
    border-radius: 5px;
    font-size: 1rem;
}

.form-textarea {
    height: 120px;
    resize: vertical;
}

.form-button {
    background: var(--color-primary);
    color: var(--color-light);
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    display: block;
    width: 100%;
    margin-top: 15px;
}

.form-button:hover {
    background: var(--color-dark);
}


/* ==============================
   FOOTER
   ============================== */
footer {
    font-size: 0.8rem; /* Texte plus petit */
    text-align: center;
    opacity: 0.6; /* Légère transparence */
    background-color: rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 1px 0;
}

footer p {
    font-size: 0.9rem;
    color: white;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

footer a {
    color: white;
    text-decoration: underline;
}

footer a:visited {
    color: white;
}
.credit-photo {
    font-size: 0.8rem; /* Texte plus petit */
    text-align: center;
    opacity: 0.6; /* Légère transparence */
}

.credit-photo a {
    color: inherit; /* Prend la couleur du texte */
    text-decoration: none;
}

.credit-photo a:hover {
    text-decoration: underline;
    opacity: 1;
}

.fin {
    text-align: center;
    padding: 20px;
    color: var(--color-dark);
    font-family: var(--texte);
    font-size: 5rem;
}




/* Styles pour l'élément de couverture */
#cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 250%;
    height: 250%;
    background-color: #fee9d6; /* Couleur identique à .numerique */
    background-size: cover;
    background-position: center;
    transform: translate(-30%, -30%) rotate(45deg);
    transform-origin: center;
    z-index: 9999;
    transition: transform 15s ease-out;
}




/* ==============================
   RESPONSIVE DESIGN
   ============================== */

/* 📱 Écrans de moins de 1024px (Tablettes) */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
        margin-left: 5%;
        text-align: center;
    }

    .container {
        flex-direction: column; /* Empile les boîtes */
        align-items: center; /* Centre le contenu */
    }

    .circle-box, .box {
        width: 80%; /* Ajuste la taille des boîtes */
    }

    .projets {
        flex-direction: column; /* Met les projets en colonne */
        align-items: center;
    }

    .projet {
        width: 90%; /* Ajuste la largeur des projets */
    }

    header {
        flex-direction: column; /* Met le header en colonne */
        align-items: center;
        text-align: center;
    }

    header img {
        height: 80px;
    }
}

/* 📱 Écrans de moins de 768px (Smartphones) */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        text-align: center;
        margin: 10px 0;
    }

    p {
        font-size: 1rem;
        padding: 10px;
    }

    .container {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .box, .circle-box {
        width: 90%;
        padding: 15px;
        font-size: 1.5rem;
    }

    .sub-box, .sub-circle {
        width: 80%;
    }

    .projets {
        flex-direction: column;
        align-items: center;
    }

    .projet {
        width: 100%;
        padding: 15px;
    }

    .bubble-container {
        flex-direction: column;
        gap: 20px;
    }

    .bubble {
        font-size: 1.2rem;
    }

    header {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    header img {
        height: 60px;
    }

    #menu-toggle {
        top: 10px;
        right: 10px;
        font-size: 1rem;
    }

    #menu-links {
        top: 50px;
        right: 10px;
        font-size: 1rem;
    }
}

/* 📱 Petits écrans (moins de 480px - Téléphones compacts) */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .box, .circle-box {
        font-size: 1.2rem;
    }

    .projet {
        font-size: 0.9rem;
    }

    header img {
        height: 50px;
    }

    .bubble {
        font-size: 1rem;
    }
}




