/* ============================================================
   PAGES.CSS — Styles communs pour toutes les sous-pages
   Thème clair inspiré du site d'origine
   ============================================================ */

/* ---- Breadcrumb ---- */
.breadcrumb-nav {
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    font-size: 13px;
}
.breadcrumb-nav a {
    color: #e08935;
    text-decoration: none;
}
.breadcrumb-nav a:hover { text-decoration: underline; }
.breadcrumb-nav .sep { color: #aaa; margin: 0 7px; }
.breadcrumb-nav .current { color: #777; }

/* ---- Page hero / Bannière titre ---- */
.page-banner {
    background: #e08935;
    padding: 38px 0 32px;
    border-bottom: 4px solid #c4701e;
}
.page-banner h1 {
    color: #fff;
    font-size: 30px;
    margin: 0 0 6px 0;
    line-height: 1.2;
}
.page-banner .page-banner-sub {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    margin: 0;
}

/* ---- Section contenu principal ---- */
.page-content {
    background: #fff;
    padding: 50px 0 40px;
}
.page-content h1 {
    color: #e08935;
    font-size: 28px;
    margin: 0 0 18px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e08935;
}
.page-content h2 {
    color: #333;
    font-size: 22px;
    margin: 30px 0 12px 0;
    position: relative;
    padding-left: 14px;
}
.page-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    background: #e08935;
    border-radius: 2px;
}
.page-content p {
    color: #555;
    line-height: 1.75;
    margin-bottom: 14px;
}
.page-content a { color: #e08935; }
.page-content a:hover { color: #c4701e; }
.page-content strong { color: #333; }

/* ---- Image flottante à droite ---- */
.img-right {
    float: right;
    margin: 0 0 20px 30px;
    border-radius: 4px;
    border: 1px solid #ddd;
    max-width: 280px;
    width: 100%;
}

/* ---- Box bordure gauche orange ---- */
.box-left-border {
    border-left: 4px solid #e08935;
    background: #fdf6ee;
    padding: 18px 22px;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
}
.box-left-border ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 20px;
}
.box-left-border ul.single-col { columns: 1; }
.box-left-border ul li {
    color: #555;
    padding: 5px 0 5px 18px;
    position: relative;
    break-inside: avoid;
    font-size: 14px;
}
.box-left-border ul li::before {
    content: '▸';
    color: #e08935;
    position: absolute;
    left: 0;
    font-size: 12px;
}
.box-left-border ul li strong { color: #333; }

/* ---- Box grise claire ---- */
.box-light {
    background: #f7f7f7;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 22px 25px;
    margin: 22px 0;
}
.box-left-border p,
.box-light p {
    color: #555;
    font-size: 14px;
    margin: 10px 0 0;
    line-height: 1.6;
}

/* ---- Section alternée gris clair ---- */
.page-section-alt {
    background: #f7f7f7;
    padding: 45px 0;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
}
.page-section-alt h2 {
    color: #e08935;
    font-size: 24px;
    text-align: center;
    margin-bottom: 8px;
}
.page-section-alt .section-sub {
    text-align: center;
    color: #888;
    margin-bottom: 35px;
    font-size: 14px;
}

/* ---- Grille de cartes de services ---- */
.services-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 25px;
}
.service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 22px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.service-card:hover {
    border-color: #e08935;
    box-shadow: 0 4px 18px rgba(224,137,53,0.13);
    transform: translateY(-3px);
}
.service-card i {
    font-size: 28px;
    color: #e08935;
    display: block;
    margin-bottom: 12px;
}
.service-card h3 {
    color: #333;
    font-size: 15px;
    margin: 0 0 8px 0;
}
.service-card p {
    color: #777;
    font-size: 13px;
    margin: 0;
    line-height: 1.55;
}

/* ---- Étapes / Steps ---- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    margin: 25px 0;
}
.step-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.25s ease;
}
.step-item:hover { border-color: #e08935; }
.step-num {
    width: 40px;
    height: 40px;
    background: #e08935;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin: 0 auto 12px;
}
.step-item h3 { color: #333; font-size: 14px; margin: 0 0 6px; }
.step-item p  { color: #888; font-size: 12px; margin: 0; line-height: 1.5; }

/* ---- Galerie photos ---- */
.gallery-section {
    background: #fff;
    padding: 50px 0;
}
.gallery-section h2 {
    color: #e08935;
    font-size: 24px;
    text-align: center;
    margin-bottom: 8px;
}
.gallery-section .section-sub {
    text-align: center;
    color: #888;
    margin-bottom: 30px;
    font-size: 14px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #ddd;
    aspect-ratio: 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(224,137,53,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay i { font-size: 30px; color: #fff; }
.gallery-placeholder { color: #bbb; text-align: center; font-size: 13px; }
.gallery-placeholder i { font-size: 36px; display: block; margin-bottom: 8px; color: #ddd; }

/* ---- CTA Section ---- */
.cta-section {
    background: #e08935;
    padding: 45px 0;
    text-align: center;
}
.cta-section h2 { color: #fff; font-size: 26px; margin-bottom: 10px; }
.cta-section p  { color: rgba(255,255,255,0.88); margin-bottom: 22px; font-size: 15px; }
.btn-cta {
    background: #fff;
    color: #e08935;
    padding: 13px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    display: inline-block;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}
.btn-cta:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    text-decoration: none;
}

/* ---- Grille de primes ---- */
.primes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    margin: 25px 0;
}
.prime-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #e08935;
    border-radius: 6px;
    padding: 24px;
    transition: box-shadow 0.25s ease;
}
.prime-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.09); }
.prime-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.prime-icon {
    width: 48px; height: 48px;
    background: #fdf6ee;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.prime-icon i { font-size: 22px; color: #e08935; }
.prime-card h3 { color: #333; font-size: 16px; margin: 0; }
.prime-amount { color: #e08935; font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.prime-card p { color: #666; font-size: 14px; line-height: 1.6; margin: 0 0 10px; }
.prime-card ul { list-style: none; padding: 0; margin: 0; }
.prime-card ul li {
    color: #666; font-size: 13px;
    padding: 3px 0 3px 16px;
    position: relative;
}
.prime-card ul li::before { content: '▸'; color: #e08935; position: absolute; left: 0; }

/* ---- Contact layout ---- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 50px;
    align-items: start;
}
.contact-info-block h2,
.contact-form-block h2 {
    color: #e08935;
    font-size: 22px;
    margin: 0 0 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e08935;
}
.info-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 16px 18px;
    margin-bottom: 12px;
    transition: border-color 0.25s ease;
}
.info-card:hover { border-color: #e08935; }
.info-card i { font-size: 20px; color: #e08935; min-width: 22px; margin-top: 2px; }
.info-card h3 { color: #333; font-size: 13px; font-weight: 700; margin: 0 0 4px; }
.info-card p { color: #666; font-size: 14px; margin: 0; line-height: 1.5; }
.info-card a { color: #e08935; }

/* ---- Formulaire contact ---- */
.form-wrap {
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 30px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; color: #555; font-size: 13px; margin-bottom: 5px; font-weight: 600; }
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 13px;
    color: #333;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.25s ease;
    box-sizing: border-box;
    outline: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: #e08935; }
.form-field textarea { resize: vertical; min-height: 120px; }
.btn-submit {
    background: #e08935;
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background 0.25s ease;
    font-family: inherit;
}
.btn-submit:hover { background: #c4701e; }

/* ---- Stats counters ---- */
.stats-section {
    background: #fff;
    border-top: 3px solid #e08935;
    border-bottom: 3px solid #e08935;
    padding: 50px 0;
    margin: 30px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    text-align: center;
}
.stat-item {
    padding: 20px 10px;
    border-right: 1px solid #ebebeb;
}
.stat-item:last-child { border-right: none; }
.stat-icon {
    width: 52px;
    height: 52px;
    background: #fff8f0;
    border: 2px solid #e08935;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.stat-icon i { color: #e08935; font-size: 20px; }
.stat-icon svg { color: #e08935; }
.stat-number {
    font-size: 34px;
    font-weight: 900;
    color: #e08935;
    line-height: 1;
    margin-bottom: 8px;
    font-family: inherit;
}
.stat-label {
    color: #777;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 1.4;
}
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-number { font-size: 28px; }
}
@media (max-width: 420px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* ---- Steps Timeline ---- */
.steps-section { margin: 40px 0; }
.steps-section-title {
    text-align: center;
    font-size: 26px;
    color: #333;
    margin-bottom: 10px;
}
.steps-section-title span { color: #e08935; }
.steps-section-subtitle {
    text-align: center;
    color: #888;
    font-size: 15px;
    margin-bottom: 40px;
}
.steps-timeline { position: relative; padding-left: 72px; }
.steps-timeline::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: linear-gradient(to bottom, #e08935, #f5c07a);
    border-radius: 2px;
}
.step-item {
    position: relative;
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: flex-start;
}
.step-badge {
    position: absolute;
    left: -58px;
    width: 56px;
    height: 56px;
    background: #0e0d0d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(224,137,53,.25);
    border: 2px solid #e08935;
    z-index: 1;
    overflow: visible;
}
.step-badge img { width: 32px; height: 32px; object-fit: contain; }
.step-badge span {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: #e08935;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.step-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 18px 22px;
    flex: 1;
    transition: box-shadow .2s, border-color .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.step-card:hover { box-shadow: 0 4px 18px rgba(224,137,53,.15); border-color: #e08935; }
.step-card h3 {
    color: #e08935;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
    margin: 0 0 8px;
    text-transform: uppercase;
}
.step-card p { color: #555; font-size: 14px; margin: 0; line-height: 1.6; }
.step-card ul { color: #555; font-size: 14px; margin: 6px 0 0 16px; line-height: 1.7; padding: 0; }
@media (max-width: 600px) {
    .steps-timeline { padding-left: 44px; }
    .steps-timeline::before { left: 15px; }
    .step-badge { left: -36px; width: 36px; height: 36px; }
    .step-badge img { width: 18px; height: 18px; }
    .step-card { padding: 14px 16px; }
}

/* ---- Map section ---- */
.map-section { background: #f5f5f5; padding: 50px 0; }
.map-section h2 { color: #e08935; font-size: 24px; text-align: center; margin-bottom: 22px; }
.map-wrap { border-radius: 6px; overflow: hidden; border: 1px solid #ddd; }
.map-wrap iframe { width: 100%; height: 380px; display: block; border: none; }

/* ---- Actualités ---- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.news-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.news-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); transform: translateY(-3px); }
.news-card-img { height: 180px; background: #f0f0f0; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-placeholder-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.news-placeholder-img i { font-size: 40px; color: #ccc; }
.news-card-body { padding: 20px; }
.news-card-meta { font-size: 12px; color: #aaa; margin-bottom: 8px; }
.news-card-meta span { background: #fdf6ee; color: #e08935; border-radius: 3px; padding: 2px 8px; font-weight: 600; }
.news-card h3 { color: #333; font-size: 16px; margin: 0 0 10px; line-height: 1.4; }
.news-card p { color: #777; font-size: 13px; margin: 0 0 14px; line-height: 1.55; }
.news-card a.readmore {
    color: #e08935;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.news-card a.readmore:hover { text-decoration: underline; }

/* Actualités masquée provisoirement */
.sf-menu li:has(a[href="actualites.html"]) { display: none; }

/* ---- Lightbox ---- */
#lb { display:none; position:fixed; inset:0; z-index:9999; align-items:center; justify-content:center; background:rgba(0,0,0,.92); }
#lb.lb-visible { display:flex; }
#lb-img { max-width:90vw; max-height:88vh; border-radius:4px; object-fit:contain; user-select:none; }
#lb-overlay { position:absolute; inset:0; }
#lb-prev, #lb-next {
    position:absolute; top:50%; transform:translateY(-50%);
    background:rgba(255,255,255,.15); border:none; color:#fff; font-size:26px;
    width:48px; height:64px; cursor:pointer; border-radius:4px;
    transition:background .2s; z-index:1;
}
#lb-prev { left:16px; } #lb-next { right:16px; }
#lb-prev:hover, #lb-next:hover { background:rgba(255,255,255,.3); }
#lb-close {
    position:absolute; top:14px; right:18px; background:none; border:none;
    color:#fff; font-size:22px; cursor:pointer; z-index:1; opacity:.8;
}
#lb-close:hover { opacity:1; }

/* ---- Gallery highslide grid ---- */
.highslide-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}
.highslideContainer {
    width: calc(25% - 6px);
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    aspect-ratio: 1;
    background: #f5f5f5;
    flex-shrink: 0;
}
.highslideContainer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.highslideContainer:hover img { transform: scale(1.06); }
.highslide-caption,
.holder.top,
.holder.bottom,
.topGallery-realisations,
.backbtn { display: none; }
@media (max-width: 992px) { .highslideContainer { width: calc(33.333% - 6px); } }
@media (max-width: 600px)  { .highslideContainer { width: calc(50% - 4px); } }
@media (max-width: 380px)  { .highslideContainer { width: 100%; } }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .page-banner h1 { font-size: 22px; }
    .img-right { float: none; margin: 0 auto 20px; display: block; max-width: 100%; }
    .box-left-border ul { columns: 1; }
    .contact-layout { grid-template-columns: 1fr; gap: 30px; }
    .form-row { grid-template-columns: 1fr; }
    .services-cards { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .services-cards { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
}
