@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;600&display=swap');

:root {
    --pantone-rouge: rgb(244, 0, 52);
    --gris-neutre: rgb(127, 127, 127);
    --fond-clair: rgb(242, 242, 242);
    --texte: var(--gris-neutre);
    --blanc: #FFFFFF;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: var(--fond-clair);
    color: var(--texte);
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.btn {
    background-color: var(--pantone-rouge);
    color: var(--blanc);
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #c9362f;
}

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    margin-top: 0px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: blur(3px);
}

.hero-content {
    position: relative;
    color: var(--blanc);
    max-width: 900px;
    z-index: 2;
    padding: 20px;
    text-align: center;
    font-weight: 550;
    animation: fadeIn 1.2s ease forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-content p span {
    color: var(--blanc);
    font-weight: 500;
    transition: color 0.3s ease;
}

.hero .btn {
    padding: 15px 35px;
    font-size: 18px;
    border-radius: 14px;
}

.transition-section {
    background-color: var(--fond-clair);
    padding: 60px 20px;
    text-align: center;
    animation: slideFade 0.8s ease-in-out both;
}

.transition-section.services {
    padding: 60px 20px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 50px 32px;
    justify-content: center;
    max-width: 1024px;
    margin: 0 auto;
}

.feature-card {
    background: var(--blanc);
    border-radius: 16px;
    padding: 24px 20px 24px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(40px);
}

.feature-card.appear {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    width: 100%;
    border-radius: 16px 16px 0 0;
}

.feature-card.orange::before { background-color: #EF6C35; }
.feature-card.red::before { background-color: #EF233C; }
.feature-card.blue::before { background-color: #7AC3E2; }
.feature-card.yellow::before { background-color: #F3B900; }
.feature-card.darkblue::before { background-color: #2A3083; }
.feature-card.green::before { background-color: #86B554; }
.feature-card.lightyellow::before { background-color: #FFEE00; }

.service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    height: 72px;
}

.service-icon svg {
    width: 64px;
    height: 64px;
    transition: transform 0.3s ease;
}

.feature-card:hover .service-icon svg {
    transform: scale(1.15);
}

.feature-card h3 {
    color: var(--pantone-rouge);
    font-size: 20px;
    font-weight: 700;
    margin: 12px 0 10px;
}

.feature-card p {
    font-size: 14.2px;
    line-height: 1.55;
    color: #666666;
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-align: center;
    text-wrap: pretty;
    text-rendering: optimizeLegibility;
}

.card-button {
    margin-top: auto;
    padding: 10px 20px;
    background-color: var(--gris-neutre);
    color: var(--blanc);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.card-button:hover {
    background-color: #c9362f;
    box-shadow: 0 0 12px rgba(231, 67, 60, 0.5);
}

.cta-banner {
    position: relative;
    overflow: hidden;
    color: var(--blanc);
    padding: 120px 40px;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
    margin-top: 0;
    border-bottom: 3px solid var(--pantone-rouge);
    text-align: center;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center top;
    filter: blur(5px);
    z-index: 1;
}

.cta-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.cta-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner .btn {
    font-size: 18px;
    font-weight: 700;
    padding: 14px 32px;
}

.cta-banner .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.spacer {
    height: 150px;
}

.hero-title {
    opacity: 0;
    transform: scale(0.8);
    animation: zoomIn 1s ease-out forwards;
    animation-delay: 0.3s;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.2s ease-out forwards;
    animation-delay: 0.6s;
}

.hero-logo-mobile {
    display: none;
    width: 80%;
    max-width: 300px;
    margin-bottom: 2rem;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideFade {
    0% { opacity: 0; transform: translateY(60px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 1024px) {
    .desktop-title { display: none; }
    .hero-logo-mobile { display: block; }
    .hero-content p { font-size: 1.1rem; line-height: 1.7; }
    .hero-content p span { color: var(--pantone-rouge); text-shadow: 1px 1px 2px rgba(0,0,0,0.2); }
}

@media screen and (max-width: 1000px) {
    .transition-section.services { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 600px) {
    .hero-content h1 { font-size: 42px; }
    .hero-content p { font-size: 18px; }
    .hero .btn { padding: 12px 28px; font-size: 16px; }
    .transition-section.services { grid-template-columns: 1fr; }
}
