/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Container */
.container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem; /* important pour mobile */
}

/* Titres */
h1 {
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 700;
}

h1 span {
    color: #00e0ff;
}

h2 {
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 300;
    margin: 15px 0 30px;
    opacity: 0.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Texte */
p {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    max-width: 100%; /* permet de s’adapter au container */
    margin: 0 auto 40px;
    line-height: 1.7;
    opacity: 0.85;
}

/* Boutons */
.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn {
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-primary {
    background: #00e0ff;
    color: #000;
}

.btn-secondary {
    border: 2px solid #00e0ff;
    color: #00e0ff;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 224, 255, 0.4);
}

/* Réseaux */
.socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 1.5rem;
}

.socials a {
    color: #ffffff;
    transition: 0.3s;
}

.socials a:hover {
    color: #00e0ff;
    transform: scale(1.2);
}

/* Bouton LinkedIn désactivé */
.social-link.linkedin-soon {
    opacity: 0.3;
    cursor: not-allowed;
    position: relative;
}

/* Tooltip */
.social-link.linkedin-soon::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 140%; /* ⬇️ en dessous de l’icône */
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 10;
}

/* Flèche vers le haut */
.social-link.linkedin-soon::before {
    content: "";
    position: absolute;
    top: 115%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent rgba(0,0,0,0.85) transparent;
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* Hover */
.social-link.linkedin-soon:hover::after,
.social-link.linkedin-soon:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 1.2rem;
    }
}

/* ===== PROJECTS.HTML ===== */

.page-header {
    text-align: center;
    padding: 80px 20px 40px;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.page-header h1,
.page-header p {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.page-header h1.show,
.page-header p.show {
    opacity: 1;
    transform: translateY(0);
}

/* Section projets */
.projects {
    padding: 0px 20px 80px;
    margin-top: -130px;
}

/* Grille */
.projects-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    perspective: 1200px; 
    justify-content: flex-start;
    pointer-events: none;

}

.project-card {
    background: rgba(0, 0, 0, 0.30);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
    position: relative;
    transform-origin: center;
    pointer-events: auto;
}

/* Hover effet */
.project-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.7);
}

.project-card.show {
    opacity: 1;
    transform: translateY(0);
}


.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-card.hidden {
    opacity: 0;           /* invisible */
    pointer-events: none; /* clic désactivé */
    transform: translateY(40px);
    transition: all 0.3s ease;
}

/* Infos projet */
.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin: 10px 0;
}

.project-info p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
}

.badge-2d {
    background: #00e0ff;
    color: #000;
}

.badge-3d {
    background: #ff7a00;
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.2rem;
    }
}

/* ===== CONTACT.HTML ===== */

.page-header {
    text-align: center;
    padding: 80px 20px 40px;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Section contact */
.contact {
    padding: 40px 20px 80px;
}

.contact-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* Infos contact */
.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 30px;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info i {
    color: #00e0ff;
    font-size: 1.2rem;
}

/* Formulaire */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Animations pour contact */
.contact-info,
.contact-form,
.page-header h1,
.page-header p {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-info.show,
.contact-form.show,
.page-header h1.show,
.page-header p.show {
    opacity: 1;
    transform: translateY(0);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

.form-group input,
.form-group textarea {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
    transition: 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid #00e0ff;
    background: rgba(255,255,255,0.15);
}

.contact-form button {
    width: 100%;
    padding: 14px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    background: #00e0ff;
    color: #000;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-form button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,224,255,0.4);
}

/* Responsive */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* ====== Carte cliquable ====== */
.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ====== Positionnement du contenu ====== */
.project-card {
    position: relative;
}

/* ====== Lien vidéo en bas à gauche ====== */
.project-video {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #00e0ff;
    opacity: 0.9;
    transition: transform 0.3s, opacity 0.3s;
}

/* Hover sur la carte */
.project-card:hover .project-video {
    transform: translateX(5px);
    opacity: 1;
}

/* Icône */
.project-video i {
    font-size: 0.9rem;
}

/* Curseur cliquable */
.project-card {
    cursor: pointer;
}

/* ====== FOOTER ====== */
.site-footer {
    display: flex;
    justify-content: center; 
    align-items: center;      
    height: 60px;             
    background-color: #0d0d0d;
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.site-footer p {
    margin: 0;
}

/* ====== Effet typing INDEX.HTML ====== */
/* Conteneur centré */
.hero .container {
    text-align: center; 
}

/* Effet typing centré */
.typing {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #00e0ff;
  width: 0;
  animation: typing 2.5s steps(23, end) forwards, blink 0.75s step-end infinite;
}

.typing span {
  font-weight: 700;
}

/* Animation du texte tapé */
@keyframes typing {
  0% { width: 0; }
  90% { width: 23ch; }
  100% { width: 23ch; border-color: transparent; }
}

/* Curseur clignotant */
@keyframes blink {
  50% { border-color: transparent; }
  100% { border-color: #00e0ff; }
}

/* Bouton retour en haut */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #00e0ff;
    color: #00e0ff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
}

/* Apparition */
#scrollTopBtn.show {
    opacity: 1;
    pointer-events: auto;
}

/* Hover animation */
#scrollTopBtn:hover {
    background: #00e0ff;
    color: #000;
    transform: translateY(-5px);
}

@media (max-width: 768px) {
  .typing {
    font-size: 1.8rem;
    white-space: normal;    /* texte normal qui revient à la ligne */
    width: auto;            /* ne plus restreindre la largeur */
    border-right: none;     /* supprime le curseur clignotant */
    animation: none;        /* désactive l’animation */
  }
}

/* ===== PAGE 404 ===== */

.page-404 {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    text-align: center;
    padding: 20px;
    color: #ffffff;
}

.container-404 h1 {
    font-size: 8rem;
    font-weight: 700;
    color: #00e0ff;
    margin-bottom: 20px;
}

.container-404 h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.container-404 p {
    font-size: 1.2rem;
    max-width: 500px;
    margin: 0 auto 30px;
    opacity: 0.85;
}

.container-404 .btn-primary {
    background: #00e0ff;
    color: #000;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.container-404 .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,224,255,0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .container-404 h1 {
        font-size: 5rem;
    }

    .container-404 h2 {
        font-size: 2rem;
    }

    .container-404 p {
        font-size: 1rem;
    }
}

/* Bouton téléchargement projet */
.project-card {
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Bouton moodboard */
.download-btn {
    text-align: left; /* aligne le bouton à gauche */
    margin-top: 20px; /* espace au-dessus du bouton */
}

.download-btn a {
    display: inline-flex; /* pour que l'icône et le texte restent alignés */
    align-items: center;  /* centre verticalement l'icône et le texte */
    gap: 8px;             /* espace entre l'icône et le texte */
    padding: 10px 20px;
    background-color: #00e0ff;
    color: #000;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-btn a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,224,255,0.4);
}