/* ===== Thème moderne pour jfmartin90.fr ===== */
/* S'applique par-dessus bootstrap + styles.css existants */

:root {
    --bg-main: #020617;
    --bg-surface: #0f172a;
    --bg-surface-soft: #111827;
    --border-subtle: #1f2937;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --accent: #3b82f6;
    --accent-soft: #1d4ed8;
    --accent-light: #60a5fa;
    --danger: #ef4444;
    --radius-lg: 20px;
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.6);
    --shadow-sm: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* === Reset léger === */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* === Fond et texte global === */
body {
    background: radial-gradient(circle at top left, #1f2937 0, #020617 55%, #000 100%) !important;
    color: var(--text-main) !important;
    font-family: "Raleway", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

/* Sections plus compactes par défaut */
section {
    padding-top: 30px;
    padding-bottom: 40px;
}

/* Neutralisation des fonds blancs de l'ancien thème */
#hero-banner,
#services,
#about,
#portfolio,
#pricing,
#business-stats,
#our-team,
#testimonial,
#contact-us,
#contact,
#bottom,
footer {
    background: transparent !important;
}

/* ===== Navbar ===== */
#header {
    background: transparent;
}

.navbar.navbar-default.navbar-fixed-top {
    background: rgba(15, 23, 42, 0.96);
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
}

/* Brand jfmartin90 en haut à gauche */
.navbar-brand.brand-jfm {
    text-transform: lowercase;
    font-weight: 600;
    font-size: 16px;
    padding-top: 18px;
}

.navbar-brand.brand-jfm .brand-main {
    color: var(--text-muted);
}

.navbar-brand.brand-jfm .brand-suffix {
    color: var(--accent);
}

.navbar-default .navbar-nav > li > a {
    color: var(--text-main) !important;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 12px;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    background-color: transparent !important;
    color: var(--accent-light) !important;
}

.navbar-toggle .icon-bar {
    background-color: var(--text-main);
}

/* Dropdown du menu "Projets" */
.navbar-nav > li > .dropdown-menu {
    background: var(--bg-surface);
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    margin-top: 10px;
}

.navbar-nav > li > .dropdown-menu > li > a {
    color: var(--text-main);
    padding: 10px 18px;
    font-size: 13px;
}

.navbar-nav > li > .dropdown-menu > li > a:hover {
    background: var(--bg-surface-soft);
    color: var(--accent-light);
}

/* ===== Titres & textes ===== */
h1, h2, h3, h4, h5, h6,
.section-header h2 {
    color: var(--text-main) !important;
    font-weight: 700;
}

.section-header {
    text-align: center;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 30px;
    margin-bottom: 5px;
}

.section-header p {
    color: var(--text-muted) !important;
    max-width: 640px;
    margin: 0 auto;
}

p, li {
    color: var(--text-muted);
    font-size: 15px;
}

a {
    color: var(--accent);
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover, a:focus {
    color: var(--accent-light);
    text-decoration: none;
}

/* ===== Cartes / boîtes de contenu ===== */
.service-box,
.feature-wrap,
.panel,
.pricing-table,
.team-member,
.testimonial,
.contact-form,
.FeatLayout,
.FfeatLayout,
.section-inner,
.card-like,
.block-content {
    background: rgba(15, 23, 42, 0.98);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    padding: 20px 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.service-box:hover,
.feature-wrap:hover,
.panel:hover,
.pricing-table:hover,
.team-member:hover,
.card-like:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-box .pull-left i,
.feature-wrap i {
    font-size: 32px;
    color: var(--accent-light);
}

/* ===== Page d'accueil ===== */
body#home #hero-banner {
    padding-top: 70px;      /* espace sous la navbar */
    padding-bottom: 0;      /* plus de marge en bas */
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
}

body#home #hero-banner .banner-inner {
    padding-top: 10px;
    padding-bottom: 0;
}

body#home #hero-banner h2,
body#home #hero-banner p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

body#home #hero-banner h2 {
    margin-top: 5px;
    margin-bottom: 10px;
}

body#home #hero-banner p {
    max-width: 700px;
    margin-bottom: 0;   /* on enlève la marge à la fin du paragraphe */
}

/* Image de présentation */
body#home .imgpresent {
    max-width: 260px;
    border-radius: 999px;
    border: 3px solid rgba(148, 163, 184, 0.4);
    box-shadow: var(--shadow-lg);
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Section "Quelques informations sur moi" */
body#home #services {
    padding-top: 0;     /* on colle la section au hero */
    padding-bottom: 25px;
    margin-top: 0;
}

body#home #services .section-header {
    margin: 0 auto 8px auto;   /* plus de margin-top */
    padding-top: 0;
}

body#home #services .section-header h2 {
    margin-top: 0;
    padding-top: 0;
}

/* ===== Boutons ===== */
.btn,
.btn.btn-primary,
.btn.btn-lg {
    background: var(--accent);
    border: none;
    color: var(--text-main);
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn:hover,
.btn:focus,
.btn.btn-primary:hover,
.btn.btn-primary:focus {
    background: var(--accent-soft);
    color: #fff;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

/* ===== Formulaires ===== */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
.form-control {
    background: var(--bg-surface-soft);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-size: 14px;
}

input::placeholder,
textarea::placeholder {
    color: #6b7280;
}

.text-danger,
.error {
    color: var(--danger) !important;
}

/* ===== Footer ===== */
footer {
    background: transparent !important;
    border-top: 1px solid rgba(31, 41, 55, 0.8);
    padding: 20px 0;
    margin-top: 25px;
}

footer p {
    color: #6b7280;
    font-size: 13px;
}

/* ===== Utilitaires ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

/* Wrapper "centre écran" */
.page-wrapper-center {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}

.page-card {
    text-align: center;
    padding: 32px 36px;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow-lg);
}

/* Loader circulaire */
.loader {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 5px solid #1f2937;
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#footer a i {
    font-size: 14px;
    margin: 0 2px;
}

#footer a {
    color: #e5e7eb;
}

#footer a:hover {
    color: var(--accent-light);
}

/* Décale légèrement la photo vers le bas sur la page Projets */
@media (min-width: 992px) {
    .rack-lowered {
        margin-top: 20px !important; /* 10–15px selon ton goût */
    }
}

/* Dropdown PROJETS : style des titres et des éléments */
.navbar-nav > li > .dropdown-menu {
    padding-top: 6px;
    padding-bottom: 8px;
}

/* Titres BTS / Licence */
.navbar-nav > li > .dropdown-menu .dropdown-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #6b7280;
    padding: 4px 18px 2px 18px;
    margin-top: 2px;
}

/* Lien de projet dans le menu */
.navbar-nav > li > .dropdown-menu > li > a {
    padding: 6px 18px;
    font-size: 13px;
}

/* Séparateur entre BTS et Licence, plus discret et "rentré" */
.navbar-nav > li > .dropdown-menu .divider {
    margin: 6px 12px;
    height: 0;
    border-top: 1px solid rgba(55, 65, 81, 0.7);
    background: transparent;
}

/* Carte pour les liens vers les PDF de projet */
.pdf-card {
    max-width: 900px;
    margin: 10px auto 40px auto;
}

.pdf-card-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
}

.pdf-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pdf-card-icon i {
    font-size: 26px;
    color: var(--accent-light);
}

.pdf-card-content h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
}

.pdf-card-content p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.pdf-card-actions .btn {
    margin-right: 8px;
    margin-top: 4px;
}

/* Aperçu intégré des PDF de projet */
.pdf-preview {
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.pdf-preview-inner {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #111827;
    height: 520px; /* hauteur de l'aperçu, à ajuster si besoin */
}

/* iframe ou embed dans la preview */
.pdf-preview-inner iframe,
.pdf-preview-inner embed {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
