/* ============================================================
   STYLE PAGE AGENDA (identique à liens.php)
   ============================================================ */

body.agenda {
	margin: 0;
    font-family: Arial, sans-serif;
    background-image: url('https://images.unsplash.com/photo-1529692236671-f1f6cf9683ba?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body.agenda .overlay {
	background: rgba(255, 248, 220, 0.85);
    min-height: 100vh;
    padding: 40px 20px;
}

body.agenda .container {
	max-width: 700px;
    margin: auto;
    background: rgba(200, 255, 200, 0.85);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #8fbc8f;
    text-align: center;
}

body.agenda .btn-retour {
	display: block;
    width: 200px;
    margin: 30px auto 0 auto;
    text-align: center;
    padding: 12px;
    background-color: #0066cc;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

body.agenda .btn-retour:hover {
	background-color: #004c99;
}

body.agenda h1,
body.agenda h2,
body.agenda h3 {
    color: #000;
    text-shadow: none;
}

/* ============================================================
   STYLE PAGE ACCUEIL (fond par défaut)
   ============================================================ */

body.accueil {
	margin: 0;
    font-family: Arial, sans-serif;
    background-image: url('https://images.unsplash.com/photo-1503264116251-35a269479413?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 20px;
}

body.accueil.matin {
	background-image: url('https://images.unsplash.com/photo-1503264116251-35a269479413?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body.accueil.jour {
	background-image: url('https://images.unsplash.com/photo-1503264116251-35a269479413?auto=format&fit=crop&w=1600&q=80');
}

body.accueil.soir {
	background-image: url('../images/fonds/soir.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body.accueil.nuit {
	background-image: url('../images/fonds/nuit.jpg');
}

.diagramme-jour {
	width: 220px;
    margin: 20px auto;
}

/* ============================================================
   STYLE PAGE LISTE DES DIAGRAMMES
   ============================================================ */

.table-diag td.miniature {
	width: 130px;
    height: 130px;
    padding: 6px;
    vertical-align: middle;
}

.mini-fmjd {
	width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d6e8d6;
    padding: 4px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Correction du sélecteur cassé */
body.liste-diagrammes {
	margin: 0;
    font-family: Arial, sans-serif;
    background: #e8f3e8;
    background-attachment: fixed;
    padding: 20px;
}

body.liste-diagrammes h2 {
	text-align: center;
    margin-bottom: 20px;
}

.liste-container {
	max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.table-diag {
	width: auto;
    margin: 0 auto;
    background: #c8e0c8;
    border: 2px solid #6b8f6b;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.table-diag th,
.table-diag td {
	border: 1px solid #ccc;
    padding: 6px;
    text-align: center;
}

.miniature {
	width: 120px;
}

.damier-mini {
	width: 100px;
    height: 100px;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(10, 1fr);
}

/* ============================================================
   MENUS HORIZONTAUX
   ============================================================ */

.menu-bar {
	display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0 20px 0;
}

.menu-section {
	text-align: center;
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 5px;
    font-size: 1.1em;
    color: #fff;
}

.btn-green {
	background: #2e8b57;
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #1f6b40;
}

.btn-green:hover {
	background: #256f46;
}

.btn-orange {
	background: #ff8c00;
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #cc7000;
}

.btn-orange:hover {
	background: #cc7000;
}

.btn-yellow {
	background: #e6c300;
    color: black;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #b89e00;
}

.btn-yellow:hover {
	background: #b89e00;
}

header h1 {
	text-align: center;
    margin: 10px 0 20px 0;
    color: white;
}

/* ============================================================
   PAGE OUTILS
   ============================================================ */

body.outils {
	margin: 0;
    font-family: Arial, sans-serif;
    background-image: url("../images/fonds/bois.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.outils .overlay {
	background: rgba(255, 248, 220, 0.85);
    min-height: 100vh;
    padding: 40px 20px;
}

body.outils h1 {
	text-align: center;
    margin-bottom: 25px;
    color: #000;
}

body.outils .container {
	max-width: 700px;
    margin: auto;
    background: rgba(200, 255, 200, 0.85);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #8fbc8f;
}

.lien-icone {
	width: 36px;
    height: 36px;
    object-fit: contain;
    margin-left: 10px;
    vertical-align: middle;
}

/* ============================================================
   BLOCS CENTRÉS
   ============================================================ */

.page-centree {
	max-width: 900px;
    margin: 0 auto;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}

.page-centree h2,
.page-centree h3,
.page-centree p {
	text-align: center;
}

.page-centree form {
	display: flex;
    flex-direction: column;
    align-items: center;
}

.form-block {
	width: 100%;
    max-width: 420px;
    margin-bottom: 12px;
}

#damier {
	margin: 25px auto;
}

h2 {
	text-align: center;
}

.btn-retour {
    display: inline-block;
    padding: 6px 12px;
    background: #444;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    margin: 0 auto 20px auto;
}


.retour-haut:hover {
    background-color: #004c99; /* bleu foncé */
}

/* ============================================================
   CENTRAGE DU CONTENU (diagramme_saisie)
   ============================================================ */

.contenu-centre {
	max-width: 900px;
    margin: 80px auto 40px;
}
.btn-retour {
    display: inline-block;
    padding: 10px 15px;
    background-color: #0066cc;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.btn-retour:hover {
    background-color: #004c99;
}
.btn-action {
    display: inline-block;
    padding: 6px 12px;
    margin: 4px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    color: white;
    transition: background 0.3s ease;
}

.btn-voir {
    background-color: #0077cc;
}

.btn-solution {
    background-color: #cc7700;
}

.btn-voir:hover {
    background-color: #005fa3;
}

.btn-solution:hover {
    background-color: #aa5f00;
}
.damier-mini {
    aspect-ratio: 1 / 1;
    width: 100px;
    height: auto;
}
.damier-mini .square,
.damier-mini .jeton {
    aspect-ratio: 1 / 1;
    object-fit: contain;
}
/* Uniformisation des icônes outils */
.lien-icone {
    width: 60px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

/* Alignement propre texte + icône */
ul li {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-solution {
    display: inline-block !important;
    background-color: #cc7700 !important;
    color: white !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.damier-centre {
    display: flex;
    justify-content: center;
}
.damier {
    aspect-ratio: 1 / 1;
}
/* ============================================================
   MENU DES MOIS - AGENDA
   ============================================================ */

.mois-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
}

.btn-mois {
    display: inline-block;
    padding: 10px 14px;
    background: #4682b4;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #315f82;
    transition: background 0.2s ease;
}

.btn-mois:hover {
    background: #315f82;
}

.btn-mois.avec-rdv {
    background: #2e8b57;
    border-color: #1f6b40;
}

.btn-mois.avec-rdv:hover {
    background: #256f46;
}
/* ============================================================
   AGENDA : STYLE DES ÉVÉNEMENTS
   ============================================================ */

.rdv {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0fff0;
    border: 1px solid #8fbc8f;
    padding: 10px;
    margin: 8px 0;
    border-radius: 6px;
}

.rdv-texte {
    flex: 1;
    text-align: left;
    font-size: 1em;
    color: #000;
}

.rdv-actions {
    display: flex;
    gap: 10px;
}
/* Bandeau moderne */
.hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
}
.hero-logo {
    max-width: 260px;
    margin-bottom: 15px;
}
.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
}

/* Diagramme du jour */
.diagram-section {
    text-align: center;
    margin: 40px 0;
}
.diagram-img {
    max-width: 240px;
    border-radius: 10px;
    margin: 15px 0;
}
.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background: #ffb400;
    color: black;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

/* Cards modernes */
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}
.card {
    background: white;
    width: 200px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s;
}
.card:hover {
    transform: translateY(-5px);
}
.btn-card {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: #2c7be5;
    color: white;
    border-radius: 6px;
    text-decoration: none;
}
