/*
Theme Name: Studio60 Challenge Theme
Description: Thème personnalisé pour le challenge Studio60
Version: 1.0
Author: Yannick
Text Domain: studio60-theme
*/

/* ===========================
    Header principal
=========================== */
.site-header {
    background: #fff; /* Fond blanc */
    padding: 20px 0;  /* Espacement vertical */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* Ombre légère */
}

.site-header .container {
    display: flex;          
    align-items: center;    
    justify-content: space-between; 
    flex-wrap: wrap;        
}

/* ===========================
    Logo / Nom du site
=========================== */
.site-title a {
    text-decoration: none;   
    color: #003366;          
    font-size: 24px;         
    font-weight: bold;       
}

/* ===========================
    Menu principal
=========================== */
.main-navigation {
    margin-left: auto; 
}

.nav-menu {
    list-style: none;  
    display: flex;     
    gap: 20px;         
}

.nav-menu li a {
    text-decoration: none;  
    color: #003366;         
    font-weight: 600;        
    transition: color 0.3s ease; 
}

.nav-menu li a:hover {
    color: #0073e6; 
}

/* ===========================
    Sélecteur de langue Polylang
=========================== */
.language-switcher {
    margin-left: 20px;       
    display: flex;           
    gap: 10px;               
    align-items: center;     
}

.language-switcher a {
    text-decoration: none;  
    color: #003366;         
    font-weight: 500;        
}

.language-switcher img {
    width: 24px;   
    height: auto;
    vertical-align: middle; 
}

/* ===========================
    Formulaires GravityForms
=========================== */
.gform_wrapper {
    max-width: 800px; 
    margin: 0 auto;   
    padding: 20px;    
    background-color: #ffffff; 
    border-radius: 12px;       
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    font-family: Arial, sans-serif;
}

/* Labels des champs */
.gform_wrapper .gfield_label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #003366;
}

/* Champs input / select / textarea */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="date"],
.gform_wrapper textarea,
.gform_wrapper select {
    width: 100% !important;
    padding: 12px !important;
    background-color: #d4e157 !important; 
    border: 1px solid #c0ca33 !important; 
    border-radius: 4px !important;
    margin-bottom: 10px !important;
    font-size: 16px !important;
    cursor: text !important; /* Curseur texte pour saisie */
}

/* Cases à cocher, radio et listes déroulantes */
.gform_wrapper input[type="checkbox"],
.gform_wrapper input[type="radio"],
.gform_wrapper select {
    cursor: pointer !important; /* Force l'affichage du curseur "main" */
    pointer-events: auto !important; /* S'assure que le clic est bien activé */
}

/* Bouton Envoyer */
.gform_footer input[type="submit"],
.gform_footer button {
    background: #8bc34a !important; 
    color: white !important;
    padding: 12px 40px !important;
    border: none !important;
    border-radius: 25px !important;
    font-size: 16px !important;
    cursor: pointer !important; 
    transition: background 0.3s ease;
}

.gform_footer input[type="submit"]:hover {
    background: #7cb342 !important; 
}

/* Copyright / petit texte sous formulaire */
.gform_wrapper + p {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 20px;
}

/* ===========================
    Responsive (petits écrans)
=========================== */
@media screen and (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-navigation {
        margin-left: 0;
        margin-top: 10px;
    }

    .language-switcher {
        margin-left: 0;
        margin-top: 10px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }

    .gform_wrapper {
        padding: 15px;
    }
}

/* ===========================
    Correction curseur GravityForms
    - Supprime le panneau interdit
=========================== */

/* S'assure que le wrapper et tous les enfants autorisent les clics */
.gform_wrapper,
.gform_wrapper * {
    cursor: auto !important;
    pointer-events: auto !important;
}

/* Curseur pour tous les champs texte, email, tel, date et textarea */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="date"],
.gform_wrapper textarea {
    cursor: text !important;
}

/* Curseur pour les cases à cocher, boutons radio et listes déroulantes */
.gform_wrapper input[type="checkbox"],
.gform_wrapper input[type="radio"],
.gform_wrapper select {
    cursor: pointer !important;
}