/*
    accueil.css - Styles pour la page d'accueil
    
    Ce module contient les styles spécifiques à la page d'accueil,
    ainsi que les styles pour la section hero et l'accès rapide.

    @author Alexandre BURIN
    @version 1.0.0
*/

/* Styles pour la section hero */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-brown) 100%);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    margin-bottom: 2.5rem;
    color: white;
    box-shadow: 0 8px 32px rgba(122, 155, 110, 0.25);
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Styles pour le conteneur d'accès rapide */
.acces-rapide-container {
    background: linear-gradient(135deg, rgba(122, 155, 110, 0.05) 0%, rgba(201, 169, 97, 0.05) 100%);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.acces-rapide-container h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.2px;
}

/* Grille d'accès rapide */
.acces-rapide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    justify-content: center;
}

/* Élément d'accès rapide */
.acces-rapide-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1.5px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

/* Icône d'accès rapide */
.acces-rapide-icon {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.acces-rapide-icon i {
    transition: transform 0.3s ease;
}

.acces-rapide-item:hover .acces-rapide-icon i {
    transform: scale(1.15);
}

.acces-rapide-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.acces-rapide-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(122, 155, 110, 0.15);
    border-color: var(--primary-green);
}

.acces-rapide-item:hover::before {
    transform: scaleX(1);
}

.acces-rapide-item a {
    text-decoration: none;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.acces-rapide-item a:hover {
    color: var(--primary-brown);
}

.acces-rapide-item .description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Styles pour la section À propos du site */
.a-propos-site {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1.5px solid var(--border-light);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.a-propos-site h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
    letter-spacing: -0.2px;
}

.approche-content {
    margin-bottom: 2rem;
}

.approche-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-brown);
    margin-bottom: 1rem;
    letter-spacing: -0.1px;
}

.approche-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

.approche-content em {
    color: var(--primary-green);
    font-style: italic;
}

.approche-content figure,
.but-section figure {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.approche-content img,
.but-section img {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.approche-content img:hover,
.but-section img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(122, 155, 110, 0.2);
}

.approche-content figcaption,
.but-section figcaption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    text-align: center;
    line-height: 1.5;
}

.but-section {
    background: linear-gradient(135deg, rgba(122, 155, 110, 0.05) 0%, rgba(201, 169, 97, 0.05) 100%);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
}

.but-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-brown);
    margin-bottom: 1rem;
    letter-spacing: -0.1px;
}

.but-section p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.but-section p:last-of-type {
    margin-bottom: 1.5rem;
}

.but-section strong {
    color: var(--primary-green);
    font-weight: 600;
}

.note-fin {
    background: linear-gradient(135deg, rgba(122, 155, 110, 0.08) 0%, rgba(122, 155, 110, 0.03) 100%);
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid var(--border-light);
}

.note-fin p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* Styles pour la carte de présentation de l'entreprise */
.carte-presentation-entreprise {
    background: white;
    border-radius: 24px;
    padding: 0;
    margin-bottom: 3rem;
    border: 2px solid var(--border-light);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.carte-presentation-entreprise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--accent-gold) 50%, var(--primary-brown) 100%);
    opacity: 0.9;
}

.carte-presentation-entreprise:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(122, 155, 110, 0.2);
    border-color: var(--primary-green);
}

.carte-presentation-entreprise-header {
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    background: linear-gradient(135deg, rgba(122, 155, 110, 0.05) 0%, rgba(201, 169, 97, 0.04) 100%);
    border-bottom: 2px solid var(--border-light);
}

.carte-presentation-entreprise-header h2 {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0;
    letter-spacing: -0.4px;
    line-height: 1.25;
    text-align: center;
}

.carte-presentation-entreprise-content {
    padding: 2.5rem 3rem;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.carte-presentation-entreprise-content:has(.photo-auteur) {
    flex-direction: row;
}

.carte-presentation-entreprise-content .infos-auteur {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(122, 155, 110, 0.1) 0%, rgba(201, 169, 97, 0.06) 100%);
    border-radius: 18px;
    border: 1.5px solid var(--border-light);
}

.photo-auteur {
    flex-shrink: 0;
    margin: 0;
    order: -1;
}

.photo-auteur img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    object-position: center;
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(122, 155, 110, 0.35);
    border: 6px solid var(--primary-green);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-auteur img:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 24px 72px rgba(122, 155, 110, 0.45);
    border-color: var(--accent-gold);
}

/* Styles pour les informations de l'auteur dans la carte */
.auteur,
.profession-auteur,
.location {
    display: inline-flex;
    align-items: center;
    font-size: 1.05rem;
    color: #555;
    font-weight: 500;
    padding: 0.8rem 1.4rem;
    background: white;
    border-radius: 50px;
    border: 1.5px solid var(--border-light);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
    width: fit-content;
}

.auteur:hover,
.profession-auteur:hover,
.location:hover {
    background: var(--hover-bg);
    border-color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(122, 155, 110, 0.15);
}

.auteur {
    font-weight: 700;
    color: var(--primary-green);
    background: linear-gradient(135deg, rgba(122, 155, 110, 0.18) 0%, rgba(122, 155, 110, 0.08) 100%);
    border-color: var(--primary-green);
    border-width: 2px;
    box-shadow: 0 4px 12px rgba(122, 155, 110, 0.2);
}

.separator {
    color: var(--accent-gold);
    margin: 0 0.25rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.carte-presentation-entreprise-header h3 {
    font-size: 1.25rem;
}

.carte-presentation-entreprise-header p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

.carte-presentation-entreprise-header em {
    color: var(--primary-green);
    font-style: italic;
}

/* Responsive pour la page accueil */
@media (max-width: 480px) {
    /* Responsive hero section */
    .hero-section {
        padding: 2rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* Responsive quick access */
    .acces-rapide-container {
        padding: 1.0rem;
    }

    .acces-rapide-grid {
        grid-template-columns: 1fr;
    }

    .acces-rapide-item {
        padding: 1rem;
    }
}

/* Responsive pour la carte de présentation */
@media (max-width: 1024px) {
    .carte-presentation-entreprise {
        padding: 0;
    }

    .carte-presentation-entreprise-content {
        padding: 2rem;
        gap: 2rem;
    }

    .photo-auteur img {
        width: 220px;
        height: 220px;
    }

    .carte-presentation-entreprise-content .infos-auteur {
        padding: 1.5rem;
        gap: 0.8rem;
    }
}

@media (max-width: 768px) {
    .carte-presentation-entreprise {
        padding: 0;
    }

    .carte-presentation-entreprise-header {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }

    .carte-presentation-entreprise-header h2 {
        font-size: 1.6rem;
    }

    .carte-presentation-entreprise-content {
        padding: 2rem 1.5rem;
        flex-direction: column;
        gap: 2rem;
    }

    .photo-auteur {
        order: -1;
        margin: 0 auto;
    }

    .photo-auteur img {
        width: 150px;
        height: 150px;
        border-width: 4px;
    }

    .carte-presentation-entreprise-content .infos-auteur {
        width: 100%;
        padding: 1.5rem;
        align-items: center;
        gap: 0.8rem;
    }

    .auteur,
    .profession-auteur,
    .location {
        font-size: 0.95rem;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .carte-presentation-entreprise {
        padding: 0;
    }

    .carte-presentation-entreprise-header {
        padding: 1.5rem 1rem 1rem 1rem;
    }

    .carte-presentation-entreprise-header h2 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .carte-presentation-entreprise-content {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    .photo-auteur img {
        width: 120px;
        height: 120px;
        border-width: 3px;
    }

    .carte-presentation-entreprise-content .infos-auteur {
        padding: 1.25rem;
        gap: 0.6rem;
    }

    .auteur,
    .profession-auteur,
    .location {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .carte-presentation-entreprise-content .infos-auteur {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
    }

    .auteur,
    .profession-auteur,
    .location {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .carte-presentation-entreprise-header h2 {
        font-size: 1.2rem;
    }

    .photo-auteur img {
        width: 100px;
        height: 100px;
    }
}
