/*
Theme Name:   Divi Child - LiveScorePadel
Theme URI:    https://casa.livescorepadel.com
Description:  Child theme Divi pour casa.livescorepadel.com. Toutes les personnalisations (CSS, PHP, hooks) vont ici, jamais dans le thème parent.
Author:       Valentin
Author URI:   https://casa.livescorepadel.com
Template:     Divi
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  divi-child-lsp
*/

/* =========================================================
   CSS personnalisé du child theme
   Ajoutez vos overlays ici plutôt que dans Divi > Options.
   ========================================================= */


/* ============================================================
   Pages « Connexion » (9040) & « Gestion des tournois » (9041)
   Plein écran : contenu pleine largeur, centré vertical + horizontal,
   en-tête et pied de page Divi conservés. Marche connecté ou non.
   ============================================================ */

/* 1. Container Divi en pleine largeur (au lieu de 1080px) */
body.page-id-9040 #main-content .container,
body.page-id-9041 #main-content .container {
    width: 100%;
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}
body.page-id-9040 #content-area #left-area,
body.page-id-9041 #content-area #left-area {
    width: 100%;
    padding-bottom: 0;
}

/* 2. Zone de contenu = hauteur de l'écran sous l'en-tête (~90px),
      bloc centré verticalement + horizontalement */
body.page-id-9040 #main-content,
body.page-id-9041 #main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 90px);
    box-sizing: border-box;
}

/* 3. Largeurs internes des blocs du plugin */
body.page-id-9040 .padel-login {
    width: 100%;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}
body.page-id-9041 .padel-app,
body.page-id-9041 .padel-admin {
    width: 100%;
}

/* 4. Ajustement mobile (en-tête plus court) */
@media (max-width: 980px) {
    body.page-id-9040 #main-content,
    body.page-id-9041 #main-content {
        min-height: calc(100vh - 80px);
    }
}

/* Masque le titre de page Divi sur la page Connexion (redondant avec la carte de login) */
body.page-id-9040 .entry-title {
	display: none;
}
