/* ===== ID16 – Internet Développement Charente ===== */

:root {
    --id16-primary:  #333333;
    --id16-secondary:#555555;
    --id16-accent:   #f39c12;
    --id16-dark:     #111111;
    --id16-light:    #f5f5f5;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
body {
    font-family: 'Segoe UI', sans-serif;
    color: #333;
}

/* ---- Topbar ---- */
.topbar {
    background: var(--id16-dark);
    font-size: .85rem;
    color: #fff;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--id16-accent); }

/* ---- Navbar ---- */
.navbar-id16 { background: var(--id16-primary); }
.navbar-id16 .logo { height: 60px; width: auto; }
.navbar-id16 .navbar-brand { font-weight: 800; letter-spacing: 1px; font-size: 1.95rem; }
.navbar-id16 .nav-link {
    font-weight: 500;
    border-radius: 6px;
    padding: .4rem .85rem;
    transition: background .2s;
    color: #fff !important;
}
.navbar-id16 .nav-link:hover,
.navbar-id16 .nav-link.active { background: rgba(255,255,255,.15); }

/* ---- Hero ---- */
.hero {
    background-image: url('img/bg-masthead.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,.88) 0%, rgba(0,0,0,.68) 60%, rgba(0,0,0,.45) 100%);
    z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-tag {
    display: inline-block;
    background: rgba(243,156,18,.2);
    border: 1px solid rgba(243,156,18,.5);
    color: var(--id16-accent);
    font-size: .8rem;
    padding: .35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

/* ---- Offres ---- */
.offre-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0,0,0,.08);
    transition: transform .25s, box-shadow .25s;
    height: 100%;
    overflow: hidden;
}
.offre-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 40px rgba(51,51,51,.18);
}
.offre-card .offre-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--id16-primary), var(--id16-secondary));
    color: white;
}
.offre-card .offre-header .icon-wrap {
    width: 56px; height: 56px;
    background: rgba(255,255,255,.2);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: .75rem;
}
.offre-card.featured .offre-header {
    background: linear-gradient(135deg, #e67e22, var(--id16-accent));
}

/* ---- Étapes ---- */
.etape-item {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 2rem;
}
.etape-num {
    position: absolute;
    left: 0; top: 0;
    width: 42px; height: 42px;
    background: var(--id16-primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(51,51,51,.35);
}
.etape-item::before {
    content: '';
    position: absolute;
    left: 20px; top: 42px;
    width: 2px; height: calc(100% + 10px);
    background: linear-gradient(to bottom, var(--id16-primary), transparent);
}
.etape-item:last-child::before { display: none; }

/* ---- Références ---- */
.ref-card {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
    transition: transform .25s, box-shadow .25s;
    height: 100%;
}
.ref-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(51,51,51,.18);
}
.ref-card .ref-img {
    height: 160px;
    background: linear-gradient(135deg, var(--id16-primary), var(--id16-secondary));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 3rem;
}
.ref-badge {
    font-size: .72rem;
    padding: .25rem .65rem;
    border-radius: 50px;
    background: var(--id16-light);
    color: var(--id16-primary);
    border: 1px solid #ddd;
    font-weight: 600;
}

/* ---- Pourquoi ID16 ---- */
.why-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    background: var(--id16-light);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--id16-primary);
    font-size: 1.2rem;
}

/* ---- Blog ---- */
.blog-card {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,.07);
    transition: transform .25s;
    height: 100%;
}
.blog-card:hover { transform: translateY(-5px); }
.blog-card .blog-img {
    height: 180px;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: white;
}

/* ---- Contact ---- */
.form-control:focus, .form-select:focus {
    border-color: var(--id16-primary);
    box-shadow: 0 0 0 .2rem rgba(51,51,51,.15);
}
.btn-id16 {
    background: linear-gradient(135deg, var(--id16-primary), var(--id16-secondary));
    border: none; color: #fff; font-weight: 700;
    border-radius: 50px; padding: .75rem 2rem;
    transition: transform .2s, box-shadow .2s;
}
.btn-id16:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(51,51,51,.35);
    color: #fff;
}

/* ---- Page header interne ---- */
.page-header {
    background: linear-gradient(135deg, var(--id16-dark), var(--id16-primary));
    color: white;
    padding: 3.5rem 0;
    margin-bottom: 3rem;
}
.page-header h1 { font-size: 2.2rem; font-weight: 800; }

/* ---- Section alternée ---- */
.section-light { background: var(--id16-light); }

/* ---- Stats ---- */
.stat-num { font-size: 2.5rem; font-weight: 800; color: var(--id16-primary); }

/* ---- Footer ---- */
.footer { background: var(--id16-dark); }
.footer a:hover { color: var(--id16-accent) !important; }

/* ---- Article blog ---- */
.blog-article h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--id16-primary);
    margin-top: 2rem;
    margin-bottom: .75rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--id16-light);
}
.blog-article h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--id16-secondary);
    margin-top: 1.5rem;
}
.blog-article p { line-height: 1.8; margin-bottom: 1rem; }
.blog-article ul, .blog-article ol { margin-bottom: 1rem; padding-left: 1.5rem; line-height: 1.8; }
.blog-article li { margin-bottom: .4rem; }
.blog-article strong { color: #222; }

/* ---- Offre avec image ---- */
.offre-card .offre-img { overflow: hidden; }
.offre-card .offre-img img { transition: transform .3s; }
.offre-card:hover .offre-img img { transform: scale(1.05); }

/* ---- Page header avec image de fond ---- */
.page-header-references {
    background: url('img/references.jpg') center / cover no-repeat;
    position: relative;
}
.page-header-references::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,.88) 0%, rgba(0,0,0,.68) 60%, rgba(0,0,0,.45) 100%);
}
.page-header-references .container { position: relative; z-index: 1; }

.page-header-blog {
    background: url('img/bg-blog.jpg') center / cover no-repeat;
    position: relative;
}
.page-header-blog::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.25);
}
.page-header-blog .container { position: relative; z-index: 1; }

.page-header-contact {
    background: url('img/contact.jpg') center / cover no-repeat;
    position: relative;
}
.page-header-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.25);
}
.page-header-contact .container { position: relative; z-index: 1; }

/* ---- Contact info box ---- */
.contact-info-box {
    background: linear-gradient(135deg, var(--id16-dark), var(--id16-primary));
    color: #fff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}
.contact-info-box .fw-semibold { color: rgba(255,255,255,.6); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }

/* ---- Blog cards uniformisées ---- */
.blog-card__image {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}
.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.blog-card:hover .blog-card__image img { transform: scale(1.04); }
.blog-card__image .blog-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}
.blog-card__content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-card__date {
    display: block;
    font-size: .8rem;
    color: #888;
    margin-bottom: .4rem;
}
.blog-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .6rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card__excerpt {
    font-size: .875rem;
    color: #555;
    line-height: 1.55;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card__link { margin-top: 1rem; align-self: flex-start; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero { min-height: 360px; text-align: center; }
    .hero h1 { font-size: 1.9rem; }
    .page-header-references,
    .page-header-blog { padding: 2rem 0; }
}
