/* ==========================================================
   SECTIONS.CSS - Page sections (philosophy, cavage, etc.)
   ========================================================== */

/* ---------------------------------------------------------
   Philosophy section (homepage)
   --------------------------------------------------------- */
.philosophy-section {
    padding: 4rem 0;
}

.philosophy-section .col-md-7 {
    padding-left: 4rem;
}

.philosophy-section h2 {
    margin-bottom: 1.5rem;
}

.philosophy-section p {
    line-height: 1.8;
}

.philosophy-section .lead {
    font-weight: 600;
}

/* Philosophy image */
.philosophy-section img {
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.philosophy-section img:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ---------------------------------------------------------
   About page
   --------------------------------------------------------- */
.about-page img {
    max-width: 100%;
    height: auto;
    width: auto;
}

.about-page .about-image-lg {
    width: 100%;
    max-width: 500px;
}

.about-page .about-image-md {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

.about-page .card .card-body {
    text-align: center;
}

.about-page .underline {
    margin-left: auto;
    margin-right: auto;
}

/* ---------------------------------------------------------
   Activities preview section
   --------------------------------------------------------- */
.activities-preview {
    background-color: var(--light-bg);
    padding: 4rem 0;
}

/* ---------------------------------------------------------
   Cavage section (truffle hunting highlight)
   --------------------------------------------------------- */
.cavage-section {
    background: linear-gradient(90deg, #D4D7A5 0%, #FFFFFF 100%);
    padding: 4rem 0;
}

.cavage-section img {
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cavage-highlight {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #6f4522 100%);
    color: #fff;
    padding: 3rem 0;
    position: relative;
}

.cavage-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/truffle-pattern.png') repeat;
    opacity: 0.1;
}

.cavage-highlight .container {
    position: relative;
    z-index: 2;
}

.cavage-highlight h3 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cavage-highlight .btn {
    background-color: #fff;
    color: var(--secondary-color);
    font-weight: 600;
}

.cavage-highlight .btn:hover {
    background-color: var(--light-bg);
}

/* Badge "Activite phare" */
.bg-brown {
    background-color: var(--secondary-color) !important;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 5px;
    display: inline-block;
}

/* ---------------------------------------------------------
   Testimonials section
   --------------------------------------------------------- */
.testimonials-section {
    background-color: #fff;
    padding: 4rem 0;
}

.testimonials-section h2 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* ---------------------------------------------------------
   Diplomas section
   --------------------------------------------------------- */
.diplomas-container {
    padding: 3rem 0;
}

.diplomas-container h2 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 2.3rem;
    position: relative;
    padding-bottom: 25px;
}

.diplomas-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.container-narrow {
    max-width: 1024px;
}

.diplomas-row {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.75rem;
}

.highlighted-diplomas,
.recent-diplomas,
.slider-diplomas {
    min-height: 300px;
}

/* ---------------------------------------------------------
   Newsletter section
   --------------------------------------------------------- */
.newsletter-section {
    padding: 3rem 0;
}

.newsletter-section h2 {
    font-weight: 700;
    font-size: 2rem;
}

.newsletter-section .form-control {
    border: 2px solid #ddd;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-section .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: none;
}

.newsletter-section .btn {
    border-radius: 5px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border: none;
}

.newsletter-section .btn:hover {
    background-color: #6f4522 !important;
}

/* ---------------------------------------------------------
   First meeting info box (contact page)
   --------------------------------------------------------- */
.first-meeting-info {
    background: linear-gradient(135deg, var(--tertiary-color) 0%, #e8ebc4 100%);
}

.alert-info-box {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    border-left: 5px solid var(--secondary-color);
    animation: slideInDown 0.6s ease-out;
}

.info-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #a67340 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(139, 90, 43, 0.3);
}

.info-content {
    flex: 1;
}

.info-title {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.info-text {
    color: var(--text-green);
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

.info-text strong {
    color: var(--secondary-color);
    font-weight: 600;
}

/* slideInDown animation for alert-info-box */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
