
/*
Theme Name: R2dClouD Services
Author: R2dClouD
Description: Vitrine maintenance de portes de garage pour copropriétés, informatique et vidéosurveillance.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: r2dcloud-services
License: GPL v2 or later
*/

/* VARIABLES ET STYLES GÉNÉRAUX */

:root {
    --ink: #142b49;
    --green: #2563b8;
    --lime: #a8d9ff;
    --paper: #f4f7fc;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
}

h1, h2, h3 {
    font-family: Manrope, sans-serif;
    letter-spacing: -.045em;
}

a {
    color: inherit;
    text-decoration: none;
}

/* EN-TÊTE ET NAVIGATION ORDINATEUR */

header {
    height: 90px;
    max-width: 1320px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--green);
}

nav {
    display: flex;
    gap: 32px;
    font-size: 14px;
}

nav a:hover {
    color: var(--green);
}

.phone {
    font-size: 14px;
    border: 1px solid #bccce2;
    padding: 12px 18px;
    border-radius: 30px;
}

/* PAGE D'ACCUEIL */

.hero {
    max-width: 1320px;
    margin: auto;
    padding: 35px 5% 70px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 9px;
}

.dot {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
}

h1 {
    font-size: clamp(42px, 4.8vw, 68px);
    line-height: 1.08;
    margin: 25px 0;
}

h1 em {
    font-style: normal;
    color: var(--green);
}

.intro {
    font-size: 17px;
    line-height: 1.7;
    max-width: 460px;
    color: #617086;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 36px;
    border-radius: 7px;
    padding: 17px 23px;
    background: var(--green);
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin-top: 18px;
}

.hero-photo {
    position: relative;
    height: 520px;
    border-radius: 18px;
    overflow: hidden;
    background: #c8d7ec;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(8,24,48,.65), transparent 60%);
}

.photo-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: white;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 600;
    max-width: 280px;
}

.badge {
    position: absolute;
    top: 22px;
    left: 22px;
    background: var(--paper);
    border-radius: 30px;
    padding: 11px 16px;
    font-size: 12px;
}

.smallnote {
    margin-top: 26px;
    font-size: 12px;
    color: #748298;
}

/* BANDEAU */

.strip {
    background: #e8effa;
    border-top: 1px solid #d6e1f2;
    border-bottom: 1px solid #d6e1f2;
}

.strip-inner {
    max-width: 1180px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 13px;
}

.strip-inner span:before {
    content: '✳';
    color: var(--green);
    margin-right: 13px;
}

/* SECTIONS ET PRESTATIONS */

.section {
    max-width: 1180px;
    margin: auto;
    padding: 95px 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 38px;
}

h2 {
    font-size: 40px;
    line-height: 1.2;
    margin: 15px 0 0;
}

.section-head p {
    max-width: 340px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 27px;
}

.number {
    color: var(--green);
    font-size: 11px;
    letter-spacing: 1px;
}

h3 {
    font-size: 23px;
    margin: 14px 0;
}

.card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.card-body > a {
    font-size: 13px;
    font-weight: 700;
    display: block;
    border-top: 1px solid #e0e7f2;
    padding-top: 20px;
    margin-top: 24px;
}

.card-body > a span {
    float: right;
}

/* COPROPRIÉTÉS */

.feature {
    background: var(--ink);
    color: var(--paper);
}

.feature-inner {
    max-width: 1180px;
    margin: auto;
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
}

.feature h2 {
    font-size: 43px;
}

.feature p {
    color: #bac9df;
    line-height: 1.7;
    font-size: 15px;
}

.feature .eyebrow {
    color: var(--lime);
}

.checkrow {
    padding: 20px 0;
    border-bottom: 1px solid #3f5778;
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 12px;
}

.checkrow b {
    font-size: 17px;
    font-weight: 500;
}

.checkrow p {
    margin: 8px 0 0;
    font-size: 13px;
}

.check {
    color: var(--lime);
}

/* ÉTAPES */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-top: 45px;
}

.step-num {
    font-size: 13px;
    color: var(--green);
    padding-bottom: 16px;
    border-bottom: 1px solid #c8d5e8;
}

.steps p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
}

/* CONTACT */

.contact {
    background: #e5efff;
    border-radius: 18px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact h2 {
    font-size: 38px;
}

.contact p {
    color: #5d708c;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.contact-links a {
    padding: 18px 22px;
    background: #f4f7fc;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}

.contact-links a:hover {
    background: white;
}

.contact .button {
    background: #f4f7fc;
    color: inherit;
}
.contact .button:hover {
    background: white;
}

/* PIED DE PAGE */

footer {
    max-width: 1180px;
    margin: auto;
    padding: 35px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #728198;
}

footer .logo {
    font-size: 20px;
}

details {
    margin-top: 24px;
    font-size: 12px;
    line-height: 1.7;
}

summary {
    cursor: pointer;
}

.menu {
    display: none;
}

/* PAGES WORDPRESS */

body.admin-bar header {
    margin-top: 32px;
}

.wp-content {
    max-width: 1180px;
    margin: 60px auto;
    padding: 0 5%;
}

.wp-content img {
    max-width: 100%;
    height: auto;
}

/* TABLETTES */

@media (max-width: 1250px) {
    .section,
    .feature-inner,
    .strip-inner,
    footer {
        margin-left: 5%;
        margin-right: 5%;
    }
}

/* MOBILE */

@media (max-width: 760px) {

    header {
        height: 75px;
        padding: 0 3%;
        gap: 8px;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    header .logo {
        flex: 0 1 28%;
        min-width: 0;
        font-size: 18px;
    }

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

    header nav {
        flex: 1;
        min-width: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 5px;
        font-size: clamp(10px, 2.5vw, 12px);
    }

    header nav a {
        white-space: nowrap;
    }

    /* Gestion reste accessible par URL, mais pas dans le menu mobile */
    header nav a[href*="/gestion"] {
        display: none;
    }

    /* Nos services devient Services uniquement sur mobile */
    header nav a:first-child {
        font-size: 0;
    }

    header nav a:first-child::after {
        content: "Services";
        font-size: clamp(10px, 2.5vw, 12px);
    }

    header .phone {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 20px;
    }

    .hero-photo {
        height: 350px;
    }

    h1 {
        font-size: 46px;
    }

    .strip-inner {
        flex-wrap: wrap;
        gap: 18px;
        font-size: 11px;
    }

    .section {
        padding: 60px 0;
    }

    .section-head {
        display: block;
    }

    h2 {
        font-size: 33px;
    }

    .services,
    .steps,
    .feature-inner,
    .contact {
        grid-template-columns: 1fr;
    }

    .services {
        gap: 25px;
    }

    .card img {
        height: 230px;
    }

    .feature-inner {
        padding: 55px 0;
        gap: 25px;
    }

    .feature h2 {
        font-size: 35px;
    }

    .steps {
        gap: 20px;
    }

    .contact {
        padding: 28px;
        gap: 15px;
    }

    footer {
        align-items: start;
        gap: 25px;
        flex-wrap: wrap;
    }
}
