/*
 * Page d'accueil (app/Views/Site/pages/accueil.php)
 * La grille du portfolio utilise style/css/galerie.css.
 */

.acc {
    --acc-accent: #d447a4;
    --acc-accent-fonce: #b8378c;
    --acc-fond: #161616;
    --acc-fond-2: #1e1e1e;
    --acc-trait: rgba(255, 255, 255, .1);
    --acc-texte: #b5b5b5;
    --acc-titre: #f3f3f3;
    background: var(--acc-fond);
    color: var(--acc-texte);
    font-size: 16px;
    line-height: 1.7;
}

.acc p {
    line-height: 1.7;
}

.acc h1,
.acc h2 {
    color: var(--acc-titre);
    font-family: "Roboto Slab", serif;
    font-weight: 300;
    letter-spacing: 0;
    text-transform: none;
}

.acc h2 {
    margin: 0 0 18px;
    font-size: clamp(26px, 3.2vw, 38px);
    line-height: 1.25;
}

.acc-surtitre {
    margin: 0 0 10px;
    color: var(--acc-accent);
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.acc-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 96px 24px 0;
}

.acc-section--large {
    max-width: 1400px;
}

/* ---------- Boutons et liens ---------- */

.acc-boutons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 32px;
}

.acc-boutons--centre {
    justify-content: center;
}

.acc-bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 28px;
    border: 1px solid var(--acc-accent);
    border-radius: 2px;
    background: var(--acc-accent);
    color: #fff !important;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background-color .2s, border-color .2s;
}

.acc-bouton:hover,
.acc-bouton:focus-visible {
    background: var(--acc-accent-fonce);
    border-color: var(--acc-accent-fonce);
}

.acc-bouton--discret {
    background: rgba(0, 0, 0, .15);
    border-color: rgba(255, 255, 255, .45);
}

.acc-bouton--discret:hover,
.acc-bouton--discret:focus-visible {
    background: rgba(255, 255, 255, .1);
    border-color: #fff;
}

.acc-bouton:focus-visible,
.acc-lien:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.acc-lien {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--acc-titre) !important;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
}

.acc-lien::after {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--acc-accent);
    transition: width .25s;
}

.acc-lien:hover::after {
    width: 36px;
}

.acc-lien--video::before {
    content: "";
    border-left: 9px solid var(--acc-accent);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.acc-lien--video::after {
    display: none;
}

/* ---------- Ouverture ---------- */

.acc-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 560px;
    height: calc(100vh - 90px);
    height: calc(100svh - 90px);
    max-height: 980px;
    overflow: hidden;
    background: #000;
}

.acc-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.acc-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(10, 10, 10, .92) 0%, rgba(10, 10, 10, .45) 45%, rgba(10, 10, 10, .2) 100%),
        linear-gradient(to right, rgba(10, 10, 10, .55), transparent 70%);
}

.acc-hero-texte {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 96px;
}

.acc-hero h1 {
    margin: 0;
    font-size: clamp(44px, 7.5vw, 104px);
    line-height: 1;
}

.acc-hero h1 span {
    display: block;
    margin-top: 16px;
    color: #e6e6e6;
    font-family: "Poppins", sans-serif;
    font-size: clamp(14px, 1.6vw, 20px);
    font-weight: 400;
    letter-spacing: .5em;
    text-transform: uppercase;
}

.acc-hero-lead {
    max-width: 560px;
    margin: 26px 0 0;
    color: #d6d6d6;
    font-size: clamp(16px, 1.4vw, 19px);
}

.acc-defiler {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 1;
    width: 26px;
    height: 42px;
    margin-left: -13px;
    border: 1.5px solid rgba(255, 255, 255, .5);
    border-radius: 13px;
}

.acc-defiler::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 3px;
    height: 8px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: #fff;
    animation: acc-defiler 1.8s ease-in-out infinite;
}

@keyframes acc-defiler {
    0%   { opacity: 0; transform: translateY(0); }
    30%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Présentation ---------- */

.acc-presentation {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: center;
}

.acc-presentation-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    filter: grayscale(1);
}

.acc-reperes {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 36px;
    margin: 30px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--acc-trait);
    list-style: none;
    font-size: 14px;
}

.acc-reperes strong {
    display: block;
    color: var(--acc-titre);
    font-family: "Roboto Slab", serif;
    font-size: 22px;
    font-weight: 300;
}

.acc-presentation-texte {
    max-width: 640px;
}

.acc-video {
    max-width: 1100px;
    margin: 48px auto 0;
    padding: 0 24px;
}

.acc-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

/* ---------- En-tête de section (titre + lien) ---------- */

.acc-entete {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 36px;
}

.acc-entete h2 {
    margin: 0;
}

/* ---------- Prestations ---------- */

.acc-prestations {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.acc-prestation {
    position: relative;
    display: block;
    height: 100%;
    min-height: 320px;
    overflow: hidden;
    background: var(--acc-fond-2);
    color: #fff !important;
    text-decoration: none !important;
}

.acc-prestation img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1); /* toujours en noir et blanc, même au survol */
    transition: transform .7s ease;
}

.acc-prestation::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, .05) 100%);
}

.acc-prestation-texte {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 22px;
}

.acc-prestation-titre {
    display: block;
    font-family: "Roboto Slab", serif;
    font-size: 22px;
    font-weight: 300;
    line-height: 1.25;
}

.acc-prestation-titre::after {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    margin-top: 12px;
    background: var(--acc-accent);
    transition: width .3s;
}

.acc-prestation-desc {
    display: block;
    margin-top: 10px;
    color: #d0d0d0;
    font-size: 14px;
    line-height: 1.55;
}

@media (hover: hover) {
    .acc-prestation:hover img {
        transform: scale(1.05);
    }

    .acc-prestation:hover .acc-prestation-titre::after {
        width: 56px;
    }
}

.acc-prestation:focus-visible {
    outline: 2px solid var(--acc-accent);
    outline-offset: 3px;
}

.acc-prestation--cadeau {
    border: 1px solid rgba(212, 71, 164, .45);
    background:
        radial-gradient(circle at 80% 15%, rgba(212, 71, 164, .3), transparent 60%),
        var(--acc-fond-2);
}

.acc-prestation--cadeau::after {
    display: none;
}

/* ---------- Portfolio ---------- */

.acc-portfolio .gg-galerie {
    padding: 0;
}

.acc-portfolio .gg-grille {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    max-width: none;
    padding: 0;
}

/* ---------- Avis ---------- */

.acc-avis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.acc-avis blockquote {
    position: relative;
    height: 100%;
    margin: 0;
    padding: 46px 28px 28px;
    border: 0;
    border-top: 2px solid var(--acc-accent);
    background: var(--acc-fond-2);
}

.acc-avis blockquote::before {
    content: "\201C";
    position: absolute;
    top: 6px;
    left: 24px;
    color: var(--acc-accent);
    font-family: Georgia, serif;
    font-size: 56px;
    line-height: 1;
}

.acc-avis p {
    margin: 0;
    color: #d2d2d2;
    font-size: 15px;
    font-style: italic;
}

.acc-avis footer {
    margin-top: 18px;
    color: var(--acc-titre);
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.acc-avis footer::before {
    content: none;
}

/* ---------- Actualités ---------- */

.acc-articles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.acc-article {
    display: block;
    color: var(--acc-texte) !important;
    text-decoration: none !important;
}

.acc-article-image {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--acc-fond-2);
}

.acc-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}

.acc-article:hover .acc-article-image img {
    transform: scale(1.04);
}

.acc-article time {
    color: var(--acc-accent);
    font-size: 12px;
    letter-spacing: 1px;
}

.acc-article-titre {
    display: block;
    margin: 4px 0 8px;
    color: var(--acc-titre);
    font-family: "Roboto Slab", serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.35;
}

.acc-article:hover .acc-article-titre {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--acc-accent);
    text-underline-offset: 4px;
}

.acc-article-extrait {
    display: block;
    font-size: 14px;
}

/* ---------- Espace privé ---------- */

.acc-prive {
    max-width: 760px;
    text-align: center;
}

.acc-prive p:last-child {
    margin: 0;
    padding: 28px 0;
    border-top: 1px solid var(--acc-trait);
    border-bottom: 1px solid var(--acc-trait);
    font-size: 15px;
}

.acc-prive a {
    color: #e783c6;
}

/* ---------- Contact ---------- */

.acc-contact {
    margin-top: 96px;
    padding-bottom: 96px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(212, 71, 164, .16), transparent 65%),
        #111;
    text-align: center;
}

.acc-contact .acc-section {
    max-width: 680px;
}

.acc-adresse {
    margin: 28px 0 0;
    color: #8d8d8d;
    font-size: 14px;
}

/* ---------- Écrans moyens ---------- */

@media (max-width: 1100px) {
    .acc-prestations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .acc-portfolio .gg-grille {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .acc-avis,
    .acc-articles {
        grid-template-columns: 1fr;
        max-width: 720px;
    }

    .acc-article {
        display: grid;
        grid-template-columns: 200px 1fr;
        grid-template-rows: auto auto 1fr;
        column-gap: 20px;
    }

    .acc-article-image {
        grid-row: 1 / 4;
        margin: 0;
    }
}

/* ---------- Téléphone ---------- */

@media (max-width: 767px) {
    .acc {
        font-size: 15px;
    }

    .acc-section {
        padding: 64px 16px 0;
    }

    .acc-hero {
        min-height: 520px;
        height: calc(100svh - 70px);
    }

    .acc-hero-texte {
        padding: 0 16px 84px;
    }

    .acc-hero h1 span {
        letter-spacing: .35em;
    }

    .acc-boutons .acc-bouton {
        flex: 1 1 100%;
    }

    .acc-defiler {
        display: none;
    }

    .acc-presentation {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .acc-presentation-photo {
        max-width: 320px;
    }

    .acc-entete {
        margin-bottom: 24px;
    }

    /* Prestations : cartes horizontales compactes */
    .acc-prestations {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .acc-prestation {
        display: grid;
        grid-template-columns: 38% 1fr;
        min-height: 0;
    }

    .acc-prestation img {
        position: static;
        height: 100%;
        min-height: 120px;
    }

    .acc-prestation::after {
        display: none;
    }

    .acc-prestation-texte {
        position: static;
        padding: 16px;
    }

    .acc-prestation-titre {
        font-size: 18px;
    }

    .acc-prestation-titre::after {
        margin-top: 8px;
    }

    .acc-prestation-desc {
        margin-top: 8px;
        font-size: 13px;
    }

    .acc-prestation--cadeau {
        grid-template-columns: 1fr;
    }

    .acc-portfolio .gg-grille {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 3px;
    }

    .acc-avis blockquote {
        padding: 42px 20px 22px;
    }

    .acc-article {
        grid-template-columns: 112px 1fr;
        column-gap: 14px;
    }

    .acc-article-image {
        aspect-ratio: 1;
        align-self: start;
    }

    .acc-article-titre {
        font-size: 17px;
    }

    .acc-article-extrait {
        display: none;
    }

    .acc-contact {
        margin-top: 64px;
        padding-bottom: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .acc-defiler::before {
        animation: none;
    }

    .acc-prestation img,
    .acc-article-image img {
        transition: none;
    }
}
