/* =========================================================
   SETRAF Gabon - Thème WordPress
   Feuille de style personnalisée (reproduction fidèle du site)
   ========================================================= */

:root {
    --primary-color: #1e9ab0;
    --secondary-color: #8ebd04;
    --text-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8fafc;
    color: var(--text-color);
    overflow-x: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    scroll-behavior: smooth;
}

/* Fond par défaut (pages intérieures) */
body {
    background-image: linear-gradient(rgba(255,255,255,0.75), rgba(255,255,255,0.55)), url('../images/services/banniere1.jpeg');
}
/* Fond page d'accueil */
body.setraf-home {
    background-image: linear-gradient(rgba(255,255,255,0.45), rgba(255,255,255,0.25)), url('../images/accueil/background.png');
}

/* ------- Dégradés & boutons ------- */
.gradient-bg,
.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.gradient-text,
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) 1;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transition: all 0.3s;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color:#fff;
}

/* ------- Barre de navigation ------- */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.nav-link {
    position: relative;
    padding: 0.5rem 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 70%;
}

/* WordPress ajoute ces classes au menu courant */
.menu-item.current-menu-item > .nav-link,
.menu-item.current_page_item > .nav-link {
    color: var(--primary-color);
}
.menu-item.current-menu-item > .nav-link::after,
.menu-item.current_page_item > .nav-link::after {
    width: 70%;
}

/* ------- Cartes services (accueil) ------- */
.service-card {
    transition: all 0.3s;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.service-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* Variante service-card (pages intérieures) */
.service-card-alt {
    background: rgba(255,255,255,0.9);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}
.service-card-alt:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ------- Compteurs ------- */
.count-box {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: all 0.3s;
}
.count-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.count-box i {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.count-box span {
    font-size: 42px;
    display: block;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}
.count-box p {
    padding: 0; margin: 0; font-size: 14px; font-weight: 600;
}

.counter-box {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.counter-value {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: all 0.5s ease-in-out;
}

/* ------- Témoignages ------- */
.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
    transition: all 0.3s;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.testimonial-card img {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 15px;
}

/* Variante témoignage (références) */
.testimonial-card-quote {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-top: 2rem;
}
.testimonial-card-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
}

/* ------- Pied de page ------- */
.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0 30px;
}
.footer h3 { font-size: 18px; font-weight: 600; margin-bottom: 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: rgba(255, 255, 255, 0.8); transition: all 0.3s; }
.footer ul li a:hover { color: white; padding-left: 5px; }

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    margin-right: 10px;
    color: white;
    transition: all 0.3s;
}
.social-links a:hover {
    background-color: white;
    color: var(--primary-color);
}

/* ------- Animations d'apparition ------- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------- Section À propos (accueil) ------- */
.about-section { position: relative; overflow: hidden; }
.about-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(30, 154, 176, 0.05);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    z-index: -1;
}

.timeline-item { position: relative; padding-left: 30px; margin-bottom: 30px; }
.timeline-item::before {
    content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}
.timeline-item::after {
    content: ""; position: absolute; left: -4px; top: 0; width: 10px; height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.value-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: all 0.3s;
    height: 100%;
}
.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.value-card i {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ------- Blocs de lecture / survols (pages intérieures) ------- */
.text-shadow { text-shadow: 0 2px 8px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.18); }
.text-shadow-soft { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.text-shadow-medium { text-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }

.bg-bloc-lecture {
    background: rgba(255,255,255,0.85);
    border-radius: 1rem;
    padding: 1.5rem;
}
.text-contrast {
    color: #fff !important;
    text-shadow: 0 4px 16px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.25);
}

.hover-animate { transition: color 0.4s, background 0.4s, transform 0.4s; cursor: pointer; }
.hover-animate:hover {
    color: var(--primary-color) !important;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(-4px) scale(1.04);
}

/* ------- Cartes équipement (page équipement) ------- */
.equipment-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    margin-bottom: 2rem;
}
.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.equipment-card img { border-radius: 0.5rem; width: 100%; height: 250px; object-fit: cover; }

/* ------- Cartes projets (références) ------- */
.project-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.project-card .project-image { height: 200px; width: 100%; object-fit: cover; object-position: center; }

.text-primary-color { color: var(--primary-color); }

/* ------- Formulaire de contact ------- */
.contact-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.contact-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}
.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 154, 176, 0.1);
    outline: none;
}
.setraf-alert {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.setraf-alert-success { background:#e6f7ed; color:#1a7f43; border:1px solid #9be0b6; }
.setraf-alert-error { background:#fdecec; color:#b42318; border:1px solid #f3b4ae; }

/* ------- Effet zoom image ------- */
.img-hover-zoom {
    transition: transform 0.5s cubic-bezier(.4,0,.2,1), box-shadow 0.5s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 5px 25px rgba(30,154,176,0.15);
    cursor: pointer;
}
.img-hover-zoom:hover {
    transform: scale(1.07) rotate(-1deg);
    box-shadow: 0 15px 40px rgba(30,154,176,0.25);
    z-index: 2;
}

/* ------- Bouton retour en haut ------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--secondary-color); transform: translateY(-3px); }

/* ------- Responsive ------- */
@media (max-width: 768px) {
    .navbar { padding: 0.5rem 0; }
    .hero h1 { font-size: 2rem; }
    .count-box { margin-bottom: 20px; }
    .service-card { margin-bottom: 30px; }
}

/* =========================================================
   Campagne Octobre Rose 2026 - Styles dédiés
   ========================================================= */
.octobre-rose-topbar {
    background: linear-gradient(90deg, #db2777 0%, #ec4899 50%, #e11d48 100%);
    transition: all 0.3s ease;
}
.octobre-rose-topbar.topbar-dismissed {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.octobre-rose-header-badge {
    animation: fadeInSoft 0.8s ease-in-out;
}

@keyframes fadeInSoft {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.octobre-rose-section {
    position: relative;
    background: linear-gradient(135deg, #fff5f8 0%, #fdf2f8 50%, #ffffff 100%);
}

.octobre-rose-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.octobre-rose-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 25px -5px rgba(236, 72, 153, 0.15);
}

@media (max-width: 640px) {
    .octobre-rose-header-badge {
        padding-left: 0.35rem;
        margin-left: 0.35rem;
    }
}

/* Styles Carrousel Octobre Rose */
.octobre-rose-slider {
    touch-action: pan-y;
}
.octobre-slide {
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.octobre-slide.active-slide {
    opacity: 1 !important;
    z-index: 10 !important;
    pointer-events: auto;
}
.slider-dot {
    outline: none;
    cursor: pointer;
}
.slider-dot.active-dot {
    background-color: #ec4899 !important;
    width: 1.25rem !important;
    border-radius: 9999px !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
}

/* =========================================================
   Compatibilité Gutenberg & Blocs WordPress
   Garantit que .wp-block-group__inner-container préserve
   les classes Flexbox et Grid de Tailwind sans casser les colonnes
   ========================================================= */
.wp-block-group.flex > .wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}
@media (min-width: 768px) {
    .wp-block-group.flex.md\:flex-row > .wp-block-group__inner-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .wp-block-group.md\:w-1\/2 {
        width: 50% !important;
        flex: 0 0 50%;
        max-width: 50%;
    }
}
.wp-block-group.grid > .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
    width: 100%;
}
@media (min-width: 768px) {
    .wp-block-group.grid.md\:grid-cols-2 > .wp-block-group__inner-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .wp-block-group.grid.md\:grid-cols-3 > .wp-block-group__inner-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
