/* Reset et variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #0ea5e9;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --gray: #e5e7eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: url(images/moulin.jpeg) center/cover no-repeat fixed;
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-dark);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-en {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
    background: rgba(15, 82, 87, 0.1);
    border-radius: 6px;
    text-decoration: none;
    margin-left: 0.5rem;
    transition: background 0.3s;
}

.nav-en:hover {
    background: rgba(15, 82, 87, 0.2);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.background {
    background: url(images/moulin.jpeg) center/cover no-repeat fixed;
    background-color: var(--primary-dark);
}
/* Buttons */
.contact-btn {
    border-color: black !important; 
    color: black !important;
}
.btn {
    display: inline-block;
    padding: 0.75rem 3rem 1rem 3rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-dark);
}

.introduction {
    background: rgba(255, 255, 255, 0.92);
    padding-bottom: 3rem;
}

.photo-groupe {
    display: block;
    max-width: 700px;
    width: 100%;
    margin: 2rem auto 0;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Section Diversité (bandeaux + colonnes) */
.section-diversity {
    padding: 4rem 0;
    background: rgba(249, 250, 251, 0.92);
}

.top-banner {
    background-color: #1e8e9e;
    color: var(--white);
    text-align: center;
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.middle-banner {
    background-color: #e6b11c;
    color: var(--white);
    text-align: center;
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 1.15rem;
    margin: 2.5rem 0 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.three-columns {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch;
}

.col {
    flex: 1;
    text-align: center;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.col:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.col img {
    max-width: 120px;
    margin-bottom: 1rem;
}



.col h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text);
}

.col p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
    text-align: center;
}

.three-columns.bottom .col {
    text-align: left;
}

/* Values Section */
.values {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.92);
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.section-logo {
    max-height: 230px;
    object-fit: contain;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0;
    color: var(--text);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.value-card {
    text-align: center; 
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-icon img {
    max-width: 100px;
    height: auto;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.value-card p {
    color: var(--text-light);
}

/* CTA Section */
.cta {
    background: rgba(249, 250, 251, 0.92);
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.cta p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.contact-btn {
    border-color: #0284c7;  
}
/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Team Section */
.team {
    padding: 4rem 0;
    background: rgba(249, 250, 251, 0.92);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.team-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

a.team-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.team-avatar {
    width: 180px;
    height: 180px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.team-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.btn-profil {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-profil:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Page Profil Individuel */
.profil {
    padding: 4rem 0;
    background: rgba(249, 250, 251, 0.92);
}

.profil-card {
    background: var(--white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.profil-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profil-header .team-avatar {
    width: 150px;
    height: 150px;
    font-size: 4rem;
}

.profil-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.profil-header .team-role {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.profil-body {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.profil-body p {
    margin-bottom: 1rem;
}

.profil-back {
    display: inline-block;
    margin-top: 2rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.profil-back:hover {
    text-decoration: underline;
}

.team-commitment {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.team-commitment h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.team-commitment p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Programme Section */
.programme {
    padding: 4rem 0;
    background: rgba(249, 250, 251, 0.92);
}

.programme-english-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.75rem 1.25rem;
    background: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.programme-english-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.programme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.programme-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.programme-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.programme-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.programme-icon {
    font-size: 2.5rem;
}

.programme-header h2 {
    font-size: 1.5rem;
    color: var(--text);
}

.programme-list {
    list-style: none;
}

.programme-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--gray);
}

.programme-list li:last-child {
    border-bottom: none;
}

.programme-cta {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.programme-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.programme-cta p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

/* Actualités Section */
.actualites {
    padding: 4rem 0;
    background: rgba(249, 250, 251, 0.92);
}

.actualites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.actualites-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.actualites-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.actualites-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.actualites-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.actualites-icon {
    font-size: 1.5rem;
}

.actualites-card-title {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.actualites-card-btn-wrap {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    border: 2px solid var(--primary);
    border-radius: 8px;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    transition: background-color 0.3s, border-color 0.3s;
}

.actualites-card-btn-wrap:hover {
    background-color: rgba(2, 132, 199, 0.08);
    border-color: var(--primary-dark);
}

.actualites-card .actualites-card-btn {
    display: inline-block;
}

/* Désactiver le transform du bouton dans les cartes actualités (évite double effet avec la carte) */
.actualites-card .btn-primary:hover {
    transform: none;
}

.actualites-card-img {
   
    border-radius: 8px;
    width:100%;
    height:100%;
    object-fit:cover;
}

.actualites-card-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    padding-top: 10px;
}
.actu-tractage-img {
    object-position: right 15%;
}
.actu-titre {
    margin-bottom: 20px;
}
.photo-actu {
    width: 300px;
    height: 200px;
    overflow: hidden;
    padding: 10px 5px;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: rgba(249, 250, 251, 0.92);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-form-wrapper h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-info-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-item h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item p {
    color: var(--text-light);
}

.contact-hours {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
}

.contact-hours h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.contact-hours p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: #1f2937;
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 1rem;
}

.footer-col p {
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive - Tablette et Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav {
        padding: 1rem 15px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid var(--gray);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .background {
        background-attachment: scroll;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        padding: 0 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .section-title-wrapper {
        gap: 1rem;
    }

    .section-logo {
        max-height: 60px;
    }

    .section-title {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .three-columns {
        flex-direction: column;
    }

    .three-columns.bottom .col {
        text-align: center;
    }

    .top-banner,
    .middle-banner {
        font-size: 1rem;
    }

    .values {
        padding: 3rem 0;
    }

    .value-text {
        font-size: 0.95rem;
        line-height: 1.7;
        color: var(--text-light);
        text-align: justify;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .value-card {
        padding: 1.5rem;
    }

    .cta {
        padding: 3rem 1rem;
    }

    .cta h2 {
        font-size: 1.75rem;
    }

    .page-header {
        padding: 2rem 0;
    }

    .page-header h1 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .page-header p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .team {
        padding: 3rem 0;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-card {
        padding: 1.5rem;
    }

    .team-commitment {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .programme {
        padding: 3rem 0;
    }

    .programme-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .programme-card {
        padding: 1.5rem;
    }

    .programme-cta {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .actualites {
        padding: 3rem 0;
    }

    .actualites-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .actualites-card {
        padding: 1.5rem;
    }

    .contact {
        padding: 3rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .contact-info-card {
        padding: 1.5rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Responsive - Petits smartphones */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    .introduction {
        padding-top: 10px;
    }
    .hero-subtitle {
        font-size: 1rem;
    }

    .section-logo {
        max-height: 50px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .value-card,
    .team-card,
    .programme-card,
    .actualites-card {
        padding: 1.25rem;
    }

    .programme-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .programme-icon {
        font-size: 2rem;
    }

    .programme-header h2 {
        font-size: 1.25rem;
    }

    .actualites-card-title {
        font-size: 1.25rem;
    }

    .contact-form-wrapper h2,
    .contact-info-card h2 {
        font-size: 1.5rem;
    }

    .nav-logo {
        height: 35px;
    }

    .nav-brand a {
        font-size: 1.25rem;
    }
}

/* Amélioration tactile pour mobile */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-menu a,
    .footer-col a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-toggle {
        min-width: 44px;
        min-height: 44px;
    }
}

