/* ==========================================================================
   accueil-v2.css — Page d'accueil (index_photo.php), refonte d'octobre 2026
   Sombre, accent orange du site, titres en Playfair Display (hébergée ici).
   Toutes les animations s'arrêtent si le visiteur a demandé moins de mouvement.
   ========================================================================== */

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../assets/fonts/playfair-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url('../assets/fonts/playfair-italic.woff2') format('woff2');
}

:root {
    --ac-bg: #0f0f10;
    --ac-bg-2: #161618;
    --ac-card: #1d1d20;
    --ac-line: rgba(255, 255, 255, .09);
    --ac-text: #f4f1ec;
    --ac-muted: #a9a49c;
    --ac-accent: #f39c12;
    --ac-accent-2: #e67e22;
    --ac-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --ac-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --ac-ease: cubic-bezier(.22, .61, .36, 1);
    --ac-gutter: clamp(16px, 4vw, 40px);
}

.ac {
    margin: 0;
    background: var(--ac-bg);
    color: var(--ac-text);
    font-family: var(--ac-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.ac *,
.ac *::before,
.ac *::after {
    box-sizing: border-box;
}

.ac img {
    max-width: 100%;
    display: block;
}

.ac-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--ac-gutter);
}

.ac-section {
    padding: clamp(72px, 10vw, 130px) 0;
}

/* ---------- Titres et textes ---------- */
.ac-eyebrow {
    margin: 0 0 14px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ac-accent);
}

.ac-title {
    margin: 0 0 18px;
    font-family: var(--ac-serif);
    font-weight: 600;
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    line-height: 1.12;
    letter-spacing: -.01em;
}

.ac-intro {
    margin: 0;
    max-width: 640px;
    color: var(--ac-muted);
    font-size: clamp(1rem, 1.3vw, 1.1rem);
}

.ac-head {
    margin-bottom: clamp(36px, 5vw, 60px);
}

.ac-center {
    margin-top: clamp(36px, 5vw, 56px);
    text-align: center;
}

/* ---------- Boutons ---------- */
.ac-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .98rem;
    text-decoration: none;
    transition: transform .25s var(--ac-ease), box-shadow .25s var(--ac-ease), background .25s, color .25s, border-color .25s;
    -webkit-tap-highlight-color: transparent;
}

.ac-btn svg {
    transition: transform .25s var(--ac-ease);
}

.ac-btn:hover svg {
    transform: translateX(3px);
}

.ac-btn-primary {
    background: linear-gradient(135deg, var(--ac-accent), var(--ac-accent-2));
    color: #fff;
    box-shadow: 0 10px 28px rgba(243, 156, 18, .28);
}

.ac-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(243, 156, 18, .38);
}

.ac-btn-ghost {
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    background: rgba(255, 255, 255, .04);
    backdrop-filter: blur(6px);
}

.ac-btn-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .12);
}

.ac-btn:focus-visible,
.ac-card:focus-visible,
.ac-tile:focus-visible,
.ac-contact-card:focus-visible {
    outline: 3px solid var(--ac-accent);
    outline-offset: 3px;
}

/* ==========================================================================
   HÉROS — diaporama plein écran, zoom lent (effet « Ken Burns »)
   ========================================================================== */
.ac-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: #000;
}

.ac-hero-slides,
.ac-hero-shade {
    position: absolute;
    inset: 0;
}

.ac-hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.12);
    transition: opacity 1.6s ease;
    will-change: opacity, transform;
}

.ac-hero-slide.is-active {
    opacity: 1;
    animation: acKenBurns 9s linear forwards;
}

.ac-hero-slide:nth-child(even).is-active {
    animation-name: acKenBurnsAlt;
}

@keyframes acKenBurns {
    from { transform: scale(1.12) translate3d(1.5%, 1%, 0); }
    to   { transform: scale(1) translate3d(0, 0, 0); }
}

@keyframes acKenBurnsAlt {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to   { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

.ac-hero-shade {
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .1) 30%, rgba(0, 0, 0, .25) 60%, var(--ac-bg) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, .15) 65%);
}

.ac-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 170px var(--ac-gutter) 140px;   /* 80 de menu + la pastille Elymir */
    will-change: transform, opacity;
}

.ac-hero-title {
    margin: 0 0 22px;
    font-family: var(--ac-serif);
    font-weight: 600;
    font-size: clamp(2.1rem, 8.6vw, 6rem);
    line-height: 1.02;
    letter-spacing: -.02em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}

.ac-hero-title em {
    display: inline-block;
    font-style: italic;
    font-weight: 500;
    color: #ffd18a;
}

/* Chaque ligne du titre monte depuis un masque */
.ac-line {
    display: block;
    overflow: hidden;
    padding-bottom: .06em;
}

.ac-hero-in {
    display: inline-block;
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    animation: acRise 1s var(--ac-ease) forwards;
    animation-delay: calc(.25s + var(--i, 0) * .14s);
}

.ac-line .ac-hero-in {
    transform: translate3d(0, 105%, 0);
}

@keyframes acRise {
    to { opacity: 1; transform: none; }
}

.ac-hero .ac-eyebrow {
    color: #ffd18a;
    display: block;
}

.ac-hero-lead {
    display: block;
    margin: 0 0 34px;
    max-width: 560px;
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
    color: rgba(255, 255, 255, .86);
}

.ac-hero-actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 14px;
}

/* Pastille Elymir en haut du diaporama, sous le menu fixe (80 px) */
.ac-promo {
    position: absolute;
    z-index: 3;
    top: calc(80px + 22px);
    /* centree par les marges : avec « left: 50% » elle ne pouvait pas depasser
       la moitie de l'ecran et son texte etait coupe sur telephone */
    left: 0;
    right: 0;
    margin: 0 auto;
    width: max-content;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 2 * var(--ac-gutter));
    padding: 7px 16px 7px 8px;
    border-radius: 999px;
    background: rgba(10, 10, 10, .55);
    border: 1px solid rgba(232, 48, 48, .45);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 0 0 rgba(227, 38, 43, .45);
    backdrop-filter: blur(10px);
    color: #f1ece6;
    font-size: .88rem;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    transform: translateY(-16px);
    opacity: 0;
    animation: acPromoIn .8s var(--ac-ease) 1.1s forwards, acPromoPulse 3.2s ease-out 2.4s 3;
    transition: background .25s, border-color .25s;
}

.ac-promo:hover {
    background: rgba(160, 15, 20, .55);
    border-color: rgba(255, 90, 90, .7);
}

.ac-promo img {
    flex: none;
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 2px 6px rgba(227, 38, 43, .6));
}

.ac-promo-tag {
    flex: none;
    padding: 2px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e3262b, #9d0d12);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ac-promo-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.ac-promo-text b {
    color: #fff;
}

.ac-promo svg {
    flex: none;
    transition: transform .25s var(--ac-ease);
}

.ac-promo:hover svg {
    transform: translateX(3px);
}

@keyframes acPromoIn {
    to { opacity: 1; transform: none; }
}

/* Un halo rouge qui s'élargit trois fois, pour attirer l'œil sans clignoter */
@keyframes acPromoPulse {
    0%   { box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 0 0 rgba(227, 38, 43, .45); }
    70%  { box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 0 12px rgba(227, 38, 43, 0); }
    100% { box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 0 0 rgba(227, 38, 43, 0); }
}

/* Points de navigation du diaporama, avec barre de progression */
.ac-hero-dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.ac-dot {
    width: 34px;
    height: 22px;
    padding: 9px 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.ac-dot span {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .3);
    overflow: hidden;
    position: relative;
}

.ac-dot span::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
}

.ac-dot.is-active span::after {
    animation: acProgress var(--ac-slide-ms, 6500ms) linear forwards;
}

.ac-hero.is-paused .ac-dot.is-active span::after {
    animation-play-state: paused;
}

@keyframes acProgress {
    to { transform: scaleX(1); }
}

.ac-scroll {
    position: absolute;
    z-index: 3;
    right: var(--ac-gutter);
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    font-size: .7rem;
    letter-spacing: .25em;
    text-transform: uppercase;
}

.ac-scroll i {
    width: 1px;
    height: 46px;
    background: linear-gradient(rgba(255, 255, 255, .8), transparent);
    animation: acScrollLine 2s ease-in-out infinite;
    transform-origin: top;
}

@keyframes acScrollLine {
    0% { transform: scaleY(0); opacity: 1; }
    60% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}

/* ==========================================================================
   APPARITION AU DÉFILEMENT
   ========================================================================== */
.ac-js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
    transition: opacity .9s var(--ac-ease), transform .9s var(--ac-ease);
    transition-delay: var(--d, 0ms);
}

.ac-js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   UNIVERS — cartes des galeries
   ========================================================================== */
.ac-univers {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: clamp(220px, 24vw, 300px);
    gap: 16px;
}

.ac-card {
    position: relative;
    grid-column: span 2;
    overflow: hidden;
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    background: var(--ac-card);
    isolation: isolate;
}

.ac-card-feature {
    grid-column: span 4;
    grid-row: span 2;
}

.ac-card:nth-child(2) {
    grid-column: span 2;
    grid-row: span 2;
}

.ac-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--ac-ease), filter .6s ease;
}

.ac-card:hover img {
    transform: scale(1.07);
    filter: brightness(.85);
}

.ac-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .82));
    z-index: 1;
}

.ac-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: clamp(18px, 2.4vw, 28px);
}

.ac-card-count {
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .2);
    font-size: .72rem;
    letter-spacing: .06em;
    backdrop-filter: blur(6px);
}

.ac-card-title {
    font-family: var(--ac-serif);
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 600;
    line-height: 1.15;
}

.ac-card-feature .ac-card-title {
    font-size: clamp(1.8rem, 3.6vw, 3rem);
}

.ac-card-text {
    color: rgba(255, 255, 255, .78);
    font-size: .92rem;
}

.ac-card-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    color: var(--ac-accent);
    font-weight: 600;
    font-size: .88rem;
    transition: max-height .4s var(--ac-ease), opacity .4s, margin-top .4s;
}

.ac-card:hover .ac-card-more,
.ac-card:focus-visible .ac-card-more {
    max-height: 30px;
    opacity: 1;
    margin-top: 10px;
}

/* ==========================================================================
   HISTOIRE
   ========================================================================== */
.ac-about {
    background: linear-gradient(180deg, var(--ac-bg), var(--ac-bg-2));
}

.ac-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(36px, 6vw, 90px);
    align-items: center;
}

.ac-about-media {
    position: relative;
}

.ac-about-frame {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--ac-card);
}

.ac-about-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.ac-about-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cadre décalé derrière la photo */
.ac-about-media::before {
    content: '';
    position: absolute;
    inset: 22px -22px -22px 22px;
    border: 1px solid rgba(243, 156, 18, .45);
    border-radius: 22px;
    z-index: -1;
}

.ac-about-badge {
    position: absolute;
    right: -14px;
    bottom: 28px;
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(15, 15, 16, .88);
    border: 1px solid var(--ac-line);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

.ac-about-badge strong {
    display: block;
    font-family: var(--ac-serif);
    font-size: 2.2rem;
    line-height: 1;
    color: var(--ac-accent);
}

.ac-about-badge span {
    font-size: .82rem;
    color: var(--ac-muted);
}

.ac-prose p {
    margin: 0 0 16px;
    color: #d4cfc7;
    font-size: 1.04rem;
}

.ac-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 30px 0 0;
}

.ac-stats div {
    padding: 18px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--ac-line);
}

.ac-stats dt {
    font-family: var(--ac-serif);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
}

.ac-stats dd {
    margin: 4px 0 0;
    color: var(--ac-muted);
    font-size: .85rem;
}

/* ==========================================================================
   DISTINCTIONS — frise chronologique
   ========================================================================== */
.ac-awards {
    background: var(--ac-bg-2);
}

.ac-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ac-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 21px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(243, 156, 18, .55), transparent);
}

.ac-timeline li {
    position: relative;
    padding-top: 58px;
}

.ac-timeline li::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--ac-bg-2);
    border: 2px solid var(--ac-accent);
    box-shadow: 0 0 0 6px rgba(243, 156, 18, .12);
}

.ac-year {
    font-family: var(--ac-serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--ac-accent);
    line-height: 1;
}

.ac-timeline h3 {
    margin: 10px 0 8px;
    font-size: 1.08rem;
    line-height: 1.35;
}

.ac-timeline p {
    margin: 0;
    color: var(--ac-muted);
    font-size: .93rem;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.ac-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.ac-service {
    position: relative;
    padding: 30px 26px;
    border-radius: 18px;
    background: var(--ac-card);
    border: 1px solid var(--ac-line);
    overflow: hidden;
    transition: transform .35s var(--ac-ease), border-color .35s;
}

.ac-service::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ac-accent), var(--ac-accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--ac-ease);
}

.ac-service:hover {
    transform: translateY(-6px);
    border-color: rgba(243, 156, 18, .35);
}

.ac-service:hover::after {
    transform: scaleX(1);
}

.ac-service-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: rgba(243, 156, 18, .12);
    color: var(--ac-accent);
}

.ac-service h3 {
    margin: 0 0 10px;
    font-family: var(--ac-serif);
    font-size: 1.35rem;
    font-weight: 600;
}

.ac-service p {
    margin: 0;
    color: var(--ac-muted);
    font-size: .95rem;
}

/* ==========================================================================
   SÉLECTION — mosaïque
   ========================================================================== */
.ac-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: clamp(160px, 17vw, 230px);
    grid-auto-flow: dense;
    gap: 12px;
}

.ac-tile {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: var(--ac-card);
}

.ac-tile.is-large {
    grid-column: span 2;
}

.ac-tile.is-haute {
    grid-row: span 2;
}

.ac-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ac-ease), filter .5s;
}

.ac-tile:hover img {
    transform: scale(1.06);
    filter: brightness(1.08);
}

/* ==========================================================================
   ESPACE CLIENT
   ========================================================================== */
.ac-client {
    padding-top: 0;
}

.ac-client-box {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: clamp(26px, 4vw, 44px);
    border-radius: 24px;
    background:
        radial-gradient(circle at 0% 0%, rgba(243, 156, 18, .18), transparent 55%),
        var(--ac-card);
    border: 1px solid rgba(243, 156, 18, .25);
}

.ac-client-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(243, 156, 18, .15);
    color: var(--ac-accent);
}

.ac-client-text {
    flex: 1;
}

.ac-client-text h2 {
    margin: 0 0 6px;
    font-family: var(--ac-serif);
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 600;
}

.ac-client-text p {
    margin: 0;
    color: var(--ac-muted);
}

/* ==========================================================================
   ELYMIR — bandeau publicitaire
   ========================================================================== */
.ac-elymir {
    position: relative;
    padding: clamp(80px, 11vw, 140px) 0;
    overflow: hidden;
    isolation: isolate;
    background: #070707;
}

.ac-elymir-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.ac-elymir-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 50%;
    opacity: .28;
    transform: scale(1.08);
    will-change: transform;
}

.ac-elymir-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 50%, rgba(214, 25, 25, .32), transparent 45%),
        linear-gradient(90deg, rgba(7, 7, 7, .97) 0%, rgba(7, 7, 7, .82) 50%, rgba(7, 7, 7, .55) 100%);
}

.ac-elymir-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.ac-elymir-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    background: rgba(214, 25, 25, .14);
    border: 1px solid rgba(232, 48, 48, .4);
    color: #ff9a9a;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ac-elymir-kicker img {
    width: 22px;
    height: 22px;
}

.ac-elymir h2 {
    margin: 0 0 16px;
    font-family: var(--ac-serif);
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 600;
    line-height: 1.1;
}

.ac-elymir-lead {
    margin: 0 0 24px;
    max-width: 560px;
    color: #d8d2cb;
    font-size: 1.06rem;
}

.ac-elymir-features {
    display: grid;
    gap: 10px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.ac-elymir-features li {
    position: relative;
    padding-left: 28px;
    color: #c9c3bb;
}

.ac-elymir-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .55em;
    width: 14px;
    height: 8px;
    border-left: 2px solid #ff4d4d;
    border-bottom: 2px solid #ff4d4d;
    transform: rotate(-45deg);
}

.ac-elymir-features b {
    color: #fff;
}

.ac-elymir-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.ac-btn-elymir {
    background: linear-gradient(135deg, #e3262b, #9d0d12);
    color: #fff;
    box-shadow: 0 12px 30px rgba(227, 38, 43, .35);
}

.ac-btn-elymir:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(227, 38, 43, .45);
}

.ac-elymir-price {
    color: #d8d2cb;
    font-size: .95rem;
}

.ac-elymir-price strong {
    font-size: 1.35rem;
    color: #fff;
    margin-right: 4px;
}

/* Logo qui flotte, avec halo rouge */
.ac-elymir-logo {
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 34px 44px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
    color: #fff;
    text-decoration: none;
    transition: transform .4s var(--ac-ease), border-color .4s;
}

.ac-elymir-logo:hover {
    transform: translateY(-6px);
    border-color: rgba(232, 48, 48, .45);
}

.ac-elymir-logo img {
    width: clamp(84px, 10vw, 120px);
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(227, 38, 43, .55));
    animation: acFloat 5s ease-in-out infinite;
}

.ac-elymir-logo span {
    font-size: 1.7rem;
    font-weight: 300;
    letter-spacing: .04em;
}

@keyframes acFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================================================
   CONTACT ET PIED DE PAGE
   ========================================================================== */
.ac-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(30px, 5vw, 70px);
    align-items: center;
}

.ac-contact .ac-intro {
    margin-bottom: 28px;
}

.ac-contact-cards {
    display: grid;
    gap: 12px;
}

.ac-contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--ac-card);
    border: 1px solid var(--ac-line);
    color: #fff;
    text-decoration: none;
    transition: transform .3s var(--ac-ease), border-color .3s;
}

.ac-contact-card:hover {
    transform: translateX(6px);
    border-color: rgba(243, 156, 18, .4);
}

.ac-contact-card svg {
    flex: none;
    color: var(--ac-accent);
}

.ac-contact-card span {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ac-contact-card small {
    color: var(--ac-muted);
    font-weight: 400;
    font-size: .78rem;
}

.ac-footer {
    padding: 40px 0 calc(28px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--ac-line);
    background: #0a0a0b;
}

.ac-footer-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ac-footer-name {
    margin: 0;
    font-family: var(--ac-serif);
    font-size: 1.3rem;
}

.ac-footer-sub {
    margin: 0;
    color: var(--ac-muted);
    font-size: .85rem;
}

.ac-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.ac-footer-nav a,
.ac-footer-elymir {
    color: var(--ac-muted);
    text-decoration: none;
    font-size: .9rem;
    transition: color .2s;
}

.ac-footer-nav a:hover,
.ac-footer-elymir:hover {
    color: #fff;
}

.ac-footer-elymir {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ac-footer-copy {
    max-width: 1240px;
    margin: 26px auto 0;
    padding: 0 var(--ac-gutter);
    color: #6f6a63;
    font-size: .8rem;
}

/* ==========================================================================
   ADAPTATION AUX ÉCRANS
   ========================================================================== */
@media (max-width: 1100px) {
    .ac-services {
        grid-template-columns: repeat(2, 1fr);
    }

    .ac-timeline {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 36px;
    }

    .ac-timeline::before {
        display: none;
    }
}

@media (max-width: 900px) {
    .ac-univers {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: clamp(200px, 42vw, 300px);
    }

    .ac-card,
    .ac-card:nth-child(2) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .ac-card-feature {
        grid-column: span 2;
        grid-row: span 1;
    }

    .ac-about-grid,
    .ac-elymir-grid,
    .ac-contact-grid {
        grid-template-columns: 1fr;
    }

    .ac-about-media {
        max-width: 420px;
        margin: 0 auto 10px;
    }

    .ac-elymir-logo {
        display: none;   /* le logo est déjà dans le titre du bandeau */
    }

    .ac-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: clamp(150px, 38vw, 230px);
    }
}

@media (max-width: 600px) {
    .ac-hero-content {
        padding-top: 160px;     /* de la place pour la pastille Elymir sous le menu */
        padding-bottom: 120px;
    }

    .ac-promo {
        top: calc(80px + 14px);
        font-size: .82rem;
    }

    .ac-promo-extra,
    .ac-promo-tag {
        display: none;          /* sur téléphone : la phrase entière, le prix est plus bas */
    }

    .ac-hero-actions .ac-btn {
        flex: 1 1 100%;
    }

    .ac-hero-shade {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .25) 35%, rgba(0, 0, 0, .55) 70%, var(--ac-bg) 100%);
    }

    .ac-scroll {
        display: none;
    }

    .ac-services,
    .ac-timeline {
        grid-template-columns: 1fr;
    }

    .ac-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .ac-stats div {
        padding: 14px 10px;
    }

    .ac-about-badge {
        right: 8px;
    }

    .ac-about-media::before {
        inset: 14px -10px -14px 14px;
    }

    .ac-client-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .ac-client-box .ac-btn {
        width: 100%;
    }

    .ac-footer-grid {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Moins de mouvement demandé : tout est affiché, sans animation */
@media (prefers-reduced-motion: reduce) {
    .ac-hero-slide,
    .ac-hero-slide.is-active {
        animation: none !important;
        transform: none;
        transition: opacity .01ms;
    }

    .ac-hero-in,
    .ac-js [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }

    .ac-promo {
        opacity: 1;
        transform: none;
        animation: none !important;
    }

    .ac-scroll i,
    .ac-elymir-logo img,
    .ac-dot.is-active span::after {
        animation: none !important;
    }
}
