/* home.css — page d'accueil InnovaCSE */

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

/* ── MENU (réutilise stylecontent) ── */
header { background: #1a1a2e; }
nav { max-width: 1200px; margin: 0 auto; padding: 0 2em; display: flex; justify-content: space-between; align-items: center; min-height: 60px; }
nav .logo a { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2em; letter-spacing: 1px; }
nav .logo a:hover { color: #f39200; }
.nav-menu { list-style: none; display: flex; margin: 0; padding: 0; align-items: center; gap: 0.3em; }
.nav-menu > li > a { color: rgba(255,255,255,0.85); text-decoration: none; padding: 0.5em 0.7em; font-size: 0.9em; display: block; border-radius: 6px; transition: color 0.2s, background 0.2s; }
.nav-menu > li > a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-cta > a { background: #f39200 !important; color: #fff !important; border-radius: 20px; font-weight: 600; }
.nav-cta > a:hover { background: #d97f00 !important; }
.nav-login > a { border: 1px solid rgba(255,255,255,0.3) !important; border-radius: 20px; color: rgba(255,255,255,0.85) !important; }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #1a1a2e; list-style: none; padding: 0.5em 0; min-width: 220px; border-top: 2px solid #f39200; border-radius: 0 0 8px 8px; z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.dropdown-menu li a { padding: 0.6em 1.2em; display: block; color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.88em; }
.dropdown-menu li a:hover { color: #f39200; }
.dropdown:hover .dropdown-menu { display: block; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }

/* ── UTILITAIRES ── */
.h-badge {
    display: inline-block;
    background: rgba(243,146,0,0.12);
    color: #f39200;
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 1.2em;
}

.h-tag {
    display: inline-block;
    background: #f39200;
    color: #fff;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 0.8em;
}

.h-tag-dark { background: #1a1a2e; }

/* ── HERO ── */
.h-hero {
    background-color: #1a1a2e;
    background-size: cover;
    background-position: center;
    min-height: 44vh;
    display: flex;
    align-items: center;
    padding: 3em 2em;
    position: relative;
    overflow: hidden;
}

.h-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(20, 18, 40, 0.72);
}

.h-hero-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.h-hero h1 {
    font-size: clamp(2.2em, 5vw, 3.6em);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 0.6em 0;
    letter-spacing: -0.5px;
}

.h-hero p {
    font-size: 1.15em;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 2em;
}

.h-cta-group {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.h-btn-main {
    background: #f39200;
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95em;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    display: inline-block;
}

.h-btn-main:hover { background: #d97f00; transform: translateY(-1px); }

.h-btn-ghost {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.95em;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: border-color 0.2s, color 0.2s;
}

.h-btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

.h-btn-lg { padding: 18px 44px; font-size: 1.05em; }

.h-link {
    color: #f39200;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: opacity 0.2s;
}

.h-link:hover { opacity: 0.75; }

/* ── PRODUITS ── */
.h-product {
    padding: 6em 2em;
    background: #fff;
}

.h-product-alt {
    background: #f8f9fb;
}

.h-product-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5em;
    align-items: center;
}

.h-product-inner-rev { direction: rtl; }
.h-product-inner-rev > * { direction: ltr; }

.h-product-text h2 {
    font-size: 2.4em;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0.2em 0 0.4em 0;
    letter-spacing: -0.5px;
}

.h-product-sub {
    font-size: 1.05em;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.8em;
}

.h-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 2em 0;
}

.h-checklist li {
    padding: 0.55em 0;
    padding-left: 1.8em;
    position: relative;
    color: #333;
    font-size: 0.95em;
    border-bottom: 1px solid #f0f0f0;
}

.h-checklist li:last-child { border-bottom: none; }

.h-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #f39200;
    font-weight: 700;
}

.h-product-visual img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.h-product-icon-block {
    background: linear-gradient(135deg, #1a1a2e, #2d2b55);
    border-radius: 20px;
    padding: 4em 2em;
    text-align: center;
    color: #fff;
}

.h-product-icon-block i {
    font-size: 5em;
    color: #f39200;
    display: block;
    margin-bottom: 0.4em;
}

.h-product-icon-block p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9em;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

/* ── VIDÉO ── */
.h-video {
    padding: 5em 2em;
    background: #1a1a2e;
    text-align: center;
}

.h-video-inner {
    max-width: 900px;
    margin: 0 auto;
}

.h-video h2 {
    font-size: 2em;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.4em 0;
}

.h-video p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 2em;
    font-size: 1em;
}

.h-video-frame {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.h-video-frame iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* ── CONTENU SEO / FAQ ── */
.h-content {
    padding: 5em 2em;
    background: #fff;
}

.h-content-inner {
    max-width: 780px;
    margin: 0 auto;
}

.h-content h2 {
    font-size: 1.8em;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 1.5em 0;
    text-align: center;
}

/* Accordion FAQ */
.h-faq { margin-bottom: 3em; }

.h-faq details {
    border-bottom: 1px solid #eee;
}

.h-faq details:first-child { border-top: 1px solid #eee; }

.h-faq summary {
    padding: 1.2em 0;
    font-size: 1em;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.h-faq summary::-webkit-details-marker { display: none; }

.h-faq summary::after {
    content: '+';
    font-size: 1.4em;
    color: #f39200;
    font-weight: 300;
    transition: transform 0.2s;
}

.h-faq details[open] summary::after { transform: rotate(45deg); }

.h-faq details p {
    padding: 0 0 1.2em 0;
    margin: 0;
    color: #555;
    line-height: 1.75;
    font-size: 0.95em;
}

.h-faq details p + p { padding-top: 0; }

.h-faq details a {
    color: #f39200;
    text-decoration: none;
    font-weight: 600;
}

/* Liens SEO */
.h-seo-links h3 {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    font-weight: 600;
    margin-bottom: 1em;
}

.h-seo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.h-seo-grid a {
    color: #555;
    text-decoration: none;
    font-size: 0.88em;
    border: 1px solid #e0e0e0;
    padding: 6px 14px;
    border-radius: 20px;
    transition: border-color 0.2s, color 0.2s;
}

.h-seo-grid a:hover { border-color: #f39200; color: #f39200; }

/* ── CTA FINAL ── */
.h-final-cta {
    padding: 6em 2em;
    text-align: center;
    background: #f8f9fb;
}

.h-final-cta-inner { max-width: 600px; margin: 0 auto; }

.h-final-cta h2 {
    font-size: 2.2em;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 0.4em 0;
    letter-spacing: -0.5px;
}

.h-final-cta p {
    color: #888;
    margin-bottom: 2em;
    font-size: 0.95em;
}

/* ── FOOTER ── */
footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 2em;
    font-size: 0.88em;
}

footer a { color: #f39200; text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .h-product-inner { grid-template-columns: 1fr; gap: 2.5em; }
    .h-product-inner-rev { direction: ltr; }
    .h-hero { min-height: auto; padding: 4em 1.5em; }
    .nav-toggle { display: flex; }
    .nav-menu { display: none; flex-direction: column; width: 100%; gap: 0; }
    .nav-menu.is-open { display: flex; }
    .nav-menu > li { width: 100%; }
    .nav-menu > li > a { border-bottom: 1px solid rgba(255,255,255,0.06); padding: 0.9em 1em; border-radius: 0; }
    .dropdown-menu { position: static; display: none; background: rgba(255,255,255,0.04); box-shadow: none; border-radius: 0; }
    .dropdown.is-open .dropdown-menu { display: block; }
    nav { flex-wrap: wrap; }
}

@media (max-width: 600px) {
    .h-hero h1 { font-size: 2em; }
    .h-product-text h2 { font-size: 1.8em; }
    .h-final-cta h2 { font-size: 1.6em; }
    .h-cta-group { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ── Blog public (blog.php, blog-article.php) — même ADN que l’accueil ── */
.h-hero--article {
    min-height: 38vh;
    padding: 2.5em 1.5em 3em;
}

.h-hero-article-lead {
    font-size: 1.05em;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
    max-width: 640px;
    margin: 0 auto;
}

.blog-article-shell,
.blog-list-shell {
    text-align: left;
}

.blog-article-meta {
    font-size: 0.9em;
    color: #667085;
    margin: 0 0 1.25em;
}

.blog-article-meta-sep {
    margin: 0 0.35em;
}

.blog-excerpt-card,
.blog-attachment-card {
    background: #f8f9fb;
    border: 1px solid #e8edf5;
    border-radius: 12px;
    padding: 1.1em 1.25em;
    margin-bottom: 1.5em;
}

.blog-excerpt-card p:last-child,
.blog-attachment-card p:last-child {
    margin-bottom: 0;
}

.blog-attachment-card {
    margin-top: 1.5em;
}

.h-blog-block-title {
    font-size: 1.5em;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 1em;
    text-align: left;
    letter-spacing: -0.3px;
}

.h-blog-block-title--center {
    text-align: center;
    width: 100%;
}

.blog-faq-block {
    margin-top: 2.5em;
    padding-top: 0.5em;
}

.h-faq--boxed {
    border: 1px solid #e8edf5;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
}

.h-seo-label {
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    font-weight: 600;
    margin-bottom: 0.85em;
}

.h-seo-grid-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.h-seo-grid-pills a {
    color: #555;
    text-decoration: none;
    font-size: 0.88em;
    border: 1px solid #e0e0e0;
    padding: 6px 14px;
    border-radius: 20px;
    transition: border-color 0.2s, color 0.2s;
}

.h-seo-grid-pills a:hover {
    border-color: #f39200;
    color: #f39200;
}

.blog-related-links {
    margin-top: 2.5em;
    padding-top: 1.5em;
    border-top: 1px solid #e8edf5;
}

.blog-empty-hint {
    color: #667085;
    text-align: center;
    margin: 1em 0 2em;
}

.blog-list-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.blog-card-item {
    border: 1px solid #e8edf5;
    border-radius: 14px;
    background: #fff;
    padding: 1.25em 1.35em;
    box-shadow: 0 2px 8px rgba(14, 30, 37, 0.06);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.blog-card-item:hover {
    border-color: rgba(243, 146, 0, 0.35);
    box-shadow: 0 6px 20px rgba(14, 30, 37, 0.08);
}

.blog-card-item h3 {
    margin: 0 0 0.5em;
    font-size: 1.08rem;
    line-height: 1.35;
}

.blog-card-item h3 a {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 700;
}

.blog-card-item h3 a:hover {
    color: #f39200;
}

.blog-card-meta {
    font-size: 0.84rem;
    color: #667085;
    margin-bottom: 0.65em;
}

.blog-card-readmore {
    font-weight: 600;
}

/* Corps d’article (HTML TinyMCE) */
.blog-article-body {
    line-height: 1.78;
    color: #3d4454;
    font-size: 1.02rem;
}

.blog-article-body p {
    margin-bottom: 1em;
}

.blog-article-body h2,
.blog-article-body h3,
.blog-article-body h4 {
    color: #1a1a2e;
    margin-top: 1.65em;
    margin-bottom: 0.55em;
    text-align: left;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.blog-article-body h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.65rem);
    padding-bottom: 0.35em;
    border-bottom: 2px solid rgba(243, 146, 0, 0.35);
}

.blog-article-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    border-bottom: none;
    margin-top: 1.35em;
}

.blog-article-body a {
    color: #f39200;
    font-weight: 600;
    text-decoration: none;
}

.blog-article-body a:hover {
    text-decoration: underline;
}

.blog-article-body img,
.blog-article-body video {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.blog-article-body iframe {
    max-width: 100%;
    border: 0;
    border-radius: 10px;
}

.blog-article-body ul,
.blog-article-body ol {
    margin: 0 0 1em 1.2em;
    padding-left: 0.25em;
}

.blog-article-body blockquote {
    margin: 1.25em 0;
    padding: 1em 1.15em 1em 1.25em;
    border-left: 4px solid #f39200;
    background: linear-gradient(90deg, rgba(243, 146, 0, 0.08), rgba(248, 249, 251, 0.95));
    border-radius: 0 10px 10px 0;
    font-size: 0.98rem;
}

.h-btn-ghost--on-light {
    color: #1a1a2e;
    border-color: rgba(26, 26, 46, 0.22);
}

.h-btn-ghost--on-light:hover {
    color: #1a1a2e;
    border-color: #1a1a2e;
    background: rgba(26, 26, 46, 0.05);
}
