/*
Theme Name: V2
Author URI: https://www.pascalecourtois.com/
Version: 1.0
*/

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Comfortaa', 'Arial', sans-serif;
    color: #333;
    scroll-behavior: smooth;
    background-color: #f0f0f0; /* Fond gris pour toute la page */
}

h2 {
    font-size: 1.2em !important;
	padding-top:20px;
  }

a {
  color: #333;
  text-decoration: underline;
}

a:hover {
  color: #000;
  text-decoration: underline;
}

/* Importation de la police Comfortaa avec les bonnes variantes */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');

    /* Barre de navigation */
    nav {
      width: 100%;
      background-color: #000;
      position: fixed;
      top: 0;
      left: 0;
      z-index: 1000;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }
	
/* Conteneur intérieur avec padding horizontal */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px; /* L'espacement gauche/droite qu'on veut */
  max-width: 100%; /* Sécurité */
}

.logo {
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
}

.menu {
  display: flex;
  gap: 30px;
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  padding: 10px 15px;
  transition: background-color 0.3s ease;
}

.menu a:hover {
  background-color: #333;
  border-radius: 5px;
}

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 3.5em !important;
  }
  .hero-subtitle {
    font-size: 1.5em !important;
  }
}

@media (max-width: 1024px) {
  .nav-container {
    padding: 15px 30px; /* Un peu moins de padding sur tablette */
  }

  .menu {
    gap: 20px; /* Réduit l'espace entre les liens */
  }

  .menu a {
    font-size: 17px;
    padding: 8px 12px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 15px 20px;
  }

  .menu {
    gap: 15px;
  }

  .menu a {
    font-size: 16px;
    padding: 8px 10px;
  }

  /* Optionnel : réduire légèrement la taille du logo/img */
  .nav-container img {
    width: 35px;
  }
}

@media (max-width: 480px) {
  /* Téléphones petits */
  .nav-container {
    padding: 12px 15px;
  }

  .menu {
    gap: 10px;
  }

  .menu a {
    font-size: 15px; /* Toujours très lisible */
    padding: 6px 8px;
  }

  .nav-container img {
    width: 32px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    flex-wrap: wrap;        /* Permet au menu de passer à la ligne si besoin */
    gap: 10px;              /* Espace vertical si wrap */
  }

  .menu {
    justify-content: center; /* Centre les liens si ils passent à la ligne */
  }
}

/* ================= HERO ================= */

.hero-artist {
    position: relative;
    height: 100vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    border-bottom: 5px solid black; /* Bordure noire sous le hero */
	margin-bottom: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Ombre ajoutée sous le hero pour effet de relief */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

/* ================= HERO TITLE ANIMATION ================= */

.hero-title {
    font-family: 'Comfortaa'; /* Utilisation de la police Comfortaa */
    font-size: 5em;
    font-weight: 700; /* Plus audacieux */
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0; /* Commence invisible pour l'animation */
    transform: translateY(20px); /* Décalage du titre */
    animation: fadeInUp 1.5s forwards; /* Animation de fade-in et déplacement vers le haut */
    animation-delay: 0.5s; /* Délai pour que l'animation ne commence pas immédiatement */
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5); /* Ombre ajoutée pour le titre */
}

/* Animation du titre */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-family: 'Comfortaa'; /* Utilisation de Comfortaa pour le sous-titre */
    font-size: 1.8em;
    font-weight: 400;
    opacity: 0;
    letter-spacing: 1px;
    font-style: italic;
    animation: fadeInUp 1.5s forwards;
    animation-delay: 1s; /* Délai plus long que pour le titre */
}

/* ================= TEXT ================= */

.text-section {
    padding: 20px 20px;
    background: #f0f0f0; /* Fond gris pour l'ensemble de la page */
    text-align: center;
    max-width: 1100px;
    margin: auto;
    font-size: 1.4em;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

/* ================= TEXT FADE-IN ANIMATION ================= */
.text-section.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ================= PARALLAX ================= */

.parallax-section {
    position: relative;
    height: auto;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background-size: cover;
    background-position: center;
    will-change: transform;
    z-index: 0;
    border-top: 2px solid #d1d1d1; /* Bordure en haut */
    border-bottom: 2px solid #d1d1d1; /* Bordure en bas */
}

/* ================= IMAGES ================= */

.image-container {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.image-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ajout du fond noir derrière chaque image qui dépasse de 8px avec shadow et border noir */
.image-container img {
    width: 45%;
    max-width: 100%;
    height: auto;
    object-fit: cover; 
    padding: 5px; /* Espacement autour de l'image */
    background-color: black; /* Fond noir derrière l'image */
    border: 3px solid #000; /* Bordure noire de 5px */
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.3); /* Ombre ajoutée pour l'effet de relief */
}

/* Spécifique pour les images abstraites (sans fond ni cadre, mais avec ombre) */
.image-container img[src*="abstrait.png"],
.image-container img[src*="abstrait2.png"] {
    background-color: transparent; /* Pas de fond */
    padding: 0; /* Pas de padding */
    border: none; /* Pas de border */
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.3); /* Ombre ajoutée pour l'effet de cadre et de relief */
}

/* ================= IMAGE SINGULIÈRE AVEC PARALLAX ================= */

.parallax-section.singular {
    position: relative;
    height: auto;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    margin-bottom: 60px;
}

.parallax-bg.singular {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    will-change: transform;
    z-index: 0;
}

.image-container.singular {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 1200px;
}

.image-container.singular img {
    width: 100%;
    object-fit: cover;
    margin-top: 40px; /* Marge ajoutée au-dessus de l'image */
    margin-bottom: 40px; /* Marge ajoutée en dessous de l'image */
}

/* FORMULAIRE DE CONTACT */
.wpcf7-form, 
.wpforms-form, 
form.contact-form { /* Adaptez la classe si votre plugin utilise autre chose */
    max-width: 800px;
    margin: 20px auto;
    padding: 40px 20px;
    font-family: 'Comfortaa', serif; /* Changez si votre site utilise une autre police, ex: 'Montserrat', sans-serif pour plus moderne */
}

.wpcf7-form p,
.wpforms-form .wpforms-field,
form.contact-form p {
    margin-bottom: 30px;
    position: relative;
}

.wpcf7-form label,
.wpforms-form label,
form.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

/* Champs input et textarea */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea,
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form textarea,
form.contact-form input[type="text"],
form.contact-form input[type="email"],
form.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpforms-form input:focus,
.wpforms-form textarea:focus {
    outline: none;
    border-color: #999;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

/* Textarea plus haute */
.wpcf7-form textarea,
.wpforms-form textarea {
    min-height: 180px;
    resize: vertical;
}

/* Bouton d'envoi */
.wpcf7-form input[type="submit"],
.wpforms-submit-container button,
form.contact-form input[type="submit"] {
    background-color: #000; /* Noir élégant, changez en #333 ou une couleur accent de votre site */
    color: #fff;
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    display: inline-block;
}

.wpcf7-form input[type="submit"]:hover,
.wpforms-submit-container button:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* hide fieldset */
.wpcf7 .hidden-fields-container {
    position: absolute;
    left: -9999px;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Mettre Nom et Email sur la même ligne - Contact Form 7 */
.wpcf7-form .row-name-email {
    display: flex;
    gap: 20px; /* Espace entre les deux champs */
    flex-wrap: wrap; /* Passe en colonne sur mobile */
    margin-bottom: 30px;
}

.wpcf7-form .row-name-email > p {
    flex: 1 1 45%; /* Chaque champ prend environ la moitié */
    margin-bottom: 0; /* Supprime la marge basse par défaut */
    min-width: 280px; /* Évite que ça devienne trop étroit sur petits écrans */
}

/* Optionnel : un peu plus d'air sur mobile */
@media (max-width: 768px) {
    .wpcf7-form .row-name-email {
        flex-direction: column;
        gap: 0;
    }
    
    .wpcf7-form .row-name-email > p {
        min-width: auto;
    }
}

/* Messages de succès/erreur (pour CF7) */
.wpcf7-response-output {
    margin: 20px 0;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
}

.wpcf7-not-valid-tip {
  font-size: 0.7em !important;
  }

/* Responsive */
@media (max-width: 768px) {
    .wpcf7-form, .wpforms-form {
        padding: 20px 10px;
    }
}

/* ================= FOOTER ================= */

.site-footer {
    background-color: #000;
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: 60px;
    font-size: 1em;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}