/*
Theme Name: Agro Conseil Carnavalet
Theme URI: https://www.agro-conseil-carnavalet.eu
Author: Carnavalet
Description:
Version: 1.1
*/

body {
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    background-image: url('./assets/images/background.png');
    background-repeat: repeat;
    background-position: left top;
    background-attachment: fixed;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #222;
    line-height: 1.6;
}	

.diyweb {
    background: #f8f4eb;
    margin-left: 15%;
    margin-right: 5%;
    max-width: 1280px;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    padding: 30px 5% 60px 5%;
}

.carousel-container {
    margin-left: -150px;
    width: 1060px;
    height: 240px;
    position: relative;
    overflow: hidden;
    background: #111;
    margin-bottom: 30px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(transparent 10%, rgb(15 33 25 / 55%) 80%);
    z-index: 4;
    pointer-events: none;
}

.carousel-fixed-title {
    position: absolute;
    bottom: 35px;
    left: 50px;
    z-index: 5;
    background: rgba(28, 68, 40, 0.82);
    color: #ffffff;
    padding: 22px 32px 18px 32px;
    border-radius: 10px;
    max-width: 560px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    pointer-events: none;
}

.carousel-fixed-title h1 {
    font-size: 3.2rem;
    line-height: 1.05;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.carousel-fixed-title .specialties {
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 500;
    margin: 0;
    opacity: 0.95;
}

.content-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 900px;
}

.left-menu {
    margin-left: -150px;
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 10;
}

.left-menu a {
    display: block;
    padding: 6px 15px;
    background: linear-gradient(145deg, #2c5f3a, #1e4428);
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 1px;
    border-radius: 6px;
    box-shadow: 1px 1px 1px rgba(0,0,0,0.3),
0 1px 0 rgba(255,255,255,0.1) inset,
0 15px 0 rgba(255,255,255,0.02) inset;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.left-menu a:hover, .current-menu-item a {
    background: linear-gradient(145deg, #2aa330, #2c5f3a);
}

.left-menu a:after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 20px;
    border-width: 10px 0 0 10px;
    border-style: solid;
    display: block;
    width: 0;
    height: 0;
    border-right: 12px solid #2c5f3a;
    border-top:  12px solid #2c5f3a;
    border-left: 12px solid transparent;
    border-bottom: 12px solid transparent;
    z-index: -1;
}

.main-content-area {
    flex: 1;
    display: flex;
    gap: 40px;
}

.main-section {
    flex: 3;
}

.right-section {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
}

blockquote {
    background: #f4f4f4;
    border-radius: 20px;
    padding: 30px 35px 30px 45px;
    margin: 40px 0 40px 20px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 1rem;
    line-height: 1.65;
    max-width: 92%;
    border: 1px solid #e5e5e5;
}

blockquote {
    border-left: 8px solid #2c5f3a;
}

blockquote::before {
    content: "“";
    font-size: 5rem;
    line-height: 1;
    color: #2c5f3a;
    opacity: 0.15;
    position: absolute;
    top: 12px;
    left: 22px;
    font-family: Georgia, serif;
}

blockquote::after {
    content: "”";
    font-size: 3.5rem;
    line-height: 1;
    color: #2c5f3a;
    opacity: 0.15;
    position: absolute;
    bottom: 8px;
    right: 25px;
    font-family: Georgia, serif;
}

blockquote cite,
blockquote footer {
    display: block;
    margin-top: 20px;
    font-style: normal;
    font-size: 0.95rem;
    color: #555;
    text-align: right;
}

blockquote:after {
    content: "";
    position: absolute;
    bottom: -14px;
    left: 55px;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 14px solid #f4f4f4;
}

h2 {
    color: #2aa330;
    font-style: italic;
    font-size: 2rem;
    margin-top: 0;
}

.nos-prestations {
    margin: 60px 0 50px 0;
}

.nos-prestations h2 {
    color: #2c5f3a;
    font-size: 2.4rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prestations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.prestations-grid li {
    background: #fff;
    padding: 24px 28px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border-left: 6px solid #2c5f3a;
    transition: all 0.3s ease;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 14px;
}

.prestations-grid li:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(44, 95, 58, 0.15);
    border-left-color: #3a7a4b;
}

.prestations-grid li::before {
    content: "✔";
    color: #2c5f3a;
    font-size: 1.6rem;
    font-weight: bold;
    flex-shrink: 0;
}

.secteurs-interventions {
    margin: 70px 0 60px 0;
}

.secteurs-interventions h2 {
    color: #2c5f3a;
    font-size: 2.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.secteurs-interventions h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #2c5f3a;
    margin: 12px auto 0;
}

.secteurs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.secteurs-tags li {
    background: #f8f4eb;
    color: #1e4428;
    padding: 14px 24px;
    border-radius: 50px;
    border: 2px solid #d4e6d4;
    font-size: 1.1rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.secteurs-tags li:hover {
    background: #2c5f3a;
    color: #fff;
    border-color: #2c5f3a;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(44, 95, 58, 0.2);
}

.wp-block-file {
    display: flex;
    align-items: center;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 35px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    gap: 18px;
}

.wp-block-file::before {
    content: "";
    display: block;
    width: 64px;      /* size of your pdf.png */
    height: 80px;
    background: url('./assets/images/pdf.png') no-repeat center/contain;
    flex-shrink: 0;
    background-size: 100%;
}

.wp-block-file a[href$=".pdf"]::before {
    content: "";
    width: 64px;
    height: 80px;
    background: url('./assets/images/pdf.png') no-repeat center/contain;
    background-size: 100%;
}

.wp-block-file .wp-block-file__link {
    color: #2c5f3a !important;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    flex: 1;
}

.wp-block-file .wp-block-file__description {
    display: block;
    color: #666;
    font-size: 0.95rem;
    margin-top: 4px;
    font-weight: normal;
}

.wp-block-file a {
    text-decoration: none;
}

.info-box-clean {
    background: #e6f0fa;
    border: 2px solid #2c7a8c;
    border-radius: 12px;
    padding: 35px 30px;
    margin: 35px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.info-box-clean h2 {
    text-align: center;
    color: #1a5270;
    margin-bottom: 25px;
}

.section h3 {
    color: #1a5270;
    margin: 2rem 0 0.8rem;
}

.percent {
    font-weight: bold;
    color: #1a5270;
    margin-bottom: 1.2rem;
}

.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px 30px;
    margin-bottom: 1.8rem;
}

.elements-grid div,
.elements-grid li {
    display: flex;
    align-items: center;
    font-size: 1.05rem;
}

.chem-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #1a5270;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    font-size: 0.95rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.note {
    font-size: 0.9rem;
    color: #555;
    margin-left: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .elements-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
