/*
Theme Name: HMC Theme
Theme URI: https://ipsumedia.com
Description: Thème enfant pour Divi
Author: IPSUMEDIA
Author URI: https://ipsumedia.com
Template: Divi
Version: 1.0.7
Text Domain: hmc-theme
*/
/* 
** CENTRER DU CONTENU VERTICALEMENT 
** Voir tuto : https://www.divi-community.fr/snippets-divi/centrer-du-contenu-verticalement
*/
.wp-block-file__embed {
    position: relative !important;
}

.wp-block-file a {
    display: none !important;
}

body header {
    display: block !important;
}

.not-found-title {
    text-align: center;
}

#wp-bottom-menu,
.raphQR,
#bouton-pmr,
#bouton-retour {
    display: none;
}

@media only screen and (max-width: 981px) {
    .pdfjs-viewer {
        height: 79vh !important;
    }

}

@media only screen and (min-width: 1079px) and (max-width: 1082px) {
    html {
        touch-action: pan-y !important;
    }

    body * {
        -moz-user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    .pdfjs-viewer {
        height: 1445px !important;
    }

    .lien-interdit {
        pointer-events: none;
    }

    .raphQR,
    #bouton-retour,
    #bouton-pmr {
        display: block;
    }

    .pas-borne,
    #webpushr-prompt-wrapper,
    #pwaforwp-add-to-home-click,
    #_prompt_overlay,
    #onesignal-slidedown-container,
    .et_pb_files_container {
        display: none !important;
    }

    #logo-ipsumedia {
        pointer-events: none;
        cursor: default;
    }
}

/* =========================================================

   MOBILE

   Zoom et défilement autorisés sur toute la page

   ========================================================= */

@media only screen and (max-width: 981px) {

    html,

    body {

        touch-action: auto !important;

    }

    .pdf-js-viewer {

        height: 79vh !important;

        max-height: 79vh !important;

        touch-action: auto !important;

        overflow-x: hidden;

        overflow-y: auto;

    }

    .pdf-js-viewer canvas {

        touch-action: auto !important;

    }

}

/* ==========================================================
   Modèle Totem Tactile Volx (1080x1920) - Surcouche Divi
   ========================================================== */

/* Verrouiller le navigateur en plein écran pour la partie application, mais autoriser le scroll pour le footer Divi */
body.volx-app-body {
    background-color: #000;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column; /* Permet d'empiler .app-container et le footer Divi */
    align-items: center;    /* Centre l'application sur grand écran */
    width: 100vw;
    min-height: 100vh;      /* min-height au lieu de height */
    overflow-x: hidden;
    overflow-y: auto;       /* Autorise le défilement vertical vers le footer */
}

/* Le conteneur strict 1080x1920 */
body.volx-app-body .app-container {
    width: 1080px !important;
    height: 1920px !important;
    max-width: none !important;
    background-color: #faf6f0;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
	margin-top: -80px;
}

/* --- EN-TÊTE (38% de la hauteur totale) --- */
body.volx-app-body .hero-header {
    height: 730px;
    /* Environ 38% de 1920px */
    position: relative;
    padding: 60px 50px;
    /* Marges beaucoup plus grandes */
}

body.volx-app-body .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

body.volx-app-body .brand {
    display: flex;
    align-items: center;
    gap: 30px;
    /* Espace logo/texte agrandi */
    padding: 20px 30px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1))
            drop-shadow(0 0 15px rgba(255, 255, 255, 1))
            drop-shadow(0 0 15px rgba(255, 255, 255, 1));
}

body.volx-app-body .logo {
    width: 140px;
    height: auto;
}

body.volx-app-body .subtitle {
    font-size: 1.5rem;
    /* ~24px */
    font-weight: 700;
    color: #0f3c88;
    display: block;
    letter-spacing: 2px;
}

body.volx-app-body .title {
    font-size: 5rem;
    /* ~80px */
    font-weight: 800;
    color: #0f3c88;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* Bouton Notification */
body.volx-app-body .notification-btn {
    background: white;
    border: none;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    position: relative;
}

body.volx-app-body .notification-btn svg {
    width: 50px;
    height: 50px;
}

body.volx-app-body .notification-badge {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 24px;
    height: 24px;
    background-color: #d32f2f;
    border-radius: 50%;
    border: 4px solid white;
}

/* --- ZONE DE CONTENU PRINCIPALE --- */
body.volx-app-body .content-board {
    background-color: #faf6f0;
    border-radius: 60px 60px 0 0;
    /* Courbe beaucoup plus prononcée */
    margin-top: -80px;
    /* Chevauchement de l'image */
   padding: 60px 50px 40px 50px;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Grille pour les 12 cartes */
body.volx-app-body .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    /* Espacement de 30px entre les cartes */
   height: auto;
	align-content: start;
}

/* --- CARTES / BOUTONS TACTILES --- */
body.volx-app-body .service-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 0 40px;
    /* Padding latéral interne */
    display: flex;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: background-color 0.1s, transform 0.1s;
    /* La hauteur est gérée automatiquement par la grille pour remplir l'espace, 
       mais on s'assure qu'elles fassent environ 140px de haut */
    min-height: 140px;
}

/* Effet au toucher (remplace le :hover qui ne marche pas sur tactile) */
body.volx-app-body .service-card:active {
    background-color: #f0f0f0;
    transform: scale(0.98);
}

body.volx-app-body .card-icon {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    color: #0f3c88;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.volx-app-body .card-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
    /* Trait plus fin pour correspondre à la maquette */
}

body.volx-app-body .card-divider {
    width: 2px;
    height: 70px;
    background-color: #0f3c88;
    margin: 0 40px;
    opacity: 0.3;
}

body.volx-app-body .card-text {
    color: #0f3c88;
    font-size: 1.8rem;
    /* ~28px - 32px */
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    padding: 0;
}

/* --- BOUTON ACCESSIBILITÉ --- */
body.volx-app-body .fab-accessibility {
    position: absolute;
    bottom: 80px;
    left: 50px;
    background-color: #d32f2f;
    border: 6px solid #ffca28;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

body.volx-app-body .fab-accessibility svg {
    width: 55px;
    height: 55px;
}

body.volx-app-body .fab-accessibility:active {
    transform: scale(0.95);
}

/* --- PIED DE PAGE --- */
body.volx-app-body .site-footer {
    background-color: #1e3a6a;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    z-index: 10;
}
/* ==========================================================
   ADAPTATION RESPONSIVE (GRILLE 2 COLONNES FLUIDE)
   ========================================================== */
@media only screen and (max-width: 1079px) {
    /* On force le conteneur à prendre 100% de l'écran mobile, pas 1080px */
    body.volx-app-body, 
    body.volx-app-body .app-container {
        width: 100% !important;
        height: auto !important;
        min-height: 100vh;
        overflow-x: hidden;
        display: block;
    }

    /* Ajustement de l'en-tête */
    body.volx-app-body .hero-header {
        height: 35vh; 
        min-height: 220px;
        padding: 20px 15px;
    }
    
    body.volx-app-body .brand {
        padding: 0;
        gap: 10px;
    }
    
    body.volx-app-body .logo {
        width: 60px; /* Logo réduit pour mobile */
    }
    
    body.volx-app-body .subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    body.volx-app-body .title {
        font-size: 2.5rem;
    }

    /* Cloche de notification (si vous avez intégré le HTML) */
    body.volx-app-body .notification-btn {
        width: 45px;
        height: 45px;
    }
    body.volx-app-body .notification-btn svg {
        width: 22px;
        height: 22px;
    }
    body.volx-app-body .notification-badge {
        width: 12px;
        height: 12px;
        top: 3px;
        right: 3px;
    }

    /* Zone de contenu principale */
    body.volx-app-body .content-board {
        margin-top: -30px; 
        padding: 25px 15px 90px 15px;
        border-radius: 25px 25px 0 0;
    }

    /* CONSERVATION STRICTE DES 2 COLONNES */
    body.volx-app-body .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; 
    }

    /* Redimensionnement du contenu des cartes pour ne pas casser la grille */
    body.volx-app-body .service-card {
        padding: 8px 10px;
        min-height: 75px;
        border-radius: 12px;
    }
    
    body.volx-app-body .card-icon {
        width: 28px;
        height: 28px;
    }
    
    body.volx-app-body .card-divider {
        margin: 0 8px;
        height: 35px;
    }
    
    body.volx-app-body .card-text {
        font-size: clamp(0.7rem, 2.8vw, 1rem); /* Le texte s'adapte à la largeur de l'écran */
        line-height: 1.2;
        word-break: break-word; /* Évite que les mots longs ne sortent de la carte */
    }

    /* Bouton Accessibilité */
    body.volx-app-body .fab-accessibility {
        width: 55px;
        height: 55px;
        bottom: 15px;
        left: 15px;
        border-width: 3px;
    }
    body.volx-app-body .fab-accessibility svg {
        width: 28px;
        height: 28px;
    }
    
    /* Pied de page */
    body.volx-app-body .site-footer {
        font-size: 0.8rem;
        padding: 15px;
    }
}
	/* Rend la carte "Récépissés" pleine largeur sur la grille */
.services-grid .card-pleine-largeur {
    grid-column: 1 / -1; /* Si votre conteneur utilise display: grid; */
    width: 100%;
}

/* Optionnel : si la grille est en flexbox plutôt qu'en grid */
@supports not (display: grid) {
    .services-grid .card-pleine-largeur {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
}