/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #FB4C06;
}

a:hover {
    color: #FF8000;
}

/* Header */
header {
    background-color: #FF8000; /* Orange clair */
    padding: 0.5rem 0;
    border-bottom: 4px solid #FB4C06;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header .banner {
    background-color: #FB4C06; /* Orange foncé */
    color: white;	
    font-size: 2rem;
    font-weight: bold;
    padding: 1rem 0;
    border-radius: 8px 8px 0 0;
    margin: 0 2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	text-align: center; /* 🔥 Centrage du texte */
}

/* Responsive : masquer la pub sur mobile */
.container {
    display: grid;
    grid-template-columns: 240px 1fr 300px; /* sidebar gauche | contenu | info droite */
    gap: 2rem;
    padding: 2rem;
    min-height: 600px;
}

/* Responsive : masquer la barre d'info sur petits écrans */
@media (max-width: 900px) {
    .container {
        grid-template-columns: 240px 1fr;
    }

    .sidebar-right {
        display: none;
    }
}

@media (max-width: 600px) {
    .container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .sidebar {
        order: -1;
    }
}

/* Left Sidebar */
.sidebar {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #FB4C06;
}

.sidebar ul {
    list-style-type: none;
}

.sidebar li {
    margin-bottom: 0.7rem;
}

.sidebar a {
    color: #333;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: #FF8000;
}

/* === BARRE LATÉRALE DROITE (info) === */
.sidebar-right {
    background-color: #fffde7; /* white; */
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    align-self: start;
	/*min-height: 200px !important;*/
	/*top: 2rem;*/
	/*position: sticky;*/
    font-size: 0.95rem;
    color: #333;
    border: 2px dashed red; /* 1px solid #eee;*/
}

.sidebar-right h3 {
    margin: 0 0 1rem 0;
    color: #FB4C06;
    font-size: 1.2rem;
}

.sidebar-right p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.sidebar-right img {
    border-radius: 8px;
}

.btn-tip {
    display: block;
    background: #FF8000;
    color: white;
    text-align: center;
    padding: 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-tip:hover {
    background: #FB4C06;
}

/* === GRILLE DES BOUTONS - PAGE D'ACCUEIL === */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
	row-gap: 0.25rem;    /* ✅ Forcé verticalement */
	column-gap: 1.5rem; /* ✅ Comme avant horizontalement */
    /*gap: 2.25rem 1.5rem !important; /* 🔽 Moins d'espace entre les lignes, assez entre colonnes */
	background: transparent;
    width: 100%;
    max-width: 1200px;
    margin: 0; auto;
    padding: 0.5rem 1rem; /* Ajusté pour respirer sans trop écarter */
}

.calculator-card {
    /* Cellule de la grille — rien de spécial à ajouter */
}

.calculator-card button {
    /* Pleine largeur de la colonne */
    width: 100%;
    
    /* 🔝 Hauteur augmentée pour un meilleur remplissage vertical */
    height: 12rem; /* 64px – idéal pour lecture et clic */
    
    /* Couleurs */
    background-color: #FF8000; /* Orange clair */
    color: white; /* Texte en blanc */
    border: none;
    border-radius: 8px;
    
    /* Police */
    font-size: 1.3rem;
    font-weight: bold;
    
    /* Centrage parfait du texte */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Transition douce */
    transition: background-color 0.3s ease, transform 0.2s ease;
	
	/* Correction*/
	margin: 0;
	padding: 0;
}

/* Hover : orange foncé */
.calculator-card button:hover {
    background-color: #FB4C06;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive : tablette (2 colonnes) */
@media (max-width: 900px) {
    .calculator-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem 1.5rem; /* Même espacement vertical serré */
    }
}

/* Responsive : mobile (1 colonne) */
@media (max-width: 600px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }

    .calculator-card button {
        height: 3.8rem;   /* Un peu plus petit sur mobile */
        font-size: 1.05rem;
    }
}

/* Footer - Piued de page */
footer {
    background-color: #333;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-top: 4px solid #FF8000;
    font-size: 0.95rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section.left {
    text-align: left;
}

.footer-section.center {
    text-align: center;
}

.footer-section.right {
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 1.2rem;
}

.footer-section.right i {
    color: #FF8000;
    transition: color 0.3s ease;
}

.footer-section.right i:hover {
    color: #FB4C06;
}