/*
 Theme Name: Divi Child
 Theme URI: https://intranet.carol-voyages.com
 Description: Thème enfant Divi pour l’intranet Carol' Voyages
 Author: Carol' Voyages
 Author URI: https://carol-voyages.com
 Template: Divi
 Version: 1.0
*/

/* ------------------------------
   CSS PERSONNALISE
------------------------------ */

.cv-disable-frontend .cv-frontend-only {
    display: none !important;
}

 /* Barre de recherche */
.et_pb_search input.et_pb_searchsubmit {
    min-height: 100% !important;
    background-color: #ffffff;
    cursor: pointer;
}

 /* CSS Prenom utilisateur */
.cv-prenom {
    font-size: 26px;
    font-weight: 600;
    color: #000;
}


/* ------------------------------
   MENU SIDEBAR ET MISE EN PAGE GENERALE
------------------------------ */

/* Sidebar fixe de l'intranet */
.cv-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;          /* largeur de ton menu */
    height: 100vh;         /* pleine hauteur de l'écran */
    background: #ffffff;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    overflow-y: auto;
	background-repeat: no-repeat !important;
}

/* Pour que la ligne à l'intérieur prenne toute la largeur de la sidebar */
.cv-sidebar .et_pb_row {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 24px;
    padding-right: 24px;
}

/* Un peu d'air en haut et en bas du menu */
.cv-sidebar .et_pb_column {
    padding-top: 24px;
    padding-bottom: 24px;
}

/* Sidebar: prend toute la hauteur écran et peut défiler */
.cv-sidebar{
  height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  /* cacher la scrollbar (Firefox) */
  scrollbar-width: none;
  /* cacher la scrollbar (Edge legacy) */
  -ms-overflow-style: none;
}

/* cacher la scrollbar (Chrome/Safari) */
.cv-sidebar::-webkit-scrollbar{
  width: 0;
  height: 0;
}

/* Déplacement du contenu principal à droite du menu */
@media (min-width: 980px) {
  /* Déplacement du contenu principal à droite du menu */
  .cv-content {
    margin-left: 220px; /* même largeur que la sidebar */
    padding: 20px;      /* espace interne pour respirer */
  }
}

@media (max-width: 979px) {
  .cv-content {
    margin-left: 0;
    padding: 16px;
  }
}


 /* ICONES EN TETE*/
.cv-top-icons {
    text-align: right;
    white-space: nowrap;
}

.cv-top-icons a {
    display: inline-block !important;
    margin-left: 12px;
    text-decoration: none;
    font-size: 18px;
}

 /* WIDGET ANNIVERSAIRE */
.cv-anniv-widget {
    margin-top: 10px;
}

.cv-anniv-item {
    text-align: center;
    margin-bottom: 20px;
}

/* Photo par défaut */
.cv-anniv-photo {
    width: 80px;
    height: 80px;
    margin: 0 auto 8px auto;
    border-radius: 50%;
    overflow: hidden;
}

.cv-anniv-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Texte */
.cv-anniv-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3px;
}

.cv-anniv-date {
    font-size: 13px;
    color: #777;
}

/* Titres centrés */
.cv-anniv-widget h3 {
    text-align: center;
    margin-bottom: 20px;
	position: relative;
    padding-bottom: 8px;
}

.cv-anniv-widget h3:not(:first-of-type)::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: #ddd;
    margin: 20px 0;
}

/* Force les colonnes du tableau de bord à avoir la même hauteur */ 
/* DESKTOP seulement */
@media (min-width: 980px){
  .cv-dashboard-row{
    display: flex !important;
    align-items: stretch !important;
  }

  .cv-dashboard-row .et_pb_column{
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
  }

  .cv-dashboard-row .et_pb_module{
    margin-bottom: 20px;
    border-radius: 16px;
  }
}

/* MOBILE / TABLETTE : on revient au comportement Divi normal */
@media (max-width: 979px){
  .cv-dashboard-row{
    display: block !important;
  }

  .cv-dashboard-row .et_pb_column{
    display: block !important;
    width: 100% !important;
    float: none !important;
    min-height: auto !important;
  }

  .cv-dashboard-row .et_pb_module{
    margin-bottom: 20px;
  }
}


/* Bandeau dégradé en haut de toutes les pages */
.cv-top-gradient {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px; /* épaisseur du bandeau */
    background: linear-gradient(90deg, #ffb200, #ff5c00);
    z-index: 999999;
    pointer-events: none;
}

/* Supprimer complètement le header et la top bar sur TOUT le site */
#main-header,
#top-header {
    display: none !important;
}

/* Supprimer l'espace prévu pour le header sur TOUT le site */
#page-container {
    padding-top: 0 !important;
}

/* Taille du titre des articles dans le bloc "Derniers articles" (sidebar) */
.wp-block-latest-posts__list .wp-block-latest-posts__post-title,
.wp-block-latest-posts__list li a {
    font-size: 18px !important;   /* ajuste 16 / 18 / 20 selon ce que tu veux */
    line-height: 1.3em !important;
    font-weight: 600 !important;
}

/* Fil d'ariane page Articles */
.cv-breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    color: #000000;
}

.cv-breadcrumb a {
    color: #000000;
    text-decoration: none;
}

.cv-breadcrumb a:hover {
    text-decoration: underline;
}

/* Marge à gauche pour les pages de résultats de recherche */
.search #main-content {
    margin-left: 260px !important; /* adapte la valeur à la largeur de ta sidebar */
}


/* ------------------------------
   ANNIVERSAIRE DU JOUR (1 seule personne → zoom)
------------------------------ */
.cv-anniv-today .cv-anniv-item {
    transform: scale(1.15);
    margin-bottom: 25px;
}

.cv-anniv-today .cv-anniv-photo {
    width: 100px;
    height: 100px;
}

/* ------------------------------
   ANNIVERSAIRES À VENIR (grille)
------------------------------ */
.cv-anniv-soon {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.cv-anniv-soon .cv-anniv-item {
    width: 120px;
}

.cv-anniv-soon .cv-anniv-photo {
    width: 60px;
    height: 60px;
}

.cv-anniv-soon .cv-anniv-name {
    font-size: 14px;
}

.cv-anniv-soon .cv-anniv-date {
    font-size: 12px;
}

/* ------------------------------
   ANNIVERSAIRE DU JOUR (2 personnes ou plus)
   → responsive par défaut
------------------------------ */
.cv-anniv-today {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}



/* ------------------------------
   WIDGET CITATIONS OU ANECDOTES 
------------------------------ */
/* ----- CONTENEUR GÉNÉRAL DU WIDGET ----- */
.cv-quote-widget {
    padding: 15px 20px;
    text-align: left;
    border-left: 4px solid #0156ff; /* bleu doux par défaut */
}

/* ----- TITRE DU WIDGET ----- */
.cv-quote-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #595959;
}

/* ----- TEXTE PRINCIPAL ----- */
.cv-quote-text {
    font-size: 14px;
    line-height: 1.4;
    color: #595959;
}

/* Style spécifique pour les citations → un peu plus élégant */
.cv-type-citation .cv-quote-widget {
    border-left-color: #0156ff;
}

/* Style spécifique pour les anecdotes / fun facts */
.cv-type-fact .cv-quote-widget {
    border-left-color: #0156ff; 
}

/* Sécurisation : si du  apparaît, pas de marge parasite */
.cv-quote-widget p {
    margin: 0 !important;
}


/* ------------------------------
   CALENDRIER INTRANET
------------------------------ */

/* Carte du calendrier */
.cvcal-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 16px 18px 14px;
    max-width: 320px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    font-family: inherit;
}

/* En-tête (mois + flèches) */
.cvcal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cvcal-month-label {
    font-size: 18px;
    font-weight: 700;
}

.cvcal-nav button {
    border: none;
    background: #f1f1f1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ligne des jours */
.cvcal-weekdays {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.cvcal-weekdays span {
    width: calc(100% / 7);
    text-align: center;
}

/* Grille des jours */
.cvcal-grid {
    display: flex;
    flex-wrap: wrap;
}

/* Cellule de jour */
.cvcal-day {
    width: calc(100% / 7);
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.cvcal-day.empty {
    pointer-events: none;
}

/* Numéro du jour */
.cvcal-day-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

/* Aujourd’hui : rond bleu */
.cvcal-day-number.cvcal-today {
    background: #2667ff;
    color: #ffffff;
}

/* Points événements */
.cvcal-dots {
    margin-top: 3px;
    display: flex;
    gap: 3px;
}

.cvcal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.cvcal-dot-public {
    background: #2667ff; /* bleu = public */
}

.cvcal-dot-memo {
    background: #ff4b4b; /* rouge = mémo */
}

.cvcal-day-has-event {
    cursor: pointer;
}

/* ========= MODAL / POPUP ========= */

.cvcal-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999; /* au-dessus de tout */
}

.cvcal-modal.is-open {
    display: block;
}

.cvcal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.cvcal-modal-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 14px;
    max-width: 420px;
    width: 90%;
    padding: 16px 18px 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.cvcal-modal-close {
    position: absolute;
    right: 10px;
    top: 8px;
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}

/* Contenu de la popup */
.cvcal-modal-body h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.cvcal-modal-event {
    padding: 8px 0;
    border-top: 1px solid #eee;
}

.cvcal-modal-event:first-of-type {
    border-top: none;
}

.cvcal-modal-event h5 {
    font-size: 14px;
    margin: 2px 0 3px;
}

.cvcal-modal-event p {
    font-size: 13px;
    margin: 0;
}

/* Tags type d’événement */
.cvcal-modal-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    margin-bottom: 3px;
}

.cvcal-modal-tag.public {
    background: rgba(38,103,255,0.1);
    color: #2667ff;
}

.cvcal-modal-tag.memo {
    background: rgba(255,75,75,0.1);
    color: #ff4b4b;
}

/* Quand la popup est ouverte : on bloque juste le scroll */
body.cvcal-modal-open {
    overflow: hidden;
}


/* ------------------------------
   MESSAGERIE INSTANTANEE
------------------------------ */
#cv-chat-window {
  backdrop-filter: blur(4px);
}

/* Header */ 
#cv-chat-header { 
	background: #0156ff; 
	color: #fff; 
	padding: 12px 16px; 
	font-size: 16px; 
	font-weight: 600; 
	display: flex; 
	justify-content: space-between; 
	align-items: center; 
}

/* Suppression des éléments inutiles dans la page Messagerie (iframe) */
.cv-chat-page #main-header,
.cv-chat-page #top-header,
.cv-chat-page #colophon,
.cv-chat-page .et-fixed-header,
.cv-chat-page #wpadminbar,
.cv-chat-page .cv-sidebar,
.cv-chat-page #cv-chat-bubble,
.cv-chat-page header,
.cv-chat-page footer {
    display: none !important;
}

/* Nettoyage du spacing interne */
.cv-chat-page #et-main-area,
.cv-chat-page #main-content,
.cv-chat-page .entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

.cv-chat-page body {
    padding-top: 0 !important;
}

/* Réduction du titre "Nouvelle conversation" dans Better Messages */
.cv-chat-page .bp-messages-wrap #bm-new-thread-title {
    font-size: 12px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
}


#cv-chat-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999999;
}

/* Badge non lus */
#cv-chat-unread {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #e63946; /* rouge */
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  display: none; /* caché quand 0 */
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}


#cv-chat-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999999;
}

#cv-chat-btn {
  background: #0156ff;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform .15s ease;
}

#cv-chat-btn:hover {
  transform: scale(1.08);
}

#cv-chat-window {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 380px;
  height: 520px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  z-index: 999998;
  display: none;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .25s ease, transform .25s ease;
}

#cv-chat-window.cv-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Force Better Messages à s'afficher en mode "mobile / compact" dans l'iframe */
#cv-chat-iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

/* Cacher la barre noire (header Better Messages desktop) dans l'iframe */
#cv-chat-window iframe {
    /* Désactive le header interne via zoom + overflow */
    transform: scale(0.92);
    transform-origin: top center;
}

/* Correction d'affichage de l'UI dans l'iframe */
#cv-chat-window {
    overflow: hidden !important;
}

#cv-chat-loading {
    position: absolute;
    top: 48px; /* sous le header */
    left: 0;
    width: 100%;
    height: calc(100% - 48px);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 15px;
    font-weight: 600;
}

/* ------------------------------
   WIDGET MEMBRES EN LIGNE
------------------------------ */
/* Shortcode Membres en ligne */
/* WRAPPER GLOBAL */
.cv-online-wrapper {
    text-align: left;
}

/* TITRE PERSONNALISABLE */
.cv-online-title {
    font-size: 18px;
    color: #000;
	font-family: Inter;
	font-weight:600;
	padding-bottom:10px;
}

/* GRILLE D'AVATARS */
.cv-online-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, auto));
    gap: 5px;
	justify-content:start;
}

/* ITEM */
.cv-member-item {
    position: relative;
}

/* AVATAR */
.cv-member-avatar img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform .2s ease;
}

.cv-member-avatar img:hover {
    transform: scale(1.08);
}

/* NOM EN HOVER */
.cv-member-hover-name {
    position: absolute;
	bottom: -5px;
    left: 25%;
    transform: translateX(-50%);
    background: #0156ff;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 10;
}

/* Affichage du nom au survol */
.cv-member-item:hover .cv-member-hover-name {
    opacity: 1;
}

/* Optionnel : cacher un éventuel nom BuddyPress résiduel */
.cv-member-name,
.cv-member-name a {
    display: none !important;
}


/* ------------------------------
   PAGE ACTUALITES
------------------------------ */
#cv-news-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#cv-news-filters button {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #dcdcdc;
    background: #f8f8f8;
    cursor: pointer;
    font-size: 14px;
    transition: all .2s ease;
}

#cv-news-filters button:hover {
    background: #e8e8e8;
}

#cv-news-filters button.active {
    background: #0156ff;
    color: #fff;
    border-color: #0156ff;
}


/* ------------------------------
   WIDGET METEO
------------------------------ */
.weatherwidget-io {
    pointer-events: none !important;
}


/* ------------------------------
   PAGE DOCUMENTS
------------------------------ */
/* Style des cartes documents */
.download-entry {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Image du document */
.download-entry .doc-thumb {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
}

/* Titre du document */
.download-entry h2 {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 0 6px 0;
    color: #2c3e50;
}

/* Bouton Télécharger */
.download-entry .download-buttons a {
    background: #2c3e50 !important;
    color: #fff !important;
    padding: 8px 14px !important;
    border-radius: 8px;
    text-decoration: none !important;
}


/* ------------------------------
   PAGE PROFIL UTILISATEUR
------------------------------ */
/* --- Wrapper général --- */
@media (min-width: 980px) {

.cv-profil-wrapper {
    display: flex;
    gap: 50px;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

/* === STRUCTURE FLEX STABLE POUR LE PROFIL === */
.cv-profil-wrapper {
    display: flex;
    align-items: flex-start; 
    gap: 25px;
}

/* Colonne gauche */
.cv-profil-left {
    flex: 0 0 38%;      /* équivaut à width:30% mais beaucoup plus stable */
    text-align: center;
    border-right: 1px solid #eee;
}

/* Colonne droite */
.cv-profil-right {
    flex: 1;            /* occupe automatiquement tout l’espace restant */
}

.cv-profil-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #f5f5f5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cv-profil-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
}

.cv-profil-role {
    font-size: 14px;
    color: #888;
    margin-bottom: 40px;
}

.cv-profil-subtitle {
    font-size: 16px;
    font-weight: 600;
    margin-top: 30px;
    color: #444;
}

.cv-profil-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cv-profil-section {
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}
}

/* --- Champs ACF --- */
.acf-field input[type="text"],
.acf-field input[type="email"],
.acf-field input[type="date"],
.acf-field textarea,
.acf-field select {
    width: 100%;
    padding: 14px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 10px !important;
    font-size: 16px;
    background: #fafafa;
}

.acf-field {
    margin-bottom: 22px !important;
}

/* --- Bouton enregistrer --- */
.acf-form-submit input[type="submit"] {
    background: #0156ff !important;
    color: white !important;
    border-radius: 10px !important;
    padding: 14px 26px !important;
    font-size: 16px !important;
    font-weight: 600;
    border: none !important;
    cursor: pointer;
    transition: 0.2s;
}

.acf-form-submit input[type="submit"]:hover {
    background: #1749d3 !important;
}

/* Rendre la photo ronde (container ) */
.cv-profil-photo-img {
    width: 140px;
    height: 140px;
    display: block;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden; /* OBLIGATOIRE pour couper l'image */
    border: 4px solid #f5f5f5;
}

/* Forcer l’image interne à remplir le cercle */
.cv-profil-photo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Conteneur du formulaire */
.cv-password-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 20px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    max-width: 350px;
    margin: 20px auto;
}

/* Labels */
.cv-password-box label {
    font-weight: 600;
    color: #555;
    display: block;
    margin-bottom: 6px;
}

.cv-password-wrapper {
    text-align: center;
}

.cv-password-wrapper .cv-password-box {
    margin: 0 auto !important;
}

/* Champs de saisie */
.cv-password-box input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    margin-bottom: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cv-password-box input[type="password"]:focus {
    border-color: #4b63ff;
	box-shadow: 0 0 0 2px rgba(75, 99, 255, 0.2);

}

/* Bouton */
.cv-password-box input[type="submit"],
.cv-password-box button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #0156ff;
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.cv-password-box input[type="submit"]:hover,
.cv-password-box button[type="submit"]:hover {
    background: #3b52e6;
}

.cv-photo-container{
  width:120px;
  height:120px;
  position:relative;
  margin:0 auto;
}

.cv-photo-wrapper{
  width:120px;
  height:120px;
  border-radius:50%;
  overflow:hidden;
  background-color:#f2f2f2;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

/* on garde l'image en fallback mais on l’empêche de créer des “gaps” */
.cv-photo-wrapper .cv-photo-img{
  width:0;
  height:0;
  opacity:0;
  position:absolute;
  left:-9999px;
}

/* bouton */
.cv-photo-btn{
  position:absolute;
  right:0;
  bottom:0;
  width:38px;
  height:38px;
  border-radius:50%;
  background:#0156ff;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 4px 10px rgba(0,0,0,.25);
  border:none;
  font-size:16px;
  line-height:1;
  transform:translate(20%,20%);
}

.cv-photo-btn:hover{
  background:#155a96;
}


/* ------------------------------
   PAGE CREER UN COMPTE
------------------------------ */
#cf-register-form {
    max-width: 420px;
    margin: 0 auto;
}
#cf-register-form .cf-field {
    margin-bottom: 15px;
}
#cf-register-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}
#cf-register-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #CCC;
    border-radius: 5px;
}
#cf-register-form .cf-submit {
    background: #0065a3;
    color: #FFF;
    padding: 12px 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}
#cf-register-form .cf-submit:hover {
    background: #004f82;
}

#cv-news-list article.is-hidden {
  display: none !important;
}

/* ------------------------------
   MISE EN PAGE MOBILE
------------------------------ */
/* Mobile / tablette : empiler les 3 colonnes proprement */
@media (max-width: 979px){
  .cv-home-mobile-row{
    display: block !important;
  }

  .cv-home-mobile-row .et_pb_column{
    width: 100% !important;
    margin-right: 0 !important;
    float: none !important;
  }
}

@media (max-width: 979px){
  .cv-home-mobile-row,
  .cv-home-mobile-row .et_pb_column,
  .cv-home-mobile-row .et_pb_module{
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Menu Mobile */
@media (max-width: 980px) {
  .custom-mobile-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff !important;
    z-index: 99999 !important;
    padding-top: 50px !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }
}

  .custom-mobile-header .et_pb_column {
    display: flex !important;
    align-items: center;
  }

  .custom-mobile-header .et_pb_image img {
    max-height: 50px;
    height: auto;
    width: auto;
  }

@media (max-width: 980px){

  /* Plein écran */
  .et_mobile_menu{
    width: 100vw !important;
    min-height: 100vh !important;
    margin-left: 0 !important;           /* à ajuster si ton conteneur ajoute des marges */
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-top: 50px !important;
  }

  /* Bonus iOS */
  html{ height: -webkit-fill-available; }
  .et_mobile_menu{ min-height: -webkit-fill-available !important; }

    .et_mobile_menu,
  .et_mobile_menu li,
  .et_mobile_menu li a{
    text-align: center !important;
  }
}
