/* ==================================
   CORRECTIF AFFICHAGE FORMULAIRE DIVI
   ================================== */

.et_pb_contact_form input,
.et_pb_contact_form textarea,
.et_pb_contact_form select,
.et_pb_contact_form button,
.et_pb_contact_form label {
    all: unset;
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.et_pb_contact_form input,
.et_pb_contact_form textarea,
.et_pb_contact_form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.et_pb_contact_form input:focus,
.et_pb_contact_form textarea:focus,
.et_pb_contact_form select:focus {
    border-color: #667eea;
    outline: none;
}

.et_pb_contact_form button,
.et_pb_contact_form .et_pb_button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.et_pb_contact_form button:hover,
.et_pb_contact_form .et_pb_button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.et_pb_contact_form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}
/**
 * Styles personnalisés pour les CV
 * @package VCoding_Emergences
 * @since 1.0
 */

/* Wrapper du bouton de téléchargement */
.cv-download-wrapper {
    margin: 20px 0;
    text-align: center;
}

/* Bouton de téléchargement CV */
.cv-download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    padding: 15px 40px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border: none !important;
}

/* Hover du bouton */
.cv-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
}

/* Icône optionnelle avant le texte */
.cv-download-btn::before {
    content: "⬇ ";
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .cv-download-btn {
        padding: 12px 30px !important;
        font-size: 14px !important;
    }
}

/* ==================================
   STYLES POUR LES ARCHIVES CV
   ================================== */

/* En-tête de l'archive */
.cv-archive-header,
.cv-taxonomy-header {
    margin-bottom: 40px;
    text-align: center;
}

.cv-archive-header .page-title,
.cv-taxonomy-header .page-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.taxonomy-description {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Menu des catégories CV */
.cv-categories-menu {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.cv-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.cv-categories-list li {
    margin: 0;
}

.cv-categories-list a {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.cv-categories-list a:hover,
.cv-categories-list .current-cat a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.cv-categories-list .count {
    font-size: 0.85em;
    opacity: 0.8;
    margin-left: 5px;
}

/* Grille des CV */
.cv-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Carte individuelle CV */
.cv-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Miniature */
.cv-thumbnail {
    overflow: hidden;
    height: 250px;
}

.cv-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cv-card:hover .cv-thumbnail img {
    transform: scale(1.05);
}

/* Contenu de la carte */
.cv-content {
    padding: 25px;
}

.cv-title {
    font-size: 1.5em;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.cv-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cv-title a:hover {
    color: #667eea;
}

.cv-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
}

/* Les petits plus */
.cv-petits-plus {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.cv-petits-plus h3 {
    font-size: 1.1em;
    margin: 0 0 10px 0;
    color: #667eea;
}

.petits-plus-content {
    color: #555;
    font-size: 0.9em;
    line-height: 1.5;
}

.petits-plus-content ul,
.petits-plus-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.petits-plus-content li {
    margin-bottom: 5px;
}

/* Catégories en bas de carte */
.cv-categories {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.85em;
}

.cv-cat-label {
    font-weight: 600;
    color: #666;
    margin-right: 5px;
}

.cv-categories a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cv-categories a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Message "Aucun CV trouvé" */
.no-cv-found {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.no-cv-found h2 {
    color: #333;
    margin-bottom: 15px;
}

.no-cv-found p {
    color: #666;
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cv-archive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cv-archive-header .page-title,
    .cv-taxonomy-header .page-title {
        font-size: 2em;
    }
    
    .cv-categories-list {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cv-categories-list a {
        text-align: center;
    }
    
    .cv-thumbnail {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .cv-content {
        padding: 20px;
    }
    
    .cv-title {
        font-size: 1.3em;
    }
}

/* ==================================
   STYLES POUR PAGE SINGLE CV
   ================================== */

/* Article principal */
.cv-single {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* En-tête */
.cv-single .entry-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.cv-single .entry-title {
    font-size: 2.5em;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

/* Catégories en haut */
.cv-single-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.cv-category-tag {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cv-category-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

/* Miniature */
.cv-single-thumbnail {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.cv-single-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Contenu principal */
.cv-single .entry-content {
    margin-bottom: 40px;
    font-size: 1.05em;
    line-height: 1.8;
    color: #444;
}

.cv-single .entry-content p {
    margin-bottom: 1.5em;
}

.cv-single .entry-content h2,
.cv-single .entry-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: #333;
}

.cv-single .entry-content ul,
.cv-single .entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 30px;
}

.cv-single .entry-content li {
    margin-bottom: 0.5em;
}

/* Les petits plus - Version single */
.cv-single-petits-plus {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    border-left: 5px solid #667eea;
}

.cv-single-petits-plus h2 {
    font-size: 1.8em;
    color: #667eea;
    margin: 0 0 20px 0;
}

.cv-single-petits-plus .petits-plus-content {
    color: #555;
    line-height: 1.7;
}

/* Pied de page */
.cv-single .entry-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

/* Navigation entre CV */
.cv-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.cv-navigation .nav-previous,
.cv-navigation .nav-next {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cv-navigation .nav-previous:hover,
.cv-navigation .nav-next:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.cv-navigation a {
    text-decoration: none;
    display: block;
}

.cv-navigation .nav-label {
    display: block;
    font-size: 0.85em;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 8px;
}

.cv-navigation .nav-title {
    display: block;
    color: #333;
    font-weight: 500;
}

.cv-navigation .nav-next {
    text-align: right;
}

/* Bouton retour */
.back-to-archive {
    text-align: center;
    margin-top: 20px;
}

.back-to-archive .et_pb_button {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    border: 2px solid #667eea;
    color: #667eea !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-to-archive .et_pb_button:hover {
    background: #667eea;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* Responsive - Single CV */
@media (max-width: 768px) {
    .cv-single {
        padding: 30px 20px;
    }
    
    .cv-single .entry-title {
        font-size: 2em;
    }
    
    .cv-navigation {
        grid-template-columns: 1fr;
    }
    
    .cv-navigation .nav-next {
        text-align: left;
    }
    
    .cv-single-petits-plus {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .cv-single {
        padding: 20px 15px;
    }
    
    .cv-single .entry-title {
        font-size: 1.6em;
    }
    
    .cv-single-petits-plus h2 {
        font-size: 1.4em;
    }
}

/* ==================================
   STYLES POUR SHORTCODE MENU CATÉGORIES
   ================================== */

/* Menu liste verticale */
.cv-categories-list-vertical {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.cv-categories-list-vertical ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cv-categories-list-vertical li {
    border-bottom: 1px solid #e0e0e0;
}

.cv-categories-list-vertical li:last-child {
    border-bottom: none;
}

.cv-categories-list-vertical a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cv-categories-list-vertical a:hover,
.cv-categories-list-vertical li.active a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.cv-categories-list-vertical .cat-name {
    font-weight: 500;
}

.cv-categories-list-vertical .cat-count {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.cv-categories-list-vertical li.active .cat-count {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Menu style boutons */
.cv-categories-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cv-cat-button {
    display: inline-block;
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cv-cat-button:hover,
.cv-cat-button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.cv-cat-button .count {
    font-size: 0.85em;
    opacity: 0.8;
    margin-left: 6px;
}

/* Menu style dropdown */
.cv-categories-dropdown {
    width: 100%;
    max-width: 400px;
}

.cv-cat-select {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23333' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.cv-cat-select:hover,
.cv-cat-select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Responsive - Shortcode menu */
@media (max-width: 768px) {
    .cv-categories-buttons {
        flex-direction: column;
    }
    
    .cv-cat-button {
        text-align: center;
    }
    
    .cv-categories-dropdown {
        max-width: 100%;
    }
}

/* ==================================
   COMPATIBILITÉ DIVI
   ================================== */

/* Assure que les shortcodes s'intègrent bien dans les modules DIVI */
.et_pb_module .cv-categories-menu,
.et_pb_text .cv-categories-menu {
    margin: 20px 0;
}

/* Boutons DIVI + CV compatibles */
.et_pb_button_module_wrapper .cv-download-btn {
    font-family: inherit;
}

/* Respecte les couleurs du thème DIVI si définies */
.et_pb_section .cv-categories-list a {
    transition: all 0.3s ease;
}

/* Grid DIVI - Adaptation des cartes CV */
.et_pb_row .cv-card {
    margin-bottom: 30px;
}

/* Module Code DIVI - Shortcodes */
.et_pb_code .cv-categories-menu {
    background: transparent;
    padding: 0;
}

/* Amélioration visuelle dans le builder DIVI */
.et-fb-modules-list .cv-categories-menu {
    pointer-events: none; /* Évite les clics accidentels dans le builder */
}

/* Surcharge des marges DIVI par défaut pour les CV */
.et_pb_section .cv-archive-container,
.et_pb_section .cv-taxonomy-container {
    max-width: 100%;
    padding: 0;
}

/* S'assure que les styles CV ne sont pas écrasés par DIVI */
.cv-categories-menu * {
    box-sizing: border-box;
}

/* Dropdown dans DIVI */
.et_pb_module .cv-categories-dropdown {
    z-index: 999;
}

/* ==================================
   GRILLE DE CV (SHORTCODE)
   ================================== */

.cv-list-container.cv-grid {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

.cv-grid.cv-grid-col-1 {
    grid-template-columns: 1fr;
}

.cv-grid.cv-grid-col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cv-grid.cv-grid-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cv-grid.cv-grid-col-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive grille */
@media (max-width: 980px) {
    .cv-grid.cv-grid-col-3,
    .cv-grid.cv-grid-col-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cv-grid.cv-grid-col-2,
    .cv-grid.cv-grid-col-3,
    .cv-grid.cv-grid-col-4 {
        grid-template-columns: 1fr;
    }
}

/* Message aucun résultat */
.cv-no-results {
    text-align: center;
    padding: 40px;
    font-size: 1.1em;
    color: #666;
}

/* Pagination */
.cv-pagination {
    text-align: center;
    margin: 40px 0;
}

.cv-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cv-pagination .page-numbers:hover,
.cv-pagination .page-numbers.current {
    background: #667eea;
    color: #fff;
}

