/*
Theme Name: portfolio
Theme URI: https://mceyhan.com
Author: Ton Nom
Author URI: https://mceyhan.com
Description: Thème portfolio personnalisé
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portfolio
*/

/* ===== Import de la police Story Script ===== */
@font-face {
  font-family: 'Story Script';
  src: url('police/StoryScript-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Application globale de la police */
h1, h2, h3 {
  font-family: 'Story Script';
}

/* ===== Vidéo de fond ===== */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* recadre proprement la vidéo */
  z-index: -10; /* derrière le contenu */
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}


/* Filtre foncé par-dessus la vidéo pour lisibilité du texte */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* ajuste l’opacité selon la vidéo */
  z-index: -9;
}

/* Le contenu du site doit être au-dessus */
.site-header,
.site-content,
.site-footer {
  position: relative;
  z-index: 1;
  color: #fff;
}

/*header*/

.site-header {
  position: fixed;
  height: 10vh;
  width: 100vw;
  z-index: 9999;
}

.site-title a {
  color: var(--jaune);
}

/* Ajustements visuels */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.site-header .containerheader .site-title a{
    text-decoration: none;
}

.main-navigation ul {
  list-style: none; 
  margin: 0;
  padding: 0;
  display: flex; 
  flex-direction: row;
}

.main-navigation li {
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: 0.3s;
  font-weight: bold;
}

.main-navigation a:hover {
  color: var(--jaune);
}

.site-header .containerheader {
  display: flex;
  align-items: center; 
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.6);
}

/*footer*/

.site-footer .container{
    display: flex;
    justify-content: center;
}

.footer-navigation a {
  color: var(--white);
}

.footer-navigation a:hover {
  color: var(--jaune);
}

:root {
  --jaune: #FFC53D;
  --jaunebtn: #FFD60A;
  --dark: rgba(0, 0, 0, 0.7);
  --white: #fff;
  --max-width: 1200px;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  color: var(--white);
  scroll-behavior: smooth;
}

.site-footer ul{
  list-style: none;
}

.footer-navigation a {
  text-decoration: none;
}

/* === Section hero === */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3rem;
}

.hero-content h2 {
  font-size: 1.5rem;
  color: var(--jaune);
  margin-top: 0;
}

.hero-content p {
  max-width: 700px;
  margin: 1rem auto;
}

.highlight {
  color: var(--jaune);
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.6rem;
  background: var(--jaunebtn);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
}

/* === Section générale === */
section {
  position: relative;
  z-index: 1;
}

/* === Section à propos === */
.about {
  background: var(--dark);
}

.skills {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.skills li {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
}

.logo {
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
  margin-bottom: 50px;
}

.Paragraphe-desc {
  font-size: large;
  font-weight: 900;
}

.single-projet {
  background-color: var(--dark);
  margin-top: 10%;
}

/* === Section contact === */
.contact {
  background: var(--dark);
}

.contact-section {
  padding: 80px 0;
  background: #f7f7f7;
}

.contact-section h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 40px;
  color: var(--jaune);
}

/* ---- Grille du formulaire ---- */
.cf7-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  max-width: 700px;
  margin: 0 auto;
}

.cf7-grid > div {
  margin-bottom: 10px;
}

.cf7-grid .full {
  grid-column: 1 / 3;
}

/* ---- Labels ---- */
.cf7-grid label {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  margin-bottom: 6px;
  display: block;
}

/* ---- Inputs & Textarea ---- */
.cf7-grid input[type="text"],
.cf7-grid input[type="email"],
.cf7-grid textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  transition: 0.3s;
  font-size: 1rem;
  background: #fff;
}

.cf7-grid input[type="submit"] {
  background: var(--jaunebtn);
  color: white;
  border: none;
  padding: 14px 25px;
  font-size: 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
  width: 200px;
  margin: 0 auto;
  display: block;
}

.cf7-grid input[type="submit"]:hover {
  background: var(--jaunebtn);
  transform: scale(1.04);
}

.wpcf7-form p {
  display: block;
  margin-bottom: 20px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  display: block;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 15px;
  border-radius: 10px;
  border: 2px solid #ddd;
  font-size: 1rem;
}


.contact-phone {
  text-align: center;
  margin-top: 25px;
  font-size: 1.1rem;
  color: white;
}

.contact-phone strong {
  color: var(--jaune);
}


/* Responsive */
@media (max-width: 768px) {
  .cf7-grid {
    grid-template-columns: 1fr;
  }
  .cf7-grid .full {
    grid-column: 1 / 2;
  }
}


/* Animation d'apparition douce au chargement */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 2s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Effet sur les boutons */
.btn {
  transition: transform 0.3s ease, background 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
  background: var(--jaunebtn);
}

/* Apparition douce du texte hero */
.hero-content h1,
.hero-content h2,
.hero-content p {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
}

.hero-content h2 {
  animation-delay: 0.3s;
}

.hero-content p {
  animation-delay: 0.6s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  opacity: 0;
  transform: scale(1.1);
  animation: heroFadeZoom 1.8s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes heroFadeZoom {
  0% {
    opacity: 0;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
/* projects */

.projects {
  margin: 10%;
  color: white;
  text-align: center;
}

.projets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.projet-thumb img {
  width: 100%;
  height: auto;
}

.projet-github a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--white);
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.projet-github a:hover {
  text-decoration: underline;
}

.retour-projets a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}

.retour-projets a:hover {
  color: var(--jaune);
  text-decoration: underline;
}

@media (max-width: 1097px) {
 .projets-grid {
    display: grid;
    grid-template-columns: none;
    gap: 5rem;
    margin-top: 2rem;
}}

/* ----- Effet hover "En savoir plus" ----- */

.project-card {
  position: relative;
  overflow: hidden;
  cursor: none;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Le rond */
.project-hover-circle {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 20;
}

@media (max-width: 820px) {
  .project-hover-circle {
    display: none;
  }
}

/* Quand on survole la carte, on montre le cercle */
.project-card:hover .project-hover-circle {
  opacity: 1;
  transform: scale(1);
}


.competences-section {
  margin-top: 5rem;
  color: #fff;
}

.competences-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.competences-section h3 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: var(--jaune);
}

.competences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem 1rem;
  border-radius: 12px;
  text-align: center;
  transition: 0.3s ease;
  border: 1px solid transparent;
}

.skill-card:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: var(--jaune);
  background: rgba(255, 255, 255, 0.1);
}

.skill-card i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--jaune);
}

.skill-card p {
  margin: 0;
  font-size: 1.1rem;
}

.site-main {
  margin: 5%;
}

/* ======================= */
/* BURGER MENU */
/* ======================= */

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 9999;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 4px;
    transition: 0.3s;
}

/* Animation croix */
.burger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Menu mobile */
@media (max-width: 820px) {

    /* Le menu mobile couvre tout l'écran */
    .main-navigation {
        position: fixed;
        top: -100vh;        /* Caché en haut */
        left: 0;
        width: 100vw;
        height: 20vh;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
        padding-top: 120px; /* Espace sous le header */
        justify-content: flex-start;
        transition: 0.35s ease;
        z-index: 9998;     /* Sous le bouton mais au-dessus du site */
    }

    /* Menu visible */
    .main-navigation.open {
        top: 0;
    }

    .main-navigation .menu {
        display: flex;
        flex-direction: column;
        gap: 35px;
        text-align: center;
    }

    /* Le bouton burger devient visible */
    .burger {
        display: flex;
        position: relative;
        z-index: 9999; /* au-dessus de tout */
    }
}
