/* ===================================================
   CALDERA-INFO — Site vitrine
   Design "whaou" : animations, micro-interactions, fluidité
   Charte : #27557C (primaire), #2C5F8A (accent),
            #daf9f9 (clair), #EDF2F7 (fond),
            #4A7FAA (border), #1a1a1a (texte)
   =================================================== */

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #EDF2F7;
    overflow-x: hidden;
}

a { color: #2C5F8A; text-decoration: none; transition: color .3s ease; }
a:hover { color: #27557C; }

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

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

/* === ANIMATIONS AU SCROLL === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(.85);
    transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Délais en cascade */
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }
.delay-6 { transition-delay: .6s; }

/* === HEADER === */
.site-header {
    background: #1a3a54;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background .4s ease, box-shadow .4s ease;
}

.site-header.scrolled {
    background: #152f45;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: 1140px;
    margin: 0 auto;
    height: 72px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    transition: transform .3s ease;
}

.header-logo:hover { transform: scale(1.03); color: #fff; }

.header-logo img {
    height: 42px;
    border-radius: 6px;
}

/* Navigation desktop */
.main-nav ul {
    display: flex;
    gap: 4px;
}

.main-nav a {
    color: #daf9f9;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 500;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #daf9f9;
    transition: width .3s ease, left .3s ease;
    border-radius: 2px;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 60%;
    left: 20%;
}

.main-nav a:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}

.main-nav a.active {
    background: rgba(255,255,255,.12);
    color: #fff;
}

/* Sélecteur de langue */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
}

.lang-switch a {
    color: rgba(218,249,249,.5);
    font-size: .85rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all .3s ease;
}

.lang-switch a:hover,
.lang-switch a.active {
    color: #fff;
    background: rgba(255,255,255,.1);
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
    transition: transform .4s cubic-bezier(.68,-.55,.27,1.55), opacity .3s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* === HERO === */
.hero {
    background: linear-gradient(135deg, #27557C 0%, #1a3a54 40%, #0f2537 100%);
    color: #fff;
    padding: 160px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Particules décoratives */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(218,249,249,.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(74,127,170,.1) 0%, transparent 40%),
                radial-gradient(circle at 50% 80%, rgba(218,249,249,.05) 0%, transparent 40%);
    animation: hero-float 20s ease-in-out infinite;
}

@keyframes hero-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, -2%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-0.5deg); }
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
    animation: hero-title .8s cubic-bezier(.16,1,.3,1) both;
}

@keyframes hero-title {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero p {
    font-size: 1.25rem;
    max-width: 660px;
    margin: 0 auto 36px;
    color: rgba(218,249,249,.85);
    line-height: 1.7;
    animation: hero-text .8s cubic-bezier(.16,1,.3,1) .15s both;
}

@keyframes hero-text {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: hero-cta .8s cubic-bezier(.16,1,.3,1) .3s both;
}

@keyframes hero-cta {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Vague décorative sous le hero */
.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 2;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* === BOUTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .3s cubic-bezier(.16,1,.3,1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.2), transparent);
    opacity: 0;
    transition: opacity .3s ease;
}

.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(.96); }

.btn-primary {
    background: #fff;
    color: #27557C;
    box-shadow: 0 4px 15px rgba(0,0,0,.15);
}
.btn-primary:hover {
    background: #daf9f9;
    color: #27557C;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,.2);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.5);
}
.btn-secondary:hover {
    background: rgba(255,255,255,.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, #27557C, #1a3a54);
    color: #fff;
    box-shadow: 0 4px 15px rgba(39,85,124,.3);
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39,85,124,.4);
}

.btn-outline {
    background: transparent;
    color: #27557C;
    border-color: #27557C;
}
.btn-outline:hover {
    background: #27557C;
    color: #fff;
    transform: translateY(-2px);
}

.btn-white-accent {
    background: #fff;
    color: #27557C;
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
}
.btn-white-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    color: #27557C;
}

/* === SECTIONS === */
.section {
    padding: 80px 20px;
    position: relative;
}

.section-white { background: #f0f5fa; }
.section-light { background: #EDF2F7; }
.section-accent { background: #daf9f9; }

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #27557C;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    max-width: 600px;
    margin: 0 auto 48px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* === COMPTEUR ANIMÉ === */
.counter {
    font-variant-numeric: tabular-nums;
}

/* === CARTES SERVICES === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1140px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    border: 1px solid rgba(74,127,170,.2);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    transition: all .4s cubic-bezier(.16,1,.3,1);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #27557C, #4A7FAA);
    transform: scaleX(0);
    transition: transform .4s cubic-bezier(.16,1,.3,1);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(39,85,124,.12);
    border-color: rgba(74,127,170,.4);
    color: inherit;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #daf9f9, #EDF2F7);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .4s cubic-bezier(.16,1,.3,1), background .4s ease;
}

.service-card .card-icon i,
.service-card .card-icon svg {
    width: 28px;
    height: 28px;
    color: #27557C;
    stroke-width: 2;
}

.service-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, #27557C, #2C5F8A);
}

.service-card:hover .card-icon i,
.service-card:hover .card-icon svg {
    color: #fff;
}

.service-card h3 {
    font-size: 1.15rem;
    color: #27557C;
    margin-bottom: 10px;
    font-weight: 700;
}

.service-card p {
    color: #666;
    font-size: .95rem;
    line-height: 1.6;
}

/* === BLOC DOLIBARR ACCUEIL === */
.dolibarr-highlight {
    background: linear-gradient(135deg, #27557C 0%, #1a3a54 50%, #0f2537 100%);
    color: #fff;
    border-radius: 20px;
    padding: 56px 48px;
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(39,85,124,.25);
}

.dolibarr-highlight::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(218,249,249,.1) 0%, transparent 70%);
    border-radius: 50%;
}

.dolibarr-highlight .dh-content { flex: 1; position: relative; z-index: 1; }

.dolibarr-highlight h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.dolibarr-highlight .alert-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    padding: 6px 18px;
    border-radius: 24px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 20px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231,76,60,.4); }
    50% { box-shadow: 0 0 0 8px rgba(231,76,60,0); }
}

.dolibarr-highlight p {
    color: rgba(218,249,249,.85);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.dolibarr-highlight .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.dolibarr-highlight .price small {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(218,249,249,.7);
}

.dolibarr-highlight .dh-cta {
    flex-shrink: 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* === POURQUOI NOUS === */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1140px;
    margin: 0 auto;
}

.why-item {
    text-align: center;
    padding: 32px 20px;
    border-radius: 16px;
    transition: all .4s cubic-bezier(.16,1,.3,1);
    background: transparent;
}

.why-item:hover {
    background: #fff;
    box-shadow: 0 12px 30px rgba(39,85,124,.08);
    transform: translateY(-4px);
}

.why-item .why-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #27557C, #2C5F8A);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .4s cubic-bezier(.16,1,.3,1);
}

.why-item:hover .why-icon {
    transform: rotate(-10deg) scale(1.1);
}

.why-item .why-icon i,
.why-item .why-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
    stroke-width: 2;
}

.why-item h3 {
    font-size: 1.05rem;
    color: #27557C;
    margin-bottom: 8px;
    font-weight: 700;
}

.why-item p {
    color: #666;
    font-size: .9rem;
    line-height: 1.5;
}

/* === CONTACT RAPIDE === */
.contact-quick {
    text-align: center;
    padding: 56px 20px;
    background: #f0f5fa;
}

.contact-quick-inner {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 24px;
}

.contact-quick a {
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all .3s ease;
}

.contact-quick a:not(.btn):hover {
    background: #EDF2F7;
}

/* === PAGE SERVICES === */
.service-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 56px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.service-detail:last-of-type { border-bottom: none; }

.service-detail h2 {
    font-size: 1.7rem;
    color: #27557C;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.service-detail h2 i,
.service-detail h2 svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.service-detail p {
    margin-bottom: 14px;
    line-height: 1.7;
    color: #444;
}

.service-detail ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.service-detail li {
    margin-bottom: 10px;
    line-height: 1.6;
    padding-left: 28px;
    position: relative;
    color: #444;
}

.service-detail li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #27557C, #4A7FAA);
    border-radius: 50%;
}

.service-detail .tarif {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #daf9f9, #e8f8f8);
    color: #27557C;
    padding: 8px 20px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(39,85,124,.1);
}

/* === PAGE DOLIBARR === */
.dolibarr-alert {
    background: linear-gradient(135deg, #fff5f5, #fff3cd);
    border-left: 4px solid #e74c3c;
    padding: 24px 28px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 32px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 12px rgba(231,76,60,.08);
}

.dolibarr-alert h3 {
    color: #c0392b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
}

.dolibarr-alert p {
    color: #555;
    line-height: 1.7;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 900px;
    margin: 40px auto;
}

.pricing-card {
    background: #fff;
    border: 2px solid rgba(74,127,170,.2);
    border-radius: 20px;
    padding: 40px 28px;
    text-align: center;
    transition: all .4s cubic-bezier(.16,1,.3,1);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(39,85,124,.12);
}

.pricing-card.featured {
    border-color: #27557C;
    box-shadow: 0 8px 30px rgba(39,85,124,.15);
}

.pricing-card.featured::before {
    content: "Populaire";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #27557C, #1a3a54);
    color: #fff;
    padding: 6px 20px;
    border-radius: 24px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .5px;
}

.pricing-card h3 {
    font-size: 1.4rem;
    color: #27557C;
    margin-bottom: 8px;
    font-weight: 700;
}

.pricing-card .price {
    font-size: 2.8rem;
    font-weight: 800;
    color: #27557C;
    margin: 16px 0;
    letter-spacing: -1px;
}

.pricing-card .price small {
    font-size: .9rem;
    font-weight: 400;
    color: #666;
}

.pricing-card ul {
    text-align: left;
    padding-left: 0;
    margin: 20px 0;
}

.pricing-card li {
    padding: 10px 0;
    border-bottom: 1px solid #EDF2F7;
    font-size: .95rem;
    padding-left: 28px;
    position: relative;
    color: #444;
}

.pricing-card li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #27557C;
    font-weight: 700;
    font-size: 1rem;
}

/* FAQ */
.faq { max-width: 900px; margin: 0 auto; }

.faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 0;
    cursor: pointer;
    transition: background .3s ease;
}

.faq-item:hover { background: rgba(237,242,247,.5); margin: 0 -16px; padding: 24px 16px; border-radius: 8px; }

.faq-item h3 {
    font-size: 1.1rem;
    color: #27557C;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.faq-item h3::before {
    content: '?';
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #daf9f9, #EDF2F7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
    color: #27557C;
    flex-shrink: 0;
}

.faq-item p { color: #555; line-height: 1.7; padding-left: 36px; }

/* === À PROPOS === */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 1.7rem;
    color: #27557C;
    margin: 40px 0 16px;
    font-weight: 700;
}

.about-content h2:first-of-type { margin-top: 0; }

.about-content p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #444;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.value-card {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    border-left: 4px solid #27557C;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
    transition: all .4s cubic-bezier(.16,1,.3,1);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(39,85,124,.1);
}

.value-card h3 {
    color: #27557C;
    margin-bottom: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.value-card p {
    color: #555;
    font-size: .95rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* === PAGE CONTACT === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1060px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 1.5rem;
    color: #27557C;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 12px;
    transition: background .3s ease;
}

.contact-info-item:hover { background: #EDF2F7; }

.contact-info-item i,
.contact-info-item svg {
    color: #27557C;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-info-item p { font-size: .95rem; color: #444; }
.contact-info-item a { font-weight: 600; }

.contact-map {
    margin-top: 24px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(74,127,170,.2);
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

.contact-form-wrap {
    background: #fff;
    padding: 36px;
    border-radius: 20px;
    border: 1px solid rgba(74,127,170,.15);
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
}

.contact-form-wrap h2 {
    font-size: 1.5rem;
    color: #27557C;
    margin-bottom: 24px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: .95rem;
    color: #1a1a1a;
}

.form-group label .required { color: #e74c3c; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color .3s ease, box-shadow .3s ease;
    background: #fafbfc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #27557C;
    box-shadow: 0 0 0 4px rgba(39,85,124,.08);
    background: #fff;
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .9rem;
    color: #555;
    line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    accent-color: #27557C;
}

.form-message {
    padding: 14px 20px;
    border-radius: 10px;
    margin-top: 16px;
    display: none;
    font-weight: 500;
    animation: msg-in .4s cubic-bezier(.16,1,.3,1);
}

@keyframes msg-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Honeypot */
.ohnohoney { position: absolute; left: -9999px; }

/* === MENTIONS LÉGALES / CGV === */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 48px 44px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

.legal-content h2 {
    font-size: 1.4rem;
    color: #27557C;
    margin: 32px 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #EDF2F7;
    font-weight: 700;
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content p {
    margin-bottom: 14px;
    line-height: 1.7;
    color: #444;
}

/* === FOOTER === */
.site-footer {
    background: linear-gradient(135deg, #1a3a54 0%, #0f2537 100%);
    color: #daf9f9;
    padding: 56px 20px 28px;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 18px;
    font-weight: 700;
}

.footer-col p {
    font-size: .9rem;
    line-height: 1.7;
    color: rgba(218,249,249,.7);
}

.footer-col a {
    color: rgba(218,249,249,.7);
    display: block;
    padding: 5px 0;
    font-size: .9rem;
    transition: all .3s ease;
}

.footer-col a:hover {
    color: #fff;
    padding-left: 6px;
}

.footer-bottom {
    max-width: 1140px;
    margin: 36px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    text-align: center;
    font-size: .85rem;
    color: rgba(218,249,249,.5);
}

/* === PAGE HERO (sous-pages) === */
.page-hero {
    background: linear-gradient(135deg, #27557C 0%, #1a3a54 50%, #0f2537 100%);
    color: #fff;
    padding: 130px 20px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 70% 50%, rgba(218,249,249,.06) 0%, transparent 50%);
}

.page-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
    font-weight: 800;
    position: relative;
}

.page-hero p {
    color: rgba(218,249,249,.8);
    font-size: 1.15rem;
    position: relative;
}

/* Vague décorative */
.page-hero .hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
}

/* === BARRE DE STATS === */
.stats-bar {
    background: #fff;
    padding: 0;
}

.stats-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item {
    padding: 32px 20px;
    border-right: 1px solid #EDF2F7;
}

.stat-item:last-child { border-right: none; }

.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #27557C;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-item .stat-label {
    font-size: .9rem;
    color: #666;
}

/* === RESPONSIVE === */

/* Tablette */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .dolibarr-highlight { flex-direction: column; text-align: center; padding: 36px 28px; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
}

/* Mobile */
@media (max-width: 768px) {
    .menu-toggle { display: block; }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #1a3a54;
        padding: 90px 24px 24px;
        z-index: 999;
    }

    .main-nav.open {
        display: flex;
        flex-direction: column;
        animation: nav-in .3s ease;
    }

    @keyframes nav-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .main-nav ul {
        flex-direction: column;
        gap: 8px;
    }

    .main-nav a {
        display: block;
        padding: 14px 20px;
        font-size: 1.15rem;
        text-align: center;
    }

    .lang-switch {
        margin-left: 0;
        justify-content: center;
        margin-top: 16px;
    }

    .hero { padding: 130px 20px 80px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }

    .services-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr 1fr; }

    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .footer-inner { grid-template-columns: 1fr; gap: 24px; }

    .section { padding: 48px 16px; }
    .section-title { font-size: 1.7rem; }

    .pricing-grid { grid-template-columns: 1fr; }

    .dolibarr-highlight { padding: 28px 20px; }
    .dolibarr-highlight h2 { font-size: 1.5rem; }
    .dolibarr-highlight .price { font-size: 2rem; }

    .legal-content { padding: 28px 20px; }

    .stats-inner { grid-template-columns: 1fr 1fr; }
    .stat-item { padding: 20px 12px; }
    .stat-item .stat-number { font-size: 2rem; }

    .page-hero { padding: 110px 20px 40px; }
    .page-hero h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .why-grid { grid-template-columns: 1fr; }
    .stats-inner { grid-template-columns: 1fr; }
    .stat-item { border-right: none; border-bottom: 1px solid #EDF2F7; }
}

@media (max-width: 320px) {
    body { font-size: 14px; }
    .header-logo { font-size: 1rem; }
    .header-logo img { height: 35px; }
    .hero h1 { font-size: 1.5rem; }
    .btn { padding: 11px 22px; font-size: .9rem; }
}

/* === PRINT === */
@media print {
    .site-header, .site-footer, .hero-wave, .menu-toggle { display: none; }
    .hero, .page-hero { padding-top: 20px; background: #27557C !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .section { padding: 20px 0; }
}
