/* =====================================================================
   Fichier : /assets/css/style.css
   Site    : 7Domaine — hébergement web
   Identité: bleu #2D5BFF (principal), turquoise #14B8A6 (accent/dot),
             ardoise #0F172A (texte). Titres en Poppins, corps en sans système.
   Signature : la pastille turquoise (le « point » du nom de domaine) sert
               de marqueur d'eyebrow + de puce, et les jauges affichent les
               ressources réelles de chaque offre.
   ===================================================================== */

:root {
    --bleu: #2D5BFF;
    --bleu-fonce: #1E40AF;
    --turquoise: #14B8A6;
    --ardoise: #0F172A;
    --gris: #64748B;
    --gris-clair: #94A3B8;
    --nuage: #F1F5F9;
    --bordure: #E2E8F0;
    --blanc: #FFFFFF;
    --rayon: 12px;
    --rayon-sm: 8px;
    --ombre: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
    --max: 1140px;
    --police-titre: 'Poppins', system-ui, sans-serif;
    --police-corps: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--police-corps);
    color: var(--ardoise);
    background: var(--blanc);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 { font-family: var(--police-titre); font-weight: 600; line-height: 1.15; margin: 0; }

.conteneur { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.conteneur--etroit { max-width: 720px; }

/* ---------- Eyebrow signature (pastille turquoise) ---------- */
.eyebrow {
    font-family: var(--police-titre);
    font-size: .82rem; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--bleu); margin: 0 0 12px;
    display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--turquoise);
}
.eyebrow--centre { justify-content: center; display: flex; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--police-titre); font-weight: 500; font-size: .95rem;
    padding: 12px 22px; border-radius: var(--rayon-sm);
    text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn--primaire { background: var(--bleu); color: #fff; }
.btn--primaire:hover { background: var(--bleu-fonce); transform: translateY(-1px); }
.btn--clair { background: #fff; color: var(--bleu); border-color: var(--bordure); }
.btn--clair:hover { border-color: var(--bleu); transform: translateY(-1px); }
.btn--bloc { width: 100%; margin-top: auto; }

/* ---------- En-tête ---------- */
.entete {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--bordure);
}
.entete__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo img { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-family: var(--police-titre); font-weight: 500; font-size: .95rem; text-decoration: none; color: var(--ardoise); }
.nav a:hover { color: var(--bleu); }
.nav__cta { background: var(--bleu); color: #fff !important; padding: 9px 16px; border-radius: var(--rayon-sm); }
.nav__cta:hover { background: var(--bleu-fonce); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ardoise); border-radius: 2px; }

/* ---------- Sélecteur de devise (contrôle segmenté) ---------- */
.entete__droite { display: flex; align-items: center; gap: 16px; }
.devises { display: inline-flex; border: 1px solid var(--bordure); border-radius: var(--rayon-sm); overflow: hidden; }
.devise-opt {
    font-family: var(--police-titre); font-weight: 500; font-size: .85rem;
    padding: 6px 11px; text-decoration: none; color: var(--gris);
    border-left: 1px solid var(--bordure); background: #fff; line-height: 1.4;
}
.devise-opt:first-child { border-left: 0; }
.devise-opt:hover { color: var(--bleu); }
.devise-opt.is-actif { background: var(--bleu); color: #fff; }

.note-devise { text-align: center; color: var(--gris-clair); font-size: .85rem; margin: -28px 0 36px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; color: #fff;
    background:
        linear-gradient(180deg, rgba(8, 12, 30, .82), rgba(8, 12, 30, .72)),
        url('../img/hebergement-web.jpg') center / cover no-repeat;
}
.hero__inner { padding: 96px 20px 88px; max-width: 820px; }
.hero .eyebrow { color: #8BB0FF; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 18px; }
.hero__sous { font-size: 1.08rem; color: #CBD5E1; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 30px; }
.hero__preuves { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; font-size: .92rem; color: #CBD5E1; }
.hero__preuves li { display: flex; align-items: center; gap: 8px; }
.hero__preuves li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--turquoise); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--alt { background: var(--nuage); }
.section__titre { font-size: clamp(1.6rem, 3.5vw, 2.2rem); text-align: center; margin-bottom: 12px; }
.section__intro { text-align: center; color: var(--gris); max-width: 640px; margin: 0 auto 44px; }

/* ---------- Grille offres mutualisées ---------- */
.grille-offres { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }

.offre {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon);
    padding: 26px 24px; box-shadow: var(--ombre);
    transition: transform .18s ease, box-shadow .18s ease;
}
.offre:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(15, 23, 42, .1); }
.offre--populaire { border-color: var(--bleu); border-width: 1.5px; }
.offre__badge {
    position: absolute; top: -12px; left: 24px;
    background: var(--bleu); color: #fff; font-family: var(--police-titre);
    font-size: .72rem; font-weight: 500; letter-spacing: .06em;
    padding: 5px 12px; border-radius: 999px;
}
.offre__nom { font-size: 1.25rem; margin-bottom: 4px; }
.offre__cible { color: var(--gris); font-size: .9rem; min-height: 40px; margin: 0 0 14px; }
.offre__prix { display: flex; align-items: baseline; gap: 6px; margin: 0 0 18px; }
.offre__montant { font-family: var(--police-titre); font-weight: 600; font-size: 2rem; color: var(--ardoise); }
.offre__periode { color: var(--gris); font-size: .95rem; }

/* ---------- Jauges (ressources réelles) ---------- */
.jauges { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.jauge__tete { display: flex; justify-content: space-between; font-size: .82rem; color: var(--gris); margin-bottom: 5px; }
.jauge__piste { height: 7px; background: var(--nuage); border-radius: 999px; overflow: hidden; }
.jauge__rempli { display: block; height: 100%; border-radius: 999px; }
.jauge__rempli--disque { background: var(--bleu); }
.jauge__rempli--bp { background: var(--turquoise); }

.offre__specs { list-style: none; padding: 0; margin: 0 0 22px; }
.offre__specs li { position: relative; padding-left: 24px; font-size: .9rem; margin-bottom: 8px; color: #334155; }
.offre__specs li::before {
    content: '✓'; position: absolute; left: 0; top: 0;
    color: var(--turquoise); font-weight: 700;
}

/* ---------- Inclus ---------- */
.inclus { list-style: none; padding: 0; margin: 0 auto 18px; max-width: 760px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 28px; }
.inclus li { position: relative; padding-left: 26px; color: #334155; }
.inclus li::before { content: ''; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--turquoise); }
.note { text-align: center; color: var(--gris-clair); font-size: .85rem; margin-top: 24px; }

/* ---------- Serveurs dédiés ---------- */
.grille-dedie { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.dedie {
    display: flex; flex-direction: column; background: #fff;
    border: 1px solid var(--bordure); border-radius: var(--rayon);
    padding: 28px 26px; box-shadow: var(--ombre);
}
.dedie--populaire { border-color: var(--bleu); border-width: 1.5px; }
.dedie--vide { background: #fff; border-style: dashed; }
.dedie__nom { font-size: 1.4rem; margin-bottom: 4px; }
.dedie__cible { color: var(--gris); font-size: .9rem; margin: 0 0 16px; min-height: 40px; }
.dedie__prix { display: flex; align-items: baseline; gap: 6px; margin: 0 0 20px; }
.dedie__prix--devis { font-family: var(--police-titre); font-weight: 600; font-size: 1.5rem; color: var(--gris); }
.dedie__attente { color: var(--gris-clair); font-size: .9rem; margin: 0 0 20px; }
.dedie__specs { margin: 0 0 22px; }
.dedie__specs dt { font-family: var(--police-titre); font-weight: 500; font-size: .8rem; color: var(--bleu); margin-top: 12px; }
.dedie__specs dd { margin: 2px 0 0; font-size: .9rem; color: #334155; }

/* Deux cartes (Value + sur mesure) centrées */
.grille-dedie--duo { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Carte offres sur mesure */
.dedie--surmesure { background: #F5F8FF; border-color: #BFD0FF; }
.surmesure__points { list-style: none; padding: 0; margin: 0 0 22px; }
.surmesure__points li { position: relative; padding-left: 24px; font-size: .9rem; margin-bottom: 8px; color: #334155; }
.surmesure__points li::before { content: ''; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--turquoise); }
.surmesure__alt { text-align: center; font-size: .85rem; color: var(--gris); margin: 14px 0 0; }
.surmesure__alt a { color: var(--bleu); text-decoration: underline; }

/* ---------- Formulaire ---------- */
.formulaire { display: flex; flex-direction: column; gap: 18px; background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 30px; box-shadow: var(--ombre); }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.champ label { font-family: var(--police-titre); font-weight: 500; font-size: .9rem; }
.champ .opt { color: var(--gris-clair); font-weight: 400; }
.champ input, .champ select, .champ textarea {
    font: inherit; padding: 11px 13px; border: 1px solid var(--bordure);
    border-radius: var(--rayon-sm); background: #fff; color: var(--ardoise); width: 100%;
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
    outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(45, 91, 255, .15);
}
.champ .invalide { border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.cache { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.alerte { border-radius: var(--rayon-sm); padding: 14px 16px; margin-bottom: 22px; font-size: .95rem; }
.alerte--ok { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alerte--ko { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ---------- Pied ---------- */
.pied { background: var(--ardoise); color: #CBD5E1; padding: 48px 0; }
.pied__inner { text-align: center; }
.pied__inner img { height: 42px; width: auto; margin: 0 auto 14px; }
.pied__base { margin: 0 0 6px; }
.pied__legal { font-size: .85rem; color: var(--gris-clair); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .nav-toggle { display: flex; }
    .nav {
        position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--bordure);
        max-height: 0; overflow: hidden; transition: max-height .25s ease;
    }
    .nav.nav--ouvert { max-height: 360px; }
    .nav a { padding: 14px 20px; border-top: 1px solid var(--bordure); }
    .nav__cta { margin: 12px 20px; border-radius: var(--rayon-sm); text-align: center; }
    .champ-duo { grid-template-columns: 1fr; }
    .hero__inner { padding: 70px 20px 64px; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .offre { transition: none; }
}

:focus-visible { outline: 3px solid rgba(45, 91, 255, .5); outline-offset: 2px; }
