/* ==============================
   Variables de couleurs
   ============================== */
:root {
    --bleu: #428e9b;     /* Bleu Canard */
    --orange: #e58338;   /* Orange Citrouille */
    --fond: #f6f6f6;     /* Fond général */
    --texte: #222;       /* Couleur texte */
}

/* ==============================
   Reset léger
   ============================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==============================
   Body
   ============================== */
body {
    background: var(--fond);
    font-family: Arial, sans-serif;
    color: var(--texte);
    padding: 15px;
}

/* ==============================
   Cadre principal (Conteneur de tout le site)
   ============================== */
.main-frame {
    width: 95%;
    max-width: 1400px; /* Largeur maximale */
    margin: auto;
    border: 2px solid var(--orange); /* Bordure orange extérieure */
    background: white;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Important : garde le header/footer à l'intérieur des bordures */
}

/* ==============================
   Header (3 colonnes) - Intégré au cadre
   ============================== */
.header-grid {
    display: flex;
    background: var(--bleu); /* Fond bleu */
    color: white; /* Texte blanc */
    align-items: center;
    padding: 15px;
    width: 100%;
    border-bottom: 2px solid var(--orange);
}

.header-col {
    display: flex;
    align-items: center;
}

.logo-col { width: 15%; justify-content: flex-start; }
.title-col { width: 70%; justify-content: center; }
.button-col { width: 15%; justify-content: flex-end; }

.logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.button-col button {
    padding: 8px 15px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* ==============================
   Grille de Menu (Blocs encadrés)
   ============================== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 blocs par ligne */
    gap: 20px;
    padding: 20px;
}

.menu-bloc {
    border: 1px solid var(--orange); /* Bordure très fine orange */
    background: white;
    border-radius: 4px;
    overflow: hidden;
}

.menu-bloc-header {
    background: var(--bleu); /* Fond bleu */
    color: white; /* Titre blanc */
    padding: 10px 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-bloc-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-bloc-body a {
    text-decoration: none;
    color: var(--texte);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
    transition: 0.2s;
}

.menu-bloc-body a i {
    color: var(--orange); /* Icônes des liens en orange */
    width: 20px;
    text-align: center;
}

.menu-bloc-body a:hover {
    color: var(--orange);
    transform: translateX(5px);
}

/* ==============================
   Structure de contenu (80% / 20%)
   ============================== */
.content-grid {
    display: flex;
    gap: 0;
    min-height: 600px;
}

.main-content {
    width: 80%; /* 80% pour le menu et le contenu */
    padding: 10px;
}

.side-info {
    width: 20%; /* 20% pour les alertes/infos */
    border-left: 1px solid var(--orange);
    padding: 10px;
    background: #fdfdfd;
}

/* ==============================
   Footer - Intégré au cadre
   ============================== */
.footer {
    background: var(--bleu);
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 0.9em;
    border-top: 2px solid var(--orange); /* Bordure orange supérieure */
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 900px) {
    .content-grid, .menu-grid, .header-grid {
        flex-direction: column;
    }
    .main-content, .side-info, .menu-grid {
        width: 100%;
        grid-template-columns: 1fr;
    }
}

.title-col {
    display: flex;
    flex-direction: column; /* Superpose H1 et H2 */
    justify-content: center;
    align-items: center;     /* Centre horizontalement le bloc dans la colonne */
    text-align: center;      /* Centre le texte à l'intérieur des balises */
    gap: 5px;                /* Espace entre les deux lignes */
    width: 100%;             /* Pour occuper tout l'espace de la colonne */
}

.title-col h1 {
    font-size: 1.6em;
    margin: 0;
    color: white; /* Ou votre couleur de texte header */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.title-col h2 {
    font-size: 1.2em;
    margin: 0;
    color: white; /* Ou votre couleur de texte header */
    font-weight: normal;
    font-style: italic;
}
/* ===== FORMULAIRES PRO ===== */

.form-grid {
    display: grid;
    grid-template-columns: 180px 1fr 180px 1fr;
    gap: 10px 15px;
    align-items: center;
}

.form-grid label {
    font-size: 0.9em;
    font-weight: bold;
}

.form-grid input,
.form-grid textarea {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
}

.form-full {
    grid-column: 1 / span 4;
}

.btn-save {
    background: var(--orange);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}
/* ==============================
   PARAMETRES BOUTIQUE (cards)
============================== */

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

.card {
    background: #fff;
    border: 1px solid var(--orange);
    border-radius: 6px;
    padding: 18px;
}

.card h3 {
    margin-top: 0;
    color: var(--bleu);
    border-bottom: 2px solid var(--orange);
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.row {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 10px;
    margin-bottom: 8px;
    align-items: center;
}

.row label {
    font-size: 0.9em;
    font-weight: bold;
}

.row input,
.row select {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.logo-img {
    max-height: 80px;
    display: block;
    margin-bottom: 10px;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 6px;
    margin: 15px;
    text-align: center;
}
/* TABLES ADMIN */
.data-table{
    width:100%;
    border-collapse:collapse;
    margin-top:15px;
    font-size:14px;
}

.data-table th{
    background:var(--bleu);
    color:white;
    padding:10px;
    text-align:left;
}

.data-table td{
    border:1px solid #ddd;
    padding:8px;
}

/* Inputs compacts */
.input-small{
    padding:6px;
    border:1px solid #ccc;
    border-radius:4px;
    width:100%;
    font-size:13px;
}

/* Ligne ajout TVA */
.ligne-ajout{
    background:#fff8f3;
}
