/* ============================================
   Feuille de style commune des outils
   Rappelle le site WordPress principal
   ============================================ */
:root {
    --eg-header-h: 64px;
    --eg-bordeaux: #800000;
    --eg-bg: #f5f5f5;
    --eg-text: #1d252c;
    --eg-muted: #5a6570;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--eg-bg);
    color: var(--eg-text);
}

/* Barre de menu façon site principal - fond noir */
.outils-header {
    position: relative;
    height: var(--eg-header-h);
    z-index: 1000;
    background: #111111;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
}
.outils-header .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.outils-header .logo-link img {
    height: 48px;
    width: auto;
    display: block;
}
.outils-header .logo-link:hover img { opacity: 0.85; }
.outils-header .outil-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}
.outils-header .spacer { flex: 1; }
.outils-header .back-link {
    font-size: 0.85rem;
    color: #cccccc;
    text-decoration: none;
    white-space: nowrap;
}
.outils-header .back-link:hover { color: #ffffff; text-decoration: underline; }

/* Contenu */
.outils-wrap {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 18px;
}
.outils-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    padding: 28px;
}
.outils-card h1 {
    margin: 0 0 8px;
    font-size: 24px;
    color: var(--eg-bordeaux);
}
.outils-card .intro {
    color: var(--eg-muted);
    margin: 0 0 24px;
    line-height: 1.45;
}

/* Formulaires */
.outils-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.outils-full { grid-column: 1 / -1; }
label { display: block; font-weight: 700; margin: 0 0 7px; }
input, select, textarea, button {
    padding: 11px 12px;
    border: 1px solid #cbd3da;
    border-radius: 8px;
    font: inherit;
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid #6aa7d8;
    border-color: #6aa7d8;
}
.outils-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e3e7eb;
}
.outils-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}
button, .btn {
    width: auto;
    cursor: pointer;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    background: var(--eg-bordeaux);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}
button.secondary, .btn.secondary {
    background: #e9eef2;
    color: #26323b;
}
button:hover, .btn:hover { filter: brightness(1.1); }
.hint { font-size: 12px; color: #66727d; margin-top: 6px; }
.status { margin-top: 12px; font-size: 13px; color: #52606b; }
.hidden { display: none; }

/* Largeur < 1200px : pas de carte, fond blanc pleine largeur */
@media (max-width: 1200px) {
    body { background: #ffffff; }
    .outils-wrap {
        max-width: 100%;
        margin: 0;
        padding: 20px 16px;
    }
    .outils-card {
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }
}

@media (max-width: 700px) {
    .outils-grid { grid-template-columns: 1fr; }
    .outils-full { grid-column: auto; }
    .outils-header .outil-title { font-size: 1rem; }
    .outils-header .back-link span { display: none; }
}
